hello all
first of - a question: : $output = fetchURL($url);
this does not exist in PHP - does it? i can t belive this. I really can not believe that this function exists in php,
Background; i want to include the amazon web services script - it is written in perl and i want to inlcude the output in a very very simple site. How to do that.
http://mrrat.com/aws/
http://www.absolutefreebies.com/phpBB2/viewtopic.php?t=7960025
first of - this is a very very great script - i really like it!!!
i grabbed the script and have put it to my server. i did not need to make any changes to the script since i have the perl. the Perl-interpreter on my server is located here #!/usr/bin/perl so i was very luck - since i did not have to edit any line to the code. i have put APF to the server. But it resites in a special folder:
/myDomain [that here is my domain]
/cgi-scripts/apf4 [here the sript resides]
and now i have to include the APF4 somehow into the site. otherwise it won´t work for me
i cannot type [url]http://[/url][yourdomain_here]/cgi-bin/apf/amazon_products_feed.cgi into my browser and see results, since the cgi-scripts do reside in another folder my domain. here is the overall-structure:
home/wwwall/WWW/domain 1
home/wwwall/WWW/domain 2
home/wwwall/WWW/domain 3
home/wwwall/WWW/cgi-scripts/apf4 [here the sript resides]
so it is not possible to t type [url]http://[/url][yourdomain_here]/cgi-bin/apf/amazon_products_feed.cgi
to see first results. - i cannot do that since the APF does not reside in the same folder. Unless i do not change this here on my server i am not able to get the results. Please help here.
home/wwwall/WWW/domain 1
home/wwwall/WWW/domain 2
home/wwwall/WWW/domain 3
home/wwwall/WWW/cgi-scripts/apf4 [here the sript resides]
so i think that i have to create a file that lies in home/wwwall/WWW/domain 1
in this file i include the apf4 - is this what i can imagine:
<?php
$url = "/cgi-scripts/apf4/amazon_products_feed.cgi";
$output = fetchURL($url);
echo $output; ?>
but now the question: $output = fetchURL($url);
this does not exist in PHP - does it? i can t belive this. I really can not believe that this function exists in php,
pleae advice -
many thanks for your help here -
this is a very greatsite.
bernard_hinault,
btw; it's farily common to have the cgi-bin outside of the public_html folder, So it is at my server.
but if my server is setup correctly, i should still be able to access it via mysite.com/
But NOTE: i can not write mysite.com/cgi-bin/whatever.cgi. or can i - since the cgi-folder resides somewhere else - but not in the domains - see above