Re: include remote class

From: Date: Wed, 11 May 2005 02:51:36 +0000
Subject: Re: include remote class
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-214891@lists.php.net to get a copy of this message
On Tue, May 10, 2005 10:10 am, Andy Sandvik said: > > im doing include('http://www.mysite.com/class.php'); > and then i create new instance but i get error - cannot instantiate > non-existant class > how can i get this remotely hosted class file to be defined? If you surf to that URL, do you see PHP source, or do you see HTML/nothing? You may want to use .phps to get source, or .inc if mysite.com is configured to serve those up as PHP. You also have to make sure class.php is actually valid code... -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#214891) next »