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 definition, not ASCII. The eight-bit wide encodings, such as
Latin-1 will contain some extra characters in the range 80 to FF, but note
that characters in the range 80 to 9F are known as C1-Control characters.
These are not printable.

Micro$oft stuffed a few extra printable characters in the 80 to 9F range.
Web pages containing such characters will display on MSIE but not on
Netscape. etc. (because Netscape is behaving itself and MSIE isn't).

My advice is stick to the Unicode encoding throughout. In Unicode, uppercase
thorn is 0xDE and lowercase thorn is 0xFE. (This explains the %DE you were
getting). To make uppercase thorn appear correctly on ALL web browsers,
write it as Þ (Since 222 is decimal for hex DE. Newer web browsers will
also understand Þ).

In other words, it should NOT be %80 or %81. These character are unspecified
control characters (both listed as XXX) in the Unicode standard.


>I am trying to url encode special Icelandic charaters such as ("þ" ASCII
>0222 or  the Latin Letter "Thorn") if you are able to see it but it
>should be printed out as 
>%80 or %81 dependes on upper or lowercase, but it is printed out as
>"%DE" but not as before sayd %80 or numerical value, somhow the mac
>skrews those letters up so I would really like to hear from some one who
>knows how to fix this problem.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 PM
To: [EMAIL PROTECTED]
Subject: [PHP] url string


I am looking for a way to pass two variables in a url string to a php
script.  I originally was using java script to acomplish this because once
the user is redirected they can not press the back button to get back to the
original page.  It looks like this: ?>  window.location =
"somefile.php?user=&pass="
 window.location =
'somefile.php?user=$username&pass=$userpass'";

Unfortunately both ways do not work.  In the first instance the script jumps
to the window location but does not pass php variables into the url string.
In the second instances the java script does not even compile.

Is there a way to do this with php?...html?...javascript?

...I think that window.location does not except url string variables or
something.  Anyway if anyone can help it would be appreciated.  Thanks.


Kris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]



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/click/here.pl?l27536670";)
> 
> 
> If a browser goes to this page then it is redirected to the appropriate page
> ie www.newssite.com/etc/etc/etc
> 
> Director does not interpret the redirection.
> 
> Can anyone think of a way for a script to go the to the moreover link and
> then return the 'real url as a variable or as an array of links (if multiple
> headlines are required

You can open a socket to the web server with PHP and grab the Location
header from the response.

See the fsockopen() man page for examples, or sendtohost.txt for a
simple function to handle passing the right headers.

http://www.php.net/manual/en/function.fsockopen.php
http://dodds.net/~cardinal/sendtohost.txt

Matt

-- 
PHP General 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]




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, November 16, 2001 9:16 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] url exist?
> 
> 
> Any way of finding out if this exists?
> 
> http://www.somewhere.com/image.jpg
> 
> if yes {} else {};
> 
> 
> -- 
> PHP General 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]
> 

-- 
PHP General 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]




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 (http_code == 404), or whatever 
().

Have fun!

jtjohnston wrote:

>Any way of finding out if this exists?
>
>http://www.somewhere.com/image.jpg
>
>if yes {} else {};
>
>



-- 
PHP General 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]




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-
> > From: jtjohnston [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, November 16, 2001 9:16 AM
> > To: [EMAIL PROTECTED]
> > Subject: [PHP] url exist?
> >
> >
> > Any way of finding out if this exists?
> >
> > http://www.somewhere.com/image.jpg
> >
> > if yes {} else {};
> >
> >
> > --
> > PHP General 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]
> >


-- 
PHP General 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]




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
>  - 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 (http_code == 404), or whatever
> ().
>
> Have fun!
>
> jtjohnston wrote:
>
> >Any way of finding out if this exists?
> >
> >http://www.somewhere.com/image.jpg
> >
> >if yes {} else {};
> >
> >


-- 
PHP General 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]




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 enough, the function you are looking for is:

urlencode();

The docs are your friend.

Chris



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 List Post
Subject: [PHP] URL Encode


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.

Thanks...


-- 
PHP General 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]




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 to hide 
> site's real url and replace it with something else (some other URL).  ie. 
> someone clicks on a link on www.blah.co.uk which takes the user to an 
> designated area (ie. /house-search/) on www.foo.co.uk.  I want 
> the user still to see www.blah.co.uk. This is just for aesthetic reasons 
> since ones the user finishes the search for houses (on 
> www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk. 
> 
> I have tried www.javascripts.com but no success??
> 
> Thanks
> 
> Ajdin
> 
> 


-- 
PHP General 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]




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] url hide


> Perhaps not related to php but I was wandering, is it possible to hide
> site's real url and replace it with something else (some other URL).  ie.
> someone clicks on a link on www.blah.co.uk which takes the user to an
> designated area (ie. /house-search/) on www.foo.co.uk.  I want
> the user still to see www.blah.co.uk. This is just for aesthetic reasons
> since ones the user finishes the search for houses (on
> www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk.
>
> I have tried www.javascripts.com but no success??
>
> Thanks
>
> Ajdin
>
> --
> PHP General 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]
>


-- 
PHP General 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]




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/Source Code option on your main menu to view the code.

Thanks

Ajdin


On Mon, 22 Jan 2001, bard wrote:

> 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 to hide 
> > site's real url and replace it with something else (some other URL).  ie. 
> > someone clicks on a link on www.blah.co.uk which takes the user to an 
> > designated area (ie. /house-search/) on www.foo.co.uk.  I want 
> > the user still to see www.blah.co.uk. This is just for aesthetic reasons 
> > since ones the user finishes the search for houses (on 
> > www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk. 
> > 
> > I have tried www.javascripts.com but no success??
> > 
> > Thanks
> > 
> > Ajdin
> > 
> > 
> 
> 

-- 
PHP General 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]




RE: [PHP] url hide

2001-01-22 Thread Matt Williams







http://www.foo.co.uk">



your browser does not support frames - click http://www.oozoo.co.uk">here to go to http://www.blah.co.uk">http://www.blah.co.uk





> -Original Message-
> From: Jørg V. Bryne [mailto:[EMAIL PROTECTED]]
> Sent: 22 January 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 -
> From: "AJDIN BRANDIC" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, January 22, 2001 11:30 AM
> Subject: [PHP] url hide
>
>
> > Perhaps not related to php but I was wandering, is it possible to hide
> > site's real url and replace it with something else (some other
> URL).  ie.
> > someone clicks on a link on www.blah.co.uk which takes the user to an
> > designated area (ie. /house-search/) on www.foo.co.uk.  I want
> > the user still to see www.blah.co.uk. This is just for aesthetic reasons
> > since ones the user finishes the search for houses (on
> > www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk.
> >
> > I have tried www.javascripts.com but no success??
> >
> > Thanks
> >
> > Ajdin
> >
> > --
> > PHP General 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]
> >
>
>
> --
> PHP General 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]
>


