You are invited to Log in or Register a free Frihost Account!

[Help]Reading images from directory (Permission)

Hi !!!
I'll try to explain my problem in english =S

I'm making (or trying) my own image gallery in PHP and MySQL, the script works fine, i can upload images perfectly and these are saved on a especific folder.
I'm working under a subdomain ( My files are in "public_html/subdomain" and images are in "public_html/subdomain/images", but when i try to see those images Error 403 appear.
The folder permission is 777 like old file in there, but new uploaded files dont. I must set permission to 777 manually every file uploaded to see it.
My question: does exist any folder with public acces for this ??? I mean, i dont want to set 777 every file uploaded Sad

Thanks a lot !!!!!!!!!!!!!!!!!

Estoy haciendo (o intentando) my propia galeria de imagenes en PHP y MySQL, el script funciona perfectamente, puedo subir imagenes sin problema las cuales son guardadas en una carpeta especifica.
Trabajo bajo un subdominio ( Los archivos se encuentran en "public_html/subdominio" y las imagenes estan en "public_html/subdominio/imagenes", pero cuando intento ver dichas imagenes aparece el error 403 (permiso denegado).
La carpeta se encuentra seteada con permisos 777, es decir que me habilita a leer, escribir y ejecutar, pero solo toman estos valores los archivos antiguos, es decir, cuando se sube una nueva imagen, ιsta aparece sin permisos siendome imposible visualizarlas. Lo que tengo que hacer es setear los permisos a 777 nuevamente y cada vez que se sube una nueva imagen, aplicandolo a carpeta y subdirectorios.
Mi pregunta: existe alguna carpeta con acceso publico para evitar este problema y no tener q hacerlo manualmente cada vez que se sube una nueva foto?

Gracias !!!!!!!!
Well, you could edit your script or make a new one that automatically sets the permission to 777 when it's uploaded. However I don't know how to do that. You could try asking how to do that in the PHP and MySQL forum.
Problem solved !!!
It was only a missing php line code (chmod())

Thanks anyway !!!
Related topics
FTP Codes
Changing PHPBB STyles
FTP error codes -- What they mean
Moveable Type install
My RuneMail Script, failed to open stream: Permission denied
Help, load images how?
Joomla Installation Problem --> Session Save Path
Need help with httpd.conf and .htaccess
HELP, reading text file from USB drive in visual basic
permission denied
[Help]Reading images from folder (permissions)
Google Mail Autopilot by CADIE
[HELP QUICKLY!] Images not filling wrapper <div> eleme
SEO your Joomla website
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

© 2005-2011 Frihost, forums powered by phpBB.