Tuesday, July 28, 2009

Do you have to download PHP IN ORDER for dynamic web pages on your computer to be viewable by people?

Why is this? Also how do you get PHP to work with APACHE? Can someone fill me in on details. Also how do you get apache to work with mysql.

Do you have to download PHP IN ORDER for dynamic web pages on your computer to be viewable by people?
Yes, you have to have PHP installed on your computer. You know to allow other users to view dynamic pages (in this case PHP) you also need a dynamic web server (in this case apache). Apache will take request from client pc then look for the php pages in your computer and returns the result as a dynamic page to client computer. You know how this works.





Now what I follow is the easiest way. I just simply download "php triad" and install. (triad stands for PHP, Apache and MySql). You can download it from here http://www.download.com/PHPTriad/3000-21... . After that all you have to do is run the apache server, mysql server (you can do this from start menu) and go to your browser and enter http://localhost/phpmyadmin . You can configure your settings from there. You can also setup your mysql from command prompt too. But this is the easiest way. Remember by default your root directory is c:\apache\htdocs. So you can place all your webpages right here to be accessable by clients. But you can also change the default root directory by modifying the httpd.conf file which is located under c:\apache\conf folder.





Hope this solves your problem.
Reply:You have to have PHP on the server for people to be able to view PHP pages. The people viewing the PHP pages do not have to have PHP on their computers.





I would recommend going to www.php.net to find information about using PHP with Apache. I'm sure it must say something about it.





The easiest thing to do is just to get a website on a public server that uses PHP. I use Lunar Pages, which supports PHP on all their servers.
Reply:a bit outdated but it should do:





http://www.php-mysql-tutorial.com/instal...





you don't really NEED php in order for people to see your site but if you're coding in php, then yes.
Reply:Do a Google search for WAMP or LAMP.





WAMP is "Windows/Apache/MySQL/PHP".





LAMP is "LINUX/Apache...".





Google search procedures should point you to procedures for setting up a LAMP/WAMP stack on your computer.





LAMP is preferred to WAMP for performance and security reasons.





WAMP is okay for a development environment.


No comments:

Post a Comment