Re: [PHP] URL hiding

2002-11-26 Thread Marco Tabini
t;[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 9:12 AM Subject: Re: [PHP] URL hiding > If index.php is the index page of your website, then you do not need to > specify it at all. > > i.e. www.whatever.com/index.php?uName=Kris > > is functionally equivalent to www

Re: [PHP] URL hiding

2002-11-26 Thread Kris
your help Kris - Original Message - From: "Marco Tabini" <[EMAIL PROTECTED]> To: "Kris" <[EMAIL PROTECTED]> Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 9:12 AM Subject: Re: [PHP] URL hiding > If index.php is

Re: [PHP] URL hiding

2002-11-26 Thread Marco Tabini
If index.php is the index page of your website, then you do not need to specify it at all. i.e. www.whatever.com/index.php?uName=Kris is functionally equivalent to www.whatever.com?uName=Kris A way to get rid of the variables passed in the query string is to use POST instead of GET as the method

Re: [PHP] URL Encode to send as form POSTed Items

2002-11-25 Thread Rasmus Lerdorf
You can't send POST data with a Location redirect. You can do it by connecting directly to port 80 of the remote server and sending the POST data. -R On Mon, 25 Nov 2002, Zac Hillier wrote: > Hi All, > > I would like to know if it's possible to use php to encode form variables as > if they had

RE: [PHP] url - self

2002-11-21 Thread Paul Dionne
Yep, that is what I was looking for. thanks, paul Jon Haworth wrote: > Hi Paul, > >> I just need to know how to get the url of the page >> calling the function so I can delete the information >> from the appropriate table. > > Does $PHP_SELF not give you what you're after? > > Cheers > Jon

RE: [PHP] url - self

2002-11-21 Thread Jon Haworth
Hi Paul, > I just need to know how to get the url of the page > calling the function so I can delete the information > from the appropriate table. Does $PHP_SELF not give you what you're after? Cheers Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

RE: [PHP] URL Rewriting

2002-09-23 Thread Jon Haworth
Hi Bill, > I've been using PHP for a couple of years now and only > recently (since upgrading to RH7.3) began to > experience an odd problem. When navigating around my > site or when I run HT://Dig across it the links are > suddenly being rewritten back as > http://my.dom.com/some_page?PHPSESSID

Re: [PHP] URL path question

2002-08-13 Thread Jason Reid
Its an IIS problem. With apache there are several ways, www.phpbuilder.com/columns/tim2526.php3 is IMO the best way, i currently use it on several sites. i think this would be what you need if it was apache you were working on Jason Reid [EMAIL PROTECTED] -- AC Host Canada www.achost.ca

Re: [PHP] Url of frame in php variable

2002-08-01 Thread patrick anderson
I would like to include a style sheet based on the url; the references to the style sheet are stored in MySQL. I guess the way to code this would be to use php to create the javascript code with the list of style sheets. thanks, patrick Justin French wrote: > the only way would be with java

Re: [PHP] Url of frame in php variable

2002-08-01 Thread Justin French
the only way would be with javascript, but remember, this would be done AFTER the page leaves the server (client side), so it will be quite messy. or you could try keeping track of what the sub-frame is doing with sessions... each time you change it's URL, update the session variable. or you cou

Re: [PHP] URL / slash reduction

2002-06-10 Thread YLA G - X-power.be
t;YLA G - X-power.be" <[EMAIL PROTECTED]> To: "Martin Towell" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 2:49 AM Subject: Re: [PHP] URL / slash reduction > :) :) great help thx mate!!! > > > now can everyone create a a

Re: [PHP] URL / slash reduction

2002-06-10 Thread YLA G - X-power.be
@ http://www.X-power.be Gamecube @ http://www.cube-power.be - Original Message - From: "Martin Towell" <[EMAIL PROTECTED]> To: "'YLA G - X-power.be'" <[EMAIL PROTECTED]> Sent: Tuesday, June 11, 2002 2:42 AM Subject: RE: [PHP] URL / slash redu

RE: [PHP] URL / slash reduction

2002-06-10 Thread John Holmes
sed within strings defined by ') Echo 'hello ' . $_GET['id'] . ' world'; Or... Echo "hello $_GET[id] world"; Etc...adapt to your needs... ---John Holmes... > -Original Message- > From: X-power.be [mailto:[EMAIL PROTECTED]] > Sent: Monday

RE: [PHP] URL / slash reduction

2002-06-10 Thread Martin Towell
it's because you've got single quotes inside single quotes... change $_GET['id'] to $_GET[id] -Original Message- From: X-power.be [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:04 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] URL / slash reduction the nic

Re: [PHP] URL / slash reduction

2002-06-10 Thread X-power.be
the nickname 'junni' was an example.. i have this now but its not working :( http://www.tuned-belgium.com/user/?id=/$_GET['id ']'); ?> http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname="> gives: Parse error: parse error in /usr/home/v1/a0016905/html/user/filter.php on line

RE: [PHP] URL / slash reduction

2002-06-10 Thread Dave
>this url is the one that i want for my users: > >http://user.tuned-belgium.be/junni > > >but go's now to > >http://www.tuned-belgium.com/user/?id=/junni (slash junni) > >but must go to > >http://www.tuned-belgium.com/user/?id=junni (without slash) > >how can i prevent or filter the slash away?

RE: [PHP] URL / slash reduction

2002-06-10 Thread Martin Towell
There's probably a single reg.ex. you could use, but I'm too lazy to figure that one out. But try this instead (not tested though) $str = "http://www.tuned-belgium.com/user/?id=/junni"; $tmp = explode("?", $str); $tmp[1] = str_replace("/", "", $tmp[1]; $str = implode("?", $tmp); -Original M

RE: [PHP] url string

2002-06-10 Thread Leotta, Natalie (NCI/IMS)
Instead of window.location, try document.formName.target = "file.php?params" - that's how I have mine set up and it works well. You need to follow that with document.formName.submit() -Natalie -Original Message- From: Kris Vose [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 4:41

Re: [PHP] URL for "Powered by PHP" gif

2002-04-19 Thread Jason Wong
On Saturday 20 April 2002 06:46, Todd Cary wrote: > Can someone provide me with the URL for a gif that I can place on my pages > so that I can give credit to PHP (Apache would be nice too). Presumably you've already looked on www.php.net? You can get the PHP logo and a "Powered by Zend" logo usi

RE: [PHP] URL information into a variable

2002-03-22 Thread J. Scott Johnson
Here you go: Scott -Original Message- From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]] Sent: Friday, March 22, 2002 9:08 PM To: [EMAIL PROTECTED] Subject: [PHP] URL information into a variable How do I take the current URL and turn it into a variable? THANKS!! Phil -- PHP Gener

Re: [PHP] URL information into a variable

2002-03-22 Thread Justin French
Hi, This really is pretty easy to find in the manual. I believe you'd want either $PHP_SELF or $REQUEST_URI, both documented here: http://www.php.net/manual/en/reserved.variables.php Justin French - http://indent.com.au http://soundpimps.com http://hinge.net.au Phil Sc

RE: [PHP] URL encoding

2002-02-13 Thread Jill . Baker
Okay - looks like you are using a weird character mapping. Let's be clear about the names of encoding standards, so we don't get confused. There is no such thing as "ASCII 0222". ASCII characters are seven bits wide. Period. Their range is hex 00 to 7F. Anything outside of that range is, by defi

Re: [PHP] URL Parsing Help

2002-01-29 Thread Shane Lambert
Actually, I found a simpler way: $vars = str_replace("/","&",$PATH_INFO); parse_str($vars); But thanks for your help... Christopher William Wesley wrote: > $myPairs = explode( "/", $PATH_INFO ); > while( list( $key, $val ) = each( $myPairs ) ){ > if( !empty( $val ) ){ > $my

Re: [PHP] URL Parsing Help

2002-01-29 Thread Christopher William Wesley
$myPairs = explode( "/", $PATH_INFO ); while( list( $key, $val ) = each( $myPairs ) ){ if( !empty( $val ) ){ $myVar = explode( "=", $val ); ${$myVar[0]} = $myVar[1]; } } For you example URI, "index.php/option=contact/step=view" you would then have $

Re: [PHP] url exist?

2001-11-15 Thread jtjohnston
Yeah ... but you have to install the package. Thanks for the thought though. :) I'd looove to ask my admin ... but I know what his answer is/was/will be/would be :) always is. Chris Hobbs wrote: > Looks like you might be able to use the cURL extensions >

Re: [PHP] url exist?

2001-11-15 Thread jtjohnston
Thanks. Andrew Kirilenko wrote: > Hello! > > The simpliest way: > $f = @fopen("http://foobar.baz/somefile.ext";, "r"); > if ($f) > { > fclose($f); > echo "exists!" > } > else > { > echo "no exists!" > } > > Best regards, > Andrew Kirilenko. > > > -Original Message

Re: [PHP] url exist?

2001-11-15 Thread Chris Hobbs
Looks like you might be able to use the cURL extensions - there's a function called curl_getinfo which returns an array which includes http_code - you could check the value of that to see whether the file was available (http_code == 200), not found (

RE: [PHP] url exist?

2001-11-15 Thread Andrew Kirilenko
Hello! The simpliest way: $f = @fopen("http://foobar.baz/somefile.ext";, "r"); if ($f) { fclose($f); echo "exists!" } else { echo "no exists!" } Best regards, Andrew Kirilenko. > -Original Message- > From: jtjohnston [mailto:[EMAIL PROTECTED]] > Sent: Friday, Nov

Re: [PHP] url extracting

2001-11-12 Thread Matt McClanahan
On Mon, Nov 12, 2001 at 04:42:08PM -, Caspar Kennerdale wrote: > I am yrying to read free urls from a moreover.com to a director app which > will be a news reader without a browser > > 'm using php top extrat the headlines > > each headline looks similar to this > > ("http://c.moreover.com

RE: [PHP] Url Length Limitations?

2001-11-12 Thread Daniel Kushner
You can try this class for POSTing: http://phpclasses.upperdesign.com/browse.html/package/375 --Daniel > -Original Message- > From: Valentin V. Petruchek [mailto:[EMAIL PROTECTED]] > Sent: Monday, November 12, 2001 7:05 AM > To: [EMAIL PROTECTED] > Subject: [PHP] Url Length Limitations

Re: [PHP] Url Length Limitations?

2001-11-12 Thread l0t3k
Valentin, actually if you use ICS (Francois Piettes components), you can POST as well. im doing that in a project im working on just this moment. you should be able to find his component set at Torry's ( www.torry.ru ) Valentin V. Petruchek <[EMAIL PROTECTED]> wrote in message 009501c16b75$0

RE: [PHP] Url Length Limitations?

2001-11-12 Thread Christoph Starkmann
Hi! > Is there any limitation for length of url like this > accept.php?set=qwerty... Depends on the OS/Server, but you'll have to consider one to exist... > What is the maximum $set length i can pass to script as a parameter? Why don't you use POST? With POST, there is not limitation... Cheer

RE: [PHP] URL variables

2001-10-24 Thread Martin Towell
try $QUERY_STRING -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 5:13 AM To: PHP General Subject: [PHP] URL variables How do I reference URL variables..? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

Re: [PHP] URL security...? (correction ignore my last post)

2001-09-13 Thread Ben . Edwards
"Seb Frost" <[EMAIL PROTECTED]>, [EMAIL PROTECTED] cc: Subject: Re: [PHP] URL security...? "Seb Frost" <[EMAIL PROTECTED]> on 13/09/2001 11:36:54 To: <[EMAIL PROTECTED]> cc: Subject: [PHP] URL security...? ok I know if I have a URL like /images/$fileName

Re: [PHP] URL security...?

2001-09-13 Thread Ben . Edwards
If the page they type on the URL is available it will be displayed. Security is the remit of the web server not (realy) PHP. However what i do is have a is_logged_in function which uses session varable. Something like if ( is_logged_in() ) { ... do stuff } esle { display_error( 's

Re: [PHP] URL Rewrite Problems...

2001-08-13 Thread Tyler Longren
You forgot to add a method=POST into your tag. Tyler Longren Captain Jack Communications [EMAIL PROTECTED] www.captainjack.com On Mon, 13 Aug 2001 09:35:39 -0500 "Brendan P. Caulfield" <[EMAIL PROTECTED]> wrote: > Hello Everyone, > > I have recently written a script to change htpasswd via a

Re: [PHP] url without a query string?

2001-07-09 Thread teo
Hi Jon! On Mon, 09 Jul 2001, Jon Yaggie wrote: > the problem > > i have a page that uses a query string to determine content. ie > index.php?id=2 in this page there is a link to a memebership area that > uses a remote service. this service requires that thee be the exact > same refering url.

Re: [PHP] url without a query string?

2001-07-08 Thread James Tan
t; fix one bug, compile it again > 101 little bugs in the code > > 101 little bugs in the code . . .' > > And it continued until they reached 0 > > > - Original Message ----- > From: "James Tan" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]>

RE: [PHP] url without a query string?

2001-07-08 Thread Don Read
On 09-Jul-01 Jon Yaggie wrote: > the problem > > i have a page that uses a query string to determine content. ie > index.php?id=2 in this page there is a link to a memebership area that uses > a remote service. this service requires that thee be the exact same > refering url. is the refering

Re: [PHP] url without a query string?

2001-07-08 Thread Jon Yaggie
until they reached 0 - Original Message - From: "James Tan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 12:37 PM Subject: Re: [PHP] url without a query string? > hie... > if i'm not wrong.. u could try using session :

Re: [PHP] url without a query string?

2001-07-08 Thread James Tan
ED]> > To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> > Sent: Monday, July 09, 2001 11:37 AM > Subject: RE: [PHP] url without a query string? > > > > Yikes. Popups and porn. > > > > Anyhoo, I guess I can't help

Re: [PHP] url without a query string?

2001-07-08 Thread another programmer
What are the requirements? Can you allow JS code? Meta refresh tags? - Original Message - From: "Jon Yaggie" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 2:22 PM Subject: [PHP] url without a query string? the problem i have a page that uses a query string t

Re: [PHP] url without a query string?

2001-07-08 Thread Jon Yaggie
i have nothing to do with the popup stuff :) - Original Message - From: "Ben Bleything" <[EMAIL PROTECTED]> To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 11:37 AM Subject: RE: [PHP] url wit

RE: [PHP] url without a query string?

2001-07-08 Thread Ben Bleything
Yikes. Popups and porn. Anyhoo, I guess I can't help you. I just don't know enough about the inner workings of http. Sorry => Ben -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 9:34 PM To: [EMAIL PROTECTED] Subject: Re: [PHP

Re: [PHP] url without a query string?

2001-07-08 Thread Jon Yaggie
code . . .' And it continued until they reached 0 - Original Message - From: "Ben Bleything" <[EMAIL PROTECTED]> To: "'Jon Yaggie'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, July 09, 2001 11:25 AM Subject: RE: [PHP] url without a

RE: [PHP] url without a query string?

2001-07-08 Thread Ben Bleything
A shot in the dark would be to use HTTP Post instead of Get... but, I don't know http. -Original Message- From: Jon Yaggie [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 9:22 PM To: [EMAIL PROTECTED] Subject: [PHP] url without a query string? the problem i have a page that uses

RE: [PHP] URL Variables

2001-05-22 Thread Chadwick, Russell
Variables as part of the url would not be encrypted, but you could send variables as POST to the secure document and then they would get encrypted - Russ --- Toolshed Computer Productions - Professional PHP Hosting Hosting - Dedicated Servers - Design - Programming http://www.toolshed5

Re: [PHP] URL redirection

2001-05-07 Thread Christian Reiniger
On Monday 07 May 2001 20:04, elias wrote: > > location = "hello-world.htm"; > > > can be used even if header is already sent! But only works if (a) the browser supports Javascript, (b) supports this JS construct and (c) has Javascript enabled. -- Christian Reiniger LGDC Webmaster (http://sun

RE: [PHP] URL redirection

2001-05-07 Thread Matthew Luchak
http://www.somewhere.com/index.php";); exit; ?> Matthew Luchak Webmaster Kaydara Inc. [EMAIL PROTECTED] > Hi, > > Is there a PHP function that will redirect the current page to another url? -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] URL redirection

2001-05-07 Thread elias
location = "hello-world.htm"; can be used even if header is already sent! -elias www.eassoft.cjb.net "Jamie Saunders" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > Is there a PHP function that will redirect the current page to another url? > > e

RE: [PHP] URL redirection

2001-05-06 Thread Tyler Longren
if ($varTwo == $varOne) { header('Location: http://www.location.com/page.html'); } else { echo "You stay right where you are!"; } Tyler > -Original Message- > From: Jamie Saunders [mailto:[EMAIL PROTECTED]] > Sent: Sunday, May 06, 2001 5:21 PM > To: [EMAIL PROTECTED] > S

Re: [PHP] URL redirection

2001-05-06 Thread Markus Fischer
header( 'Location: rediret_me_here.php'); - Markus - Original Message - From: "Jamie Saunders" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, May 07, 2001 12:20 AM Subject: [PHP] URL redirection > > Hi, > > Is there a PHP function that will redirect the current page to anothe

Re: [PHP] URL Encode >

2001-04-09 Thread info
D]>; <[EMAIL PROTECTED]> Sent: Monday, April 09, 2001 4:12 PM Subject: Re: [PHP] URL Encode > > In one page from a series of pages where I am building arrays for future > use: > > $item4_array = urlencode (serialize ($item4_array)); > echo ""; > ---

Re: [PHP] URL Encode >

2001-04-09 Thread Christopher Allen
In one page from a series of pages where I am building arrays for future use: $item4_array = urlencode (serialize ($item4_array)); echo ""; --- On my last page I send an email so I need the info that was stored: $item4_array = unserialize(urldecode($item4_array)); $message .=" DIMS: L $item4_a

RE: [PHP] URL FROM IP

2001-04-09 Thread trogers
know why !! > > > -Mensaje original- > > De: trogers [SMTP:[EMAIL PROTECTED]] > > Enviado el: lunes 9 de abril de 2001 10:41 > > Para: [EMAIL PROTECTED] > > Asunto: Re: [PHP] URL FROM IP > > > > Hi > > > > Try > > > > $url = getH

RE: [PHP] URL w/o script name

2001-04-09 Thread PHPBeginner.com
r.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jason Lotito [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 12:28 AM To: [EMAIL PROTECTED]; elias Cc: [EMAIL PROTECTED] Subject: RE: [PHP] URL w/o script name > -Original

RE: [PHP] URL FROM IP

2001-04-09 Thread Renzi, Sebastian
this code returns the ip too ! i dont know why !! > -Mensaje original- > De: trogers [SMTP:[EMAIL PROTECTED]] > Enviado el: lunes 9 de abril de 2001 10:41 > Para: [EMAIL PROTECTED] > Asunto: Re: [PHP] URL FROM IP > > Hi > > Try > >

RE: [PHP] URL w/o script name

2001-04-09 Thread PHPBeginner.com
rom: Jason Lotito [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 10, 2001 12:28 AM To: [EMAIL PROTECTED]; elias Cc: [EMAIL PROTECTED] Subject: RE: [PHP] URL w/o script name > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 09, 2001

Re: [PHP] URL FROM IP

2001-04-09 Thread trogers
Hi Try $url = getHostByAddr($REMOTE_ADDR); Tom At 10:17 AM 9/04/01 -0300, Renzi, Sebastian wrote: >Having the ip i want to obtain de URL (www.renzi.com.ar) > >Thank You very much ! > >Sebastián Renzi >Consultoría & Desarrollo de Sistemas. >CODES S.A > > >-- >PHP General Mailing List (http://ww

RE: [PHP] URL w/o script name

2001-04-09 Thread Jason Lotito
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 09, 2001 4:50 AM > To: elias > Cc: [EMAIL PROTECTED] > Subject: Re: [PHP] URL w/o script name > > > > and sometimes i see: > > > > www.site.com/?asdasd

Re: [PHP] URL w/o script name

2001-04-09 Thread mailing_list
> Hello. > > I have no idea in Linux systems yet nor in Web Servers configurations and > stuff, and now I wonder: > > www.php.net/asdfadasdasd > > who takes control if i didn't specify a script name in the url? the web-server if you access www.php.net/asdfadasdasd (and the directory DOES exist

Re: [PHP] URL parsing

2001-03-25 Thread Jaxon
whups, sorry - here is the example: I want to turn URI's like: /script.php/main/index.html?junk=junk /script.php/main/index.html// /script.php/main/index.html?? all into: /script.php/main/index.html best regards, jaxon On 3/25/01 9:25 PM, "Aaron Tuller" <[EMAIL PROTECTED]> wrote: > why can'

Re: [PHP] URL parsing

2001-03-25 Thread Aaron Tuller
why can't you str_replace the $QUERY_STRING frm the $REQUEST_URI? give an example of what you are trying to do? (I'm sorry if you did and I missed it) -aaron At 9:06 PM -0500 3/25/01, Jaxon wrote: >K, read em all, and understood more than I thought I :) > > >I still don't see how you can 'san

Re: [PHP] URL parsing

2001-03-25 Thread Jaxon
K, read em all, and understood more than I thought I :) I still don't see how you can 'sanitize' a URI, eg discard anything including and after "//" or "??". I think this is needed if you want to discard a query string or irregular syntax from your URI. ereg's don't work reliably, due to the p

Re: [PHP] URL parsing

2001-03-25 Thread Philip Olson
Hi! Check out these two related articles (and user comments) : Building Dynamic Pages With Search Engines in Mind : * http://phpbuilder.com/columns/tim19990117.php3 * http://phpbuilder.com/columns/tim2526.php3 Also c

Re: [PHP] URL parsing

2001-03-25 Thread Jaxon
oops :) http://www.domain.com/index.php/main/index.html?ii=1 versus http://www.domain.com/index.php/main/index.html I want to get "index.html" and "main" into variables, as the two items will always be present - if $ii is set, I want to strip it from the URI before parsing the items out. I supp

Re: [PHP] URL parsing

2001-03-25 Thread CC Zona
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Jaxon) wrote: > Any way to combine both forms of url parsing? > I want to use standard slash notation for navigation ,but also account for > the occasional variable used within a single page. > > e.g. URL can be either: > domain.com/index.php/m

Re: [PHP] URL parsing

2001-03-25 Thread Jaxon
Any way to combine both forms of url parsing? I want to use standard slash notation for navigation ,but also account for the occasional variable used within a single page. e.g. URL can be either: domain.com/index.php/main/index.html?ii=1 or: domain.com/index.php/main/index.html?ii=1 if (isset(

Re: [PHP] URL parsing

2001-03-23 Thread Jaxon
Oh wait, just do this in my page : URL -> index.php/main/1/pagename.html $path_array = explode('/', $REQUEST_URI); $tpl = $path_array[0]; $ii = $path_array[1]; $pagename = $path_array[2]; that works - sorry for being obtuse. regards, jaxon On 3/23/01 9:30 PM, "Jaxon" <[

Re: [PHP] URL parsing

2001-03-23 Thread Jaxon
Well assuming that this: index.php/tpl/main/ii/1/pagename/name.html is representative of this: index.php?tpl=main&ii=1$pagename=name.html then: $path_array = explode('/', $REQUEST_URI); $numPathElements = count($path_array); gives me: $path_array[0] = tpl $path_array[1] = mai

Re: [PHP] URL parsing

2001-03-23 Thread Aaron Tuller
super easy. $path_array = explode('/', $REQUEST_URI); $numPathElements = count($path_array); then loop through the elements and do what you need, you might need to use strtok() if you're expecting slashes in your arguments. -aaron At 8:58 PM -0500 3/23/01, Jaxon wrote: >how about parsing a ur

Re: [PHP] URL parsing

2001-03-23 Thread Jaxon
how about parsing a url from passing variables like : test.php/op/3/op2/6/pagename.html cannot this be parsed, to let search engines spider past the "?" properly? regards, jaxon On 3/23/01 7:46 PM, "Richard Lynch" <[EMAIL PROTECTED]> wrote: > I think you can change the separator in php.ini, a

Re: [PHP] URL parsing

2001-03-23 Thread Richard Lynch
I think you can change the separator in php.ini, and for sure you could do it by hand using $PATH_INFO or something. Personally, my first question would be if the new "standard" is actually being used or supported by anybody else... -- Visit the Zend Store at http://www.zend.com/store/ Wanna hel

Re: [PHP] URL / address

2001-03-15 Thread Aviv Revach
Hey! You could easily use the Environment Variables. echo "http://$HTTP_HOST/$PATH_INFO"; will do the trick.. Best Regards - Aviv Revach At 13:45 15/03/01 +0100, Geer wrote: >Hi there, > >Does anyone know how I can read the address of URL the user filled in in >his/her browser???

RE: [PHP] URL / address

2001-03-15 Thread Matt Williams
> Does anyone know how I can read the address of URL the user filled in in > his/her browser??? I presume you mean when asking for page on your server. $REQUEST_URI see. http://uk.php.net/manual/en/language.variables.predefined.php for more details and others M@ -- PHP General Mailing Li

Re: [PHP] (URL Translating) Apache, PHP, and the love of itall.... well, maybe not.

2001-03-03 Thread Aaron Tuller
that's easy. don't redirect, just do an include() on the PHP file you actually want, or if you're using some fancy caching system and alrady have the output in a file, do a readfile(). then use Apache's ForceType. I think it's like: ForceType application/x-httpd-php something like that.

Re: [PHP] (URL Translating) Apache, PHP, and the love of it all.... well, maybe not.

2001-03-03 Thread Yasuo Ohgaki
> I'm going to start with a nice simple, hopefully, questions. > > Some of you may have seen PCWorld.com - and its urls that are like > http://www.pcworld.com/news/view/0,aid,3911,00.asp. This is achieved with a > product called XCache (for IIS, visit www.xcache.com), wich translates this > url in

RE: [PHP] URL Encode

2001-02-10 Thread PHPBeginner.com
UrlEncode() www.php.net/urlencode Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: David Smith [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 10, 2001 6:50 AM To: PHP Li

RE: [PHP] URL Encode

2001-02-09 Thread Boget, Chris
> I know this have been covered before but I can't find it in > my thousands of emails... How would I URL Encode the following... > I am retrieving a variable like but > for example if it is Hilton Head Island I need it to add the > + signs as Hilton+Head+Island so Netscape won't crash. Funny

Re: [PHP] url hide

2001-01-23 Thread Kristofer Widholm
To follow up: This is definitely the most low-tech (read reliable) way to do it. Just to clarify what Jørg is saying, create a frameset with two horizontal frames. The upper frame should be set to a height of "0", or "*", whatever your preference. The bottom frame should be given a height of "100

Re: [PHP] url hide

2001-01-22 Thread Vahan Yerkanian
Greetings, the only way which comes to my mind now is to use a stub , e.g. http://www.foo.co.uk/house-search/> this works 100%, though could sound weird at first. HTH, -- Vahan Yerkanian Email: [EMAIL PROTECTED] Leading Web Developer / Designer Phone: (374) 158-

Re: Re: [PHP] url hide

2001-01-22 Thread Chris Carbaugh
Put the url you want hidden in a frame. Chris On Mon, 22 Jan 2001, AJDIN BRANDIC wrote: > Date: Mon, 22 Jan 2001 10:44:06 + (GMT) > To: [EMAIL PROTECTED] > From: AJDIN BRANDIC <[EMAIL PROTECTED]> > Subject: Re: [PHP] url hide > > OK, I don't have access to th

RE: [PHP] url hide

2001-01-22 Thread Pete Lavetsky
ECTED] Subject: Re: [PHP] url hide Hi AJDIN! On Mon, 22 Jan 2001, AJDIN BRANDIC wrote: > OK, I don't have access to the server (except ftp). All I can use is PHP > or JavaScript. I just thought that I could use some thing that will just > hide it. Like that NoRightClick javascript scri

Re: [PHP] url hide

2001-01-22 Thread Teodor Cimpoesu
Hi AJDIN! On Mon, 22 Jan 2001, AJDIN BRANDIC wrote: > OK, I don't have access to the server (except ftp). All I can use is PHP > or JavaScript. I just thought that I could use some thing that will just > hide it. Like that NoRightClick javascript script where if you try to > view the source

Re: [PHP] url hide

2001-01-22 Thread Eric Dahnke
I just asked a similar question two hours ago, and would like to express my interest in this same question. Sorry it for a no answer response. AJDIN BRANDIC wrote: > Perhaps not related to php but I was wandering, is it possible to hide > site's real url and replace it with something else (

RE: [PHP] url hide

2001-01-22 Thread Matt Williams
ry 2001 10:40 > To: AJDIN BRANDIC; [EMAIL PROTECTED] > Subject: Re: [PHP] url hide > > > I saw this done with a frameset recently. The domain blah.com had > a frameset > which opened the real page (at www.hotel.com/blahblah ) in a frame. > > -J > - Original Message

Re: [PHP] url hide

2001-01-22 Thread AJDIN BRANDIC
OK, I don't have access to the server (except ftp). All I can use is PHP or JavaScript. I just thought that I could use some thing that will just hide it. Like that NoRightClick javascript script where if you try to view the source code of a page it stops you but you can still use View/Sour

Re: [PHP] url hide

2001-01-22 Thread Jørg V . Bryne
I saw this done with a frameset recently. The domain blah.com had a frameset which opened the real page (at www.hotel.com/blahblah ) in a frame. -J - Original Message - From: "AJDIN BRANDIC" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 22, 2001 11:30 AM Subject: [PHP]

Re: [PHP] url hide

2001-01-22 Thread bard
If you're using apache, try mod_rewrite. I'm pretty sure you have to run something on the server side to do this. JavaScript runs client-side and will therefore be useless. Cheers, Brad On Mon, 22 Jan 2001, AJDIN BRANDIC wrote: > Perhaps not related to php but I was wandering, is it possible

<    1   2   3