Forum Moderators: coopster

Message Too Old, No Replies

How to send variable with php process name?

         

mikeseo

4:24 pm on Jan 19, 2006 (gmt 0)

10+ Year Member



How do you send a variable with a php process name? I have one script that different websites are running in the background. I want to be able to identify which website is running which process of the script.

So it would be something like:
/usr/bin/php /home/thescript.php - domain1.com
/usr/bin/php /home/thescript.php - domain2.com

coopster

7:42 pm on Jan 19, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I'm not quite certain I understand. Are you saying that you have a *shared* repository of scripts on your server in which multiple sites are using an included function file or something? And you want to know which sites/scripts are calling on certain functions?

How about simply adding another function to that *function* script which will do some logging for you to either a database, text file, etc?