Fopen cannot correctly create a new file $ fp = fopen ("/www/modernsky/test_id_validater/1.jpg"," wb ") or die (" can't open file ");
$ Fp = fopen ("1.jpg"," wb ") or die (" can't open file ");
These statements always return "can't open file" and do not understand what went wrong.
Reply to discussion (solution)
Check whether there are only directories.
Chmod 777 directory name
$ Fp = fopen ("1.jpg"," wb ") or die (" can't open file ");
Check whether there are only directories.
Chmod 777 directory name
$ Fp = fopen ("1.jpg"," wb ") or die (" can't open file ");
What does this mean? What is the restriction on directories? What is 777? The above sentence is written in php? Can php modify directory permissions? Dizzy
Check whether there are only directories.
Chmod 777 directory name
$ Fp = fopen ("1.jpg"," wb ") or die (" can't open file ");
What does this mean? What is the restriction on directories? What is 777? The above sentence is written in php? Can php modify directory permissions? Dizzy
This is a linux command. Add read and write permissions to your Directory.