Jump to content

sdevaney

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sdevaney's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Honestly I am just asking for a nudge in the right direction. I have the php part of the project finished where it pulls the information I want, I just am not sure how to get it to display with the onmouseover part of javascript but apparently I have asked too much. I will take my questions elsewhere since it seems help here is not something that is given as a benefit to those less knowledgeable in certain areas of programming.
  2. I have a phpbb forum and when someone hovers their mouse over a topic I would like it to pull certain info from the post and I am not sure how to go about this and get the info I want pulled. Any information that can be given would be an amazing help. Thanks so much!
  3. This is my first forey into AJAX and I am trying to get this chat script to auto refresh every 10 secs. I made this my ajax.php so I could use it on all my pages where my chat is also an include so I am not completely sure if that is the problem or not. <script>src="ajax.js" id="$ReloadThis"</script> <?php $ReloadThis=("./system/chatter.php"); include ("./system/chatter.php"); ?> Here is my ajax.js file: <script type="text/javascript"> function Ajax(){ var xmlHttp; try{ xmlHttp=new XMLHttpRequest();// Firefox, Opera 8.0+, Safari } catch (e){ try{ xmlHttp=new ActiveXObject("Msxml2.XMLHTTP"); // Internet Explorer } catch (e){ try{ xmlHttp=new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){ alert("Your browser does not support AJAX please upgrade!"); return false; } } } xmlHttp.onreadystatechange=function(){ if(xmlHttp.readyState==4){ document.getElementById('$ReloadThis').innerHTML=xmlHttp.responseText; setTimeout('Ajax()',10000); } } xmlHttp.open("GET","http://deltoria.com/system/chatter.php",true); xmlHttp.send(null); } window.onload=function(){ setTimeout('Ajax()',10000); } </script> My problem is it displays the chat like it should but it doesnt auto refresh every 10 seconds. Any help is appreciated. Thanks!
  4. I have solved the issue by using this command. /usr/local/bin/php -f /home/deltoria/public_html/runcron.php
  5. I have it set up to run every 5 mins. I used the Cron Job tab in Cpanel to set it up. If you need any other information feel free to ask. I thank you for the help.
  6. OK after doing a little more digging I have found that it runs once but it wont run again and I have it set to run every 5 mins. So does that mean there is a problem with my servers cron daemon or could it be something in my db? I am at a loss here so any information is appreciated. Thanks!
  7. I am afraid that did not fix it. Thank you though.
  8. I cant figure out why this cron job will not run and no errors display. Any insight is greatly appreciated. Thanks a lot in advance! <? error_reporting(E_ALL); ini_set('display_errors', '1'); include ("system/dbconnect.php"); $sth1 = mysql_query("select HeartID, RunEvery, RunTime, ModCode from heartbeat where Enabled = 'Y'") or die ('Error: '.mysql_error ()); while($datab = mysql_fetch_array($sth1)) { $time = $datab['RunTime']; $time = $time-1; if ($time <= 0) { $runcode = $datab['ModCode']; eval($runcode); $time = $datab['RunEvery']; } $sth2 = mysql_query("update heartbeat set RunTime=$time where HeartID=".$datab['HeartID'].""); } ?>
×
×
  • 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.