-- 
PHP General 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]




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 (some other URL).  ie. 
> someone clicks on a link on www.blah.co.uk which takes the user to an 
> designated area (ie. /house-search/) on www.foo.co.uk.  I want 
> the user still to see www.blah.co.uk. This is just for aesthetic reasons 
> since ones the user finishes the search for houses (on 
> www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk. 
> 
> I have tried www.javascripts.com but no success??
> 
> Thanks
> 
> Ajdin


-- 
PHP General 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]




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 code of a page it stops you but you can still use 
> View/Source Code option on your main menu to view the code.
> 
have a look on how it is implemented on http://www.ravantivirus.com. [0 size
frame ]
Done it recently :)

-- teodor

-- 
PHP General 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]




RE: [PHP] url hide

2001-01-22 Thread Pete Lavetsky

There is a very interesting article on this over at the Register.  You can
hide the URL by converting the dot delimited IP address to hex and then back
to decimal.  The browser will still interpret it.  Therefore, yahoo.com can
be interpreted as:

http://3631443189

Go ahead try it, it's pretty cool.  I wrote a program which takes the URL,
gets the IP, and then converts it.  If anyone is interested in the code,
shoot me an email at [EMAIL PROTECTED]

-Original Message-
From: Teodor Cimpoesu [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 8:17 AM
To: [EMAIL PROTECTED]
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 script where if you try to
> view the source code of a page it stops you but you can still use
> View/Source Code option on your main menu to view the code.
>
have a look on how it is implemented on http://www.ravantivirus.com. [0 size
frame ]
Done it recently :)

-- teodor

--
PHP General 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]


-- 
PHP General 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]




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-2723
Web Development DepartmentFax:   (374) 128-5082
ARMINCO Global Telecommunications http://www.arminco.com

Eric Dahnke wrote:
> 
> 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 (some other URL).  ie.
> > someone clicks on a link on www.blah.co.uk which takes the user to an
> > designated area (ie. /house-search/) on www.foo.co.uk.  I want
> > the user still to see www.blah.co.uk. This is just for aesthetic reasons
> > since ones the user finishes the search for houses (on
> > www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk.
> >
> > I have tried www.javascripts.com but no success??
> >
> > Thanks
> >
> > Ajdin
> 
> --
> PHP General 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]

-- 
PHP General 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]




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%". Turn off borders etc. on your frames, and the
casual user will not see any indication that there is a frameset. You
can also use this technique to maintain JavaScript state between
pages -- letting the upper frame store the objects values as you move
around from page to page.  But this should definitely cloak the true
nature of the URL that is being seen.

However, be aware that people will have problems with bookmarks to
these pages. You can, if you want, create a "self-framing" javascript
around bottom frame, such that if the bottom frame is loaded outside
the cloaking frameset, it creates a frameset from scratch around
itself. That's most elegant.

Kristofer

At 11.40 +0100 01-01-22, Jørg V. Bryne poked the keyboard as follows:
>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] url hide
>
>
>>  Perhaps not related to php but I was wandering, is it possible to hide
>>  site's real url and replace it with something else (some other URL).  ie.
>>  someone clicks on a link on www.blah.co.uk which takes the user to an
>>  designated area (ie. /house-search/) on www.foo.co.uk.  I want
>>  the user still to see www.blah.co.uk. This is just for aesthetic reasons
>>  since ones the user finishes the search for houses (on
>  > www.foo.co.uk/house-search/) he/she will return to www.blah.co.uk.
--
__

Kristofer Widholm
Web Pharmacy
[EMAIL PROTECTED]
191 Grand Street, Brooklyn  NY  11211
718.599.4893
__

--
PHP General 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]




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 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]




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???
>
>
>Greetings,
>
>Geer
>
>
>
>--
>PHP General 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]


XOR-Coders Mega Programming Resource Site! -
 http://members.xoom.com/xorcoders/


-- 
PHP General 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]




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 help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Dave Smith <[EMAIL PROTECTED]>
Newsgroups: php.general
Sent: Saturday, March 17, 2001 10:55 AM
Subject: [PHP] URL parsing


> I have heard that the new standard for URLS is ...test.php?op=3;op2=6...
> using the semi colon as a seperator. Is this currently supported by php
4.0.3?
>
> Cheers
>
> Dave Smith
>
> --
> PHP General 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]
>


-- 
PHP General 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]




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, 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 help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
> Volunteer a little time: http://chatmusic.com/volunteer.htm
> - Original Message -
> From: Dave Smith <[EMAIL PROTECTED]>
> Newsgroups: php.general
> Sent: Saturday, March 17, 2001 10:55 AM
> Subject: [PHP] URL parsing
> 
> 
>> I have heard that the new standard for URLS is ...test.php?op=3;op2=6...
>> using the semi colon as a seperator. Is this currently supported by php
> 4.0.3?
>> 
>> Cheers
>> 
>> Dave Smith
>> 
>> --
>> PHP General 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]
>> 
> 


-- 
PHP General 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]




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 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, 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 help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
>>  Volunteer a little time: http://chatmusic.com/volunteer.htm
>>  - Original Message -
>>  From: Dave Smith <[EMAIL PROTECTED]>
>>  Newsgroups: php.general
>>  Sent: Saturday, March 17, 2001 10:55 AM
>>  Subject: [PHP] URL parsing
>>
>>
>>>  I have heard that the new standard for URLS is ...test.php?op=3;op2=6...
>>>  using the semi colon as a seperator. Is this currently supported by php
>>  4.0.3?
>>>
>>>  Cheers
>>>
>>>  Dave Smith
>>>
>>>  --
>>>  PHP General 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]
>>>
>>
>
>
>--
>PHP General 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]


-- 
PHP General 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]




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] = main
$path_array[2] = ii
$path_array[3] = 1
$path_array[4] = pagename
$path_array[5] = name.html

But can I make that:

$path_array[tpl] = main
$path_array[ii] = 1
$path_array[pagename] = name.html

Instead?

I'm going to have to do this for every page, so I want to avoid much that
would slow the page down - what do folks think?

regards,
jaxon




On 3/23/01 9:09 PM, "Aaron Tuller" <[EMAIL PROTECTED]> wrote:

> 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 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, 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 help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
>>>  Volunteer a little time: http://chatmusic.com/volunteer.htm
>>>  - Original Message -
>>>  From: Dave Smith <[EMAIL PROTECTED]>
>>>  Newsgroups: php.general
>>>  Sent: Saturday, March 17, 2001 10:55 AM
>>>  Subject: [PHP] URL parsing
>>> 
>>> 
  I have heard that the new standard for URLS is ...test.php?op=3;op2=6...
  using the semi colon as a seperator. Is this currently supported by php
>>>  4.0.3?
 
  Cheers
 
  Dave Smith
>


-- 
PHP General 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]




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" <[EMAIL PROTECTED]> wrote:

> 
> 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] = main
> $path_array[2] = ii
> $path_array[3] = 1
> $path_array[4] = pagename
> $path_array[5] = name.html
> 
> But can I make that:
> 
> $path_array[tpl] = main
> $path_array[ii] = 1
> $path_array[pagename] = name.html
> 
> Instead?
> 
> I'm going to have to do this for every page, so I want to avoid much that
> would slow the page down - what do folks think?
> 
> regards,
> jaxon
> 
> 
> 
> 
> On 3/23/01 9:09 PM, "Aaron Tuller" <[EMAIL PROTECTED]> wrote:
> 
>> 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 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, 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 help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
  Volunteer a little time: http://chatmusic.com/volunteer.htm
  - Original Message -
  From: Dave Smith <[EMAIL PROTECTED]>
  Newsgroups: php.general
  Sent: Saturday, March 17, 2001 10:55 AM
  Subject: [PHP] URL parsing
 
 
