Sounds like you dont have the right file permissions set.
You need to chmod the directory to a more appropriate level!
[php]
<?php
chmod("/directory/to/chmod", 0755);
?>
[/php]
Lemme know if this helps!
Also! Remember to wrap your php code in the CODE tags.
IT helps people look through your code :)
i hav executed the code u said
-
<?php
-
chmod("/directory/to/chmod", 0755);
-
?>
-
-
but it gives error , i replaced 'directory' by 'photo' the folder i hav created to store uploaded photo..but still it is giving error
see the error:-
Warning: chmod(): No such file or directory in /local/home/wwwuser/home.mishra.biz/chmod.php on line 2
please tell me what else to do..
i need the solution soon..
if u can i will be obliged..