Hi
This is really odd, I amn trying to upload a picture to the database, I have the below lines of code that work on my local windows 2k apache machine:
$data = addslashes(fread(fopen($headerfile, "r"), filesize($headerfile)));
$result=mysql_query("INSERT INTO pictures$newsnum (name,bin_data,filetype,Username,headfoot)
VALUES ('$name','$data','$form_data_type','$Username','webpage')",$db);
However when upload to my web host on linux, we get the below errors, please someone help.
Warning: fopen("C:\Program Files\Apache Group\Apache\htdocs\safestone\images\safestonebanner.gif", "r") - No such file or directory in /home/solutions.viv-id.co.uk/searchlight/setup.php on line 10
I'm sure its the way there server is configured please someone help, and yes the File does exist.
Thanks
Andy