Newbie with a Basic Problem re: includes

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
sfrasier66
Forum Newbie
Posts: 3
Joined: Wed Aug 31, 2005 7:39 pm
Location: Atlanta
Contact:

Newbie with a Basic Problem re: includes

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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)
sfrasier66
Forum Newbie
Posts: 3
Joined: Wed Aug 31, 2005 7:39 pm
Location: Atlanta
Contact:

Post 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:
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

may have been due to a security change, or some other thing your host did.
sfrasier66
Forum Newbie
Posts: 3
Joined: Wed Aug 31, 2005 7:39 pm
Location: Atlanta
Contact:

Oh yeah...

Post 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.
Post Reply