Reply to Re: Help with path issue?

Your name:

Reply:


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
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация