Hi "JOSE A.HERRAN" jherran@kedesfase.com,
$file = realpath("../../../config/msg_footer.txt"); if(file_exists($file)) { $handle = fopen($file, "r"); $content = fread($handle, filesize($file)); fclose($handle); $_POST['_message'] = $_POST['_message'] . "\n" . $content; }
of course, the file ../../../config/msg_footer.txt exists.
Can PHP find it?
Add a print("<h1>Found file!</h1>"); line inside the conditional and see if it can.
Can PHP read the file? Try ptinring the messge to the screen after modification.
Craig Webster | web: http://xeriom.net/ | Monkey see, monkey do: Okay. Xeriom.NET | tel: +44 (0)131 516 8595 | Monkey top post: Bad monkey.