RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Scott
Thanks Jerry! In perl I was doing this: printf NEW ("%-193.193s"); Which I just read the manual and discovered it works in PHP as well. Basically prints 193 spaces to make sure the line is 255 after I filled the line with other characters. On Fri, 8 Feb 2002, Jerry Verhoef (UGBI) wrote

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
the > perl Example? > > HTH > Jerry > > -Original Message- > > From: Scott [mailto:[EMAIL PROTECTED]] > > Sent: Friday, February 08, 2002 4:22 PM > > To: Jerry Verhoef (UGBI) > > Cc: [EMAIL PROTECTED] > > Subject: RE: [PHP] Stripping the first l

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
Friday, February 08, 2002 4:22 PM > To: Jerry Verhoef (UGBI) > Cc: [EMAIL PROTECTED] > Subject: RE: [PHP] Stripping the first line of a file > > > Thank you! Works. I have a few more questions! I am working on > converting a program from perl to PHP as it is the new >

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Scott
Thank you! Works. I have a few more questions! I am working on converting a program from perl to PHP as it is the new language of choice at our office. I have been using printf statements in perl to format data. Is there a similar funtion in php? Here is an example from the perl program:

RE: [PHP] Stripping the first line of a file

2002-02-08 Thread Jerry Verhoef (UGBI)
Use $aFile=file(); //$aFile[0] contains the unwanted line echo $aFile[1]; // displays line 2 echo $aFile[n]; // displays line n where n is an positieve interger and not greater then the number of lines in the file http://www.php.net/manual/en/function.file.php HTH Jerry > -Original Mes