Page 1 of 1
PHP downloadable??
Posted: Mon Aug 02, 2004 1:24 am
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

Posted: Mon Aug 02, 2004 1:28 am
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?
Posted: Mon Aug 02, 2004 1:53 am
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??
Posted: Mon Aug 02, 2004 3:34 am
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

Posted: Mon Aug 02, 2004 3:47 am
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??