Re: Unable to see my .php script in IE5

From: Date: Tue, 26 Jun 2001 12:32:50 +0000
Subject: Re: Unable to see my .php script in IE5
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-8045@lists.php.net to get a copy of this message
Dear Johan In answer to your questions A) I have restarted Apache B) I stored it in the htdocs file within the Apache installation directory C) I was not aware that I had to change anything on the php.ini file, what should I do here I have been trying to get this to work for a few days now. I have the PHP fast and easy Web Development book, this came with the CD which had mysql, Apache and PHP4 on. I changed the httpd.conf file again in places putting extra spaces between some directives, now I am getting an error message Fatal error: Unable to open c:\program files\apache group\apache\htdocs\phpinfo.php in Unknown on line 0 I also notice that although I have saved my file as phpinfo.php it is in fact phpinfo.php.txt How do I get windows to stop putting the .txt extension on, I originally saved it as all files I am really quite new to web design and incorporating a database withing a website and I was told that PHP was my best option as I have Windows 98. Kind Regards Krysia "Johan Lundqvist" <johan@noatun.org> wrote in message news:3B387BCB.E4F6416B@noatun.org... > Just to check the obvious > > A: You have restarted Apache? > B: Where did you store phpinfo.php? > C: You have set "short_open_tag = On" in php.ini? > > /Johan > > Michael wrote: > > > > Please help > > > > I am having some serious problems. I have used a text editor to write the > > following code and saved it with a .php extension > > > > <? phpinfo(); ?> > > > > I saved this in the htdocs directory. > > > > I then went into my IE5 browser and typed > > http://localhost/phpinfo.php > > > > What I saw was the above code in my browser <? phpinfo() ; ?> > > > > I also viewed the source and saw the following <? phpinfo() ; ?> > > > > My httpd.conf file has been changed in the following places > > > > ServerAdmin mwallis@mixedmotors.co.uk > > ServerName localhost > > ScriptAlias /php4/ "C:/php4/" > > AddType application/x-httpd-php .phtml .php > > AddType application/x-httpd-php-source .phps > > Action application/x-httpd-php /php4/php.exe > > > > php4 is in my c drive and I know this to be the correct path > > > > I have not listed all the httpd.conf file as nothing else was changed. > > > > All the text files have been saved as .php I renamed the php.ini-dst to > > php.ini and moved this file to the C:\Windows directory where my .ini files > > reside and I then put the php4ts.dll in my c:\windows\system\ directory. I > > did not move the msvcrt.dll file over as I already had a copy of it there. > > > > Maybe by looking at what I have typed in you will find an error somewhere. > > > > Regards > > > > Krysia > > > > -- > > PHP Windows Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > > For additional commands, e-mail: php-windows-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#8045) next »