Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Getting the same error on my pages every time

Status
Not open for further replies.

Zooo

Programmer
Nov 7, 2000
19
0
0
CA
I am new to the php thing. I am using win XP and IIS 5, I used a program that set everything up for me.

My pages run fine, they connect to the database and everything. But every page displays the same error without fail.

HTTP/1.1 500 Server Error Server: Microsoft-IIS/5.1 Date: Mon, 22 Jul 2002 15:01:07 GMT Content-Type: text/html Content-Length: 44 -2147417842 (0x8001010e)

HELP!!!!

How can I get around this?
 
post some code Bastien

There are many ways to skin this cat,
but it still tastes like chicken
 
I get the error on all pages regardless of the code, but here is one sample.

<?php

/*database connection*/
mysql_connect(localhost,username,password);

/*select database*/
mysql_select_db(test);

/*select all from table pictures*/
$result = mysql_query(&quot;select * from pictures&quot;);

if ($row = mysql_fetch_array($result)) {

do {
print(&quot;<TABLE BORDER='0' CELLPADDING='0' CELLSPACING='0'><TR><TD VALIGN='top'>&quot;);
print $row[&quot;id&quot;];
print(&quot;</TD><TD>&quot;);
print (&quot;.</TD><TD><IMG SRC='images/&quot;);
print($row[&quot;name&quot;]);
print(&quot;' BORDER=0 ALT='&quot;);
print($row[&quot;name&quot;]);
print(&quot;'></TD></TR>&quot;);
} while($row = mysql_fetch_array($result));


} else {print &quot;Sorry, no records were found!&quot;;}


?>
 
how have you set the PHP in the IIS?

Have you installed manually or you used some phpTriad or something else self-installation?

check one thing, open &quot;Internet Information Services&quot;, then choose &quot;web Servers&quot; and in your web server right click it, and select properties.

Go to &quot;Home Directory&quot; tab -> configurations

Check what have you got in the .php line

You should have something like this:
.php c:\php\php.exe %s %s
or
.php c:\php\sapi\phpisapi.dll Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
I used a php installer.

I check IIS and have the line you referred to.

.php C:\Inetepub\php\php4isapi.dll

It is weird. Sometimes when I refresh the page it goes away but then when I reload the page it comes back.

I do not think it is the code I fell like it is a confilct somewhere in the setup, but I do not know enough about this to fix it.

IIS 5 was installed and working fine. mySQL 3.51 was installed and working fine. Then I installed PHP 4.04, it works but I get this error.

 
i always install it by hand. That way i know what i'm doing.

I have a FAQ about installing php in windows.

That's weird. Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Is it possible to get a copy of the FAQ you have?
 
Yes. I wrote it here. You can access it in the FAQ's tab right on the top. Anikin
Hugo Alexandre Dias
Web-Programmer
anikin_jedi@hotmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top