I have a site on shared hosting I'm moving to a Centos 5.8 VPS - the pages all load fine, which include a bunch of local php with various arrays, replaces and file reads, but the submit form php fails - i've included various echo's at different points and found that after the line
$txt = filter_var($txt,FILTER_SANITIZE_SPECIAL_CHARS); no echo will display and script never reaches the end (a redirect) - resulting in a blank screen or a screen only displaying the echo's before that line
if I remove that line the script reaches the end, but doesn't write to the files it's supposed to. that code is just the basic:
//open the file and choose the mode $fh = fopen("../file.txt", "a"); fwrite($fh, $data); //close the file fclose($fh); What part of my setup could be different from the shared hosting setup that's causing this difference in behaviour? Am I missing a dependency or is something wrong with my config?