Jump to content

elad135

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

elad135's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I prefer not to post the code here because this isn't my code and I'm not sure that the person who owns the code would want me to post it. Regarding the possibility of it error'ing out. The code seems to work just fine on my own local server. The server that is giving me the problem is my university's server. It also means that I don't have access to the console. Just in case it does error out for some reason, specifically on this server, what method can I use to print out all the errors that script sends out (including MySQL errors)?
  2. I really hit a wall while trying to figure out how to stop my script from terminating early. First, my website is located on an IIS server. Second, the script I'm referring to is supposed to be some kind of a 'thread' (and I know this is not the place to use PHP but it's not my website and it's not my script - I only need to get it to work). So it basically opens in the background and stays alive by using the Sleep function inside a For loop (until some term has been met). My problem is that the script is being terminated after about 3-5 minutes (not sure exactly after how long). I already tried adding the set_time_limit(0) and it had no effect. Does anyone have an idea how can I solve this problem and why the set_time_limit(0) is not working? P.S. The server is not in Safe Mode.
  3. Never mind. I found a workaround
  4. Hi, I'm quite new to PHP and I'd like to know if there's a way for me to use some PHP solution to get data from another PHP file instead of used AJAX. My intention is to have some kind of a loop in one PHP file that'll have a variable that gets the returned data from a different PHP file on every iteration and does something with it. Would be simple enough to do it with Ajax but I can't use it in this instance. Any thoughts?
  5. Thanks guys - specially nethnet. Your idea about creating the illusion of the stuff I need to happen actually would work quite well in this particular case.
  6. I'm kind of a beginner in PHP and I'm not sure how complicated is this thing I need to do so I just need a little bit of help. Anyway, I have this clock counter on a few of my pages, counting down to 0 and what I need to do is execute certain code 15 minutes before a counter reaches 0. It's basically the same code but it needs to run every time one of the counters is 15 minutes away from 0. Any simple way for me to achieve this? Thanks!
×
×
  • 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.