You are here: Re: fopen parameters « PHP Programming Language « IT news, forums, messages
Re: fopen parameters

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация