RE: [phplib] Site Linking From: Michael (ace <email protected>)
Date: 06/23/01

i think that we may have got our wires crossed on this one:

i don't neet a redirection basically what i want is to create a cgi or php
file that will store all my links for my website:

eg:

http:\\www.mysite/link01.html
http:\\www.mysite/link02.html
http:\\www.mysite/link03.html
http:\\www.mysite/link04.html

what i think should happen is each link will be given an ID number:

http:\\www.mysite/link01.html ID=01
http:\\www.mysite/link02.html ID=02
http:\\www.mysite/link03.html ID=03
http:\\www.mysite/link04.html ID=04

[these would be in the .cgi/.php file]

now on my website i would have links such as [for example the .cgi/.php is
called links.cgi]

http://www.mysite/links.cgi?ID=01
http://www.mysite/links.cgi?ID=02
http://www.mysite/links.cgi?ID=03
http://www.mysite/links.cgi?ID=04

and when the corresponding link is selected this would access the links.cgi
file and the visitor/user would be directed to the corresponding web page

i really need to do this as i will change file locations quite frequently
and will be very difficult for me to keep updating individual web pages

can you help me any more/further

thanx

-----Original Message-----
From: Dima Nemchenko [mailto:Dima.Nemchenko <email protected>]
Sent: 23 June 2001 21:09
To: phplib <email protected>
Subject: Re: [phplib] Site Linking

Michael wrote:

> this is probably more of a cgi based question but this is my last resort -
i
> cannot find the infomation anywhere else
>
> i'm pretty new to php and cgi and have been looking for a script that will
> enable me to link to other web pages
> for example: http://www.scriptsearch.com/cgi-bin/jump.cgi?ID=34
>
> what kind of script would the link above be used in? - i can't really
> explain it but this is the kind of script i want to use on my site
>
> from what i understand when a link on the web page is pressed it sends the
> variables http://www.scriptsearch.com/cgi-bin/jump.cgi?ID=34 to a jump.cgi
> script then the cgi script returns the user to the corresponding webpage..
> am i right - where can a find a script that will do this for me?
>
> if this can be done in php i would also be interested to find out how it
is
> done
>
> thanx
>

Hi Michael,

You can use header("Location: http://some.wesite.com/a_file.html") to
redirect
the browser.

Hope this helps,

--

:D_ima Dima Nemchenko <Dima.Nemchenko <email protected>>

"Open source code is like lobster--most people who haven't tried it don't like the way it looks. But those who try it, love it."

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>

--------------------------------------------------------------------- To unsubscribe, e-mail: phplib-unsubscribe <email protected> For additional commands, e-mail: phplib-help <email protected>