>  I have heard that the new standard for URLS is ...test.php?op=3;op2=6...
>  using the semi colon as a seperator. Is this currently supported by php
  4.0.3?
> 
>  Cheers
> 
>  Dave Smith
>> 
> 


-- 
PHP General 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]




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($ii) // how do I grab value and truncate $REQUEST_URI

$path_array = explode('/', $REQUEST_URI);

$page_name  = array_pop($path_array); //get page name from end of array
$page_type  = array_pop($path_array); //get page type from next item

best regards,
jaxon


On 3/23/01 9:09 PM, "Aaron Tuller" <[EMAIL PROTECTED]> wrote:

> 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 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


-- 
PHP General 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]




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/main/index.html?ii=1
> 
> or: 
> domain.com/index.php/main/index.html?ii=1

Umm, how are these different?

(If you're trying to extract info from a url, perhaps 
parse_url(),basename(), and/or dirname() are what you're seeking...?)

-- 
CC

-- 
PHP General 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]




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 suppose with parse_url() I could do something..but I really only want to
deal with the URI.

currently, this seems to work:

$path_array = explode('/', $REQUEST_URI);

if (isset($ii))   array_pop($path_array); // remove $ii
$page_name  = array_pop($path_array); //get page name from end of array
$tpl= array_pop($path_array); //get page type from next item

but is inelegant :)

regards,
jaxon

> 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/main/index.html?ii=1
>> 
>> or: 
>> domain.com/index.php/main/index.html?ii=1
> 
> Umm, how are these different?
> 
> (If you're trying to extract info from a url, perhaps
> parse_url(),basename(), and/or dirname() are what you're seeking...?)


-- 
PHP General 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]




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 check phpinfo() for available predefined variables and plan
accordingly.

  Predefined Variables   :
  
* http://www.php.net/manual/en/language.variables.predefined.php

And for the brave, check out mod_rewrite :

  Mod-Rewrite:
  
* http://httpd.apache.org/docs/mod/mod_rewrite.html
* http://www.engelschall.com/pw/apache/rewriteguide/
* http://marc.theaimsgroup.com/?l=php-general&s=mod_rewrite


Regards,

Philip Olson
http://www.cornado.com/


On Sun, 25 Mar 2001, Jaxon wrote:

> 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 suppose with parse_url() I could do something..but I really only want to
> deal with the URI.
> 
> currently, this seems to work:
> 
> $path_array = explode('/', $REQUEST_URI);
> 
> if (isset($ii))   array_pop($path_array); // remove $ii
> $page_name  = array_pop($path_array); //get page name from end of array
> $tpl= array_pop($path_array); //get page type from next item
> 
> but is inelegant :)
> 
> regards,
> jaxon
> 
> > 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/main/index.html?ii=1
> >> 
> >> or: 
> >> domain.com/index.php/main/index.html?ii=1
> > 
> > Umm, how are these different?
> > 
> > (If you're trying to extract info from a url, perhaps
> > parse_url(),basename(), and/or dirname() are what you're seeking...?)
> 
> 
> -- 
> PHP General 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]
> 


-- 
PHP General 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]




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 possibility of special chars in the
URI.

regards,
jaxon

On 3/25/01 3:18 PM, "Philip Olson" <[EMAIL PROTECTED]> wrote:

> 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 check phpinfo() for available predefined variables and plan
> accordingly.
> 
> Predefined Variables   :
> 
>   * http://www.php.net/manual/en/language.variables.predefined.php
> 
> And for the brave, check out mod_rewrite :
> 
> Mod-Rewrite:
> 
>   * http://httpd.apache.org/docs/mod/mod_rewrite.html
>   * http://www.engelschall.com/pw/apache/rewriteguide/
>   * http://marc.theaimsgroup.com/?l=php-general&s=mod_rewrite
> 
> 
> Regards,
> 
> Philip Olson
> http://www.cornado.com/
> 
> 


-- 
PHP General 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]




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 '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 possibility of special chars in the
>URI.
>
>regards,
>jaxon
>
>On 3/25/01 3:18 PM, "Philip Olson" <[EMAIL PROTECTED]> wrote:
>
>>  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 check phpinfo() for available predefined variables and plan
>>  accordingly.
>>
>>  Predefined Variables   :
>>  
>>* http://www.php.net/manual/en/language.variables.predefined.php
>>
>>  And for the brave, check out mod_rewrite :
>>
>>  Mod-Rewrite:
>>  
>>* http://httpd.apache.org/docs/mod/mod_rewrite.html
>>* http://www.engelschall.com/pw/apache/rewriteguide/
>>* http://marc.theaimsgroup.com/?l=php-general&s=mod_rewrite
>>
>>
>>  Regards,
>>
>>  Philip Olson
>>  http://www.cornado.com/
>>
>>
>
>
>--
>PHP General 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]


-- 
PHP General 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]




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'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 '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 possibility of special chars in the
>> URI.
>> 
>> regards,
>> jaxon
>> 
>> On 3/25/01 3:18 PM, "Philip Olson" <[EMAIL PROTECTED]> wrote:
>> 
>>>  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 check phpinfo() for available predefined variables and plan
>>>  accordingly.
>>> 
>>>  Predefined Variables   :
>>>  
>>>* http://www.php.net/manual/en/language.variables.predefined.php
>>> 
>>>  And for the brave, check out mod_rewrite :
>>> 
>>>  Mod-Rewrite:
>>>  
>>>* http://httpd.apache.org/docs/mod/mod_rewrite.html
>>>* http://www.engelschall.com/pw/apache/rewriteguide/
>>>* http://marc.theaimsgroup.com/?l=php-general&s=mod_rewrite
>>> 
>>> 
>>>  Regards,
>>> 
>>>  Philip Olson
>>>  http://www.cornado.com/
>>> 
>>> 
>> 
>> 
>> --
>> PHP General 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]
> 
> 


-- 
PHP General 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]




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.toolshed51.com

-Original Message-
From: Michael Conley [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 2:08 PM
To: '[EMAIL PROTECTED]'
Subject: [PHP] URL Variables


First, I realize this isn't really a PHP question.

If I include variables in a URL that I am passing to a web server over
HTTPS, is the URL (and hence, the variables) encrypted?
example:  https://www.yourdomain.com?firstname=michael&lastname=conley

I need to make sure that the firstname and lastname information is not sent
over the internet in clear text.  



-- 
PHP General 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]




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_array[2] W $item4_array[3] H $item4_array[4]
\n";
$message .="Item Weight $item4_array[1] \n";


> Hey there,
>
> does anybody have any info regarding urlencode and rawurlencode


HTH--

ccma


-- 
PHP General 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]




Re: [PHP] URL Encode >

2001-04-09 Thread info

Thanks Chris,

but I understand urlenconde and urldecode - what I need to see in an example
where rawurlencode as opposed to urlencode is used and why.

