During development,
I develop my php codes using PDO on windows via Xammp server.
now when i deployed it on the server, some of them run , some did not run at all.
what could be the problem.
1: Is there something that i need to enable.
2: Is php PDO not supported on this server
3: Why did all my applications runs execellent on windows via Xammp server but does not run on linux with webhosting account
Take a look at the code below
This code above runs on my Xammp server perfectly and displays a success.php page but here it runs but cannot display the success page.Code:<?php error_reporting(0); ?> <?php require("pdodatabase.php"); $usern=strip_tags($_POST['usern']); $pass=strip_tags($_POST['pass']); $ip_adres = strip_tags($_SERVER['REMOTE_ADDR']); $statement = $db->prepare('INSERT INTO report (offender,offence,reporter_ip) values ( :offender,:offence,:reporter_ip)'); if($statement->execute(array( ':offender' => $usern, ':offence' => $pass, ':reporter_ip' => $ip_adres ))){ header("location: sucess.php"); }else{ header("location: fail.php"); } ?>
Almost all my application refuses to run.
Thank You






Bookmarks