garry27 Posted November 9, 2006 Share Posted November 9, 2006 is there any way i can get a self-executable script to ignore a php function the first time it loads up? Link to comment https://forums.phpfreaks.com/topic/26735-self-executing-php-scripts/ Share on other sites More sharing options...
blear Posted November 9, 2006 Share Posted November 9, 2006 [code] if(!isset($_REQUEST['secondPass'])) {//do code that you want only on the first pass}[/code]Then append "?secondPass=yes" to the subsequent self-calls. Link to comment https://forums.phpfreaks.com/topic/26735-self-executing-php-scripts/#findComment-122284 Share on other sites More sharing options...
garry27 Posted November 9, 2006 Author Share Posted November 9, 2006 thanks. i'll give it a go. Link to comment https://forums.phpfreaks.com/topic/26735-self-executing-php-scripts/#findComment-122289 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.