Thanks,
Abe
- Original Message -
From: "Christopher Allen" <[EMAIL PROTECTED]>
To: "info" <[EMAIL PROTECTED]>; <[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 "";
> ---
> 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_array[2] W $item4_array[3] H $item4_array[4]
> \n";
> $message .="Item Weight $item4_array[1] \n";
>
>
> > Hey there,
> >
> > does anybody have any info regarding urlencode and rawurlencode
>
>
> HTH--
>
> ccma
>


-- 
PHP General 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]




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 another
url?
>
> e.g.
>
>  if ($varTwo == $varOne) {
>
>  URL redirection code
>
>  } else {
>
>  echo "You stay right where you are!";
> }
>
> Thanks.
>
>
> Jamie Saunders
> Mail: [EMAIL PROTECTED]
> Web: http://jamie-s.co.uk
>
>
> --
> PHP General 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]
>
>


-- 
PHP General 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]




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]
> Subject: [PHP] URL redirection
> 
> 
> 
> Hi,
> 
> Is there a PHP function that will redirect the current page to 
> another url?
> 
> e.g.
> 
>  if ($varTwo == $varOne) {
> 
>  URL redirection code
> 
>  } else {
> 
>  echo "You stay right where you are!";
> }
> 
> Thanks.
> 
> 
> Jamie Saunders
> Mail: [EMAIL PROTECTED]
> Web: http://jamie-s.co.uk
> 
> 
> -- 
> PHP General 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]
> 

-- 
PHP General 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]




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.g.
>
>  if ($varTwo == $varOne) {
>
>  URL redirection code
>
>  } else {
>
>  echo "You stay right where you are!";
> }
>
> Thanks.
>
>
> Jamie Saunders
> Mail: [EMAIL PROTECTED]
> Web: http://jamie-s.co.uk
>
>
> --
> PHP General 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]
>



-- 
PHP General 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]




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/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




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://sunsite.dk/lgdc/)

Error 032: Recursion error - see error 032

--
PHP General 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]




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( 'sod off, you ant logged in!');
}

Better still the is_logged_in in function could display the error message
and you would not need the else.

To extend this you could implenent user levels.  Punter could be 0,
Administrater 5 and Superuser 9.  You could then pass this torough to the
function.  So is_logged_in 5 would return true if user was at least of
level 5 (allowing levels 5,6,7,8,9 access).  For pages for punters wjo must
be logged in use is_logged_in().

Regards,
Ben





"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 then someone could be
malicious by using ".." to get to the root directory.

What I want to know is, if a URL absolutely starts with /images/ on my
website, is there someway that someone can modify the remainder of the path
such that it actually goes to a different website?  Do you see what I'm
saying?

cheers,

- seb frost

-Original Message-
From: GaM3R [mailto:[EMAIL PROTECTED]]
Sent: 13 September 2001 09:39
To: [EMAIL PROTECTED]
Subject: [PHP] help!!!


Cannot load /usr/local/apache_adserv/libexec/libphp4.so into server:
/usr/local/apache_adserv/libexec/libphp4.so: Undefined symbol "mpz_add_ui"

. . . configure line of

./configure '--with-apxs=/usr/local/apache_adserv/bin/apxs'
'--with-mysql=/usr/local' '--enable-versioning'
'--enable-inline-optimization' '--with-gd=/usr/local'
'--with-pgsql=/usr/local/pgsql' --enable-apc --with-gmp
--with-config-file-p
ath=/usr/local/apache_adserv/php.ini


Cameron
outworld.cx

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001


--
PHP General 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]








-- 
PHP General 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]


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 $option and $step available, with the assigned values
of "contact" and "view", respectively.

~Chris   /"\
 \ / September 11, 2001
  X  We Are All New Yorkers
 / \ rm -rf /bin/laden

On Tue, 29 Jan 2002, Shane Lambert wrote:

> I am trying to write software that will allow me to pass variables to a php
> script like:
>
> index.php/option=contact/step=view
>
> When I do this, I get the varibal PATH_INFO which contains
> "/option=contact/step=view". Now, what I want is to have the following:
>
> $option = "contact"
> $step = "view"
>
> I tried using '$array = explode("/",$PATH_INFO);' which gives me the array:
>
> $array[1] = "option=contact"
> $array[2] = "step=view"
>
> This of course is not what I want. I want:
>
> $array[option] = "contact"
> $array[step] = "view"
>
> So that when I use the extract($array) command I get the variables:
>
> $option = "contact"
> $step = "view"
>
> Like I want. If you aren't lost and you know the answer, PLEASE HELP!
>
>
> --
> PHP General 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]
>
>



-- 
PHP General 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]




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 ) ){
>   $myVar = explode( "=", $val );
>   ${$myVar[0]} = $myVar[1];
>   }
> }
> 
> For you example URI, "index.php/option=contact/step=view"
> you would then have $option and $step available, with the assigned values
> of "contact" and "view", respectively.
> 
> ~Chris   /"\
>  \ / September 11, 2001
>   X  We Are All New Yorkers
>  / \ rm -rf /bin/laden
> 
> On Tue, 29 Jan 2002, Shane Lambert wrote:
> 
> 
>>I am trying to write software that will allow me to pass variables to a php
>>script like:
>>
>>index.php/option=contact/step=view
>>
>>When I do this, I get the varibal PATH_INFO which contains
>>"/option=contact/step=view". Now, what I want is to have the following:
>>
>>$option = "contact"
>>$step = "view"
>>
>>I tried using '$array = explode("/",$PATH_INFO);' which gives me the array:
>>
>>$array[1] = "option=contact"
>>$array[2] = "step=view"
>>
>>This of course is not what I want. I want:
>>
>>$array[option] = "contact"
>>$array[step] = "view"
>>
>>So that when I use the extract($array) command I get the variables:
>>
>>$option = "contact"
>>$step = "view"
>>
>>Like I want. If you aren't lost and you know the answer, PLEASE HELP!
>>
>>
>>--
>>PHP General 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]
>>
>>
>>
> 
> 


-- 
PHP General 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]




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 Message-
From: X-power.be [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] URL / slash reduction


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?





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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?

