Jump to content

Moving trouble


smc

Recommended Posts

Hello,

Okay heres the deal. I started making the website in the root directory of my website. However when I was scripting I made *everything* relative, nothing was hardcoded to the domain - everything loads dynamically. After I transfered my files to a subdomain on the domain, however, I tried logging in using my login script but it did nothing, just had a blank white screen. Now you would figure if something was off it would at least give an error.

Does anyone have any ideas what might cause a blank white screen? I can attach my login.php upon request
Link to comment
https://forums.phpfreaks.com/topic/35163-moving-trouble/
Share on other sites

Update:

Everything *except* that page works fine. It seems like my login script works but doesn't include a file I need. I navigated to my admin section manually and it had my session information, my login script just didn't show the success page. Here is the section of the code, what would be affected by a move?


[code=php:0]
//We will now start our session
session_start();
//Now we are going to assign all that information we retrieved from our database to our session so it can be used later
$_SESSION['susername'] = $sqlusername;
$_SESSION['spassword'] = $sqlpassword;
$_SESSION['sfirstname'] = $sqlfirstname;
$_SESSION['slastname'] = $sqllastname;
$_SESSION['sposition'] = $sqlposition;
$_SESSION['srank'] = $sqlrank;
$_SESSION['semail'] = $sqlemail;

//Now that all of our information is set in the session, we can go ahead and take them to the success page
$resulttxt = $_SESSION['sfirstname']. " " . $_SESSION['slastname'].", you have succesfully logged in!";
$cms_root_path = './templates/';
include($cms_root_path . 'login_result.php');

}
} //End huge bracket surrounding code
[/code]
Link to comment
https://forums.phpfreaks.com/topic/35163-moving-trouble/#findComment-166035
Share on other sites

But if the include path is wrong wouldn't it at least generate an error saying that it was infact off?

Also, the folder hirearchy is the same as the domain I moved from, it's just a subdomain.

I'm really confused, this has put a brake in my web development until I can figure it out.
Link to comment
https://forums.phpfreaks.com/topic/35163-moving-trouble/#findComment-166297
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.