View Full Version : Need help please with a setTimeout for a php include.
Jen-
Nov 16th 2006, 12:35 am
Hello, I know sometimes javascript and php can be used together. Anyone know how to add a javascript set timeout to this? So that this php include will re-execute after so much time? Or is there a php refresh command I can add to this code itself, not the page. Thank you very much. Jen
<?php
include 'file.php';
?>
nico_swd
Nov 16th 2006, 1:20 am
This cannot be done like that. You can use AJAX though.
Jen-
Nov 16th 2006, 2:21 pm
Won't the ajax keep the php from being searched by search engines?
nico_swd
Nov 16th 2006, 2:24 pm
Pretty much, yes. But that's the only way to do that, unless you want to use iFrames.
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.