Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.