Connecting Tech Pros Worldwide Forums | Help | Site Map

Need Help on PHP: Beginner

Newbie
 
Join Date: Jun 2006
Posts: 6
#1: Jun 22 '06
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="http://php.net/security.cgi-bin">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="http://php.net/install.windows">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.
Thanks!

-Ted
Newbie
 
Join Date: Jun 2006
Posts: 3
#2: Jun 28 '06

re: Need Help on PHP: Beginner


Hi,

You install the follwoing s/ws first
www.apache.org -apache server
php.net- php
mysql.com -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

www.php.net
www.phpfreaks.com
www.zend.com
www.phpfaqts.com

All the best

Vijesh Nair

sankviju@rediffmail.com
Reply