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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux