php - writing file name - fwrite need to delimit "/" -
i'm pulling part numbers database , creating series of flat html file using fwrite
$title = $row['partno']."_".$row['title']; $navigation = str_replace(" ","-",$title); $navigation=$navigation.".html"; $fhandle = fopen($navigation,"w"); fwrite($fhandle,$content); fclose($fhandle)
the problem of part number have '/' there way of delimiting '/' (slash) within file name not view alter of path?
no. slash in filename path separator. you'll have replace different character before opening file.
php fwrite
No comments:
Post a Comment