why php page is not opened?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sweetmaster
Forum Newbie
Posts: 2
Joined: Sat Jun 02, 2007 3:17 am

why php page is not opened?

Post by sweetmaster »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


hi to all
i am using windows xp with iis 5.1 i check it by http://localhost/localstart.asp, iis is running. 
i installed php 5.2.3 and made following changes in php.ini file
=>extension_dir= "c:/php/ext"

then i write a simple program (hello.php) that is:

=====================

Code: Select all

<html>
<body>


<?php
echo "Hello World";
phpinfo();

?>

</body>
</html>


=====================
when i want to check the output http://localhost/hello.php
it gives

HTTP 500 - Internal server error
Internet Explorer

i didnot understand what is wrong with iis server
kindly help me
i will be very thank ful to all of you'
Regards
--------------------
maani janjua


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Rovas
Forum Contributor
Posts: 272
Joined: Mon Aug 21, 2006 7:09 am
Location: Romania

Post by Rovas »

Read these instructions:
http://www.php.net/manual/en/install.windows.php or a more detailed tutorial http://www.peterguy.com/php/install_IIS6.html.
Search this forum for more posts on this subject.
If you to do it the 'lazy way' just download the php win32 installer .
EDIT: It appears you have problems with the php extensions. Disable them (put ; in front them in the php.ini file) and try again.
sweetmaster
Forum Newbie
Posts: 2
Joined: Sat Jun 02, 2007 3:17 am

hi

Post by sweetmaster »

you say "If you to do it the 'lazy way' just download the php win32 installer . "

if i get win32 installer then during installation what sort of setting should i use?
regards
------------------
maani janjua
Post Reply