Page 1 of 2

[solved] Okay, am I going insane?

Posted: Tue Jun 15, 2004 11:17 am
by Elessar
Here is my little mystery:

I have a little include file on my webpage, which I use to display the "news" of the month. The file's on PHP (as well as several other pages on the site) and it takes data (the news of the month) from a mySQL database.

So far so good. But when I try to retrieve the file via FTP, I don't get the file with the PHP code, I get the HTML code. Somehow, for some reason, the file's parsed BEFORE it's sent to me, so all I see is plain HTML. It happens ONLY with that file. And yes, I'm 100% sure the file's PHP. I'm truly baffled by this.

Any help, please?

Posted: Tue Jun 15, 2004 11:23 am
by hawleyjr
Try renaming the file on the server and then ftp it. What FTP application are you using?

Already done.

Posted: Tue Jun 15, 2004 11:26 am
by Elessar
I changed the name. Nothing, I still get plain HTML. I'm using WS_FTP LE as a FTP client. Horrible, but it's kinda the "standard" here at office.

Posted: Tue Jun 15, 2004 11:26 am
by John Cartwright
Lol thats unusual but it is definantly the ftp program

Posted: Tue Jun 15, 2004 11:29 am
by snpo123
can you do this to ftp? ftp://yoursite/

Posted: Tue Jun 15, 2004 11:36 am
by Elessar
Yes, but I can't login. For some reason it always logs me in as anonymous, even if I provide the correct username/password

Posted: Tue Jun 15, 2004 11:37 am
by Elessar
Oh, and I also downloaded the file using the command line FTP, I'm using Windows 2000. Same thing.

O_O

Posted: Tue Jun 15, 2004 11:43 am
by Elessar
Okay, if this continues, I'll have to rewrite the code (no big deal, just a simple SELECT), but I'd really like to know what the %$@$#% I just did for this to happen.

Posted: Tue Jun 15, 2004 11:43 am
by magicrobotmonkey

Posted: Tue Jun 15, 2004 11:46 am
by Elessar
I know, it doesn't work, because the username contains a '@' as well.

Posted: Tue Jun 15, 2004 11:48 am
by magicrobotmonkey

Posted: Tue Jun 15, 2004 11:51 am
by Elessar
Didn't work.

Posted: Tue Jun 15, 2004 11:51 am
by magicrobotmonkey
yea it was a long shot...

God, I'm SUCH an idiot...

Posted: Tue Jun 15, 2004 12:08 pm
by Elessar
The script I use to modify the monthly news writes DIRECTLY to the .php file. That's why I didn't see any code, because there isn't any.

I'm so embarrased... :oops:

Posted: Tue Jun 15, 2004 12:26 pm
by John Cartwright
ehheeh

happens to all of us