* Thus wrote Blaine ([EMAIL PROTECTED]):
I also read that ini_set() can be used in an .htaccess in the root
directory of each domain, subdomain and directory where pages may use
sessions. It would look something like:
php_value session.cookie_domain .domain.com
Setting the value in an
G'day all, I thought I'd mention how I developed my last project and got
around some of these problems, bear with me it can be quite complicated.
===
In the development we had to develop on many different servers, mine
General Mailing List
Subject: RE: [PHP] Site Structure
G'day all, I thought I'd mention how I developed my last project and got
around some of these problems, bear with me it can be quite complicated
try
include('../includes/header.inc');
Sebastián Renzi
ConsultorÃa Desarrollo de Sistemas.
CODES S.A
-Mensaje original-
De: Jordan Elver [SMTP:[EMAIL PROTECTED]]
Enviado el: lunes 23 de abril de 2001 11:56
Para: PHP General Mailing List
Asunto: [PHP] Site
Or better yet:
include( $DOCUMENT_ROOT/includes/header.inc );
Martin Gottlieb
-Original Message-
From: Renzi, Sebastian [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 10:56 AM
To: 'Jordan Elver'; PHP General Mailing List
Subject: RE: [PHP] Site Structure
try
include
Hi,
Thanks for the reply. I can do that but then the images will not be in the
correct location?
Jordan
On Monday 23 April 2001 15:58, you wrote:
give the include() function a complete path:
include '/apache/htdocs/include/yourfile.inc.php';
-- Ben Cairns - Head Of Technical Operations
I would suggest putting your includes out of the web tree.
/.../website/htdocs/admin
/.../website/htdocs/images
/.../website/includes
This may be totally inappropriate for now, but is a good habit to get into.
Call the includes with the full pathname. I know this stinks, but is a good
Mailing List [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 11:28 AM
Subject: Re: [PHP] Site Structure
Hi,
Thanks for the reply. I can do that but then the images will not be in the
correct location?
Jordan
On Monday 23 April 2001 15:58, you wrote:
give the include() function a complete path
Hi,
Also, it's not a good idea to use the .inc extension unless you've
associated it with PHP. The reason is if I type the URL directly to
/includes/header.inc I will get the source code for that file in text
format.
you don't have to keep your .inc files in the web server document
root
Mailing List [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 11:28 AM
Subject: Re: [PHP] Site Structure
Hi,
Thanks for the reply. I can do that but then the images will not be in the
correct location?
Jordan
On Monday 23 April 2001 15:58, you wrote:
give the include() function
: Kurth Bemis [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 1:24 PM
To: Toby Miller; Jordan Elver
Cc: PHP General Mailing List
Subject: Re: [PHP] Site Structure
At 01:12 PM 4/23/2001, Toby Miller wrote:
personally i deny all access to my .inc files. with this Apache config...
works
[EMAIL PROTECTED]
Cc: PHP General Mailing List [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 1:22 PM
Subject: RE: [PHP] Site Structure
Hi,
Also, it's not a good idea to use the .inc extension unless you've
associated it with PHP. The reason is if I type the URL directly to
/includes
-
From: Toby Miller [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 3:44 PM
To: indrek siitan
Cc: PHP General Mailing List
Subject: Re: [PHP] Site Structure
While it is true that you don't have to put your files in the web
directory
at all and it is a more secure option
can keep
your includes out of a web server accessible directory.
Martin Gottlieb
-Original Message-
From: Toby Miller [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 3:44 PM
To: indrek siitan
Cc: PHP General Mailing List
Subject: Re: [PHP] Site Structure
While it is true that you
siitan
Cc: PHP General Mailing List
Subject: Re: [PHP] Site Structure
While it is true that you don't have to put your files in the web
directory
at all and it is a more secure option there is still one very large
inconvenience that prevents me from going with that option. You lose
Toby Miller [EMAIL PROTECTED] wrote:
While it is true that you don't have to put your files in the web
directory
at all and it is a more secure option there is still one very large
inconvenience that prevents me from going with that option. You lose the
usefulness of just including
16 matches
Mail list logo