Alain Menard wrote:
> I clicked on the send button to fast...
>
> The part that i'm having problem with is the second part. Especially the one
> about the first string becomming a link to the corresponding URL.
>
> ""Alain Menard"" <[EMAIL PROTECTED]> wrote in message
> 9dv3k5$873$[EMAIL PROTECTED]">news:9dv3k5$873$[EMAIL PROTECTED]...
> > Hi!!
> >
> > I'm presently working on my personal web site and i would like to use PHP
> to
> > do the following :
> >
> > 1- Read a string in the following format from a text file :
> > string;url;integer;string
> > string;url;integer;string
> > string;url;integer;string
> > ...
> > string;url;integer;string
> >
> >
> > 2- Generate a page containing the resulting list in the following format :
> >
> > string integer string
> > string integer string
> > string integer string
> > ...
> > string integer string
> >
> > where the first string is a link to the corresponding url.
> >
> > Any help would be welcome at this point.
> > Thank you in advance...
> >
> > Alain Menard
As i am a newbie myself - i cannot sypply you with the complete code example.
I suggest that you look at some example code on how to parse a textfile.
You get your STRING linked you use it in a html HREF tag as follows:
<?
$url="http://www.altavista.com";
$msg="Altavista search";
?>
<a href="<? echo $url; ?>"> <? echo $msg; ?> </a>
The example above may not be the best solution, but i have tried it on my
installation and it works.
--
Michel Laine
CAUTION! In order to eliminate spam i have included 'NOSPAM' in my return
address.
To relpy directly to me please remove the NOSPAM in order for the reply to
propagate correctly.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]