Re: [PHP] URL encode/decode problem

2004-09-13 Thread Rosen
It will not work - Javascript function "escape()" return string as unicode data - something like "%u0431%u043E%u044F". And I don't know how to "decode" these data as "normal" chars. "Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 13 Sep 2004 16:51:59 +0300, R

Re: [PHP] URL encode/decode problem

2004-09-13 Thread Greg Donald
On Mon, 13 Sep 2004 16:51:59 +0300, Rosen <[EMAIL PROTECTED]> wrote: > I have follow problem: One form whitch send some text fields to my PHP > script. But before send data, the form makes > javascript command "escape" for text fields. The text fields may contain > characters "+", quotes, etc. > Th

[PHP] URL encode/decode problem

2004-09-13 Thread Rosen
Hi, I have follow problem: One form whitch send some text fields to my PHP script. But before send data, the form makes javascript command "escape" for text fields. The text fields may contain characters "+", quotes, etc. The form post data with "GET" method. And then I can't get correctly posted d

[PHP] URL String

2004-08-10 Thread Stephen Craton
Hello, I'm working on a site that cannot use PHP exactly, so I'm trying to work around that limitation with remotely hosted scripting by tricking the server into thinking the PHP content is actually javascript. I've been able to do this before, but this time I'm having a few issues. I need to be

Re: [PHP] URL

2004-07-21 Thread zareef ahmed
Hi You can user $_SERVER['REQUEST_URI']; Thanks Zareef Ahmed --- "John W. Holmes" <[EMAIL PROTECTED]> wrote: > Bruno Santos wrote: > > > Im developing a couple of pages and i need to do > some redirecting to > > another page depending > > on the choice of a user. > > The problem is, to go t

Re: [PHP] URL

2004-07-21 Thread John W. Holmes
Bruno Santos wrote: Im developing a couple of pages and i need to do some redirecting to another page depending on the choice of a user. The problem is, to go to another page, i need to send some parameters in the URL that are alredy present, but i need to make the redirecting independent of the

[PHP] URL

2004-07-21 Thread Bruno Santos
Thx Robert. How could i miss that !! =:) by the way, is any function in PHP that i can use to capture the current URL thx Original Message Subject:RE: [PHP] URL Date: Wed, 21 Jul 2004 11:12:33 -0400 From: Robert Sossomon <[EMAIL PROTECTED]> To: &

Re: [PHP] URL

2004-07-21 Thread Matt M.
> Since you are getting the information from the page anyways, just simply > do: > > $_SERVER[PHP_SELF]?parameter1=$_GET[parameter1]¶meter2=$_GET[paramet > er2]¶meter3=$_GET[parameter3] etc... should also make sure to urlencode the data here is another thrread about it http://marc.theaimsgroup.

RE: [PHP] URL

