By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,064 Members | 1,388 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,064 IT Pros & Developers. It's quick & easy.

Need Help on PHP: Beginner

P: 6
Hi, I begin to write PHP but run into problem already.
First, I do not know where to put my PHP code? Where is the IIS Root Directory? (I'm using Windows XP).
I have run Installer... but when I open my browser and type:
http://localhost/hello.php, what I got is an error message:

<p>This PHP CGI binary was compiled with force-cgi-redirect enabled. This
means that a page will only be served up if the REDIRECT_STATUS CGI variable is
set, e.g. via an Apache Action directive.</p>
<p>For more information as to <i>why</i> this behaviour exists, see the <a href="">manual page for CGI security</a>.</p>
<p>For more information about changing this behaviour or re-enabling this webserver,
consult the installation file that came with this distribution, or visit
<a href="">the manual page</a>.</p>

I really do not understand how to make my first PHP "Hello World" works?
Probably this is stupid question but please help.

Jun 22 '06 #1
Share this Question
Share on Google+
1 Reply

P: 3

You install the follwoing s/ws first -apache server php -mysql windows version
Then edit httpd conf file in apaches conf dir:
add module :LoadModule php5_module "c:/php/php5apache2.dll" at line no:173(i assume)(check wther the module exist there in C:php/
Then install php in C:
Install mysql in E or D
then edit C/php/php.ini

remove ; from
;extension=php_mysql.dll at line no:647

For more help

All the best

Vijesh Nair
Jun 28 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.