You are here: Re: Is URL for a big file valid? (sorry put bif first time) « PHP Programming Language « IT news, forums, messages
Re: Is URL for a big file valid? (sorry put bif first time)

Posted by Janwillem Borleffs on 07/15/06 20:16

mindwarp wrote:
> fsockets with fputs($gh, "HEAD $hpath HTTP/1.0\n\n");
> Doesn't like files in sub directories.
>

The newlines should be replaced with CRLF (\r\n\r\n), but besides that, this
should work fine.

It's possible that you are using windows-style slashes (\some\dir), in which
case you sould replace them with forward slashes (/some/dir).

You could also use GET and just read the first line to get the status code
and disconnect immediate after it.


JW

 

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

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