-
Recent Posts
Archives
Meta
Tags
Daily Archives: January 7, 2011
ASP Response.Redirect vs. PHP Header location
My old ASP habits are sometimes hard to break… I like the simpler redirect equivalent of ASP compared to the PHP header location command: // redirect to thank you page header( ‘Location: /thankyou.php’ ) ; So… I just made a … Continue reading
Posted in Uncategorized
Comments Off on ASP Response.Redirect vs. PHP Header location
PHP Session Handling vs. ASP Session Handling
Just because you created a session variable in PHP, using this statement: session_start(); // store session variables to designate that the user is successfully logged in! $_SESSION[“login”] = TRUE; $_SESSION[“username”] = $varUserName; doesn’t mean you can automatically access the $_SESSION(“login”) … Continue reading
Posted in Uncategorized
Comments Off on PHP Session Handling vs. ASP Session Handling
ASP Response.Redirect vs. PHP Header location
Be careful that you don’t have any extra blank spaces in the PHP file… if you try to do a “redirect”, you’ll get an error. <?php //****************** INCLUDE ******************* include(‘include/common.php’); include(‘include/dbconnect.php’); ?> <?php // check if form submitted if ($_SERVER[‘REQUEST_METHOD’] … Continue reading
Posted in Uncategorized
Comments Off on ASP Response.Redirect vs. PHP Header location
PHP Error Reporting
It’s possible to enable or disable display of error messages in your PHP program by using the command error_reporting(‘some constant’); // see below for values of constant Errors and Logging Value Constant Description Note 1 E_ERROR (integer) Fatal run-time errors. … Continue reading
Posted in Uncategorized
Comments Off on PHP Error Reporting