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
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
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
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
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
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
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
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
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
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
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
11 matches
Mail list logo