[PHP] - Hard return in readfile

2001-05-16 Thread Ray Iftikhar

I have many text files stored on my server. I call them use using the 
readfile function. While that works great, it seems to over-write the hard 
returns. This has hurt the format and readability of my information.

ie.
text file:
This is
a

test

output:
This is a test

is there someway to get readfile to recognize returns in the file?
Thanks in Advance..
Ray
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] displaying string combinations

2001-04-20 Thread Ray Iftikhar

hello,
I have a bunch of "Banner" strings (ie. $banner1, $banner2, $banner3,
$banner4). I have another set of "random" strings that randomly generate a
value 1-4 ($RandBanner1, $RandBanner2, $RandBanner3,$RandBanner4). Now I
want to display $banner1-4 randomly. I plan on doing this by:
print "$banner".$RandBanner1;
but that doesnt seem to work...Anyone got any other suggestions?
Any help is greatly appricaited.
Thanks in advance,
Ray


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] - printing 2 dim. array

2001-01-21 Thread Ray Iftikhar

Hello,
I have a file...its contents are as follows:
Name of person1, string1
Name of person, string
Name of person, string
Name of person, string
Name of person, string

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] [php] - alphabetizing

2001-01-21 Thread Ray Iftikhar

Hello,
I was just typing a msg and accidentally hit send before I could
finish.. sorry..

I have a file, its contents are as follows:

Name of person1, string1
Name of person2, string2
Name of person3, string3
Name of person4, string4
Name of person5, string5

I want to alphabetize the list from A-Z (using the first column as the
primer key). I was planng on using an array, but I would have to use a 2
dimensional array and I am not too swift on those..

Thanx,
Ray..


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]