Page 2 of 2
Re: Problem on string retrievieng by an Url
Posted: Mon May 30, 2016 10:30 pm
by Fasasoftware
Dear Peter,
i have a problem to put your little php code in my server.....i have a site with wordpress....is it ok??? i have download a plugin to Pilot your code in a webpage or post or widget....but nothing works.....can you help me please??? i tryed also to put it inside my Hosting linux...but i didn't have found any place to put it...
your code is this......:
Code: Select all
<?php
header('Access-Control-Allow-Origin: *');
echo file_get_contents('http://webrates.truefx.com/rates/connect.html?c=AUD/USD&f=csv');
?>
Where do i have to put it??? thanks a lot...Lestroso

Re: Problem on string retrievieng by an Url
Posted: Tue May 31, 2016 4:39 pm
by Fasasoftware
Can somebody help me please?????
I need an help please.....
Thank you to everybody......Besyt regards,
Lestroso

Re: Problem on string retrievieng by an Url
Posted: Tue May 31, 2016 6:13 pm
by Peter
Place your php on your webspace and point the HTTPRequest() to the correct path:
Code: Select all
Protected URL.s = "http://yourdomain/path/to/your/proxy.php"
HTTPRequest(#PB_HTTP_Get, URL, "", @HttpGetEvent())
Greetings ... Peter
Re: Problem on string retrievieng by an Url
Posted: Tue May 31, 2016 9:24 pm
by Fasasoftware
Thank you Peter for the answer...but i'm sorry but i don't have understood well.....
I don't have a proxy in my site...
i can only execute some php piece of code...i'm sorry again...could you please be more clear??? can you tell me step by step if you can??? i'm sorry again...but i promise you....if you help me to success...i'll buy the full version of spider basic!!!
Thanks in advance,
Lestroso
http://www.fasasoftware.com
Re: Problem on string retrievieng by an Url
Posted: Wed Jun 01, 2016 6:48 am
by the.weavster
Fasasoftware wrote:Thank you Peter for the answer...but i'm sorry but i don't have understood well.....
I don't have a proxy in my site...
Peter gave you the code for the proxy:
Code: Select all
<?php
header('Access-Control-Allow-Origin: *');
echo file_get_contents('http://webrates.truefx.com/rates/connect.html?c=AUD/USD&f=csv');
?>
1) Copy the above code into a file and save it as proxy.php
2) Copy the file proxy.php to the root directory of your website
Then you'll be able to access it at
http://www.fasasoftware.com/proxy.php
Re: Problem on string retrievieng by an Url
Posted: Wed Jun 01, 2016 10:58 am
by Fasasoftware
Dear the.weavster, Thousand thanks!!!!!! Now it's clear....i'm sorry...i'm a spider basic beginner....I thank you again...now i'll try as soon as possible that you told me and then i give you another feeedback!!!
Best regards,
Lestroso

Re: Problem on string retrievieng by an Url
Posted: Wed Jun 01, 2016 4:59 pm
by Fasasoftware
Finally Cheers!!! Now here works fine my software in my website.....Thanks Peter!!!!!! Thanks to everybody!!!!
Problem Solved!!!
Best regards,
Lestroso