without getting eloquent... and assuming your url string is static each time
($id doesn't move withing your url string).

$url =
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/junni');

Dave



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 2


the meaning of it is that http://user.tuned-belgium.be/nickname
goes to
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
me


---   ---   ---   ---   ---   ---
Connecting Tuners @ http://www.Tuned-Belgium.com
Xbox talk @ http://www.X-power.be
Gamecube @ http://www.cube-power.be

"Dave" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >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?
>
> without getting eloquent... and assuming your url string is static each
time
> ($id doesn't move withing your url string).
>
> $url =
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/junni');
>
> Dave
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 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 2


the meaning of it is that http://user.tuned-belgium.be/nickname
goes to
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
me


---   ---   ---   ---   ---   ---
Connecting Tuners @ http://www.Tuned-Belgium.com
Xbox talk @ http://www.X-power.be
Gamecube @ http://www.cube-power.be

"Dave" <[EMAIL PROTECTED]> schreef in bericht
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >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?
>
> without getting eloquent... and assuming your url string is static each
time
> ($id doesn't move withing your url string).
>
> $url =
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/junni');
>
> Dave
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP] URL / slash reduction

2002-06-10 Thread John Holmes

Take the ' out of $_GET['id'] if you are going to have it within a
string defined by '

Echo 'hello $_GET['id'] world';

How is PHP supposed to know that the two internal ' are not supposed to
be the end of the string?? (FYI: Variables are not parsed 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, June 10, 2002 8:04 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] URL / slash reduction
> 
> the nickname 'junni' was an example..
> 
> i have this now but its not working :(
> 
>  $url =
> str_replace('?id=/','?id=','http://www.tuned-
> belgium.com/user/?id=/$_GET['id
> ']');
> ?>
> http://tuned-
> belgium.com/main/modules.php?name=user&op=userinfo&uname= print $url ?>">
> 
> gives:
> 
> Parse error: parse error in /usr/home/v1/a0016905/html/user/filter.php
on
> line 2
> 
> 
> the meaning of it is that http://user.tuned-belgium.be/nickname
> goes to
> http://tuned-
> belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
> me
> 
> 
> ---   ---   ---   ---   ---   ---
> Connecting Tuners @ http://www.Tuned-Belgium.com
> Xbox talk @ http://www.X-power.be
> Gamecube @ http://www.cube-power.be
> 
> "Dave" <[EMAIL PROTECTED]> schreef in bericht
> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> > >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?
> >
> > without getting eloquent... and assuming your url string is static
each
> time
> > ($id doesn't move withing your url string).
> >
> > $url =
> >
> str_replace('?id=/','?id=','http://www.tuned-
> belgium.com/user/?id=/junni');
> >
> > Dave
> >
> >
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] URL / slash reduction

2002-06-10 Thread YLA G - X-power.be

:) :) great help thx mate!!!


now can everyone create a account with a userpage!!

look at MY car:  http://user.tuned-belgium.be/yla

look at the beatyyy


greetz

---   ---   ---   ---   ---   ---
Connecting Tuners @ http://www.Tuned-Belgium.com
Xbox talk @ 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 reduction


> let's start from scratch:
>
> in coming url: http://www.tuned-belgium.com/user/?id=/nickname
> needs to be:
>
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
> me
>
>  $ndx = strrpos($REQUEST_URI, "/");
> $uname = substr($REQUEST_URI, $ndx + 1);
> $url =
> "http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname="; .
> $uname;
> ?>
>
> how about that - I haven't tested it
>
> -Original Message-----
> From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, June 11, 2002 10:39 AM
> To: Martin Towell
> Subject: Re: [PHP] URL / slash reduction
>
>
> i did this now:
>
>  $url =
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET['
> id']);
> ?>
> http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname= print $url ?>">
>
> now i getting the full url http://www.tuned-belgium.com/user/?id=/junni as
> the nickname (with the slash to)
>
>
> ---   ---   ---   ---   ---   ---
> Connecting Tuners @ http://www.Tuned-Belgium.com
> Xbox talk @ 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:32 AM
> Subject: RE: [PHP] URL / slash reduction
>
>
> > John Holmes just reminded me that variables inside single quotes don't
get
> > evaluated...
> >
> > so try this instead
> >
> >
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET['
> > id']);
> >
> > -Original Message-
> > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 11, 2002 10:19 AM
> > To: Martin Towell
> > Subject: Re: [PHP] URL / slash reduction
> >
> >
> > no it must be a bether url of:
> >
> > http://tuned-belgium.com/user/?id=Junni
> >
> > wana get rid of the ?id=
> >
> >
> > ---   ---   ---   ---   ---   ---
> > Connecting Tuners @ http://www.Tuned-Belgium.com
> > Xbox talk @ 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:11 AM
> > Subject: RE: [PHP] URL / slash reduction
> >
> >
> > > This is, hopefully, a silly question - are you sure it's "id" you're
> after
> > > and not "uname"?
> > >
> > > In both urls you have "uname" being passed in and not "id".
> > >
> > > -----Original Message-
> > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 11, 2002 10:11 AM
> > > To: Martin Towell
> > > Subject: Re: [PHP] URL / slash reduction
> > >
> > >
> > > ok error gone but ID is empty now..
> > >
> > > sugestions
> > >
> > > thx for your help!
> > >
> > > ---   ---   ---   ---   ---   ---
> > > Connecting Tuners @ http://www.Tuned-Belgium.com
> > > Xbox talk @ http://www.X-power.be
> > > Gamecube @ http://www.cube-power.be
> > >
> > > - Original Message -
> > > From: "Martin Towell" <[EMAIL PROTECTED]>
> > > To: "'X-power.be'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
> > > Sent: Tuesday, June 11, 2002 2:06 AM
> > > Subject: RE: [PHP] URL / slash reduction
> > >
> > >
> > > > it's because you've got single quotes inside single quotes...
> > > > change $_GET['id']
> > > >

Re: [PHP] URL / slash reduction

2002-06-10 Thread YLA G - X-power.be

sorry now was i my short nickname

its

http://user.tuned-belgium.be/yla%20G


---   ---   ---   ---   ---   ---
Connecting Tuners @ http://www.Tuned-Belgium.com
Xbox talk @ http://www.X-power.be
Gamecube @ http://www.cube-power.be

- Original Message -
From: "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 account with a userpage!!
>
> look at MY car:  http://user.tuned-belgium.be/yla
>
> look at the beatyyy
>
>
> greetz
>
> ---   ---   ---   ---   ---   ---
> Connecting Tuners @ http://www.Tuned-Belgium.com
> Xbox talk @ 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 reduction
>
>
> > let's start from scratch:
> >
> > in coming url: http://www.tuned-belgium.com/user/?id=/nickname
> > needs to be:
> >
>
http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna
> > me
> >
> >  > $ndx = strrpos($REQUEST_URI, "/");
> > $uname = substr($REQUEST_URI, $ndx + 1);
> > $url =
> > "http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=";
.
> > $uname;
> > ?>
> >
> > how about that - I haven't tested it
> >
> > -Original Message-
> > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 11, 2002 10:39 AM
> > To: Martin Towell
> > Subject: Re: [PHP] URL / slash reduction
> >
> >
> > i did this now:
> >
> >  > $url =
> >
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET['
> > id']);
> > ?>
> > http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname= > print $url ?>">
> >
> > now i getting the full url http://www.tuned-belgium.com/user/?id=/junni
as
> > the nickname (with the slash to)
> >
> >
> > ---   ---   ---   ---   ---   ---
> > Connecting Tuners @ http://www.Tuned-Belgium.com
> > Xbox talk @ 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:32 AM
> > Subject: RE: [PHP] URL / slash reduction
> >
> >
> > > John Holmes just reminded me that variables inside single quotes don't
> get
> > > evaluated...
> > >
> > > so try this instead
> > >
> > >
> >
>
str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/'.$_GET['
> > > id']);
> > >
> > > -Original Message-----
> > > From: YLA G - X-power.be [mailto:[EMAIL PROTECTED]]
> > > Sent: Tuesday, June 11, 2002 10:19 AM
> > > To: Martin Towell
> > > Subject: Re: [PHP] URL / slash reduction
> > >
> > >
> > > no it must be a bether url of:
> > >
> > > http://tuned-belgium.com/user/?id=Junni
> > >
> > > wana get rid of the ?id=
> > >
> > >
> > > ---   ---   ---   ---   ---   ---
> > > Connecting Tuners @ http://www.Tuned-Belgium.com
> > > Xbox talk @ 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:11 AM
> > > Subject: RE: [PHP] URL / slash reduction
> > >
> > >
> > > > This is, hopefully, a silly question - are you sure it's "id" you're
> > after
> > > > and not "uname"?
> > > >
> > > > In both urls you have "uname" being passed in and not "id".
> > > >
> > > > -Original Message-----
> > > > From: YLA G - X-power.be [mailto:[EMAIL PROTEC

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...

Cheers,

Kiko

-
It's not a bug, it's a feature.
christoph starkmann
mailto:[EMAIL PROTECTED]
http://www.fh-augsburg.de/~kiko
ICQ: 100601600
-

-- 
PHP General 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]




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$0e9f2160$[EMAIL PROTECTED]">news:009501c16b75$0e9f2160$[EMAIL PROTECTED]...
> You see, I call for php script from Delphi program...
> I can do it with InternetOpen() so the only method available for me is
GET -
> i can use page url only
>





-- 
PHP General 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]




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?
> 
> 
> Hi everyone!
> 
> Is there any limitation for length of url like this
> accept.php?set=qwerty...
> 
> What is the maximum $set length i can pass to script as a parameter?
> 
> Zliy Pes: http://zliypes.com.ua
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> -- 
> PHP General 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]
> 
> 

-- 
PHP General 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]




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 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/Source Code option on your main menu to view the code.
> 
> Thanks
> 
> Ajdin
> 
> 
> On Mon, 22 Jan 2001, bard wrote:
> 
> > 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 to
> hide 
> > > site's real url and replace it with something else (some other
> URL).  ie. 
> > > someone clicks on a link on www.blah.co.uk which takes the user
> to an 
> > > designated area (ie. /house-search/) on www.foo.co.uk.  I want 
> > > the user still to see www.blah.co.uk. This is just for aesthetic
> reasons 
> > > since ones the user finishes the search for houses (on 
> > > www.foo.co.uk/house-search/) he/she will return to
> www.blah.co.uk. 
> > > 
> > > I have tried www.javascripts.com but no success??
> > > 
> > > Thanks
> > > 
> > > Ajdin
> > > 
> > > 
> > 
> > 
> 
> -- 
> PHP General 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]
> 

-- 
PHP General 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]




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://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]


--
PHP General 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]




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
> 
> $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://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]
> 
> 
> -- 
> PHP General 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]

