[PHP-WIN] Pls Help Needed I am new toPHP

2005-11-03 Thread kumar kumar
hi how to get the byte stream in php like in JSP i am using this code in JSP <% try{ ServletInputStream in = request.getInputStream(); byte[] line = new byte[8192]; int bytes = 0; FileOutputStream fileOutS = new FileOutputStream(fileOut); while(0 <(bytes = in.read(line))

[PHP-WIN] list files in directory

2005-11-03 Thread JC Botha
Thanks for all your help and advice. I did struggle with the array part but got it worked out. Perhaps you could have a quick look at the script and let me know if it is stable enough. 1048575) { $filesizefile = round(($filesizefile/1024)/1024, 1); $term

RE: [PHP-WIN] list files in a directory

2005-11-03 Thread Jay Blanchard
[snip] I got some directories on a web server, these I called with PHP to be displayed on an HTML page. But I do not get them sorted properly. I want them to be sorted by name and not by size. Could some one please shed some light on this. [/snip] Get all of the directory or file names into an arr

[PHP-WIN] list files in a directory

2005-11-03 Thread JC Botha
Dear Users, I need some help. I got some directories on a web server, these I called with PHP to be displayed on an HTML page. But I do not get them sorted properly. I want them to be sorted by name and not by size. Could some one please shed some light on this. Thanks ==