php script calling another one (on different machine), session variables

From: Date: Mon, 01 Aug 2005 18:43:12 +0000
Subject: php script calling another one (on different machine), session variables
Groups: php.general 
Request: Send a blank email to php-general+get-219774@lists.php.net to get a copy of this message
I have two Windows machines. machine A has apache/mysql/php (main host) machine B has apache/media server (secondary host for high bandwidth media such as video) I have admin tools (written in PHP and using sesson variables) on A which allows for updating of the database with pictures and such. The admin tools also allows you to delete records. When the user deletes a record using the admin tools on machine A, I also want to delete some media files on machine B. At this point, I figured that I should have my admin tools call a PHP script on machine B to delete files from the B's filesystem. I did a search online and it seems that I should use a header() call to call the PHP script on machine B. But what if I want to RETURN the user to the admin tools? Can I send another header() from machine B's script? What will happen to the session variables? How can I hold onto the session variables while moving between web servers? -- -James

« previous php.general (#219774) next »