LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-19-2006, 11:33 AM   #1
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
php http tunneling


Hello,

Was wondering if someone could point me in the direction of how to accomplish opening an tunnel in php. We have a website where the frontend is in asp and the backend is php hosted on seperate machines in different locations. We need to be able to open a php http tunnel to feed the front end with material from a different location. If I wasn't clear enough I will gladly try to provide more information.

Thank you in advance.
Here is an example in asp

Code:
  Function XML_readTunnel(ByVal URL_Value)
 ' This function will open an xml tunnel with the given URL_Value    String argument.

   Dim Result
   Dim objHTTP
   Dim searchFor

   searchFor = "?"
   Result = ""
   
   If Instr(URL_Value, searchFor) >= 1 Then URL_Value = URL_Value & "&" Else URL_Value = URL_Value & "?" 

   URL_Value = URL_Value & "DT=" & server.urlencode(TIME)

   Set objHTTP = Server.CreateObject ("Microsoft.XMLHTTP")    
   objHTTP.open "GET", URL_Value, False
   objHTTP.send 

   If Not IsEmpty(objHTTP.responseBody) Then
      Result = objHTTP.responseText
   End If

   Set objHTTP=nothing

   XML_readTunnel = result   

End Function

Last edited by lord-fu; 09-19-2006 at 11:34 AM.
 
Old 09-19-2006, 11:36 AM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Original Poster
Rep: Reputation: 30
Sorry, for the quick repost, I thik I have my answers but I would still appreciate comments. Thanks again.

My answers were found here:
http://us2.php.net/

Last edited by lord-fu; 09-19-2006 at 03:03 PM.
 
  


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
http tunneling for linux !! gnanaswaroop Linux - Software 5 12-14-2004 02:38 AM
Http Tunneling mylo2003 Linux - Networking 18 11-24-2004 01:54 PM
HTTP tunneling NNP Linux - Networking 2 11-18-2004 07:35 AM
Http Tunneling without CONNECT pymehta Linux - Networking 0 07-13-2004 03:35 PM
http tunneling ngo Linux - Networking 0 10-02-2001 10:24 AM

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

All times are GMT -5. The time now is 08:47 AM.

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