How to load php scripts in apache

Status
Not open for further replies.

Techmastro

Journeyman
hi guys
I have recently setup apache server on my pc with all necessary modules like mysql, php4.1 etc.
Now i want to load php scripts on my apache server.
Can anybody guide me step by step how to setup scripts like contact form etc in apache server (I want to create online database).
I am novice in php.
 

Deep

Version 2.0
hmm there is nothing to setup basically...
to check if your script is running properly or not, create a file in htdocs folder with name phpinfo.php (or any name u want)

put this code in that

Code:
<?php
phpinfo();
?>

so if you find php info when you visit the page, that means PHP is installed and you can play with it...

Deep
 

wORm

Journeyman
I don't know what you are having problems with, just put php files in root and they will be executed upon access (since you have php installed). If you need scripts just go to hotscripts.com and find any form to mail script to create a contact form.
 

NikhilVerma

Padawan
Deep said:
hmm there is nothing to setup basically...
to check if your script is running properly or not, create a file in htdocs folder with name phpinfo.php (or any name u want)

put this code in that

Code:
<?php
phpinfo();
?>

so if you find php info when you visit the page, that means PHP is installed and you can play with it...

Deep

And to execute it ... Type

localhost/phpinfo.php

In your browser and make sure that apache is running...
 
Status
Not open for further replies.
Top Bottom