Hey Brendan,

I've done a couple of things for you to help you out over the weekend, and
to also help you out with diagnosing the problem. The project that I'm using
that server for is not in production yet which allows me to muck around with
the config without upsetting users :)

I've created a file which contains the following two lines:
header('Content-Type: application/xml');
echo
file_get_contents('http://121.98.150.62:5574/Invoice?txtcode='.urlencode(iss
et($_REQUEST['txtcode']) ? $_REQUEST['txtcode'] : ''));

I've also configured apache to additionally listen on port 5574, and put the
file on my default VirtualHost. This means you can try all the following
URLs and see what works and doesn't work for you:
http://api.teleduino.com/invoice.php?txtcode=R5W2
http://api.teleduino.com:5574/invoice.php?txtcode=R5W2
http://173.230.152.173/invoice.php?txtcode=R5W2
http://173.230.152.173:5574/invoice.php?txtcode=R5W2

If my port theory is correct, the first and third option should work for
you.

I'll take the file off the server on Monday.

Let us know how you get on.

Thanks,
Nathan.




-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf
Of Brendan Brink
Sent: Saturday, 21 August 2010 12:19 a.m.
To: [email protected]
Subject: Re: [phpug] cURL IP address

hey there,

looks like i will only be able to get it sorted with Webdrive on
Monday morning...

do you think in mean time you could leave the script up on your server
and i could call yours while testing this weekend?

the url i need to access is:

http://121.98.150.62:5574/Invoice?txtcode=VARIABLE

where i provide the variable through GET

would appreciate it if you could :)

On Sat, Aug 21, 2010 at 12:08 AM, Nathan Kennedy
<[email protected]> wrote:
> Could be a port restriction on the server. Do you have control over it?
>
> I've just put up a test script which you could try and use as a proxy. It
> uses port 80. If this works, then there's a 99% chance the problem you're
> experiencing is at a firewall level.
>
> Try this:
>
> $xml =
> file_get_contents('http://admin.teleduino.com/file_get_contents.php');
> echo $xml;
>
> Thanks,
> Nathan.
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf
> Of Brendan Brink
> Sent: Saturday, 21 August 2010 12:00 a.m.
> To: [email protected]
> Subject: Re: [phpug] cURL IP address
>
> hi there Nathan,
>
> thanks for that...
>
> i tried the file_get_contents and got the following error:
>
> Warning: file_get_contents(http://121.98.150.62:5574/MENU.XML)
> [function.file-get-contents]: failed to open stream: Connection
> refused in
> /home/textvouchers/textvouchers/sell2cellltd/smartpanel/2326/testcurl.php
>  on line 5
>
>
> maybe its an issue with the php server where my scripts are executed oN?
>
>
>
> --
> NZ PHP Users Group: http://groups.google.com/group/nzphpug
> To post, send email to [email protected]
> To unsubscribe, send email to
> [email protected]

-- 
Kind Regards,

Brendan Brink

SMS Marketing Consultant | Manager
Sell2Cell Ltd.

021 0246 1646 | [email protected] | www.sell2cell.co.nz




  We provide customized, cost-effective SMS & Web Solutions
  Need a website? Need to integrate text-messaging into your business
  or website? Contact us today for a free no-obligation quote!

  VISIT OUR ASSOCIATED WEBSITES:   textvouchers.com | textguru.co.nz

WARNING This email contains information which is CONFIDENTIAL and may
be subject to LEGAL PRIVILEGE. If you are not the intended recipient,
you must not peruse, use, disseminate, distribute or copy the email or
attachments. If you have received this in error, please notify us
immediately by return email, facsimile, or telephone (call us
collect).

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

-- 
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]

Reply via email to