Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

$QUERRY_STRING

 [1/12] from: moe::singapour::com at: 21-Oct-2003 20:15


sorry for my english a search for an equal fonctionality of $QUERY_STRING in PHP

 [2/12] from: carlos:lorenz:bol at: 21-Oct-2003 16:43


Do you mean system/options/cgi/query-string ? Carlos Em Ter 21 Out 2003 16:15, martin mauchauffee escreveu:

 [3/12] from: moe:singapour at: 22-Oct-2003 11:21


Sorry for my englsih I use the "DirectoryIndex" command in the rootfile ".htaccess" to redirect all the document like "DirectoryIndex /index.r" If the URL is http://sub.site.com/ or http://sub.site.com/foo/dir the loaded document is "index.r" then I need to determine the URL to do want I want

 [4/12] from: antonr:iinet:au at: 23-Oct-2003 0:39


Ah, you want to extract the "directory part" of the url ? http://sub.site.com/index.r -> http://sub.site.com/ http://sub.site.com/foo/dir/index.r -> http://sub.site.com/foo/dir/ Anton.

 [5/12] from: moe:singapour at: 22-Oct-2003 17:23


sorry for my english yes, exactly I want to extract all the path after the hostname

 [6/12] from: carlos:lorenz:bol at: 22-Oct-2003 14:17


Martin, I am very sorry too because I have not understood well Here it is:
>> url: http://www.lorenz.cim.br/cgi-bin/x.cgi
== http://www.lorenz.cim.br/cgi-bin/x.cgi
>> set [url index] split-path url
== [http://www.lorenz.cim.br/cgi-bin/ %x.cgi]
>> print index
x.cgi
>> print url
http://www.lorenz.cim.br/cgi-bin/ Carlos Lorenz Em Qua 22 Out 2003 13:23, martin mauchauffee escreveu:

 [7/12] from: moe:singapour at: 23-Oct-2003 10:34


Carlos Yes, and ( in your example, ) in the INDEX.R, I need a word that contains dir/dir1/dir for client1 and "dir/dir2/dir" for client2

 [8/12] from: moe:singapour at: 24-Oct-2003 18:55


Hi Carlos Yes it'a a solution, what did you do to make the redirection ? send header ? or with apache ?

 [9/12] from: carlos:lorenz:bol at: 24-Oct-2003 17:19


I used REBOL's CGI object. Look: at the page I named "referer.cgi" I put select system/options/cgi/other-headers "HTTP_REFERER" Did you see the source code of referer.cgi page? Carlos Em Sex 24 Out 2003 14:55, martin mauchauffee escreveu:

 [10/12] from: moe:singapour at: 27-Oct-2003 10:57


Hi Carols, yes, i see the source of referer.cgi, but what is the code in path1.cgi and path2.cgi ? Martin

 [11/12] from: carlos:lorenz:bol at: 27-Oct-2003 10:36


Hello Martin Here is the code of path1.cgi. Path2.cgi is just the same #!rebol -c REBOL [Title: "index"] print "content-type: text/html^/" print [<HTML><BODY>] print join newline "<BR>" print "This is just a test o redirection <BR><BR>" print {"<a href='http://www.revistaeletronica.com.br/cgi-bin/referer.cgi'>You are goin to REFERER.CGI using PATH1.CGI</a><br>} Carlos Em Seg 27 Out 2003 07:57, martin mauchauffee escreveu:

 [12/12] from: moe:singapour at: 27-Oct-2003 18:01


hi carlos ok i understand, for me i don't have path1.cgi or path2.cgi /dir/dir1/index.r or /dir/index.r /dir/dir2/dir/index.r or ... i just don't want to use a "GET parameter" but i must do it i want use the "DirectoryIndex" modification of Apache but i can't tanx for your patience martin