Re: [PHP] how to include() N lines?

2003-09-03 Thread John W. Holmes
[EMAIL PROTECTED] wrote: This really begs the question of WTF you have a 10,000+ line file that you only need a couple lines from... seems like your logic is screwy. every time my script is executed a line is added to a given image. right now every image is saved as new file because it needs to re

Re: [PHP] how to include() N lines?

2003-09-03 Thread 457945
Am 03.09.2003 um 1:34 Uhr schrieb Chris W. Parker: > Another option would be to tweak the logic so that it's not so bloated. Am 03.09.03 um 01:38 Uhr schrieb John W. Holmes: > This really begs the question of WTF you have a 10,000+ line file that > you only need a couple lines from... seems like y

Re: [PHP] how to include() N lines?

2003-09-02 Thread John W. Holmes
[EMAIL PROTECTED] wrote: thanks for your answers! i'm not quite sure if i made my point clear. this is my problem: image.php include("database.php"); ImagePNG($image, '', 95); imagedestroy($image); ?> database.php instead of including the whole database.php i need to include only a given number

RE: [PHP] how to include() N lines?

2003-09-02 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, September 02, 2003 4:28 PM said: > instead of including the whole database.php i need to include only a > given number of lines, always starting with the first one. I don't think you're going to be able to do this in the way that you wa

Re: [PHP] how to include() N lines?

2003-09-02 Thread 457945
thanks for your answers! i'm not quite sure if i made my point clear. this is my problem: image.php database.php instead of including the whole database.php i need to include only a given number of lines, always starting with the first one. because database.php contains 10'000+ lines and the

Re: [PHP] how to include() N lines?

2003-09-02 Thread Matt Matijevich
[snip] i need to include() only a given amount of lines (the first 10 for example) instead of a whole file. [/snip] I have never tried it, but I think you could open up the file you want to include, import n lines into a variable, then use the eval function to turn that variable into php code. S

RE: [PHP] how to include() N lines?

2003-09-02 Thread Chris W. Parker
[EMAIL PROTECTED] on Tuesday, September 02, 2003 3:04 PM said: > i need to include() only a given amount of lines (the first 10 for > example) instead of a whole file. > > does someone know how this has to be done? Yes. Remove those first ten lines (assuming they a

[PHP] how to include() N lines?

2003-09-02 Thread 457945
hello! i need to include() only a given amount of lines (the first 10 for example) instead of a whole file. does someone know how this has to be done? thanks a lot for your effort, best regards philipp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.ne