Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

PHP vs. ASP issue

Name: Anonymous 2007-01-13 22:30

So I'm trying to modernize this guy's site, and I get the bright idea to use PHP to make updating sidebars and stuff like that easier.  Basically, the idea is to type up a script that reads HTML code from a text file and echoes it onto the sidebar of each page - a rather simple operation.

I put together a test page to see whether or not his server is PHP-enabled, and it turns out that it is - only problem is, fopen() doesn't seem to be able to open any files on the server.  I can do the job just fine using an ASP script instead, but ASP is long-winded and ugly and unpleasant to code in.

So, my question is: Any idea why fopen() doesn't do jack on this guy's server?  All that I know about the server itself so far is that it uses Microsoft FTP Service and is PHP- and ASP-enabled, as stated above; and that up until now he's been putting the site together in FrontPage.  I don't know how telling that information is, but any and all help would be greatly appreciated.

Name: Anonymous 2007-01-13 22:33

do a phpinfo() and look for gay shit.

Name: Anonymous 2007-01-13 23:07

Yeesh, gay shit indeed.  Looks like all of PHP's file-handling functions are on the disable_functions list.  And the php.ini file can't be changed, since the webmaster doesn't own the server.

Oh, well.  ASP still does the job, so I'll just use that.  Thanks a lot, >>2.

Name: Anonymous 2007-01-13 23:50

does the server have SSI enabled?
if not, what about include() in PHP?

Name: Anonymous 2007-01-14 4:02

>>4
Wow, I had no idea that would work so elegantly.  That does the job perfectly.
Thank you very much for helping out a total PHP noob.

Name: Anonymous 2007-01-15 5:53

OMG /prog being useful

Name: Anonymous 2007-01-15 7:31

>>6
It can happen even in the best of worlds

Name: Anonymous 2007-01-16 22:22

echo include("yourfiledumbass.html");

that should work, if php will let you be that retarded.

Name: Anonymous 2007-01-16 22:23

oh also you can do virtual HTML includes sooo....

<!-- virtual_include(html.html) -->

that should work

Name: Anonymous 2009-01-14 12:53

LISP

Name: Anonymous 2009-07-12 5:56

much, standard your it Word an time be around hour me going you contact Listen,  users  users this check I  I YOUR space) to result. have have

Name: Sgt.Kabu刉Ừkimanᬳ 2012-05-28 21:44

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List