--
PHP General 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]




RE: [PHP] URL FROM IP

2001-04-09 Thread trogers

Hi
That means there is no reverse dns setup for that ip so it just returns the 
ip number again.
Try with a few other ip's and it will work (try 129.250.16.102 for example)
Tom

At 10:43 AM 9/04/01 -0300, Renzi, Sebastian wrote:
>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
> >
> > $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://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]
> >
> >
> > --
> > PHP General 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]
>
>--
>PHP General 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]


--
PHP General 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]




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 web interface.
>  
> The script is running fine, but all of the variables (by default) are
> being 
> sent in the url.  I have not called any of the URL functions, so I am
> not 
> exactly sure why this is happening.  Is there something in the php.ini
> or at 
> compile time which is enabling this.  The problem ends up being that 
> passwords are sent in plain text in the url!
> 
> Help!
> 
> Brendan
> 
> _
> Get your FREE download of MSN Explorer at
> http://explorer.msn.com/intl.asp
> 
> 
> -- 
> PHP General 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]
> 

-- 
PHP General 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]




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 Schwarzmann wrote:
> 
> How do I take the current URL and turn it into a variable?
> 
> THANKS!!
> Phil

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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 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 url must always be index.php.  how
can i do this?  can i do this?







Thank You,
 
Jon Yaggie
www.design-monster.com
 
And they were singing . . . 
 
'100 little bugs in the code
100 bugs in the code
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




-- 
PHP General 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]




Re: [PHP] url without a query string?

2001-07-08 Thread Jon Yaggie

i mean this is coming from a hardcoded link.

example

www.design-monster.com links to www.site.com/index.php?id=4
but site www.hopeless.com links to www.site.com/index.php?id=2

both these then have a membership link on them and the memebership service
uses the refering url.  but the referer needs to be exact.  so the query
string needs to be stripped some how?









Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
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: "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 query string?


> 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 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 url must always be index.php.  how
> can i do this?  can i do this?
>
>
>
>
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> 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
>
>


-- 
PHP General 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]




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] url without a query string?

i mean this is coming from a hardcoded link.

example

www.design-monster.com links to www.site.com/index.php?id=4
but site www.hopeless.com links to www.site.com/index.php?id=2

both these then have a membership link on them and the memebership
service
uses the refering url.  but the referer needs to be exact.  so the query
string needs to be stripped some how?









Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
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: "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 query string?


> 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 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 url must always be index.php.  how
> can i do this?  can i do this?
>
>
>
>
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> 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
>
>


-- 
PHP General 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]



-- 
PHP General 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]




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 without a query string?


> 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] url without a query string?
>
> i mean this is coming from a hardcoded link.
>
> example
>
> www.design-monster.com links to www.site.com/index.php?id=4
> but site www.hopeless.com links to www.site.com/index.php?id=2
>
> both these then have a membership link on them and the memebership
> service
> uses the refering url.  but the referer needs to be exact.  so the query
> string needs to be stripped some how?
>
>
>
>
>
>
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> 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: "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 query string?
>
>
> > 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 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 url must always be index.php.  how
> > can i do this?  can i do this?
> >
> >
> >
> >
> >
> >
> >
> > Thank You,
> >
> > Jon Yaggie
> > www.design-monster.com
> >
> > And they were singing . . .
> >
> > '100 little bugs in the code
> > 100 bugs in the code
> > 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
> >
> >
>
>
> --
> PHP General 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]
>


-- 
PHP General 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]




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 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 url must always be index.php.  how can i do this?  can i do this?







Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
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





-- 
PHP General 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]




Re: [PHP] url without a query string?

2001-07-08 Thread James Tan

hie...
if i'm not wrong.. u could try using session :)

that way, ucan have index.php s u ish :)

--login.php--
session_start();
$id = 1;
sessoin_register("id");
--index.php--
session_start();
$memid = $id-0;
// **statement**


hope it helps..
good luck :)

regards,

James
Jon Yaggie <[EMAIL PROTECTED]> wrote in message
033901c10832$68f072a0$0100a8c0@piiimonster">news:033901c10832$68f072a0$0100a8c0@piiimonster...
> 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 without a query string?
>
>
> > 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] url without a query string?
> >
> > i mean this is coming from a hardcoded link.
> >
> > example
> >
> > www.design-monster.com links to www.site.com/index.php?id=4
> > but site www.hopeless.com links to www.site.com/index.php?id=2
> >
> > both these then have a membership link on them and the memebership
> > service
> > uses the refering url.  but the referer needs to be exact.  so the query
> > string needs to be stripped some how?
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > Thank You,
> >
> > Jon Yaggie
> > www.design-monster.com
> >
> > And they were singing . . .
> >
> > '100 little bugs in the code
> > 100 bugs in the code
> > 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: "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 query string?
> >
> >
> > > 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 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 url must always be index.php.  how
> > > can i do this?  can i do this?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Thank You,
> > >
> > > Jon Yaggie
> > > www.design-monster.com
> > >
> > > And they were singing . . .
> > >
> > > '100 little bugs in the code
> > > 100 bugs in the code
> > > 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
> > >
> > >
> >
> >
> > --
> > PHP General 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]
> >
>



