kasperkombrink Posted September 17, 2010 Share Posted September 17, 2010 I have a file index.php which contains the header, an empty contentblock, a navigationblock and a footer. Depending on the selected menu option the contentblock gets its content by means of a require statement which includes the proper php file. It works with me (and many other users). However one of my users only gets the header on her screen. If I remove the require statement (which is immediately after the header block) then this user also gets the navigation block and the footer on her screen. So may be the require statement is the cause of the error. But of course this is strange, because all php code is executed on the server. The html code which returns to my computer will be the same as the code which returns to the other user's laptop. I copied the html code that returns to my computer into an html file, which I uploaded to the server. When the other user calls that html file, she gets the correct page. Quote Link to comment https://forums.phpfreaks.com/topic/213668-obscure-problem/ Share on other sites More sharing options...
Pikachu2000 Posted September 17, 2010 Share Posted September 17, 2010 The problem is right there on line 123 in your code. Quote Link to comment https://forums.phpfreaks.com/topic/213668-obscure-problem/#findComment-1112137 Share on other sites More sharing options...
mikosiko Posted September 17, 2010 Share Posted September 17, 2010 just a wild guess... the user that is experiencing the error... how is he accessing the site? ... I imagine something like this http://<name of the host here>/index.php test that user using this http://<ip of the host here>/index.php and see if that make a difference Quote Link to comment https://forums.phpfreaks.com/topic/213668-obscure-problem/#findComment-1112140 Share on other sites More sharing options...
Adam Posted September 17, 2010 Share Posted September 17, 2010 Does any of your code depend upon sessions, or cookies? Quote Link to comment https://forums.phpfreaks.com/topic/213668-obscure-problem/#findComment-1112143 Share on other sites More sharing options...
shlumph Posted September 17, 2010 Share Posted September 17, 2010 Posting the related code would help. Looking into what web browser & version the user is using would be helpful, along with if your site is dependent on cookies. Quote Link to comment https://forums.phpfreaks.com/topic/213668-obscure-problem/#findComment-1112168 Share on other sites More sharing options...
kasperkombrink Posted September 17, 2010 Author Share Posted September 17, 2010 Does any of your code depend upon sessions, or cookies? Cookies no, sessions yes. I 've made a copy of some files and removed the part which uses sessions. With these files the user didn't experience the error. But I don't understand, because session variables are stored on the server. And I (think that I) need the session variables. The user also called the site via http://www.proxeasy.com/webclient.aspx, without any problem. Quote Link to comment https://forums.phpfreaks.com/topic/213668-obscure-problem/#findComment-1112219 Share on other sites More sharing options...
shlumph Posted September 17, 2010 Share Posted September 17, 2010 Even though sessions are stored on the server side of things, the client gets a session cookie Quote Link to comment https://forums.phpfreaks.com/topic/213668-obscure-problem/#findComment-1112221 Share on other sites More sharing options...
kasperkombrink Posted September 17, 2010 Author Share Posted September 17, 2010 Even though sessions are stored on the server side of things, the client gets a session cookie So if I implement the session-handling by means of a database, the problem will not be solved? Quote Link to comment https://forums.phpfreaks.com/topic/213668-obscure-problem/#findComment-1112265 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.