[PHP] search-and-highlight issue ("byt tes")

2003-06-21 Thread 457945
hello! i have a problem with a search-and-highlight script (see code below): a search for "byt tes" matches entries that contain "bytes" but only highlights "byt"*. *) because after the first search term ("byt") is found the line is modified into bytes and therefore the secound search term ("tes

Re: [PHP] search-and-highlight issue ("byt tes")

2003-06-21 Thread 457945
> And what about highlighting the whole word which contains the searched term. yes - like i said - this would be a solution: >> - or: displays entries that contain "bytes" and highlights "bytes" do you have any idea how to manage it? best wishes philipp www.ipdraw.org am 21.06.2003 12:57 Uhr

[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

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-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