On Mon, 13 Sep 2004 18:35:58 +0300, Rosen [EMAIL PROTECTED] wrote:
I changed the JScript to encode data not as unicode - now it code data as
%20%2B%20.
But when I get data with $_REQUEST[var] - I loose symbol + - with code
%2B.
Can you change it back before you decode it? Maybe with
The sending form works with JavaScript. When enter on some field combination
+ plus sign and space - JScript encode it - I see it with alert -
%2B%20 , but when new window opens on url bar shows +%20 - thath means
space only.
Greg Donald [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
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
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.
SNIP
-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.
/SNIP
Since you are getting the information from the page anyways, just simply
do:
$_SERVER[PHP_SELF]?parameter1=$_GET[parameter1]parameter2=$_GET[paramet
er2]parameter3=$_GET[parameter3] etc...
should also make sure to urlencode the data
here is another thrread about it
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: [EMAIL
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
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 to another
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
--- 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 enter a
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
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:
?php
echo Ok,we are in tt.phpbr;
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:
?php
echo Ok,we are in tt.phpbr;
if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No
\$_GET[id]br;}
print_r($_GET);
print_r($_REQUEST);
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
Hi,
I have a blog kind of app running on my site...presently it shows like this:
show.php?category=Beginners%20Cornersid=1id=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
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%20Cornersid=1id=1
After searching on google on how to make my blog my search engine friendly I
came accorss
mod_rewrite and couple of
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
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 values
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%20Cornersid=1id=1
and then if
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 values
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=poetrysid=$2id=$3
I even took out the space
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/(.*)/(.*)/(.*)
[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=poetrysid=$2id=$3
I even took out the space which was in category.
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=poetrysid=1id=2
you will see that its echoing that without a problem..so this is
partly working.
now what to do about the
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=poetrysid=1id=2
you will see that its echoing that without a problem..so this is
Hey,
I put this in for testing:
if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No
\$_GET[id]br;}
if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No
\$_GET[sid]br;}
and heres the output:
No $_GET[id]
No $_GET[sid]
So the variables are not being passed
Any idea why and what I
On Thursday 15 January 2004 05:01, Ryan A wrote:
I put this in for testing:
if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No
\$_GET[id]br;}
if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No
\$_GET[sid]br;}
and heres the output:
No $_GET[id]
No $_GET[sid]
So the
Oops sorry, missed that.
Heres whats on top of the page:
echo Ok,we are in show.phpbr;
if(isset($_GET[id])){echo Got \$_GET[id]br;}else{echo No
\$_GET[id]br;}
if(isset($_GET[sid])){echo Got \$_GET[sid]br;}else{echo No
\$_GET[sid]br;}
print_r($_GET);
print_r($_GET['id']);
print_r($_GET['sid']);
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 rule looks
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
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
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.phpbr;
RewriteEngine On
RewriteRule ^show/(.*)/(.*) /show.php?sid=$1id=$2
Try:
RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1id=$2
--
paperCrane Justin Patrin
--
Question Everything, Reject Nothing
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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=$1id=$2
Try:
On Thursday 15 January 2004 09:28, Justin Patrin wrote:
RewriteEngine On
RewriteRule ^show/(.*)/(.*) /show.php?sid=$1id=$2
Try:
RewriteRule ^show/([^/]*)/([^/]*) /show.php?sid=$1id=$2
The original ought to work just fine -- I have it working here.
--
Jason Wong - Gremlins Associates -
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=$1b=$2c=$3
What version of Apache/PHP are you using?
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
--
PHP
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]
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
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.
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
the
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 forms
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
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 passed in
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
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:
I
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
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 pages
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,
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 SQL
--- 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
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 current query
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=value1var2=value2
and this is my index.php
?php
echo var1: $var1 ;
echo var2: $var2 ;
phpinfo();
?
Output of this page is without
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=value1var2=value2
and this is my index.php
?php
echo var1: $var1 ;
echo var2: $var2 ;
[snip]
and this is my index.php
?php
echo var1: $var1 ;
echo var2: $var2 ;
phpinfo();
?
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
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
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
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
* 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
is considered
invalid;
}
?
There's also plenty more here:
http://www.google.com/search?q=PHP+URL+validationie=UTF-8oe=UTF-8
Seriously, I know it's great to learn everything from scratch, but the
wheel has already been invented... you just need to make sure it's the
right kind of wheel for your needs
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($host,
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
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
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
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
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
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
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/
--
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 post
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]
mailto:[EMAIL PROTECTED]
Ask google or ask the archives.
| On Friday 28 March 2003 16:38, Sebastian
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:
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,
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']
Is there a
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
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)?
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
--
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
use
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,
hi,
how to chang [url=%link%]%descr%[/url] in a href=%link%%descr%/a
thx 4 help.
Niels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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 a href=%link%%descr%/a
thx 4 help.
Niels
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt to
how to chang [url=%link%]%descr%[/url] in a href=%link%%descr%/a
$new_str = preg_replace(!\[url=(.*)\](.*)\[/url\]!U,a
href=$1$2/a,$old_str);
should work...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/
--
PHP
-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://abc.com
There is a administration directory in my wwwroot which is used
to store
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:
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
Suppose my web domain is http
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:
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
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
: 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 the username (~fungae). I've
read the docs on parse_url
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].
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`,
: [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:
$sql = (INSERT INTO `business` (`id`, `bt_id
'.
### 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, 2002 11:50 AM
### Subject: [PHP] URL field receiving
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 receiving Array for others
But what could the user
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=somethingx=100y=200
And I'm passing it to this URL:
http://www.somesite.com/index.php?var=val
So if I use:
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
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
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=KrispassWd=1234
How can I hide this so it's just
www.whatever.com/index.php or even better just
www.whatever.com
thanks
Kris
If index.php is the index page of your website, then you do not need to
specify it at all.
i.e. www.whatever.com/index.php?uName=Kris
is functionally equivalent to www.whatever.com?uName=Kris
A way to get rid of the variables passed in the query string is to use
POST instead of GET as the
help
Kris
- Original Message -
From: Marco Tabini [EMAIL PROTECTED]
To: Kris [EMAIL PROTECTED]
Cc: PHP-General [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 9:12 AM
Subject: Re: [PHP] URL hiding
If index.php is the index page of your website, then you do not need to
specify
201 - 300 of 420 matches
Mail list logo