You are here: Re: Streams and wrappers « PHP Programming Language « IT news, forums, messages
Re: Streams and wrappers

Posted by Julien Biezemans on 06/26/07 09:22

gosha bine wrote:
>
> Well, I don't think 'fopen' arguments are urls or urns although
> sometimes it may seem so. Just take it as php own format that only
> accidentally matches some kinds of url.
>
> On widnows, ':' is used to denote a drive, e.g.
> fopen("C:\\WINDOWS\\blah") is perfectly valid.
>
>

That makes sense, thank you for this thought. Anyway it's a pity because
libraries like DOM make us of the PHP streams system to interpret what
are strict URIs (think about Xinclude "include" elements that have
"href" attributes accepting anyURI values).

In other words, when PHP DOM extension (or libxml if you prefer)
executes an include element, its href attribute value is strictly an URI
that may be under any scheme!

In conclusion, concerning my own application it will be an assumption
that fopen() treats its path argument as URIs and I'll keep using the
workaround I described earlier.

Regards,

Julien.

 

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

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