Re: Invalid directory resource, part 2
| From: | (Richard Lynch) | Date: | Thu, 13 Jul 2000 01:52:10 +0000 |
| Subject: | Re: Invalid directory resource, part 2 | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6354@lists.php.net to get a copy of this message | ||
In article <003a01bfe91e$0db01f00$90c864ce@john>, terranlune@yahoo.com
("John Fuetsch") wrote:
> I forgot to mention a couple of things. The way the site works is it's =
> one file that has a ?id=3Dwhatever in the address. whatever is then =
> looked up in a database and corresponding data is pumped out through a =
> template. So, after further testing, it seems that sometimes when the =
> page is reloaded (with or without a different id) sometimes the =
> directory resource id doesn't change, and then I get the invalid =
> warning. So, is there a way to somehow reset the directory resource id? =
> Or maybe have it get a new one each time? (reliably)
So you're probably changing the current working directory without
realizing it in one of your templates...
Full pathname will fix it, or use file system functions to figure out
where you are and error out if it's not where image/thumb is so you can
change the template, or...
--
Richard Lynch | If this was worth $$$ to you, buy a CD
US Customer Support Director | from one of the artists listed here:
Zend Technologies USA | http://www.L-I-E.com/artists.htm
http://www.zend.com | (this has nothing to do with Zend,
duh!)