2004-07-21 Thread Robert Sossomon
-Original Message- From: Bruno Santos [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 11:05 AM To: [EMAIL PROTECTED] Subject: [PHP] URL Hello All. Im developing a couple of pages and i need to do some redirecting to another page depending on the choice of a user. Since you

[PHP] URL

2004-07-21 Thread Bruno Santos
Hello All. Im developing a couple of pages and i need to do some redirecting to another page depending on the choice of a user. The problem is, to go to another page, i need to send some parameters in the URL that are alredy present, but i need to make the redirecting independent of the page. i

Re: [PHP] URL translation like mod_rewrite

2004-01-20 Thread Chris Shiflett
--- Denzil Kruse <[EMAIL PROTECTED]> wrote: > My hosting company won't let me use rewrite rules in my Apache > configuration files, and told me to use "the php header() functions > and a .htaccess file" instead of the rewrite rules. [snip] > What I want to do is have a visitor to my web site ente

[PHP] URL translation like mod_rewrite

2004-01-20 Thread Denzil Kruse
Hi all, My hosting company won't let me use rewrite rules in my Apache configuration files, and told me to use "the php header() functions and a .htaccess file" instead of the rewrite rules. I don't know php and I'm looking over some php help files right now, but I found this list and was hop

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Ryan A
Hey Justin, Ok, tried this with differient tests and directives for the past 2 days, on 3 differient servers, on 5 differient domains. I updated the directives more times than I care to remember and restarted apache so many times I dont think it knows if its coming or goingbut you sir...are a

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Justin French
On Friday, January 16, 2004, at 11:04 AM, Ryan A wrote: RewriteEngine On Options +FollowSymlinks RewriteRule ^tt/(.*).php tt.php?id=$1 This is my php page: "; if(isset($_GET["id"])){echo "Got \$_GET[id]";}else{echo "No \$_GET[id]";} print_r($_GET); print_r($_REQUEST); print_r($_GET['id']); ?> Rya

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Ryan A
Hey, Thanks for replying. Globals are on heres my phpinfo page: http://cheap-php-web-hosting.com/phpinfo.php this is my .htaccess file: RewriteEngine On Options +FollowSymlinks RewriteRule ^tt/(.*).php tt.php?id=$1 This is my php page: "; if(isset($_GET["id"])){echo "Got \$_GET[id]";}else{e

Re: [PHP] URL rewriting...anybody done this?

2004-01-15 Thread Peter Vertes
I had the same problem with PHP after I've upgraded to 4.3.3 from 4.3.1.  I was tearing my hair out but couldn't figure out what was wrong.  I ended up editing my php.ini file and turning REGISTER GLOBALS = On.  It works fine now and since this is on my development box I don't really care about

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 09:42, Ryan A wrote: > Nope, does not work. > > Looks like I got a problem that finally stumped the whole listlucky me This works fine for me: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?a=$1&b=$2&c=$3 What version of Apache/PHP are you us

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 09:28, Justin Patrin wrote: > > RewriteEngine On > > RewriteRule ^show/(.*)/(.*) /show.php?sid=$1&id=$2 > > Try: > RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1&id=$2 The original ought to work just fine -- I have it working here. -- Jason Wong -> Gremlins Associ

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Thanks for replying. Nope, does not work. Looks like I got a problem that finally stumped the whole listlucky me :-p Cheers, -Ryan On 1/15/2004 2:28:33 AM, Justin Patrin ([EMAIL PROTECTED]) wrote: > > RewriteEngine On > > RewriteRule ^show/(.*)/(.*) /show.php?sid=$1&id=$2 > > Try: > Re

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Justin Patrin
RewriteEngine On RewriteRule ^show/(.*)/(.*) /show.php?sid=$1&id=$2 Try: RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1&id=$2 -- paperCrane -- Question Everything, Reject Nothing -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hi again, I did a little pokeing around and installed this on 3 differient serversand the results were identical... so its not the servers fault but something with the directives... got some interesting results with my testing am using this: echo "Ok,we are in show.php"; if(isset($_GET["i

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Matt Matijevich
I am a little late but I have used the method described on a list apart http://www.alistapart.com/articles/succeed/ and it works really well. You might want to give it a try, I think it works a little bit different than the way you are trying. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, At least you remember what it used to look like, I dont! Soo many modificatios in both .htaccess and httpd.conf and restarts...have just lost track. Will try your example one at a time and see what happens. Thanks again. Cheers, -Ryan > Seems like you are getting closer. You are going to t

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 15:11, Ryan A wrote: [snip] > and heres the output: > > Ok,we are in show.php > No $_GET[id] > No $_GET[sid] > Array ( ) > > > Ideas? Seems like you are getting closer. You are going to the right place, but none of your variables are making it. I am not sure what your ru

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Oops sorry, missed that. Heres whats on top of the page: echo "Ok,we are in show.php"; if(isset($_GET["id"])){echo "Got \$_GET[id]";}else{echo "No \$_GET[id]";} if(isset($_GET["sid"])){echo "Got \$_GET[sid]";}else{echo "No \$_GET[sid]";} print_r($_GET); print_r($_GET['id']); print_r($_GET['sid'])

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 05:01, Ryan A wrote: > I put this in for testing: > > if(isset($_GET["id"])){echo "Got \$_GET[id]";}else{echo "No > \$_GET[id]";} > if(isset($_GET["sid"])){echo "Got \$_GET[sid]";}else{echo "No > \$_GET[sid]";} > > and heres the output: > No $_GET[id] > No $_GET[sid] >

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, I put this in for testing: if(isset($_GET["id"])){echo "Got \$_GET[id]";}else{echo "No \$_GET[id]";} if(isset($_GET["sid"])){echo "Got \$_GET[sid]";}else{echo "No \$_GET[sid]";} and heres the output: No $_GET[id] No $_GET[sid] So the variables are not being passed Any idea why and what

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 13:14, Ryan A wrote: > Hey, > Ok, have added "echo "Ok,we are in show.php";" and if you go to > http://rizkhan.net/articles/show/category/1/2 or > http://rizkhan.net/articles/show.php?category=poetry&sid=1&id=2 > > you will see that its echoing that without a problem..so

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Ok, have added "echo "Ok,we are in show.php";" and if you go to http://rizkhan.net/articles/show/category/1/2 or http://rizkhan.net/articles/show.php?category=poetry&sid=1&id=2 you will see that its echoing that without a problem..so this is partly working. now what to do about the

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Lowell Allen
[snip] > > I took out the .php part...and even tried it with [L] tacked to the end of > the second linenot working > Heres how my .htaccess looks now: > > RewriteEngine On > RewriteRule ^show/(.*)/(.*)/(.*) /show.php?category=poetry&sid=$2&id=$3 > > I even took out the space which was in cat

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 12:41, Ryan A wrote: > Hey Jason, Brad, > Thanks for replying. > > I took out the .php part...and even tried it with [L] tacked to the end of > the second linenot working > Heres how my .htaccess looks now: > > RewriteEngine On > RewriteRule ^show/(.*)/(.*)/(.*) /show.ph

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey Jason, Brad, Thanks for replying. I took out the .php part...and even tried it with [L] tacked to the end of the second linenot working Heres how my .htaccess looks now: RewriteEngine On RewriteRule ^show/(.*)/(.*)/(.*) /show.php?category=poetry&sid=$2&id=$3 I even took out the space whi

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Lowell Allen
> On Thursday 15 January 2004 02:44, Ryan A wrote: > >> It seems to be partly working. >> >> /* >> How isn't it working? What happens? I would try one variable first, get >> that working, then add the others. Also, I am not sure how it will >> handle the space in "Beginners Corner". Try passing s

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 11:44, Ryan A wrote: [snip] > Its a bit hard to explain what happens so see for yourself: > Heres the index page: > http://www.rizkhan.net/articles/articles.php > Heres the actual page: > http://www.rizkhan.net/articles/show.php?category=Beginners%20Corner&sid=1&id=1 > and t

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Jason Wong
On Thursday 15 January 2004 02:44, Ryan A wrote: > It seems to be partly working. > > /* > How isn't it working? What happens? I would try one variable first, get > that working, then add the others. Also, I am not sure how it will > handle the space in "Beginners Corner". Try passing simple value

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hey, Thanks for replying. It seems to be partly working. /* How isn't it working? What happens? I would try one variable first, get that working, then add the others. Also, I am not sure how it will handle the space in "Beginners Corner". Try passing simple values first. */ Its a bit hard to expl

Re: [PHP] URL rewriting...anybody done this?

2004-01-14 Thread Brad Pauly
On Wed, 2004-01-14 at 11:14, Ryan A wrote: > Hi, > I have a blog kind of app running on my site...presently it shows like this: > show.php?category=Beginners%20Corner&sid=1&id=1 > > After searching on google on how to make my blog my search engine friendly I > came accorss > mod_rewrite and couple

[PHP] URL rewriting...anybody done this?

2004-01-14 Thread Ryan A
Hi, I have a blog kind of app running on my site...presently it shows like this: show.php?category=Beginners%20Corner&sid=1&id=1 After searching on google on how to make my blog my search engine friendly I came accorss mod_rewrite and couple of tutorials on it, finally the one I understood and tri

Re: [PHP] URL regex

2003-12-19 Thread Rolf Brusletto
Evan Nemerson wrote: On Friday 19 December 2003 11:22 am, Evan Nemerson wrote: Hey does anyone have a good regex laying around for URLs? ereg or preg, doesn't matter. Okay finally found this: http://www.regexp.org/msg.php?uid=512 wow. Seriously- wow. -- Evan Nemerson [EMAIL PROTECTED]

Re: [PHP] URL regex

2003-12-19 Thread Evan Nemerson
On Friday 19 December 2003 11:22 am, Evan Nemerson wrote: > Hey does anyone have a good regex laying around for URLs? ereg or preg, > doesn't matter. Okay finally found this: http://www.regexp.org/msg.php?uid=512 wow. Seriously- wow. > > > > -- > Evan Nemerson > [EMAIL PROTECTED] > http://coeusg

[PHP] URL regex

2003-12-19 Thread Evan Nemerson
Hey does anyone have a good regex laying around for URLs? ereg or preg, doesn't matter. -- Evan Nemerson [EMAIL PROTECTED] http://coeusgroup.com/en -- "Truth, like gold, is to be obtained not by its growth, but by washing away from it all that is not gold. " -Leo Nikolaevich Tolstoy -- PH

Re: [PHP] url rewriting within sessions - confused newbie needs help - [FIXED]

2003-12-14 Thread Peter Walter
I finally discovered the problem. There was extra whitespace after the php closing tag ?> that was being interpreted as part of the header. Removing the whitespace fixed the problem. Peter Peter Walter wrote: Mike, I hope you mean session_start(). Yes, I did. Getting a bit dyslexic nowadays.

RE: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-12 Thread Ford, Mike [LSS]
On 11 December 2003 19:58, Peter Walter wrote: > I hope you mean session_start(). > > Yes, I did. Getting a bit dyslexic nowadays. > > > Well, you would, because PHP would use the value from the PHPSESSID= > URL parameter. > > ... except that on the second call, the url (as displayed by > th

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Peter Walter
Mike, I hope you mean session_start(). Yes, I did. Getting a bit dyslexic nowadays. Well, you would, because PHP would use the value from the PHPSESSID= URL parameter. ... except that on the second call, the url (as displayed by the browser) does not contain the PHPSESSID parameter, yet I am

RE: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-11 Thread Ford, Mike [LSS]
On 11 December 2003 18:01, Peter Walter wrote: > Mike, > > Thanks for the additional explanation, and I understand the > sequence of events as you described. However, please bear > with me a bit - the results I am getting do not quite match > your explanation. Let me clarify what I am doing: >

Re: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-11 Thread Peter Walter
Mike, Thanks for the additional explanation, and I understand the sequence of events as you described. However, please bear with me a bit - the results I am getting do not quite match your explanation. Let me clarify what I am doing: I have a page (index.php) which starts out by calling start

RE: [PHP] url rewriting within sessions - confused newbie needs h elp

2003-12-11 Thread Ford, Mike [LSS]
On 11 December 2003 16:54, Peter Walter wrote: > Jason, > > Thanks for your help. It is a little clearer to me now. > However, I have > visited php sites that *claim* to be using session management > but where > the links do not have the session id appended, and there are no > variables being pas

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Peter Walter
Jason, Thanks for your help. It is a little clearer to me now. However, I have visited php sites that *claim* to be using session management but where the links do not have the session id appended, and there are no variables being passed in the url for links. The url is always in the form "www

Re: [PHP] url rewriting within sessions - confused newbie needs help

2003-12-11 Thread Jason Wong
On Thursday 11 December 2003 14:16, Peter Walter wrote: > From the book "Core PHP programming", 3ed ; > > "As stated earlier, PHP sends session identifiers with cookies, but a > browser may refuse them. PHP can detect when a browser does not accept > cookies, and in this situation it modifies all

[PHP] url rewriting within sessions - confused newbie needs help

2003-12-10 Thread Peter Walter
From the book "Core PHP programming", 3ed ; "As stated earlier, PHP sends session identifiers with cookies, but a browser may refuse them. PHP can detect when a browser does not accept cookies, and in this situation it modifies all forms and links to include the session identifier." My php pag

Re: [PHP] URL Variables

2003-10-28 Thread Jed R. Brubaker
Thanks! "Chris Shiflett" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > --- "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > > Is there a way to preserve URL variables and have a link simply add > > a new variable to the end? > > Sure, just use $_SERVER['QUERY_STRING'], which is the c

Re: [PHP] URL Variables

2003-10-28 Thread Chris Shiflett
--- "Jed R. Brubaker" <[EMAIL PROTECTED]> wrote: > Is there a way to preserve URL variables and have a link simply add > a new variable to the end? Sure, just use $_SERVER['QUERY_STRING'], which is the current query string, and append whatever new URL variables you want. Chris = My Blog

RE: [PHP] URL Variables

2003-10-28 Thread Pablo Gosse
On Tuesday, October 28, 2003 8:57 AM Jed R. Brubaker wrote: > Is there a way to preserve URL variables and have a link simply add a new > variable to the end? > I am tabulating data and I have URL variables defining which dataset to > view and in what way to view it. I would now like to set the S

[PHP] URL Variables

2003-10-28 Thread Jed R. Brubaker
Is there a way to preserve URL variables and have a link simply add a new variable to the end? I am tabulating data and I have URL variables defining which dataset to view and in what way to view it. I would now like to set the SQL statement up with a limit and add some "Previous", "Next" commands

RE: [PHP] URL variables parsing error?

2003-09-18 Thread Jay Blanchard
[snip] and this is my index.php Output of this page is without expansion of my variables var1, var2 at section "echo" but phpinfo expand this: _GET["var1"]value1 _GET["var2"]value2 [/snip] This is not an error. Register globals is off (which is a Good Thing TM). var1 and var2 are in t

Re: [PHP] URL variables parsing error?

2003-09-18 Thread - Edwin -
Hi, [EMAIL PROTECTED] wrote: > Hi all, > > I use RedHat9.0 with Apache 2.0.40 & PHP 4.2.2 > and I have problem with parsing URL variables... > > I use this URL: http://my.domain.mine/index.php?var1=value1&var2=value2 > > and this is my index.php > >echo "var1: $var1" ; > echo "var2: $va

[PHP] URL variables parsing error?

2003-09-18 Thread hiaer
Hi all, I use RedHat9.0 with Apache 2.0.40 & PHP 4.2.2 and I have problem with parsing URL variables... I use this URL: http://my.domain.mine/index.php?var1=value1&var2=value2 and this is my index.php Output of this page is without expansion of my variables var1, var2 at section "echo" but ph

Re: [PHP] URL correctimizer ... how to make one?

2003-07-20 Thread Curt Zirzow
* Thus wrote Curt Zirzow ([EMAIL PROTECTED]): > > btw, the above code is copyrighted so dont use it. Sorry, i shouldn't and try and make jokes in the furture... I was a little tired last night and kinda needed to lighten up my email a little (but it backfired on me).. Again, sorry for the con

Re: [PHP] URL correctimizer ... how to make one?

2003-07-20 Thread Mike Morton
Tell me Curt, where is it copyrighted? US/Canada/Worldwide? Where is it registered? What do you intended to do to protect your copyright? What makes this code unique that it can be copyrighted to you? Do you understand copyrighting and intellectual property? You just made that code public on

RE: [PHP] URL correctimizer ... how to make one?

2003-07-20 Thread Randum Ian
And even if it is copyrighted as soon as you change variable names and so on that copyright does not apply. -Original Message- From: Justin French [mailto:[EMAIL PROTECTED] Sent: 20 July 2003 14:00 To: Curt Zirzow Cc: php Subject: Re: [PHP] URL correctimizer ... how to make one? On

Re: [PHP] URL correctimizer ... how to make one?

2003-07-20 Thread Justin French
On Sunday, July 20, 2003, at 03:26 PM, Curt Zirzow wrote: I know this isn't your code but... yes, it wasn't mine, but i should have checked it out more thoroughly regardless. btw, the above code is copyrighted so dont use it. *sigh*... so why contribute it to the list? Just to prove your skil

Re: [PHP] URL correctimizer ... how to make one?

2003-07-19 Thread Curt Zirzow
I know this isn't your code but... * Thus wrote Justin French ([EMAIL PROTECTED]): > [...] > > // test the URL > // it's important that you dont put http:// or it will not work > // the 2nd paramater is how long to test the URL b4 timing out > $found = fsockopen($url, 10); $found = fsockopen($ho

Re: [PHP] URL correctimizer ... how to make one?

2003-07-19 Thread Justin French
echo "URL http://{$url} could not be found, thus is considered invalid"; } ?> There's also plenty more here: http://www.google.com/search?q=PHP+URL+validation&ie=UTF-8&oe=UTF-8 Seriously, I know it's great to learn everything from scratch, but the wheel has alre

[PHP] URL correctimizer ... how to make one?

2003-07-18 Thread -{ Rene Brehmer }-
Hi gang Finally I've got the time to finish up my guestbook script ... so little left that I can actually see the light at the end of the tunnel now.. The guestbook data is stored in a text file. When opening the guestbook, this file is parsed and the named fields are used to construct differen

Re: [PHP] URL problem

2003-07-07 Thread Brad Pauly
Sparky Kopetzky wrote: and intercepting it with: if ($_SERVER['QUERY_STRING'] = "") { disp_cat(); } However, nothing is happening. phpinfo show $_SERVER['QUERY_STRING'] as 'no value', so this should work. Anyone know why this doesn't work?? Yes. You are using an assignment operator where you

[PHP] URL problem

2003-07-07 Thread Sparky Kopetzky
Hi! I'm passing this url to the script: http://www.fttta.com/auction.php and intercepting it with: if ($_SERVER['QUERY_STRING'] = "") { disp_cat(); } However, nothing is happening. phpinfo show $_SERVER['QUERY_STRING'] as 'no value', so this should work. Anyone know why this doesn't work

Re: [PHP] Url problem

2003-06-12 Thread Jason Wong
On Friday 13 June 2003 04:55, Sparky Kopetzky wrote: > I'm trying this, it doesn't work and I can't figure out why: > > include_once $SYSTEM_URL . "/classes/category.php"; where $SYSTEM_URL = > "http://www.example.com"; is the url to the web site. and I get this error: > > Fatal error: Cannot

[PHP] Url problem

2003-06-12 Thread Sparky Kopetzky
OK. I'm suffering from brain gas... I'm trying this, it doesn't work and I can't figure out why: include_once $SYSTEM_URL . "/classes/category.php"; where $SYSTEM_URL = "http://www.example.com"; is the url to the web site. and I get this error: Fatal error: Cannot instantiate non-existent c

Re: [PHP] url rewrite

2003-03-28 Thread Chris Hewitt
Sebastian wrote: if that were the case I wouldn't have asked here.. perhaps i didn't find the answer at "google or the archives." - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Ask google or ask the archives. | On Friday 28 March 2003 16:38, Seb

Re: [PHP] url rewrite

2003-03-28 Thread Sebastian
if that were the case I wouldn't have asked here.. perhaps i didn't find the answer at "google or the archives." - Original Message - From: "Jason Wong" <[EMAIL PROTECTED]> Ask google or ask the archives. | On Friday 28 March 2003 16:38, Sebastian wrote: | | > i am not sure where to po

Re: [PHP] url rewrite

2003-03-28 Thread Jason Wong
On Friday 28 March 2003 16:38, Sebastian wrote: > i am not sure where to post this question, since it's partly related to > PHP, so i'll ask here. Ask google or ask the archives. > I'd like to rewrite a url > that looks like this: /news/articles/article.php?id=255 > > into /news/articles/255/ -

[PHP] url rewrite

2003-03-28 Thread Sebastian
hello, i am not sure where to post this question, since it's partly related to PHP, so i'll ask here. I'd like to rewrite a url that looks like this: /news/articles/article.php?id=255 into /news/articles/255/ any help is appreciated. cheers, - Sebastian

[PHP] Re: PHP url variables

2003-03-14 Thread Cranky Kong
Have a look at the parameter register_global in your php.ini By default in the recent version of PHP, this parameter is set by default to off for security reason. So if you want to use $id, you just have to set this parameter to on "Stephen" <[EMAIL PROTECTED]> a écrit dans le message de news: [E

[PHP] Re: PHP url variables

2003-03-13 Thread Ron Rudman
Try: parse_str( $_SERVER['QUERY_STRING']); "Stephen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi > > I have just installed PHP 4 and Apache 2 but when I pass a variable in a url > eg ?id=1 > I can't get the variable value by $id, I have to use $_GET['id'] or > $_POST['id'] > >

[PHP] PHP url variables

2003-03-13 Thread Stephen
Hi I have just installed PHP 4 and Apache 2 but when I pass a variable in a url eg ?id=1 I can't get the variable value by $id, I have to use $_GET['id'] or $_POST['id'] Is there a setting I need to change to allow me to use the $id? If there is it will save a lot of additional coding. Thanks,

Re: [PHP] URL of calling page

2003-02-16 Thread Justin French
on 17/02/03 9:25 AM, Kevin Waterson ([EMAIL PROTECTED]) wrote: > This one time, at band camp, > acleave <[EMAIL PROTECTED]> wrote: > >> I believe there's a way in PHP to get the URL of the page that called the >> current page but can't find it. Is there such a function? Or would I have >> to >

Re: [PHP] URL of calling page

2003-02-16 Thread Kevin Waterson
This one time, at band camp, acleave <[EMAIL PROTECTED]> wrote: > I believe there's a way in PHP to get the URL of the page that called the > current page but can't find it. Is there such a function? Or would I have to > use another script (like Javascript)? $_SERVER['HTTP_REFERER'] Kevin -

Re: [PHP] URL of calling page

2003-02-16 Thread Ernest E Vogelsinger
At 22:58 16.02.2003, acleave said: [snip] >I believe there's a way in PHP to get the URL of the page that called the >current page but can't find it. Is there such a function? Or would I >have to >use another script (like Javascript)?

[PHP] URL of calling page

2003-02-16 Thread acleave
I believe there's a way in PHP to get the URL of the page that called the current page but can't find it. Is there such a function? Or would I have to use another script (like Javascript)? What I mean is if I click on a link on index.html to jeremiah.php I can call the function and find out I

[PHP] Threads in PHP? URL call from PHp?

2003-02-14 Thread Steve Vernon
Hiya, Perhaps I don't mean threads! Basically I have a PHP script which is in a website, and runs when a certain input is recieved and it is quite complicated, and may take quite a time to finish, as it will be sending quite a few emails. The emails do not have to be sent straight away, an

RE: [PHP] [url] to html

2003-01-24 Thread John W. Holmes
> how to chang [url=%link%]%descr%[/url] in %descr% $new_str = preg_replace("!\[url=(.*)\](.*)\[/url\]!U","$2",$old_str); should work... ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (h

Re: [PHP] [url] to html

2003-01-24 Thread Leif K-Brooks
Take a look at my BBCode class, http://www.phpclasses.org/browse.html/package/951.html. Niels Uhlendorf wrote: hi, how to chang [url=%link%]%descr%[/url] in %descr% thx 4 help. Niels -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will

[PHP] [url] to html

2003-01-24 Thread Niels Uhlendorf
hi, how to chang [url=%link%]%descr%[/url] in %descr% thx 4 help. Niels -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] URL path problems

2002-12-20 Thread ªüYam
t > it in the httpd.conf > > > -Original Message- > > From: ªüYam [mailto:[EMAIL PROTECTED]] > > Sent: Friday, 20 December 2002 4:41 PM > > To: [EMAIL PROTECTED] > > Subject: [PHP] URL path problems > > > > > > Suppose my web domain is http

Re: [PHP] URL path problems

2002-12-19 Thread Wee Keat
> Suppose my web domain is http://abc.com > There is a administration directory in my wwwroot which is used to store the > administrative control pages. > > However, from now on, everyone can access the administrative pages through > the addictive path to the domain such as: > http://abc.com/admini

RE: [PHP] URL path problems

2002-12-19 Thread Peter Houchin
if ur using apache using .htaccess in the directory .. and you can also set it in the httpd.conf > -Original Message- > From: ªüYam [mailto:[EMAIL PROTECTED]] > Sent: Friday, 20 December 2002 4:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] URL path problems > > >

[PHP] URL path problems

2002-12-19 Thread ªüYam
Suppose my web domain is http://abc.com There is a administration directory in my wwwroot which is used to store the administrative control pages. However, from now on, everyone can access the administrative pages through the addictive path to the domain such as: http://abc.com/administration/xxx.

Re: [PHP] URL parsing

2002-12-18 Thread 1LT John W. Holmes
> http://www.php.net/manual/en/function.parse-url.php If you're going to help, at least read the question. The poster already said they tried that and it's not even a solution, anyhow. The "username" it refers to in parse_url() is for URLs in the format of http://username:[EMAIL PROTECTED]. > >ht

Re: [PHP] URL parsing

2002-12-18 Thread Tim Ward
ED]> Sent: Wednesday, December 18, 2002 2:39 PM Subject: [PHP] URL parsing > I've got a URL like this: > > http://www.naturalist.com/~fungae/index.php > > which is stored in $http_referer (as parse_url from > $HTTP_REFERER). > > I'm trying to extract t

Re: [PHP] URL parsing

2002-12-18 Thread Wico de Leeuw
http://www.php.net/manual/en/function.parse-url.php At 06:39 18-12-02 -0800, Mako Shark wrote: I've got a URL like this: http://www.naturalist.com/~fungae/index.php which is stored in $http_referer (as parse_url from $HTTP_REFERER). I'm trying to extract the username (~fungae). I've read the do

[PHP] URL parsing

2002-12-18 Thread Mako Shark
I've got a URL like this: http://www.naturalist.com/~fungae/index.php which is stored in $http_referer (as parse_url from $HTTP_REFERER). I'm trying to extract the username (~fungae). I've read the docs on parse_url(), and have tried to get $http_referer[user], but it comes up with zilch. I've a

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread Joseph W. Goff
I don't know. You need to show your code. - Original Message - From: <[EMAIL PROTECTED]> To: "Joseph W. Goff" <[EMAIL PROTECTED]> Cc: "php-general" <[EMAIL PROTECTED]> Sent: Monday, December 16, 2002 12:01 PM Subject: Re: [PHP] URL field receivin

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread rw
lue you get is 'Array'. ### You ### will either have to step through it, or implode it, or something of that ### nature to get what the array contains. ### - Original Message - ### From: <[EMAIL PROTECTED]> ### To: <[EMAIL PROTECTED]> ### Sent: Monday, December 16,

Re: [PHP] URL field receiving Array for others

2002-12-16 Thread Joseph W. Goff
- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, December 16, 2002 11:50 AM Subject: [PHP] URL field receiving Array for others > > Hello All! > > I have a script which inserts a users info into mysql via PHP. > > Here is the code which does so:

[PHP] URL field receiving Array for others

2002-12-16 Thread rw
Hello All! I have a script which inserts a users info into mysql via PHP. Here is the code which does so: $sql = ("INSERT INTO `business` (`id`, `bt_id`, `bus_name`, `bcity`, `phone`, `cell`, `email`, `url`, `details`, `duration`, `s_id`, `license`, `datime`, `comments`,`ip`,`user_id`,`user_pas

Re: [PHP] URL vars in URL var?

2002-12-03 Thread Shawn McKenzie
Great thanks! Since I'm doing this from an anchor or in the browser location bar, I just replaced the & in the url var with %26. Works great! -Shawn "Adam Voigt" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... http://www.php.net/manual/en/function.urlencode.php

Re: [PHP] URL vars in URL var?

2002-12-03 Thread Adam Voigt
http://www.php.net/manual/en/function.urlencode.php Pass it through that function (or one of the others) on: http://www.php.net/manual/en/ref.url.php On Tue, 2002-12-03 at 12:01, Shawn McKenzie wrote: I'm trying to pass a URL as a var in a URL: The url var s

[PHP] URL vars in URL var?

2002-12-03 Thread Shawn McKenzie
I'm trying to pass a URL as a var in a URL: The url var should equal: http://www.someothersite.com/index.php?something=something&x=100&y=200 And I'm passing it to this URL: http://www.somesite.com/index.php?var=val So if I use: http://www.somesite.com/index.php?var=val&url=http://www.someothersi

Re: [PHP] URL hiding

2002-11-26 Thread John Nichel
Have you index.php page as a frameset, and load all pages into the frameset. No matter where the user is on your site, they'll just see http://www.whatever.com Kris wrote: Hi When I pass variables to a new page in the address bare of the browser it looks like www.whatever.com/index.php?uName=

Re: [PHP] URL hiding

2002-11-26 Thread Bob Irwin
gt; Cc: "PHP-General" <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 10:39 AM Subject: Re: [PHP] URL hiding > I already use POST as the form method. > I know > www.whatever.com/index.php?uName=Kris can be the same as > www.whatever.com?uName=Kris > > I just

<    1   2   3   4   5   >