PHP downloadable??

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
User avatar
fresh
Forum Contributor
Posts: 259
Joined: Mon Jun 14, 2004 10:39 am
Location: Amerika

PHP downloadable??

Post by fresh »

Hey,
the other day, I was working in the cpanel and I copied a link to a php file, and I can't remember how I did it, but when I pasted my link in the address bar it asked if I wanted to save my php file!!! That's crazy, has anyone else done this before, and if so, how did I do it??

thanks :)
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

um...thats not a good thing you know lol, your server could't identify the file as a php file, so it could't parse, therefore allowing you to download it...its NOT a good thing.

s for why it did that? are you sure you saved it as .php or whatever you have defined in your server config file?
User avatar
fresh
Forum Contributor
Posts: 259
Joined: Mon Jun 14, 2004 10:39 am
Location: Amerika

Post by fresh »

no I think what it was, is I must have put in the absolute absolute path... lol

the link I recall, looked like a linux directory, you know: /var/www/etc/../../

something like that... could that be the reason why??
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

wouldt that open the file up or show a window where you can select a program to open the file with? i havent used linux much :P
User avatar
fresh
Forum Contributor
Posts: 259
Joined: Mon Jun 14, 2004 10:39 am
Location: Amerika

Post by fresh »

yeah man... that's what it did, like anyother downloadable file the prompt came up asking me if I wanted to open it or save it to disk!!! Has anyone else ever done this before??
Post Reply