User Tools

Site Tools


uphp:functions:fread

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
uphp:functions:fread [2017/04/10 13:00]
jeff
uphp:functions:fread [2021/09/13 05:57] (current)
Line 7: Line 7:
 ====Description==== ====Description====
  
-<well size="sm"> +<well size="sm"><html>
-<html>+
 <span style="font-size:125%;color:green">mixed <span style="font-size:125%;color:green">mixed
-<span style="color:black"> +<span style="color:black">fread (
-</html> +
-[[fread]] ( +
-<html>+
 <span style="color:green">int <span style="color:green">int
 <span style="color:blue">$handle<span style="color:black">, <span style="color:blue">$handle<span style="color:black">,
Line 19: Line 15:
 <span style="color:blue">$bytes <span style="color:blue">$bytes
 <span style="color:black">) <span style="color:black">)
-</html> +</html></well>
-</well>+
  
 This function attempts to read a specified number of bytes from a file, stream or socket. If less than the number of bytes are available it will return the available data. If no data is available it will return an empty string. This function attempts to read a specified number of bytes from a file, stream or socket. If less than the number of bytes are available it will return the available data. If no data is available it will return an empty string.
Line 33: Line 28:
  
   * <html><b><span style="color:green">String<span style="color:black"></b></html> containing the data requested from the resource   * <html><b><span style="color:green">String<span style="color:black"></b></html> containing the data requested from the resource
-    * The length of the returned <html><b><span style="color:green">string<span style="color:black"></b></html> depends on available data (<html><b>0 to <span style="color:blue">$bytes<span style="color:black"></b></html>)+    * <html>The length of the returned <b><span style="color:green">string<span style="color:black"></b> depends on available data (<b>0 to <span style="color:blue">$bytes<span style="color:black"></b>)</html>
   * <html><b><span style="color:green">Integer<span style="color:black"></b></html> 0 for error   * <html><b><span style="color:green">Integer<span style="color:black"></b></html> 0 for error
  
 ====Example==== ====Example====
  
-**Read the 32 byte MD5 hash from file /md5.txt:**+===Read the 32 byte MD5 hash from file /md5.txt===
  
 <code php> <code php>
uphp/functions/fread.1491829201.txt.gz · Last modified: 2021/09/13 05:56 (external edit)