Parsing File
Posted: Sat Oct 16, 2004 5:55 am
Morning all.
I'm using the following code to parse a file:
But for some reason when a user uploads a DOC file it updates ALL the user's CVParsed fields.
Anyone come accross this or know why the code is doing this...?
I'm using the following code to parse a file:
Code: Select all
// Change File Permissions:
chmod("{$uploadfile}", 0644);
// Parse the File:
$filename = "$uploadfile";
$handle = fopen($filename, "r");
$contents = fread($handle, filesize($filename));
// Stuff The Parsed File into the database:
$Query01 = "UPDATE MembersData SET
CVParsed = '$contents'
WHERE UserID = '{$_SESSIONї'logname']}'";
$Results01 = mysql_query($Query01) or die("Error 01: " . mysql_error());
fclose($handle);Anyone come accross this or know why the code is doing this...?