Jump to content

Obscure problem


kasperkombrink

Recommended Posts

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.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/213668-obscure-problem/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/213668-obscure-problem/#findComment-1112140
Share on other sites

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.

 

Link to comment
https://forums.phpfreaks.com/topic/213668-obscure-problem/#findComment-1112219
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.