abdfahim Posted November 22, 2007 Share Posted November 22, 2007 I am stuck on the same problem for some days. Can anyone tell me whether it is possible to run some php script when any user request some page in my server, without adding same code in each and every page? Quote Link to comment https://forums.phpfreaks.com/topic/78357-solved-call-php-script-when-user-ip-request-some-page/ Share on other sites More sharing options...
phpQuestioner Posted November 22, 2007 Share Posted November 22, 2007 create one php file/script and then use an include in each additional page you want the code in. Quote Link to comment https://forums.phpfreaks.com/topic/78357-solved-call-php-script-when-user-ip-request-some-page/#findComment-396478 Share on other sites More sharing options...
abdfahim Posted November 22, 2007 Author Share Posted November 22, 2007 but my webpage has already been developed and there are more than 100 pages. That's why I want to avoid editing each and every file. Quote Link to comment https://forums.phpfreaks.com/topic/78357-solved-call-php-script-when-user-ip-request-some-page/#findComment-396490 Share on other sites More sharing options...
~n[EO]n~ Posted November 22, 2007 Share Posted November 22, 2007 So, what you want and how you want this to happen... Quote Link to comment https://forums.phpfreaks.com/topic/78357-solved-call-php-script-when-user-ip-request-some-page/#findComment-396492 Share on other sites More sharing options...
phpQuestioner Posted November 22, 2007 Share Posted November 22, 2007 well, includes are about the simplest way to do this; unless you have a database variable in each of the 100+ pages you can update or add some PHP to. Quote Link to comment https://forums.phpfreaks.com/topic/78357-solved-call-php-script-when-user-ip-request-some-page/#findComment-396493 Share on other sites More sharing options...
abdfahim Posted November 22, 2007 Author Share Posted November 22, 2007 ok, forget it.. thanx anyway Quote Link to comment https://forums.phpfreaks.com/topic/78357-solved-call-php-script-when-user-ip-request-some-page/#findComment-396591 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.