LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Php (https://www.linuxquestions.org/questions/programming-9/php-649077/)

DaftDave 06-13-2008 11:03 AM

Php
 
I am running PCLinuxOS 2007 and i installed "apache-mod_php" via Synaptic. So, just to get me started could someone where to save anything and how to call it please. Big thanks

jpwigan 06-14-2008 10:47 PM

Your question seems a bit vague. I assume you already have Apache set up and running, and you've added a call to mod-php in httpd.conf (or you may have an /etc/httpd/modules.d or similar; I don't know PCLinuxOS specifically).

Assuming all of this, you can simply put .php files in your webroot (possibly something like /var/www/html/ or /var/www/html/htdocs) and put PHP code in them. Then, when you visit that webpage (i.e. http://localhost/test.php) anything inside of a <?php ?> tag will get interpreted by PHP.


All times are GMT -5. The time now is 05:56 PM.