$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 where the problem is
Reply to discussion (solution)
See if there is a directory limit.
chmod 777 Directory Name
$fp = fopen ("1.jpg", "WB") or Die ("can ' t open file");
See if there is a directory limit.
chmod 777 Directory Name
$fp = fopen ("1.jpg", "WB") or Die ("can ' t open file");
What does that mean? Directory restrictions? What is 777? The above sentence is written in PHP? Can php modify directory permissions? I feel dizzy.
See if there is a directory limit.
chmod 777 Directory Name
$fp = fopen ("1.jpg", "WB") or Die ("can ' t open file");
What does that mean? Directory restrictions? What is 777? The above sentence is written in PHP? Can php modify directory permissions? I feel dizzy.
This is the command in Linux, add read and write permission to your directory.