Adding a EXTERNAL PHP/PERL-script page to a PHP page

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
bigben
-


Joined: 14 Apr 2004
Posts: 4
Location: BULGARIA

PostPosted: Fri Sep 03, 2004 6:14 am    Post subject: Adding a EXTERNAL PHP/PERL-script page to a PHP page Reply with quote

Hi,
My PC is in LAN, in that LAN We have 2 LAN SEARCH SCANNERs - one on my PC and one to other local server. I wanna do this:

-on my PC:
My scanner is based on PERL, so if I wanna display some results FROM scanner I MUST LOAD a PERL page. That's nice but PERL has NOT able to INCLUDE file as good as PHP (and I don't understand Anything for Perl), so I decided to make a PHP page adn to INCLUDE the results from that PERL-generated page. I tried many possibilities but with NO success :(
Yesterday I try this and it works:

{some PHP/DHTML code}
<?php include ("http://10.0.54.165/php/lan/scanned.pl?".$_SERVER["QUERY_STRING"]);?>
{some PHP/DHTML code}
, where 10.0.54.165 is my IP address.

-on my PC tried also include EXTERNAL PHP:
I tried to do the same with the second SCANNER (based on PHP)
I pasted the same code, SCANNER.PL is changed with appropried file name - HTTP://192.168.192.42/SEARCH.PHP. Before INCLUDE i added ECHO function to display the same argument, to see is there any problems. So I start the page. The result were MESS:
->ECHO ($_SERVER["QUERY_STRING"]) display what I whats
->INCLUDE dsplay the PARSE ERROR (WHY??????????)
I said to myself "GOOD..." So i tried also to load only the page from server 192.168.192.42 with the same QUERY_STRING and the server displaied the page (so I CAN GET to it the params)


WHAT is the problem????
Back to top View user's profile Send private message ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group