LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PHP Question (https://www.linuxquestions.org/questions/programming-9/php-question-596772/)

seattleweb 11-03-2007 12:22 AM

PHP Question
 
I have a question that I cannot find the right approach to answer on my own:

Let's say that I server1 hosts a webpage called hello.php.

When hello.php is accessed, it needs to send a variable ($test) to a page on server2 named hello2.php.

What method can php use to accomplish this?

seattleweb 11-03-2007 12:39 AM

BTW... I don't need anyone really to write out the code, just t point me in the right direction.... like curl or something maybe...?

nc3b 11-03-2007 06:38 AM

Why don't you pass it through get? I believe you can send the var using HTTP_REQUEST,
by just $_GET - ing it.

EDIT:
I just read more about HTTP_REQUEST
http://pear.php.net/manual/en/packag...client.get.php
http://pear.php.net/manual/en/packag...lient.post.php

I believe post is more suitable. Hope this helps.


All times are GMT -5. The time now is 05:34 AM.