Note that there are some explanatory texts on larger screens.

plurals
  1. POphp redirection
    text
    copied!<p>My php script is working on localhost but after uploading online it's showing a blank page.</p> <p>php installed on localhost version 5.2.6 php installed on production environment version 5.1.4</p> <pre><code>&lt;?php define('INCLUDE_CHECK',true); require 'connect.php'; session_start(); php require 'function.php'; ?&gt; &lt;html&gt; &lt;head&gt; &lt;/head&gt; &lt;body&gt; session_name('smsapp'); session_start(); $fname = mysql_real_escape_string($_POST['fname']); $name = mysql_real_escape_string($_POST['name']); $email =mysql_real_escape_string($_POST['email']); $phone = mysql_real_escape_string($_POST['phone']); $pass = substr(md5($_SERVER['REMOTE_ADDR'].microtime().rand(1,100000)),0,6); $str = "INSERT INTO members(fname, name, pass, phone, email, regIP, dt, level) VALUES( '".$fname."', '".$name."', '".md5($pass)."', '".$phone."', '".$email."', '".$_SERVER['REMOTE_ADDR']."', 1, NOW() )" ; mysql_query($str); if(mysql_affected_rows($link) == 1 &amp;&amp; ($_SESSION['security_code'] == $_POST['security_code'])) { echo "Password will be sent to you by sms."; $url = "http://sms.kohlihosting.com/sendsmsv2.asp? user=username&amp; password=12345&amp; sender=kohli&amp; text=Your+password" . $pass . "&amp; PhoneNumber=".$phone; $homepage = file_get_contents($url) ; } else if(!($_SESSION['security_code'] == $_POST['security_code'])) { echo "Please Input correct letters "; } else { echo "Not registered"; } ?&gt; </code></pre> <p></p> <p>This is the code which is working on localhost but not online.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload