Re: I need help!!!

From: Date: Mon, 21 May 2001 13:45:21 +0000
Subject: Re: I need help!!!
References: 1 2  Groups: php.windows 
Request: Send a blank email to php-windows+get-7784@lists.php.net to get a copy of this message
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"" <menard.alain@videotron.ca> wrote in message > news:9dv3k5$873$1@toye.p.sourceforge.net... > > 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.

« previous php.windows (#7784) next »