smc Posted January 22, 2007 Share Posted January 22, 2007 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 More sharing options...
smc Posted January 22, 2007 Author Share Posted January 22, 2007 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 sessionsession_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 More sharing options...
linuxdream Posted January 22, 2007 Share Posted January 22, 2007 Why don't you echo out the $cms_root_path to see the absolute file system path. That way you can be sure that the login_result.php is in that path. Is probably just off by a directory or two. Link to comment https://forums.phpfreaks.com/topic/35163-moving-trouble/#findComment-166102 Share on other sites More sharing options...
smc Posted January 22, 2007 Author Share Posted January 22, 2007 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 More sharing options...
linuxdream Posted January 23, 2007 Share Posted January 23, 2007 You are using an include() which won't fail if the file is not there. Try a require_once('$cms_root_path . 'login_result.php') instead of include(). Link to comment https://forums.phpfreaks.com/topic/35163-moving-trouble/#findComment-166848 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.