Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-14 Thread hassan el forkani
well... i don't think there should be any problem if the included file is a class (right???) come to think about it, is it possible to create an object by passing a url like this: file.inc?file=new mysqlfile-conn() i mean would this run the class?? regards At 05:00 14/07/01, Rasmus

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-13 Thread hassan el forkani
there should not be any problem if your web server is configured to parse .inc extentions as PHP, in wich case, even if the file is called separately, the server will strip php tags and send normal html output. regards At 00:11 10/07/01, Noah Spitzer-Williams wrote: Hey guys, I come

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-13 Thread Rasmus Lerdorf
there should not be any problem if your web server is configured to parse .inc extentions as PHP, in wich case, even if the file is called separately, the server will strip php tags and send normal html output. Once again, don't do this. If you write your .inc files assuming they are going

RE: [PHP] how to hide dbconnect file if its in published directory?

2001-07-11 Thread scott [gts]
try putting an .htaccess file into that directory. or (as someone else already suggested) tell apache to disallow access to *.inc files (or to the entire directory) -Original Message- From: Noah Spitzer-Williams [mailto:[EMAIL PROTECTED]] Subject: [PHP] how to hide dbconnect file if

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-10 Thread John Weaver
On Tuesday 10 July 1979 12:39 am, [EMAIL PROTECTED] wrote: on 7/10/01 12:30 AM, John Weaver at [EMAIL PROTECTED] wrote: Sorry, I should have been more clear. If you write modular code, your included file will be nothing but a group of functions. Call a file with nothing but functions in

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-10 Thread teo
Hi Thomas! On Tue, 10 Jul 2001, Thomas David Kehoe wrote: include ('http://www.friendshipcenter.com/Objects/swordfish.inc'); echo Your password is , PASSWORD; it works, i.e., prints Your password is swordfish. When I use the following lines include

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-09 Thread David Robley
On Thu, 1 Jan 1970 09:30, [EMAIL PROTECTED] wrote: I come for advice once again. Say i have a file dbconnect.inc which connects to my database. Now if this file is located in a directory accessible for to the web is there anyway that if someone types in that file i can detect it being

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-09 Thread John Weaver
On Monday 09 July 2001 06:11 pm, Noah Spitzer-Williams wrote: Hey guys, I come for advice once again. Say i have a file dbconnect.inc which connects to my database. Now if this file is located in a directory accessible for to the web is there anyway that if someone types in that file i

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-09 Thread Rasmus Lerdorf
I come for advice once again. Say i have a file dbconnect.inc which connects to my database. Now if this file is located in a directory accessible for to the web is there anyway that if someone types in that file i can detect it being accessed, instead of included, and redirect them

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-09 Thread Mark Ferraretto
I usually have a directory called html where all my php files are and secure where any secure stuff (like db connects) reside. Then, all I do is include the file require('../secure/secure.inc'); Obviously html maps to a web server path but secure doesn't. Mark John Weaver wrote: On

Re: [PHP] how to hide dbconnect file if its in published directory?

2001-07-09 Thread John Weaver
On Tuesday 10 July 2001 12:02 am, Rasmus Lerdorf wrote: I come for advice once again. Say i have a file dbconnect.inc which connects to my database. Now if this file is located in a directory accessible for to the web is there anyway that if someone types in that file i can detect