Re: Help with path issue?



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@xxxxxxxxxxxxx
==================
.



Relevant Pages

  • Re: Help with path issue?
    ... I'm new to PHP. ... What in particular do you mean by environment? ... a hosted machine so I'll probabably have to call and get those answers. ... What code do I substitute for the above? ...
    (comp.lang.php)
  • Re: [PHP] PHP5 & Commercial Development
    ... released is wasn't recommended in a commercial/production environment. ... the recommendation for such environments? ... PEAR-DB and some other PHP 4 workable ... that's actually part of firebird itself, etc) or use the PDO equivelant which is: ...
    (php.general)
  • Re: [PHP] PHP5 & Commercial Development
    ... released is wasn't recommended in a commercial/production environment. ... the recommendation for such environments? ... PEAR-DB and some other PHP 4 workable ... and assuming prepared statements will ...
    (php.general)
  • $_SERVER returns empty value
    ... I am pretty new to PHP. ... a empty value instead of returning the browser type. ... Under Windows, the compile-time path is the Windows directory. ... Setting certain environment variables may be a potential security ...
    (php.general)
  • $_SERVER returns empty value
    ... I am pretty new to PHP. ... a empty value instead of returning the browser type. ... Under Windows, the compile-time path is the Windows directory. ... Setting certain environment variables may be a potential security ...
    (comp.lang.php)