I'm working on an application that uses PHP as a front end to a mySQL database. Part of the application uploads an image file (jpg) into the database table. I'm getting the following error messages:
"Warning: open_basedir restriction in effect. File is in wrong directory in /home/e-smith/files/ibays/openrealty/html/agentadmin.php on line 141
Warning: fopen("/tmp/phpFbCqoY","rb") - Operation not permitted in /home/e-smith/files/ibays/openrealty/html/agentadmin.php on line 141
Warning: Supplied argument is not a valid File-Handle resource in /home/e-smith/files/ibays/openrealty/html/agentadmin.php on line 141"
Line 141 is: "$data = addslashes(fread(fopen($binFile, "rb"), filesize($binFile)));"
Anyone got any ideas about this error. Is this a restriction on ibays (the application is running in an ibay).
BTW
I'm not much of a programer so keep the replies basic. I'm trying to reconfigure a script I copied from someone else.