bigben -
Joined: 14 Apr 2004 Posts: 4 Location: BULGARIA
|
Posted: Fri Sep 03, 2004 6:14 am Post subject: Adding a EXTERNAL PHP/PERL-script page to a PHP page |
|
|
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???? |
|