Hello Guys:
In php, I've got a site browsing the directory structure to generate thumbnails using openddir and readdir functions. It works fine on the version of the site on my laptop, ftping to the actual host is a different story. it says the directory is not found. I take it there are permissions issues I need to address to open the directories? Or would I receive a permissions related error? I didn't even think of it working on my local machine. If it's permissions, do I have the ability to change permissions using chmod?
thanks, Miketha tis correct. if it was a permission related you would get a permission error. since you got a cannot find error then it isn't permissions.
and yes you can chmod the directory to anything you want.Well then, I've copied over the same directory structure onto the host's server.
openddir('../images/thumbnails/');
this obviously points to my thumbnail folder, it works on my local, but on the host it doesn't. Swapping the reference to absolute, /images/thumbnails/ wasn't working on either the local or the host version.
- Miketry using the full path
/usr/path/to/folder/image
not ../ or /image
also no ending slashThanks for the info Scoutt, I'll try it when I'm working on it, general question: the variations in apache and php versions, would they determine something like difference in path formats? I work with the latest verion of php 4.3, on my box, who knows what's on the host...
- Mikeno, they should be the same. the only difference you will see between different version of php is the register_globals being on or off.
everything else should be the same.
In php, I've got a site browsing the directory structure to generate thumbnails using openddir and readdir functions. It works fine on the version of the site on my laptop, ftping to the actual host is a different story. it says the directory is not found. I take it there are permissions issues I need to address to open the directories? Or would I receive a permissions related error? I didn't even think of it working on my local machine. If it's permissions, do I have the ability to change permissions using chmod?
thanks, Miketha tis correct. if it was a permission related you would get a permission error. since you got a cannot find error then it isn't permissions.
and yes you can chmod the directory to anything you want.Well then, I've copied over the same directory structure onto the host's server.
openddir('../images/thumbnails/');
this obviously points to my thumbnail folder, it works on my local, but on the host it doesn't. Swapping the reference to absolute, /images/thumbnails/ wasn't working on either the local or the host version.
- Miketry using the full path
/usr/path/to/folder/image
not ../ or /image
also no ending slashThanks for the info Scoutt, I'll try it when I'm working on it, general question: the variations in apache and php versions, would they determine something like difference in path formats? I work with the latest verion of php 4.3, on my box, who knows what's on the host...
- Mikeno, they should be the same. the only difference you will see between different version of php is the register_globals being on or off.
everything else should be the same.