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. 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?
  4. 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.
  5. 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!
  6. Ok, that was what I thought of doing at first. So I'll save the settings in the database. Now, what's the best way to pull them and have them available to me on every page? Should I have a Settings.php that I'll include in every page, with variables that would be initialized to the settings from the database? Should I store the settings from the database in session variables on user login? Maybe some other way I haven't thought about?
  7. I'm kinda new to PHP programming and I'm working on a large project at my university. Currently I'm working on adding as many choices to the Admin account so he could customize the site to his needs. All I wanted to know is what is the customary way in most sites to save these customization settings? Should I just put them in the database? Or maybe save them in a file (XML or some other kind)? Been scouring Google to find some information but didn't get anything useful so hopefully someone here could help me figure this out.
×
×
  • 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.