[SOLVED]Problem on string retrievieng by an Url

Just starting out? Need help? Post your questions and find answers here.
Fasasoftware
Posts: 47
Joined: Tue May 26, 2015 11:22 pm

Re: Problem on string retrievieng by an Url

Post 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 :oops:
Fasasoftware
Posts: 47
Joined: Tue May 26, 2015 11:22 pm

Re: Problem on string retrievieng by an Url

Post by Fasasoftware »

Can somebody help me please?????

I need an help please.....

Thank you to everybody......Besyt regards,

Lestroso :shock:
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: Problem on string retrievieng by an Url

Post 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
Fasasoftware
Posts: 47
Joined: Tue May 26, 2015 11:22 pm

Re: Problem on string retrievieng by an Url

Post 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 :oops:

http://www.fasasoftware.com
the.weavster
Posts: 229
Joined: Sat Mar 01, 2014 3:02 pm

Re: Problem on string retrievieng by an Url

Post 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
Fasasoftware
Posts: 47
Joined: Tue May 26, 2015 11:22 pm

Re: Problem on string retrievieng by an Url

Post 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 :)
Fasasoftware
Posts: 47
Joined: Tue May 26, 2015 11:22 pm

Re: Problem on string retrievieng by an Url

Post by Fasasoftware »

Finally Cheers!!! Now here works fine my software in my website.....Thanks Peter!!!!!! Thanks to everybody!!!!

Problem Solved!!!

Best regards,

Lestroso :D :D :D
Post Reply