I'm pretty new to PHP, so this may be a simple error, but I haven't found the solution any where else.
I've designed a fairly simple looping script to display for my own enjoyment, in sequence, the images from a movie parody I have on my computer. The images are arranged in a directory tree as follows: moviename/pagenumber/ and then are named 1.jpg through 6.jpg
Here's the script:
for ($i=1;$i<=27;$i++) {
for ($j=1;$j<=6;$j++) {
echo "<img src=hackers/" . $i . "/" . $j . ".jpg>";
}
}
Now, the script displays all images on one page, and when I load it the first time, it works fine. However, any attempts to run any other php script are met with the following error:
CGI Error
The specified CGI application misbehaved by not returning a complete set of HTTP headers. The headers it did return are:
I cannot run any php scripts after this unless I close all web browsers and re-open them. This error occurs in both Opera and Internet Explorer.
I can't figure out why it would work once and then stop functioning completely. I've tried displaying the pages one at a time, but after 22 pages, I get the same error. Any thoughts would be helpful.
I'm running WinXP (and whatever version of IIS comes with it) and php 4.2.3