Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

Include? - permissions query

Codes here !

Moderators: macek, egami, gesf

Include? - permissions query

Postby Sleeping_Sloth » Fri Mar 14, 2003 8:48 am

Hello everyone...

I've been developing a simple SQL database accessed using PHP. My problem is that I need to prevent users accessing particular files (.htm and .swf) directly using a browser. To this end, I have used an INCLUDE command to call the relevant file(s) from inside the PHP. However, no matter what way I try to set-up the access permissions on the directories involved, I am left with either a totally non-secure directory, or one that I can neither view by browser or via PHP. Can anyone offer any help on this subject? I'm tearing my hair out!
Thanks all,
New php-forum User
New php-forum User
Posts: 9
Joined: Wed Jan 08, 2003 2:43 pm

Postby ph » Wed Mar 19, 2003 3:27 am

Can't you put the .htm and .swf files into a non-accessible directory (above your wwwroot or something), and then include them into your php files?
New php-forum User
New php-forum User
Posts: 6
Joined: Thu Mar 13, 2003 2:14 am

Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.