Reply to Re: [PHP] fread and fgets (network streams)

Your name:

Reply:


Posted by The Gimper on 09/04/05 22:35

Sorry for the bump, but please anyone? :P

Quoting The Gimper <thegimper2@pc.nu>:

> On the php.net you can read the following about fread:
>
> "fread() reads up to length bytes from the file pointer referenced by
> handle.
> Reading stops when length bytes have been read, EOF (end of file) is
> reached,
> or (for network streams) when a packet becomes available, whichever
> comes
> first."
>
> Is this true with fgets also? The "when a packet becomes available" part
> that
> is. I΄m guessing "for network streams" means when the handler is not a
> local
> file but a remote file, right?
>
> Why i΄m i asking this? Well because i have a script wich now uses fread
> to get
> a remote file and would like to change this to fgets but i΄m afraid i
> will bump
> into truble if i do since the part about waiting for a packed to become
> available sounds pretty important when dealing with remote files, right?
>
> Thanks!
>
>
>
>
> -------------------------------------------------
> FREE E-MAIL IN 1 MINUTE!
> - your.name@pc.nu - http://www.pc.nu
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>





-------------------------------------------------
FREE E-MAIL IN 1 MINUTE!
- your.name@pc.nu - http://www.pc.nu

[Back to original 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация