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
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
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
>
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:
nal Message-
> From: Scott [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 4:02 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Stripping the first line of a file
>
>
> Hi,
>
> I want to be able to open a file and then strip the first
> line of it off.
&
Hi,
I want to be able to open a file and then strip the first line of it off.
Example, the first line contains the names for tables in a database and
all I need is from the second line on.
if I fopen a file can I strip the line or should I process it and then
drop the data from the first r
6 matches
Mail list logo