Forum Moderators: coopster
I used the next script to add content on a pdf and word document but unseccessfully
Here is my script:
<?php
$where = 'myfile.pdf';
$what_added = 'myname';
$result = file_put_contents($where, $what_added, FILE_APPEND¦LOCK_EX);
if(is_numeric($result) AND $result != 0)
{
echo 'The content was added successfully';
}
?>
If assigned an SQL file to $where, i could see the string 'myname' added to that sql file, however, if i assigned a PDF(.pdf) or word(.doc) file to the variable $where, nothing was added. Someone to help understand why?
Thanks