rajmohan Posted August 28, 2008 Share Posted August 28, 2008 I am seeing the download php files instead of loading those files as web pages. Can any on suggest me what is the problem in php code. One of my client told me that he is facing this problem. For me it is loading correctly. Please let me know if any one have any Idea. Quote Link to comment Share on other sites More sharing options...
slapdashgrim Posted August 28, 2008 Share Posted August 28, 2008 make sure PHP is installed on the server? Quote Link to comment Share on other sites More sharing options...
rajmohan Posted August 28, 2008 Author Share Posted August 28, 2008 Yes it is installed. One of my client using mac system there he is facing this problem. When I tried with mac system it is working fine for me. I have tried with windows as well as in Linux. In all the places it is working fine. Quote Link to comment Share on other sites More sharing options...
rajmohan Posted August 28, 2008 Author Share Posted August 28, 2008 I've noticed this occasionally and think it must be a server issue, as other pages from the same server load fine Quote Link to comment Share on other sites More sharing options...
kratsg Posted August 28, 2008 Share Posted August 28, 2008 Honestly, most of the times this happens, the page takes a long time to load. To me, it must be related to a server-timeout, the fact that the script has taken up too much time to process and it'll popup... This has happened to me rarely, but it just happens. The actual PHP code isn't revealed though so it's not a security issue. Quote Link to comment Share on other sites More sharing options...
rajmohan Posted August 28, 2008 Author Share Posted August 28, 2008 From that page he needs to process further. In that site there is an option called send mail to all. When they click that link it will ask them to enter the message then submit it. I will collect the users from database and loop those users and send the message for all that time this problem occured. If it is time out problem then can you please suggest me some code to check this condition. So that if the condition is true it will through the massage that time is out. Quote Link to comment Share on other sites More sharing options...
kratsg Posted August 28, 2008 Share Posted August 28, 2008 On that page, it can either be done using headers in html or the header function in php.. Just set a re-direct after 300 seconds (5 minutes). //html <META HTTP-EQUIV="Refresh" CONTENT="300; URL=html-redirect.html"> //php header( 'refresh: 300; url=http://www.example.net' ); Quote Link to comment Share on other sites More sharing options...
rajmohan Posted August 28, 2008 Author Share Posted August 28, 2008 Ok fine. I will try with this and let you know but I have to request my client to check it because it is working fine for me. Thanks kratsg. Quote Link to comment Share on other sites More sharing options...
kratsg Posted August 28, 2008 Share Posted August 28, 2008 Not a problem, if everything's fine and dandy, just click the Topic Solved button so others know you've got your questions answered. Quote Link to comment 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.