-- 
PHP General 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]




Re: [PHP] url without a query string?

2001-07-08 Thread Jon Yaggie

problem with a session is the link originates at another domain.  so as far
as i know i can pass a session between domains.

yes js is not a problem except i dont know it.  and refrshing is possible
because on first load i will set up a session.  can you specficate a url to
refresh??  so that i cna refresh it without the query string?









Thank You,

Jon Yaggie
www.design-monster.com

And they were singing . . .

'100 little bugs in the code
100 bugs in the code
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]>
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 :)
>
> that way, ucan have index.php s u ish :)
>
> --login.php--
> session_start();
> $id = 1;
> sessoin_register("id");
> --index.php--
> session_start();
> $memid = $id-0;
> // **statement**
>
>
> hope it helps..
> good luck :)
>
> regards,
>
> James
> Jon Yaggie <[EMAIL PROTECTED]> wrote in message
> 033901c10832$68f072a0$0100a8c0@piiimonster">news:033901c10832$68f072a0$0100a8c0@piiimonster...
> > 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 without a query string?
> >
> >
> > > 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] url without a query string?
> > >
> > > i mean this is coming from a hardcoded link.
> > >
> > > example
> > >
> > > www.design-monster.com links to www.site.com/index.php?id=4
> > > but site www.hopeless.com links to www.site.com/index.php?id=2
> > >
> > > both these then have a membership link on them and the memebership
> > > service
> > > uses the refering url.  but the referer needs to be exact.  so the
query
> > > string needs to be stripped some how?
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > Thank You,
> > >
> > > Jon Yaggie
> > > www.design-monster.com
> > >
> > > And they were singing . . .
> > >
> > > '100 little bugs in the code
> > > 100 bugs in the code
> > > 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: "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 query string?
> > >
> > >
> > > > 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 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 url must always be index.php.
how
> > > > can i do this?  can i do this?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Thank You,
> > > >
> > > > Jon Yaggie
> > > > www.design-monster.com
> > > >
> > > > And they were singing . . .
> > > >
> > > > '100 little bugs in the code
> > > > 100 bugs in the code
> > > > 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
> > > >
> > > >
> > >
> > >
> > > --
> > > PHP General 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]
> > >
> >
>
>
>
> --
> PHP General 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]


-- 
PHP General 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]




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 url must always be index.php.  how can i do
> this?  can i do this?
> 

Depends on how the remote validates the referal; since they want index.php;
assume they use php as well, and get the referrer like everybody else, from
$HTTP_REFERER ...
so add on a "&HTTP_REFERER=/php/index.php&id=foo" to the POST/ GET.

That should do it unless they've done un-speakable things to Apache/PHP.

Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
PHP General 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]




Re: [PHP] url without a query string?

2001-07-08 Thread James Tan

heh..


y not u use the post method??

use a form..
put in the hidden form...

and
document.theformname.submit();

eg:





document.theform.submit();

Jon Yaggie <[EMAIL PROTECTED]> wrote in message
037601c1083b$b6583010$0100a8c0@piiimonster">news:037601c1083b$b6583010$0100a8c0@piiimonster...
> problem with a session is the link originates at another domain.  so as
far
> as i know i can pass a session between domains.
>
> yes js is not a problem except i dont know it.  and refrshing is possible
> because on first load i will set up a session.  can you specficate a url
to
> refresh??  so that i cna refresh it without the query string?
>
>
>
>
>
>
>
>
>
> Thank You,
>
> Jon Yaggie
> www.design-monster.com
>
> And they were singing . . .
>
> '100 little bugs in the code
> 100 bugs in the code
> 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]>
> 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 :)
> >
> > that way, ucan have index.php s u ish :)
> >
> > --login.php--
> > session_start();
> > $id = 1;
> > sessoin_register("id");
> > --index.php--
> > session_start();
> > $memid = $id-0;
> > // **statement**
> >
> >
> > hope it helps..
> > good luck :)
> >
> > regards,
> >
> > James
> > Jon Yaggie <[EMAIL PROTECTED]> wrote in message
> > 033901c10832$68f072a0$0100a8c0@piiimonster">news:033901c10832$68f072a0$0100a8c0@piiimonster...
> > > 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 without a query string?
> > >
> > >
> > > > 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] url without a query string?
> > > >
> > > > i mean this is coming from a hardcoded link.
> > > >
> > > > example
> > > >
> > > > www.design-monster.com links to www.site.com/index.php?id=4
> > > > but site www.hopeless.com links to www.site.com/index.php?id=2
> > > >
> > > > both these then have a membership link on them and the memebership
> > > > service
> > > > uses the refering url.  but the referer needs to be exact.  so the
> query
> > > > string needs to be stripped some how?
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Thank You,
> > > >
> > > > Jon Yaggie
> > > > www.design-monster.com
> > > >
> > > > And they were singing . . .
> > > >
> > > > '100 little bugs in the code
> > > > 100 bugs in the code
> > > > 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: "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 query string?
> > > >
> > > >
> > > > > A shot in the dark would be to use HTTP Post instead of Get...
but,
> I
> > > > > don't know http.
> >

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.  is the refering url must always be index.php.  how
> can i do this?  can i do this?
> 
fake it by sending a Referer header.

-- teodor

-- 
PHP General 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]




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) the
web-server returns:
301 Moved Permanently
http://www.php.net/asdfadasdasd/

then the Web-Server gets the request "http://www.php.net/asdfadasdasd/" from
the Browser
Now the server looks in its configuration (for example Apache:
DirectoryIndex index.php)

> does it work on windows PWS ?

I don't even want to try it ;-)

> 
> and sometimes i see:
> 
> www.site.com/?asdasdf=adasd
> 
> can someone please explain me this process.

the server looks in its configuration (for example Apache: DirectoryIndex
index.php) and returns this page - with the GET-Varaibales as well (your
Browser doesn't have to know, what this page's name is!)

But I'm sure you can configure your webserver (or put it in your script) to
make a 301/2/3 and redirect to the full URL!

witty

-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net


-- 
PHP General 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]




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/?asdasdf=adasd
> >
> > can someone please explain me this process.
>
> the server looks in its configuration (for example Apache: DirectoryIndex
> index.php) and returns this page - with the GET-Varaibales as well (your
> Browser doesn't have to know, what this page's name is!)
>
> But I'm sure you can configure your webserver (or put it in your
> script) to
> make a 301/2/3 and redirect to the full URL!
>
> witty

Just to point out, the /?asdf=asdf style is poor in my opinion, more so
because I have experienced errors (well, visitors have experienced errors)
with links that were linked like that.  I believe it was a Lynx user, or
maybe Opera, don't remember.  However, the fact is that I suggest actually
putting the script name in there. =)

Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.


-- 
PHP General 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]




RE: [PHP] URL w/o script name

2001-04-09 Thread PHPBeginner.com

