Re: Protecting php scripts from source being downloaded

From: Date: Wed, 09 Jan 2002 20:03:12 +0000
Subject: Re: Protecting php scripts from source being downloaded
References: 1 2  Groups: php.db 
Request: Send a blank email to php-db+get-15572@lists.php.net to get a copy of this message
sorry, as I said Im kinda new, I was downloading the file from my webserver to my computer, and it downloaded the php file as a php file, non parsed by the preprocessor. But when other people download it it does only give the source sorry :) "Neil Thomson" <gendouikari@optushome.com.au> wrote in message news:003e01c19933$7300d220$113331d2@home... > u can download a php page from a download manager ? i just tryed with > flashget... & it phrased the php page into html first.. ? ? > > if you want to protect your say.. variables file from some1 trying in the > address of it. heres a simple way. in the variables file include > @header(status: error 404); (or how ever that code goes). then in the page u > want to include this. start the html tag first <html> then include this > page. the @ will make it not report errors. so u can inclue the page > perfectally.. & when people try to look @ it, it will say it doesnt exist. > > Neil > > ----- Original Message ----- > From: Tom <tom_taylor@btinternet.com> > To: <php-db@lists.php.net> > Sent: Wednesday, January 09, 2002 8:00 AM > Subject: [PHP-DB] Protecting php scripts from source being downloaded > > > > Hi, im kinda new to this so be kind :) > > > > Im using mysql and php to create test databases (guestbook etc, basic > > stuff), but it doesnt seem so secure, people can just use a download > manager > > to download the php files and steal the mysql passwords. Is there anyway > to > > make it so they can see the php files through the brower but not download > my > > homecrafted php? > > > > Ive looked through many websites and the history of this, all I could find > > was one post which was to encript the files (this isnt really suitable for > > me as I edit bits and bobs as I go along). Is there anyway I can setup > > access as said in the above? Or just hid the password somehow? Im using > IIS > > 5.1. > > > > thanks > > tom > > > > > > > > -- > > PHP Database Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net > > For additional commands, e-mail: php-db-help@lists.php.net > > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > >

« previous php.db (#15572) next »