LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-03-2007, 12:22 AM   #1
seattleweb
LQ Newbie
 
Registered: Jul 2007
Posts: 15

Rep: Reputation: 0
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?
 
Old 11-03-2007, 12:39 AM   #2
seattleweb
LQ Newbie
 
Registered: Jul 2007
Posts: 15

Original Poster
Rep: Reputation: 0
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...?
 
Old 11-03-2007, 06:38 AM   #3
nc3b
Member
 
Registered: Aug 2005
Posts: 330

Rep: Reputation: 32
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.

Last edited by nc3b; 11-03-2007 at 06:39 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP question microsoft/linux Programming 4 01-24-2006 05:25 PM
PHP / VideoLAN / Fedora Core Question - how can I get the PHP "exec" function to work gtrawoger Linux - Software 3 12-21-2005 06:51 AM
PHP Question here wh33t Programming 4 12-16-2005 11:02 AM
question about php citrus Linux - Software 1 05-03-2004 07:24 AM
PHP Question duerra Linux - Newbie 6 01-22-2004 06:37 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:00 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration