[PHP] How to get php to accept spaces in a file name?

2002-01-22 Thread Kevin Garrett
Hi guys, I've an index script which views the contents of a directory on a unix server. This unix server has also got file with windows naming convesion, which makes a file with spaces look like this /this\ is\ an\ example/. The file name itself appears fine but there is also a link to the

Re: [PHP] How to get php to accept spaces in a file name?

2002-01-22 Thread Kevin Garrett
Thanks Bogdan, From: Bogdan Stancescu [EMAIL PROTECTED] To: Kevin Garrett [EMAIL PROTECTED] CC: [EMAIL PROTECTED] Subject: Re: [PHP] How to get php to accept spaces in a file name? Date: Tue, 22 Jan 2002 15:30:39 +0200 rawurlencode() is the answer to your question. Bogdan Kevin Garrett wrote

[PHP] Using PHP for directory indexing

2001-11-12 Thread Kevin Garrett
Hi All, I am wondering if anyone can help me with this. I want people accessing my site to see a list of HTML reports but I don't want to turn on Directory indexing on my Apache webserver, seeing as the directory path is present. What I'm looking to do, is to write a basic php

RE: [PHP] Using PHP for directory indexing

2001-11-12 Thread Kevin Garrett
] To: 'Kevin Garrett' [EMAIL PROTECTED], '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: RE: [PHP] Using PHP for directory indexing Date: Mon, 12 Nov 2001 14:15:14 +0100 ? // print the current directory in unordered list print(UL\n); // open directory $myDirectory = dir

[PHP] Read from files display selected lines under the file name while indexing

2001-11-28 Thread Kevin Garrett
Hi all. I have a script that indexes html files within a directory. The files are created using the date time stamps by another script what I'm looking to do is somehow create a preview panel for the message which would read the 2nd to the 4th line disply it under the filename so as to

[PHP] Please Help! Sorting the results of directory indexing

2001-11-29 Thread Kevin Garrett
Hi all, I have a script that lists directory contents but I'm trying to put the results in reverse order. I've tried the arsort array reverse but have so far been unable to get them working, can somebody please help me! Here's a look at my script:

[PHP] How to display one line from a file rather than the whole lot

2001-11-30 Thread Kevin Garrett
Hi guys, I'm looking to edit this to just return one particular line rather than the whole file: ?php // get a web page into an array and print it out $fcontents = file ('http://www.php.net'); while (list ($line_num, $line) = each ($fcontents)) { echo bLine $line_num:/b . htmlspecialchars