RE: [PHP] Re: Chocked

2006-12-29 Thread Peter Lauri
Hi,

I got it working before the post, but I was just curious if there were any
change from php4 to php5 as I have been using that method for a while now.

Best regards,
Peter Lauri

www.dwsasia.com  - company web site
www.lauri.se  - personal web site
www.carbonfree.org.uk  - become Carbon Free



-Original Message-
From: Johannes Lindenbaum [mailto:[EMAIL PROTECTED] 
Sent: Friday, December 29, 2006 4:24 AM
To: php-general@lists.php.net
Subject: [PHP] Re: Chocked

I think this is correct:

Let's just assume for a minute that in your index.php you echo out getcwd();
Output would be / (only an example)

According to that you do the following include:
include(./classes/first.class.php);

If you were to echo getcwd() after the include in the first.class.php it 
would output /

You would then have to include your second class (inside the 
first.class.php - correct?) as:
include(./classes/second.class.php)
to make it a correct include without PHP having to search the 
directories for the include.

Give that a shot.

Regards,
Johannes

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Chocked

2006-12-29 Thread Robert Cummings
On Fri, 2006-12-29 at 09:48 +0100, Peter Lauri wrote:
 Hi,
 
 I got it working before the post, but I was just curious if there were any
 change from php4 to php5 as I have been using that method for a while now.

Is the php.ini the same? Make sure it actually uses the php.ini that you
think it uses by checking phpinfo(). Make sure . is in the include
path.

Cheers,
Rob.
-- 
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`'

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php