Hi there!
I had posted a query with the subject as:
"Retrieve BLOB values from MYSql DB - HTML/Image files-HOW? "
I have posted the same message (below) there but since it is of a different problem.. I am posting it again with a different subject name.
I am working on a Windows XP - phpDev5 and MySql (both installed in my machine)..
I had read many articles saving huge files as BLOB in DB is not a good idea..instead.. we can save the file path.
I did that.. I copied my file path to a new destination directory.
with the command..
copy ($uploadedFilePath, $destinationPath);
First problem:
It says I do not have permission!?
SAYS -
"Warning: Unable to create 'C:/phpdev/www/public/ABCD/Files/': Permission denied in c:\phpdev\www\public\kcts\displayevent.php on line 91"
I have phpDev installed in my computer. What should I check for?
- Is it any command I need to give or any change to the ini file?
Second Problem:
I manually copied those files to my destination directory and saved the following information in the database - just to keep it going so that atleast I can check if I am able to load the files to the page:
My database has a table with the file information as:
File name, File type, File size, File path.
When I try to retrieve files, I am getting the html and image files displayed..
BUT.. When a html file has an image in it.. That image within the html file is not displayed.. WHY?
Third Problem:
Right now, I have my files in :\phpdev\www\public\ABCD\Files\ folder. Later, I would move my files to my website.. (say it is www.abc.com). If the files I have to move (destination directory) is in a file named (Files).. how do I specify the destination path of the files?
Is it www.abc.com/files/ ? How do I make that page secure?
I am sorry.. I know these questions are silly.. But, I am a beginner. I'd appreciate if you could help me. Thank you!
Amy.