I'm running PHP 4.2.3 as an Apache Module
When I try to use $PHP_AUTH_USER it returns nothing. But if I print out
$_SERVER[PHP_AUTH_USER] it prints the user name I tried.
All of the sample code and books that I have use the $PHP_AUTH_USER.
Can anyone give me some insight on what the difference
Try looking in the manual for register_globals. It's a setting in
php.ini that determines whether server variables are registered as
regular variables or not. The material you have probably expects it to
be turned on, whereas in more recent versions it has been turned off.
It's considered a
They contain the same data.
Newer versions of PHP (= 4.1.1 I think) make use of the new superglobal
arrays (like $_POST, $_GET, $_SESSION, $_COOKIE, $_SERVER, etc)... This way
of doing things is more secure, and will encourage smarter programming.
You can get the old behaviour back by changing
What is a variables value before said value has been assigned a value?
Thanks
Bryan
, 2002 1:01 AM
Subject: [PHP] Variables
What is a variables value before said value has been assigned a value?
Thanks
Bryan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to pass variables from one page to the next but don't want to
use a hidden input type=text box. I need to break from frames and I don't
know a way to pass that to the action tag in the form. If there's a way to
do that then great but I haven't found it. I've also tried the meta
2:46 PM
Subject: [PHP] Variables and Forms
I'm trying to pass variables from one page to the next but don't want to
use a hidden input type=text box. I need to break from frames and I don't
know a way to pass that to the action tag in the form. If there's a way to
do that then great but I
is there any way to make variables NOT case sensitive??
A partner is posting information to one of my PHP scripts and cant gurantee
that variables passed will be lowercase
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Georgie Casey wrote:
is there any way to make variables NOT case sensitive??
A partner is posting information to one of my PHP scripts and cant gurantee
that variables passed will be lowercase
Sure, whatever you use make it lower case, whataever he send,
cook to lower case.
Cheers,
Rob.
--
yea, i probably didnt make that clear
its the variables NAMES that he can't gurantee to be lowercase
eg
hell pass http://www.server.com/test.php?NAME=JohnIDNumber=12
when im expecting $name and $idnumber
sorry
Robert Cummings [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL
Georgie Casey wrote:
yea, i probably didnt make that clear
its the variables NAMES that he can't gurantee to be lowercase
eg
hell pass http://www.server.com/test.php?NAME=JohnIDNumber=12
when im expecting $name and $idnumber
$lowerVars = array();
foreach( $_POST as $key = $value )
{
: Thursday, September 19, 2002 12:18 PM
Subject: [PHP] Variables Case Sensitivity??
is there any way to make variables NOT case sensitive??
A partner is posting information to one of my PHP scripts and cant
gurantee
that variables passed will be lowercase
--
PHP General Mailing List (http
We've recently upgraded to PHP version 4.2.2 running on SuSE 7.2 with
the 2.4.4 kernel and I'm seeing variables behave in a way I didn't
expect. With the prior configuration http post variables were freely
available on the receiving page, but now, for some reason, they aren't.
This code:
Read this.
http://www.php.net/release_4_2_0.php
~ Matthew
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 19, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] variables not behaving as expected
We've recently upgraded to PHP version
= $post;
}
- Original Message -
From: ROBERT MCPEAK [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 19, 2002 12:58 PM
Subject: [PHP] variables not behaving as expected
We've recently upgraded to PHP version 4.2.2 running on SuSE 7.2 with
the 2.4.4 kernel and I'm seeing
Hi,
I have a small form with checkbox objects. Below is the code:
form method=POST action=doc_complete.html
input type=checkbox name=b13 value=checked
font size=3Export Declaration (B13)/fontbr
input type=checkbox name=\cinvoice\ value=checked
font size=3Commercial Invoice/font
p align=left
What is the difference from using $_GET['some_var'] from using $_REQUEST['some_var']?
I think the documentation says either can be used to do the same thing.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Saturday 03 August 2002 10:43, Bob Lockie wrote:
What is the difference from using $_GET['some_var'] from using
$_REQUEST['some_var']? I think the documentation says either can be used to
do the same thing.
$_REQUEST holds everything from $_GET, $_POST, and $_COOKIE combined, thus you
On Sat, 3 Aug 2002 12:19:15 +0800, Jason Wong wrote:
On Saturday 03 August 2002 10:43, Bob Lockie wrote:
What is the difference from using $_GET['some_var'] from using
$_REQUEST['some_var']? I think the documentation says either can be used to
do the same thing.
$_REQUEST holds everything
On Saturday 03 August 2002 12:55, Bob Lockie wrote:
$_REQUEST holds everything from $_GET, $_POST, and $_COOKIE combined, thus
you cannot differentiate where the value came from.
If you want to be sure, be specific and use one of $_GET/$_POST/$_COOKIE.
There is no reason other than
I am having a problem passing a variable from PHP to Javascript and getting
my JS function to recognize a form element object. I am trying to use the
selection of a particular option in a dropdown menu to control the
visibility of another form control element (another select box). In other
words,
echo option value='$chon_pet[7]'$chon_pet[7]/option;
JavaScript won't let you use [] in a name, so you'll have to refer to the
elements by number.
--
Like Music? http://l-i-e.com/artists.htm
I'm looking for a PRO QUALITY two-input sound card supported by Linux (any
major distro). Need to
Hi,
I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems
to be a problem that variables from POST/GET are not being passed to the
PHP page. For example, with the following file test.php, using the URL
'test.php?mid=1' displays 'nope'.
?
if (isset($mid))
echo $mid;
AM
Subject: [PHP] Variables aren't being passed to php page
Hi,
I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems
to be a problem that variables from POST/GET are not being passed to the
PHP page. For example, with the following file test.php, using the URL
'test.php
I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there
seems
to be a problem that variables from POST/GET are not being passed to
the
PHP page. For example, with the following file test.php, using the URL
'test.php?mid=1' displays 'nope'.
Do you always upgrade programs without
On Sunday 14 July 2002 21:53, John Holmes wrote:
I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there
seems
to be a problem that variables from POST/GET are not being passed to
the
PHP page. For example, with the following file test.php, using the URL
'test.php?mid=1'
Please read this:
http://www.php.net/manual/en/language.variables.external.php
Regards,
Philip Olson
On Sun, 14 Jul 2002, Mike Heffner wrote:
Hi,
I've recently upgraded from PHP 4.0.4p11 - PHP 4.2.1, but now there seems
to be a problem that variables from POST/GET are not being passed
PHP page. For example, with the following file test.php, using the URL
'test.php?mid=1' displays 'nope'.
This list gets at least one question a day on this subject ...
Please refer to the manual when this happens, specifically:
I totally agree. No offence to all the ppl who have asked, but didn't it say
on the download page that there had been major changes to the way variables
are used??
John Holmes [EMAIL PROTECTED] wrote in message
000a01c22b3d$e4755790$b402a8c0@mango">news:000a01c22b3d$e4755790$b402a8c0@mango...
I have a web page which contains a form whose action is a php script.
Unfortunately, NONE of the form's variables are being passed when the form
is submitted.
For example: the submit button's name is 'submit', and the value is 'Add',
but in the receiving php script, $submit is empty, and so is
On Tue, Jun 18, 2002 at 02:42:38PM -0700, Anthony 'Crash' Ciarochi wrote:
For example: the submit button's name is 'submit', and the value is 'Add',
but in the receiving php script, $submit is empty, and so is
$HTTP_POST_VARS[submit']
register_globals is On
Your HTML is broken? Post
18, 2002 3:42 PM
Subject: [PHP] variables not being passed from form ??
I have a web page which contains a form whose action is a php script.
Unfortunately, NONE of the form's variables are being passed when the form
is submitted.
For example: the submit button's name is 'submit
Anthony,
Can you create a very simple test case that demonstrates this problem
and post it? It might reveal something, because otherwise, I don't see a
cause for trouble with what you've described.
Chris
P.S. Please copy me in any replies if you want to make sure I see it.
Anthony 'Crash'
I have found an alternate way of achieving what I want, but I'm wondering if
there was an easier way. I have a PHP file that builds a Web page that
includes forms. The forms are built dynamically based on the contents of a
file, and thus there may be one or two or more forms on the page at any
It a BASIC question,
With the following:
FORM NAME='Job_Application' ACTION=job_action.php METHOD=post
ENCTYPE=multipart/form-data
INPUT TYPE=text NAME=name
Name : BR
INPUT TYPE=HIDDEN NAME=MAX_FILE_SIZE VALUE=20
INPUT TYPE=FILE NAME=userfileBRBR
INPUT TYPE=submit
Can you send the code that is failing to the list - it will help in working
out the problem...
Mikey
FréDéRick St-Hilaire [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
It a BASIC question,
With the following:
FORM NAME='Job_Application'
On Friday, May 31, 2002, 5:17:49 PM, you wrote:
Can you send the code that is failing to the list - it will help in working
out the problem...
And include your platform details (OS, PHP version, etc).
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Are HTML Checkbox values handled the same way as Select Multiple tags?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, May 29, 2002 8:56 AM
Subject: [PHP] HTML Checkboxes and PHP variables
Are HTML Checkbox values handled the same way as Select Multiple tags?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http
check One and Three, then you'll have a $foo array like this:
$foo[0]='one';
$foo[1]='three';
---John Holmes...
- Original Message -
From: Brad Harriger [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 29, 2002 8:56 AM
Subject: [PHP] HTML Checkboxes and PHP variables
PROTECTED]
Cc: [EMAIL PROTECTED]; Brad Harriger
[EMAIL PROTECTED]
Sent: Wednesday, May 29, 2002 7:39 PM
Subject: Re: [PHP] HTML Checkboxes and PHP variables
I've been wrestling with the same issue. I had some code loop through and
create an arbitrary number of checkbox inputs with the name 'foo
When are set in php.ini (php version 4.2.1 on linux) register_globals = Off
how
I read variables from html files with forms in other php file ?
Thanks
roman
for example :
html file :
form action=query.php method=POST
input type=text name=name1 value=
input type=submit value = OK
Hi there!
I'm just starting to get in touch with
oo programming in PHP. Now I've got a
quite simple question, I guess...
In an example in the PHP-help, I found
a class definition with accessor functions
like
dummy-get_some_variable();
But AFAIK (and see ;)), variables in PHP
in fact are
HI,
as far as i know private vars should be available in the next release of
the zend engine, thus, using get and set functions is a good practice to be
sure that your apps will still function in future php releases.
Regrads.
___
Hassan El
But AFAIK (and see ;)), variables in PHP
in fact are never private, but always
public, at least within the current script.
This is correct, all functions and variables inside a class are public.
There are no protected nor private func's / var's.
So what would be the sense in having
this
a few weeks ago there was a discussion about how
to get
variables attached to a url like
http://server.com/script.php?var1=value1var2=val
ue2var3=value3
the easiest way to do this is possibly:
$vars = explode(, $argv[0]);
parse_str($vars);
with these two lines you will have the variables
Hello,
I have recently been trying to use templates with XML documents. My problem
however is that I cannot get the values between XML tags into variables. For
example
Example XML Document:
me
name
Foo-Bar
/name
/me
What would I need to do, so that I can get the
On Mon, May 06, 2002 at 08:20:46PM +0200, Sebastian A. wrote:
me
name
Foo-Bar
/name
/me
What would I need to do, so that I can get the contents of the name tag
(Foo-Bar) into a variable?
Check out my PHP XML Parsing Basics at
: Monday, May 06, 2002 8:25 PM
To: PHP List
Subject: Re: [PHP] Variables from XML Documents
On Mon, May 06, 2002 at 08:20:46PM +0200, Sebastian A. wrote:
me
name
Foo-Bar
/name
/me
What would I need to do, so that I can get the contents of the name tag
(Foo-Bar
Sebastian:
On Tue, May 07, 2002 at 07:06:18AM +0200, Sebastian A. wrote:
The parsing is not the problem. I am already using the PHP XML parser, but
the problem is that it I cannot get the content of elements into variables
like I already stated. Does no one know how to do this?
You are
07, 2002 3:06 PM
To: PHP General List (PHP.NET)
Subject: RE: [PHP] Variables from XML Documents
The parsing is not the problem. I am already using the PHP XML parser, but
the problem is that it I cannot get the content of elements into variables
like I already stated. Does no one know how to do
try to send the same url + start=8
index.php?left=newsltitle=indexlext=phpstart=8
Jule a écrit :
Hey,
i've got a little problem:
I have two php pages
index.php and news/index.php
now in index.php there is a table which shows news/index.php
$left = news;
$ltitle = index;
$lext=
I want to do something along the lines of:
$type = basic;
$$type_user = jaxn;
echo $basic_user;
and have the output be jaxn.
I have tried everything I can think of, and I have looked in all my
books.
I know how to:
$type = basic;
$$type = jaxn;
echo $basic;
but this won't do what I need. I
On Friday 03 May 2002 02:43, Jackson Miller wrote:
I want to do something along the lines of:
$type = basic;
$$type_user = jaxn;
echo $basic_user;
and have the output be jaxn.
I have tried everything I can think of, and I have looked in all my
books.
I know how to:
$type = basic;
Hey,
i've got a little problem:
I have two php pages
index.php and news/index.php
now in index.php there is a table which shows news/index.php
$left = news;
$ltitle = index;
$lext= php;
include ($left/$ltitle.$lext);
now this allows me to keep the layout the same, but change the pages
$left = news;
$ltitle = index;
$lext= php;
include ($left/$ltitle.$lext);
a href=index.php?lext=php?start=8next/a
so this should link to the index page, which calls upon
news/index.php, opens
it in the left column of the table, and gives $start the value of 8.
but it gives me this
I have a problem with my variables not being set. I
have a file I use for constants and functions,
structured like so:
$this = this;
$that = that;
.
.
.
function this() {
$h = $this;
$i = $that;
}
function that() {
}
Now, when I run this(), $this isn't set (even though
it's above it in
On Fri, 26 Apr 2002, Liam Gibbs wrote:
Shouldn't you be using GLOBAL to access $this, $that inside functions?
I have a problem with my variables not being set. I
have a file I use for constants and functions,
structured like so:
$this = this;
$that = that;
.
.
.
function this() {
Please read http://www.php.net/manual/en/language.variables.scope.php
On Fri, 26 Apr 2002, Liam Gibbs wrote:
I have a problem with my variables not being set. I
have a file I use for constants and functions,
structured like so:
$this = this;
$that = that;
.
.
.
function this() {
]
Subject: [PHP] Variables not set
I have a problem with my variables not being set. I
have a file I use for constants and functions,
structured like so:
$this = this;
$that = that;
.
.
.
function this() {
$h = $this;
$i = $that;
}
function that() {
}
Now, when I run this(), $this isn't set
Ha, Sorry wrong instance here, ya global or pass the vars to the function.
-Original Message-
From: Steve Bradwell [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 26, 2002 3:13 PM
To: 'Liam Gibbs'; [EMAIL PROTECTED]
Subject: RE: [PHP] Variables not set
I'm pretty new to php but I think
On Fri, 26 Apr 2002, Liam Gibbs wrote:
I have a problem with my variables not being set. I have a file I use
for constants and functions, structured like so:
$this = this;
$that = that;
.
.
.
function this() {
$h = $this;
$i = $that;
}
function that() {
}
Now, when I
On Friday, April 26, 2002, at 04:12 PM, Miguel Cruz wrote:
There is something called global scope which refers to all variables
created outside of any function or object. Variables with global scope
are
then available anywhere outside of a function or object.
Is there a difference
Hello all, im not sure if its my installation or if on doing something wrong
but i cant seem to use any of the variables from forms that i PUT to. Or any
full stop! even
?php echo $HTTP_USER_AGENT; ?
doesnt out put anything. Anyone seen this before?
thanks in advance for your help
Cheers From
Turn on register_globals in your php.ini file.
On Sat, 27 Apr 2002, baldey_uk wrote:
Hello all, im not sure if its my installation or if on doing something wrong
but i cant seem to use any of the variables from forms that i PUT to. Or any
full stop! even
?php echo $HTTP_USER_AGENT; ?
,
# Nathan
- Original Message -
From: Rasmus Lerdorf [EMAIL PROTECTED]
To: baldey_uk
Cc:
Sent: Friday, April 26, 2002 6:41 PM
Subject: Re: [PHP] Variables not working
Turn on register_globals in your php.ini file.
On Sat, 27 Apr 2002, baldey_uk wrote:
Hello all, im not sure if its
: [PHP] Variables not working
Before you get carried away with registering globals, try echoing:
$_SERVER[HTTP_USER_AGENT];
Or, for versions prior to 4.1.X, change that to:
$HTTP_SERVER_VARS[HTTP_USER_AGENT];
Registering globals is insecure unless you are VERY careful about how every
variable you
: [PHP] Variables not working
Before you get carried away with registering globals, try echoing:
$_SERVER[HTTP_USER_AGENT];
Or, for versions prior to 4.1.X, change that to:
$HTTP_SERVER_VARS[HTTP_USER_AGENT];
Registering globals is insecure unless you are VERY careful about how every
variable
: [PHP] Variables not working
Sorry let me rephrase that ' can anyone point me to good docs about
passing
variables between html and php' please?
Cheers
baldey_uk
-Original Message-
From: Nathan [mailto:[EMAIL PROTECTED]]
Sent: 27 April 2002 02:34
To: Rasmus Lerdorf; [EMAIL
PROTECTED]]
Sent: 27 April 2002 02:34
To: Rasmus Lerdorf; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Variables not working
Before you get carried away with registering globals, try echoing:
$_SERVER[HTTP_USER_AGENT];
Or, for versions prior to 4.1.X, change
PROTECTED]]
Sent: 27 April 2002 02:34
To: Rasmus Lerdorf; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] Variables not working
Before you get carried away with registering globals, try echoing:
$_SERVER[HTTP_USER_AGENT];
Or, for versions prior to 4.1.X, change
Hey guys,
i have this script that changes pages in a table with the include() command,
but i ran into trouble when i tried to change the pages by linking to
index.php?left=theband because it would feed it to the index.php, but
index.php would just change left back to news which is the default,
Jule Slootbeek wrote:
Hey guys,
i have this script that changes pages in a table with the include()
command,
but i ran into trouble when i tried to change the pages by linking to
index.php?left=theband because it would feed it to the index.php, but
index.php would just change left back to
Im having a VERY hard time trying to explain this
Here is a bit of my code...
for ($i = 0; $i $num_fields; $i++)
{
$field = mysql_field_name($result, $i);
$field2 = .$field;
$output = str_replace($field2, $field), $output);
}
The problem I'm having here is that the variable $field
$field2 = .$$field;
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 27, 2002 12:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] variables within variables - question
Im having a VERY hard time trying to explain this
Here is a bit of my
Hello,
When I try to do this:
$foo = Entry for for $HTTP_POST_VARS[\name\];
I receive this error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING' on line X
Why does it do this, and how do I get around this, besides assigning the
value of $HTTP_POST_VARS[\name\]
PROTECTED]]
Sent: Sunday, March 10, 2002 10:09 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Variables within a string
Hello,
When I try to do this:
$foo = Entry for for $HTTP_POST_VARS[\name\];
I receive this error:
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or
`T_NUM_STRING
On Monday 11 March 2002 11:10, Chris Cocuzzo wrote:
I would imagine the problem has something to do with those escaped quote
marks, but in any case, you could probably get around it by doing this:
$foo = Entry for . $HTTP_POST_VARS[name];
some correct me if I'm wrong
Or simply:
$foo =
I have a weblog type script I'm building for a friend where there are main
posts then comments - Registered users can post comments, unregistered don't
even have the option I was thinking of making a page where a user logs on,
then it registers a session with a few variables like $sid,
On Friday, March 1, 2002, at 06:11 PM, James Taylor wrote:
IF a user is logged on, they can post, if not they don't even see the
option.
Instead of doing a SQL query everytime they look at the posts, I was
thinking
of registering a variable called like $true where if they're logged on,
Richardson [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 8:11 PM
To: Demitrious S. Kelly; 'PHP General'
Subject: RE: [PHP] Variables containing HTML?
Right on!!! - This works great!!
Can you explain what it does ;) - i'm completly lost in it ;)
//Nick
-Original Message
1000% simpler
-Original Message-
From: Nick Richardson [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 8:11 PM
To: Demitrious S. Kelly; 'PHP General'
Subject: RE: [PHP] Variables containing HTML?
Right on!!! - This works great!!
Can you explain what it does ;) - i'm
PROTECTED]]
Sent: Thursday, February 28, 2002 1:41 PM
To: Demitrious S. Kelly
Cc: 'Nick Richardson'; 'PHP General'
Subject: Re: [PHP] Variables containing HTML?
What's the difference between this and the serialize() function?
Erik
On Monday, February 25, 2002, at 11:27 PM, Demitrious S. Kelly
Cc: 'Nick Richardson'; 'PHP General'
Subject: Re: [PHP] Variables containing HTML?
What's the difference between this and the serialize() function?
Erik
On Monday, February 25, 2002, at 11:27 PM, Demitrious S. Kelly wrote:
It breaks the individual characters down into their ascii
Stupid question for everyone... i'm just having one of those braindead
moments.
I have a page which allows users to add custom headers and footers in HTML.
(i.e. Fill in a text area with a bunch of html, and that's stored in a mysql
database and retrived when that user logs in again).
The
there's htmlentities or something like that - try that w/ your hidden field
-Original Message-
From: Nick Richardson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 26, 2002 2:56 PM
To: PHP General
Subject: [PHP] Variables containing HTML?
Stupid question for everyone... i'm just
, February 25, 2002 7:56 PM
To: PHP General
Subject: [PHP] Variables containing HTML?
Stupid question for everyone... i'm just having one of those braindead
moments.
I have a page which allows users to add custom headers and footers in
HTML.
(i.e. Fill in a text area with a bunch of html, and that's
Right on!!! - This works great!!
Can you explain what it does ;) - i'm completly lost in it ;)
//Nick
-Original Message-
From: Demitrious S. Kelly [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 8:02 PM
To: 'Nick Richardson'; 'PHP General'
Subject: RE: [PHP] Variables
slashing and validating, and revalidating,
etc, etc, etc, etc so I made this. Which makes things 1000% simpler
-Original Message-
From: Nick Richardson [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 8:11 PM
To: Demitrious S. Kelly; 'PHP General'
Subject: RE: [PHP] Variables
Is there any limit on the amount of variables that you can use?
Philip J. Newman
Philip's Domain - Internet Project.
http://www.philipsdomain.com/
[EMAIL PROTECTED]
Phone: +64 25 6144012
Is there any limit on the amount of variables that you can use?
I can't say for certain as I don't know the insides of PHP *that* well...but
I would guess your limitation on variables would be based on your
server/user memory allowances and/or your memory limitations for PHP
scripts.
Sincerely,
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Philip J. Newman blurted
Is there any limit on the amount of variables that you can use?
Well I certainly agree with Craig, but I'm interested to know why you
ask? Is it just idle curiosity or some interesting project you're
I have to exchage over 304 different names, codes, and dates ...
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, January 27, 2002 7:35 AM
Subject: Re: [PHP] Variables Limit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Philip J. Newman blurted
I have to exchage over 304 different names, codes, and dates ...
305? :-)
Doesn't sound like it would be a problem.
- --
Nick Wilson
Tel:+45 3325 0688
Fax:+45 3325 0677
Web:
Unless your getting the values through a POST or a GET...both of these
have limitesi forget what it is...maybe 1024 bytes? you'd jave to
read the http rfc
~kurth
On Sat, 2002-01-26 at 14:51, Nick Wilson wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Philip J. Newman
cool
- Original Message -
From: Nick Wilson [EMAIL PROTECTED]
To: PHP-General [EMAIL PROTECTED]
Sent: Sunday, January 27, 2002 8:51 AM
Subject: Re: [PHP] Variables Limit
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
* and then Philip J. Newman blurted
I have to exchage
Philip J. Newman wrote:
I have to exchage over 304 different names, codes, and dates ...
Instead of hundreds of discrete variables, would you not be
better served by dividing them up into arrays of some sort?
instead of $name1, $name2, etc
$name[1]
$name[2]
or
$name[first]
$name[last]
Check out arrays... especially if you're going to be
dealing with 304 individual variables. your code
will be MUCH happier :)
-Original Message-
From: Philip J. Newman [mailto:[EMAIL PROTECTED]]
Subject: Re: [PHP] Variables Limit
I have to exchage over 304 different names, codes
I need to pass a variable e.g. $var1 from one PHP page to another. The
only conditions are that the variable cannot be shown in the source
code on the end users machine nor can it be passed visibly within the
url. Does anyone have any suggestions on how I can accomplish this?
Hippie.
--
PHP
Either use sessions or pass it via POST in using a form.
--
Ben Sinclair
[EMAIL PROTECTED]
- Original Message -
From: John (News) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, January 17, 2002 4:48 PM
Subject: [PHP] Passing PHP Variables
I need to pass a variable e.g. $var1
301 - 400 of 473 matches
Mail list logo