Page 1 of 1

Newbie with a Basic Problem re: includes

Posted: Wed Aug 31, 2005 7:49 pm
by sfrasier66
Hello all,

I am brand new and pretty helpless when it comes to PHP. It is so cryptic, i just don't see how you guys do it. If you can help with this, it would be greatly appreciated!!

One client has a pretty standard CSS/XHTML site with three dynamic pages using PHP code, which is placed into the main XHTML code using SSI as such:

<!--#include="content/online_party_request_form.php"--->

The three pages that use this mysteriously quit working yesterday and are returning error messages on the web pages:

Not Found
The requested URL /cgi-bin/phpINTERNALLY GENERATED file-relative req was not found on this server.

This just started happening yesterday for all three pages. Very, very strange. The filenames are spelled right, are in the correct folders, etc.

Any ideas?

Thank you very much,
Frasier

Posted: Wed Aug 31, 2005 7:55 pm
by feyd
php may be looking for the files in the wrong place (it may think the path is relative to it's location in /cgi-bin, or php may not be allowed outside of the /cgi-bin when accessing local filesystem data.

Those are my guesses.. (I don't run php as a CGI, ever)

Posted: Wed Aug 31, 2005 8:09 pm
by sfrasier66
Thanks for your response. You taught me something. I thought cgi/bin had nothing to do with PHP, only Perl!

THis makes it all the stranger that, by all accounts, these pages were working recently exactly as they are now coded. I don't get it.

Bizarre. :twisted:

Posted: Wed Aug 31, 2005 8:10 pm
by feyd
may have been due to a security change, or some other thing your host did.

Oh yeah...

Posted: Wed Aug 31, 2005 8:18 pm
by sfrasier66
I've had a couple of programmers experimenting with CMS implementation for this simple site, to no avail. We did install WordPress, which requires PHP and a new DB, but I am unsure as to exactly how these two could be connected. Bet they are, though.

It would seem I need new programmers.

I appreciate the memory jog.

Later, Feyd -- thanks.