hi phpers im totall noob to this area so can someone tell me how to install and run a php script on my server it has got php on itjust upload it...the files should have the extension .php...then run it in your web browser...I'm stuck at the same snag. I have a page all nicely done up (I did it myself ) but now when I save it as .php and load it on IE nothing in php displays. I read at php.net that you have to put it in the web servers root directory. and then the address bar will be either: localhost/name.php or 127.0.0.1/name.php
how do I find the servers root directory?
How do I run a php page that I developed locally is a better queation.If you have Apache server installed then it will be in the htdocs folder, which can be found in the Apache directory on your hard drive.
To run a PHP page locally you need a web server like Apache (<!-- m --><a class="postlink" href="http://www.apache.org">http://www.apache.org</a><!-- m -->) and PHP (<!-- m --><a class="postlink" href="http://www.php.net/Download">http://www.php.net/Download</a><!-- m --> s.php). Also if you would like to run a database try MySQL (<!-- m --><a class="postlink" href="http://www.mysql.com">http://www.mysql.com</a><!-- m -->).
There is a good tutorial on installing all these packages over at WebmasterStop (<!-- m --><a class="postlink" href="http://www.webmasterstop.com/tutorials/apache-php-mysql-installation.shtml">http://www.webmasterstop.com/tutorials/ ... tion.shtml</a><!-- m -->).
how do I find the servers root directory?
How do I run a php page that I developed locally is a better queation.If you have Apache server installed then it will be in the htdocs folder, which can be found in the Apache directory on your hard drive.
To run a PHP page locally you need a web server like Apache (<!-- m --><a class="postlink" href="http://www.apache.org">http://www.apache.org</a><!-- m -->) and PHP (<!-- m --><a class="postlink" href="http://www.php.net/Download">http://www.php.net/Download</a><!-- m --> s.php). Also if you would like to run a database try MySQL (<!-- m --><a class="postlink" href="http://www.mysql.com">http://www.mysql.com</a><!-- m -->).
There is a good tutorial on installing all these packages over at WebmasterStop (<!-- m --><a class="postlink" href="http://www.webmasterstop.com/tutorials/apache-php-mysql-installation.shtml">http://www.webmasterstop.com/tutorials/ ... tion.shtml</a><!-- m -->).