[solved] Okay, am I going insane?
Moderator: General Moderators
[solved] Okay, am I going insane?
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?
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?
Last edited by Elessar on Tue Jun 15, 2004 12:08 pm, edited 1 time in total.
Already done.
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.
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
can you do this to ftp? ftp://yoursite/
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA
try ftp://"user@dmain"@yoursite ??
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA
God, I'm SUCH an idiot...
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...
I'm so embarrased...
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: