Thank you very much sir, I figured out what the problem is:
- Code: Select all
$fp = fopen($tmpName1, 'r');
The above code is reading file at apache's upload file directory specified in php.ini (C:\temp, but actual files are stored in
C:\apache\htdocs\components\com_chronocontact\upload
That is why $fp is null. What I am trying to accomplish is to store files users uploaded in mysql, so I need use $fp to read the file. In my mind, there are two options:
1. Modify your code so that uploads are uploaded to c:\temp
2. Move pointer $fp to C:\apache\htdocs\components\com_chronocontact\upload
I am a super php noob. Can you give me little instructions or tell me few lines of codes I need to look at?