just to add : The error you mentioned was detected on Netscape <6 browsers.
I myself have had hard time with this long ago.


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.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 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/?asdasdf=adasd
> >
> > can someone please explain me this process.
>
> the server looks in its configuration (for example Apache: DirectoryIndex
> index.php) and returns this page - with the GET-Varaibales as well (your
> Browser doesn't have to know, what this page's name is!)
>
> But I'm sure you can configure your webserver (or put it in your
> script) to
> make a 301/2/3 and redirect to the full URL!
>
> witty

Just to point out, the /?asdf=asdf style is poor in my opinion, more so
because I have experienced errors (well, visitors have experienced errors)
with links that were linked like that.  I believe it was a Lynx user, or
maybe Opera, don't remember.  However, the fact is that I suggest actually
putting the script name in there. =)

Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.


-- 
PHP General 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]



-- 
PHP General 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]




RE: [PHP] URL w/o script name

2001-04-09 Thread PHPBeginner.com

Another thing to add:

by using apache's mod_rewrite you can have your variables (as witty
suggested) in the/very/elegant/and/search-engines-readable/way.php

I have it working on PHPBeginner.com and several other sites.


Sincerely,

 Maxim Maletsky
 Founder, Chief Developer

 PHPBeginner.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 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/?asdasdf=adasd
> >
> > can someone please explain me this process.
>
> the server looks in its configuration (for example Apache: DirectoryIndex
> index.php) and returns this page - with the GET-Varaibales as well (your
> Browser doesn't have to know, what this page's name is!)
>
> But I'm sure you can configure your webserver (or put it in your
> script) to
> make a 301/2/3 and redirect to the full URL!
>
> witty

Just to point out, the /?asdf=asdf style is poor in my opinion, more so
because I have experienced errors (well, visitors have experienced errors)
with links that were linked like that.  I believe it was a Lynx user, or
maybe Opera, don't remember.  However, the fact is that I suggest actually
putting the script name in there. =)

Jason Lotito
www.NewbieNetwork.net
Where those who can, teach;
and those who can, learn.


--
PHP General 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]



-- 
PHP General 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]




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 using phpinfo().

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *

/*
"No, no, I don't mind being called the smartest man in the world.  I just 
wish 
 it wasn't this one."
-- Adrian Veidt/Ozymandias, WATCHMEN 
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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

2001-09-13 Thread Ben . Edwards


Sorry, finder troble.  The message should read:-

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( 'sod off, you ant logged in!');
}

Better still the is_logged_in in function could display the error message
and you would not need the else.

To extend this you could implenent user levels.  Punter could be 0,
Administrater 5 and Superuser 9.  You could then pass this torough to the
function.  So is_logged_in(5) would return true if user was at least of
level 5 (allowing levels 5,6,7,8,9 access).  For pages for punters who must
be logged in use is_logged_in(0).

Regards,
Ben





[EMAIL PROTECTED] on 13/09/2001 12:53:48



To:   "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 then someone could be
malicious by using ".." to get to the root directory.

What I want to know is, if a URL absolutely starts with /images/ on my
website, is there someway that someone can modify the remainder of the path
such that it actually goes to a different website?  Do you see what I'm
saying?

cheers,

- seb frost

-Original Message-
From: GaM3R [mailto:[EMAIL PROTECTED]]
Sent: 13 September 2001 09:39
To: [EMAIL PROTECTED]
Subject: [PHP] help!!!


Cannot load /usr/local/apache_adserv/libexec/libphp4.so into server:
/usr/local/apache_adserv/libexec/libphp4.so: Undefined symbol "mpz_add_ui"

. . . configure line of

./configure '--with-apxs=/usr/local/apache_adserv/bin/apxs'
'--with-mysql=/usr/local' '--enable-versioning'
'--enable-inline-optimization' '--with-gd=/usr/local'
'--with-pgsql=/usr/local/pgsql' --enable-apc --with-gmp
--with-config-file-p
ath=/usr/local/apache_adserv/php.ini


Cameron
outworld.cx

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001


--
PHP General 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]







--
PHP General 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]







-- 
PHP General 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]


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.

then make a file called "news" in the DocumentRoot directory that's like:

$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.

put the name of the script in a var, either do a regex or parse_str() 
on the rest of the URI to set the vars you need (like aid=3911)

and then do a include() with the script name.

the URL will never change in the browser, it's one request, and you 
can make a very generic URL parsing script to make your URLs pretty. 
you can set DocumentRoot to this script and then you can have URLs 
like:

http://www.myserver.com/index.html

where actually your script is doing the work.  maybe it includes a 
file called index.html and adds ads on the top or something.  and 
with output buffering you can get even more power, i use output 
buffering to change all my image tags on the fly to a different 
server, but for the people who write the HTML code, they don't need 
to care about it.  PHP is good stuff.

ask if you need more help.

-aaron

At 9:13 AM +1300 3/4/01, Jenni &/or Patrick wrote:
>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 into http://www.pcworld.com/news/view.asp?aid=3911.
>
>Now, you can probably do this in regex, and use the mod_rewrite, but this is
>not available to me, so we can all forget that one right away ;-).
>
>I have created a 404-processor that does the conversion (and even checks if
>the resultant page exsists, by using a simple file_exists();).
>
>Apache (or was it PHP? Or a combination of the above?) used to, when you
>said Header ("Location: /localpath"), just serve up the content, without
>doing a redirect. Under Apache/1.3.17 & PHP/4.0.4 this does not happen.
>
>Is there a way to do this redirect internally - ie. the browser is not even
>aware that the URL is different from the one it requested, let alone the
>visitor.
>
>And no, frames are not really an option: because it would defeat one of the
>reasons I want  to do this internally, which is to prevent the need to do
>two requests.
>
>Hopefully someone will understand this (I'm sure there will be many), and be
>able to guide towards something that will work.
>
>Thanks,
>Patrick.
>
>
>--
>PHP General 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]


-- 
PHP General 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]




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 into http://www.pcworld.com/news/view.asp?aid=3911.
>
> Now, you can probably do this in regex, and use the mod_rewrite, but this
is
> not available to me, so we can all forget that one right away ;-).
>
> I have created a 404-processor that does the conversion (and even checks
if
> the resultant page exsists, by using a simple file_exists();).
>
> Apache (or was it PHP? Or a combination of the above?) used to, when you
> said Header ("Location: /localpath"), just serve up the content, without
> doing a redirect. Under Apache/1.3.17 & PHP/4.0.4 this does not happen.

How about  include()? Instead of redirect.

FYI.
Location: header must be absolute URI. (Content-Location: can be relative
URI)
Most browsers accept relative URI, though.

> Is there a way to do this redirect internally - ie. the browser is not
even
> aware that the URL is different from the one it requested, let alone the
> visitor.
>
> And no, frames are not really an option: because it would defeat one of
the
> reasons I want  to do this internally, which is to prevent the need to do
> two requests.

If you want to prevent multiple requests to server, you should not use
Location:
header.

>
> Hopefully someone will understand this (I'm sure there will be many), and
be
> able to guide towards something that will work.

Hope I understand your mail.

Regards,

Yasuo Ohgaki

> Thanks,
> Patrick.
>
>
> --
> PHP General 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]
>
>

-- 
PHP General 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]