Posted by Jerry Stuckle on 10/22/06 01:58
brett wrote:
>>Maybe it's not an IIS issue.... Don't know! What's your environment?
>
>
> I'm new to PHP. What in particular do you mean by environment? I'm on
> a hosted machine so I'll probabably have to call and get those answers.
> Unless there is another way to do it.
>
>
>>>You might try using:
>>>
>>> require_one(dirname(__FILE__) . '\\Snoopy.class.php');
>>>
>>>>From dahnielson_mimetex.php. Issue may be related to the current
>>>working directory using the PHP ISAPI module? Not sure.
>
>
> What code do I substitute for the above?
>
> Thanks,
> Brett
>
Brett,
This is entirely system dependent. You need to point to the file where
you loaded it.
require_once(...) (not require_one as you have it above) uses a relative
or absolute pathname.
I usually use a path relative to my server root directory. That way I
can move it and not need to change any code, i.e.
require_once($_SERVER['DOCUMENT_ROOT'] . '/relative/path/to/file.ext');
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|