Using forward slashes on Windows : Quotation « String « PHP






Using forward slashes on Windows

 
<?php
$fh = fopen('c:/alligator/crocodile menu.txt','r') or die($php_errormsg);
while($s = fgets($fh)) {
    print $s;
}
fclose($fh)                                        or die($php_errormsg);
?>
  
  








Related examples in the same category

1.Double quotation marks allow the parsing of variables
2.Double-quoted string escape sequences
3.Double-quoted strings
4.If you use single quotation marks to enclose the same string, the variable is not substituted:
5.Fixing quote escaping in backreference replacements
6.It is safe to use non-escaped Windows-style filenames in your single-quoted strings
7.Various special characters in string assignments