On Mon, 22 Oct 2001 22:09:56 -0700, Nick Richardson wrote:
>Hey everyone,
>
>Anyone out there know how i could do this:
>
>I have a client who is an import car tuner. They would like to
>feature the
>cars they work on in their website. Instead of creating a new .html
>or .php
>file for every car
TECTED]>
Skickat: den 23 oktober 2001 07:20
Ämne: RE: [PHP] Matching strings in a flat/text file?
lots of ideas nick, but can you use a database? MySQL is free and i've found
its almost always better to use databases when you can...
if you can't, you could do something like this:
Nick Richardson wrote:
>
> ...
>
> Example: I want to pass a string using the URL (blah.php?car=civic_si) then
> search for ##civic_si in the text file, and print everything until it finds
> ##end. So the text file will look like this:
>
> ##civic_si
> This is my content, blah blah
> ##end
>
>
0:20 PM
To: [EMAIL PROTECTED]; Nick Richardson
Subject: RE: [PHP] Matching strings in a flat/text file?
lots of ideas nick, but can you use a database? MySQL is free and i've found
its almost always better to use databases when you can...
if you can't, you could do something like this:
1.
r from the first pos to the end (you'll need to add/subtract some
strlen's to slice off the delimiters as well...
jack
-Original Message-
From: Nick Richardson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 23, 2001 1:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Matching strings
Hey everyone,
Anyone out there know how i could do this:
I have a client who is an import car tuner. They would like to feature the
cars they work on in their website. Instead of creating a new .html or .php
file for every car they add to include the background setup, and the general
content (
6 matches
Mail list logo