You are here: php script calling another one (on different machine), session variables « PHP « IT news, forums, messages
php script calling another one (on different machine), session variables

Posted by James on 08/01/05 21:43

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация