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

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

 



I just thought of something...

Will this work...


(machine A) User hits submit in the Admin Tools to delete a record.
(machine A) I send POST variables to a database php script in a NEW WINDOW...at the end of the script...it uses a header() to call the PHP script on machine B...to delete files from that machine. (machine B) after the php script runs and deletes the media files, it displays a "SUCCESS...please close window" which appears in the new window.

The user still has the admin tools, with it's session variables, in the parent window.

-James



At 2:43 PM -0400 8/1/05, James wrote:
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


--
-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