Rowdy Roy Posted December 7, 2007 Share Posted December 7, 2007 I have two programs running on the same server in separate directories and MYSQL database. In program B a PHP script (let's call it daily.php) changes presentation every 24 hours.The primary program A site index is accessed as the homepage for the site. I would like for daily.php (from program B) to run on the homepage of program A when the homepage is viewed. Can someone give me advice? This thing is driving me crazy, have been working on it for two weeks. Thanks. Quote Link to comment https://forums.phpfreaks.com/topic/80631-solved-running-module-between-scripts/ Share on other sites More sharing options...
boushley Posted December 7, 2007 Share Posted December 7, 2007 So when someone comes to your site... you want the daily.php to run. Your problem is... that its in a different directory? Or is it that you don't understand how to include at all? (I doubt it... since you've been trying for two weeks) And do you want daily.php only to run once a day? You can include a file over http: or from basically anywhere on the local filesystem... where php has permissions. Quote Link to comment https://forums.phpfreaks.com/topic/80631-solved-running-module-between-scripts/#findComment-408899 Share on other sites More sharing options...
Rowdy Roy Posted December 7, 2007 Author Share Posted December 7, 2007 Thanks for the reply. I did not realize I could include with http. The daily.php changes presentation every 24 hours. I want it to run every instance of access to the homepage with the current 24 hr presentation. I understand includes with in the same program but have never tried between programs. Again thanks. Quote Link to comment https://forums.phpfreaks.com/topic/80631-solved-running-module-between-scripts/#findComment-408908 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.