Re: Url problem
| From: | Jason Wong | Date: | Thu, 12 Jun 2003 21:11:08 +0000 |
| Subject: | Re: Url problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151310@lists.php.net to get a copy of this message | ||
On Friday 13 June 2003 04:55, Sparky Kopetzky wrote:
> I'm trying this, it doesn't work and I can't figure out why:
>
> include_once $SYSTEM_URL . "/classes/category.php"; where $SYSTEM_URL =
> "http://www.example.com" is the url to the web site.
> and I get this error:
>
> Fatal error: Cannot instantiate non-existent class: category in c:\program
> files\apache group\apache\htdocs\index.php on line 19
>
> So, obviously, it's not pointing to the right place. I can load the opening
> page from the url, so I know Apache is trying to load from the htdocs
> folder.
Short answer: you can't include files like that through a URL
Shorter answer: RTFM, study the examples
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
The only winner in the War of 1812 was Tchaikovsky.
-- David Gerrold
*/