7 messages in net.php.lists.php-dbRE: [PHP-DB] Re: php includes
FromSent OnAttachments
JeRRyDec 28, 2003 5:24 pm 
ph...@aynsoft.comDec 29, 2003 10:47 pm 
-{ Rene Brehmer }-Dec 30, 2003 4:05 am 
mayoJan 13, 2004 2:05 pm 
Justin PatrinJan 13, 2004 2:26 pm 
Ale...@ USA.netJan 14, 2004 7:37 am 
mayoJan 14, 2004 1:35 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [PHP-DB] Re: php includesActions...
From:mayo (ma@nycinteractive.com)
Date:Jan 14, 2004 1:35:54 pm
List:net.php.lists.php-db

thx justin and aleks

I don't have access to the php.ini file, its on a remote host.

I asked if they had a directory to put the includes. They don't. I solved the problem (for this client) by placing everything in one directory. They're only about 20-25 files so it really doesn't matter (except for bothering my sense of order).

Still, I'm sure I'll have other clients that in which this will not be an acceptable solution.

-- gil

justin, thx for the point email clients. I'll keep it in mind.

-----Original Message----- From: Justin Patrin [mailto:pape@reversefold.com] Sent: Tuesday, January 13, 2004 5:27 PM To: php@lists.php.net Subject: [PHP-DB] Re: php includes

Mayo wrote:

I'm new to php (I've been in the CF world the last few years) and have a basic question regarding includes:

On my dev box (a fancy term for laptop) I have the following include:

<?php include ("navTop.php"); ?>

This doesn't work on the client's site. There I have to use:

<?php include ("/home/sites/www.abc.com/web/navTop.php"); ?>

I can't use relative links.

So is there any trick that people have so that I don't have to touch each of my files before sending them up?

gil

Please do not write a new post by replying to an old post and changing its subject and content. It screws up threading in the better e-mail clients (mutt, Thunderird, etc.) as it keeps the thread's headers.

It looks like your client doesn't have "." in their include_path in the php.ini. They could change their php.ino to have "." in it and fix things quick and simple.

Or, you can use ini_set() to set the value yourself. You'd probably want to do something like this in your files:

ini_set('include_path', '.:'.ini_get('include_path'));