|
Posted by Rik on 07/11/06 13:34
lucyachammond@yahoo.co.uk wrote:
> I am now trying to call my asp script but have having problems with
> the
> parameters I am passing. My code is below:
>
> $handle =
>
fopen("http://www.homeplots.co.uk/processhpdetails.asp?postcode={$this->zip}
&city={$this->city}&price=$this->price&caption={$this->caption}&id=$this->pr
operty_id&type=$this->type",
> "r");
>
> I get the error:
> Warning:
> fopen('http://www.homeplots.co.uk/processhpdetails.asp?postcode=MK17
> 0SJ&city=Swanbourne&price=125000&caption=Building Plot in
> Swanbourne&id=78&type=SF'): failed to open stream: No such file or
> directory in
> /home/fhlinux185/h/homeplots.eu/user/htdocs/property_class.php on line
> 486
>
> The asp file definately exists but I cannot pass it the parameters. I
> think the problem is to do with passing strings but do not know php
> well enough to figure it out.
>
> Again, any help much appreciated.
> Lucy
First of all, rawurlencode() your parameters, 'Building Plot in Swanbourne'
should be 'Building%20Plot%20in%20Swanbourne'.
If that doesn't work, check allow_url_fopen:
http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|