OK, Thanks Richards.
===
On Wed, 25 Jul 2007 23:54:37 +0100
Richard Davey [EMAIL PROTECTED] wrote:
Hi Patrik,
Wednesday, July 25, 2007, 11:30:56 PM, you wrote:
Dear my friends...
I create a very simple script in html and php as a first step. I use suse,
apache2, mysql and php.
Thank you very much.
===
On Fri, 27 Jul 2007 00:26:24 -0500 (CDT)
Richard Lynch [EMAIL PROTECTED] wrote:
It's register_globals, and you should fix this ancient script to not
rely on register_globals being on
On Wed, July 25, 2007 5:30 pm, Patrik Hasibuan wrote:
Dear my friends...
I
It's register_globals, and you should fix this ancient script to not
rely on register_globals being on
On Wed, July 25, 2007 5:30 pm, Patrik Hasibuan wrote:
Dear my friends...
I create a very simple script in html and php as a first step. I use
suse, apache2, mysql and php.
I wonder why
Hi Patrik,
Wednesday, July 25, 2007, 11:30:56 PM, you wrote:
Dear my friends...
I create a very simple script in html and php as a first step. I use suse,
apache2, mysql and php.
I wonder why this script does not work:
!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
Hi Richard,
You solved my problem.
Thank you very...very much.
===
On Wed, 25 Jul 2007 23:54:37 +0100
Richard Davey [EMAIL PROTECTED] wrote:
Hi Patrik,
Wednesday, July 25, 2007, 11:30:56 PM, you wrote:
Dear my friends...
I create a very simple script in html and php as a first step.
Dear my friends...
I create a very simple script in html and php as a first step. I use suse,
apache2, mysql and php.
I wonder why this script does not work:
!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN
html
head
meta content=text/html; charset=ISO-8859-1
hai,
this is my sample code:
i am having user table with SponsorID as one field in
mysql database,this is my query;
for($j=0;$j5;$j++):
$result=mysql_query(select * from user where SponsorID='$id[$j]' );
endfor;
in above code when i
On 8 Feb 2006, at 14:46, suresh kumar wrote:
this is my sample code:
i am having user table with SponsorID as
one field in mysql database,this is my query;
for($j=0;$j5;$j++):
$result=mysql_query(select * from user where SponsorID='$id
[$j]' );
[snip]
for($j=0;$j5;$j++):
$result=mysql_query(select * from user where SponsorID='$id[$j]'
);
endfor;
in above code when i print mysql_num_rows($result) inside for loop
its output is 5.when i print outside the for loop its o/p is 0.I searched
weberdev.com website and
At 10:46 AM 2/8/2006, suresh kumar wrote:
hai,
this is my sample code:
i am having user table with SponsorID as one
field in mysql database,this is my query;
for($j=0;$j5;$j++):
$result=mysql_query(select * from user where SponsorID='$id[$j]' );
When registered globals is set to off this does not effect the $PHP_SELF
variable right? In other words I should be able to call $PHP_SELF with
out having to do this $_SERVER['PHP_SELF'], right?
Thanks,
Jason Giangrande
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
When registered globals is set to off this does not effect the $PHP_SELF
variable right? In other words I should be able to call $PHP_SELF with
out having to do this $_SERVER['PHP_SELF'], right?
No. With register_globals OFF, $PHP_SELF is not set.
---John Holmes...
--
PHP General Mailing
On Wed, 2003-07-23 at 12:19, Jason Giangrande wrote:
When registered globals is set to off this does not effect the $PHP_SELF
variable right? In other words I should be able to call $PHP_SELF with
out having to do this $_SERVER['PHP_SELF'], right?
Thanks,
Jason Giangrande
Without going
Actually, I am running PHP 4.3.2 on a Gentoo Linux box with
registered_globals set to Off and $PHP_SELF does work. The production
box running Red Hat and PHP 4.3.0, with register_globals also set to
Off, doesn't work using $PHP_SELF (as apparently it should), and this is
why I was asking.
Jason
* Thus wrote Jason Giangrande ([EMAIL PROTECTED]):
When registered globals is set to off this does not effect the $PHP_SELF
variable right? In other words I should be able to call $PHP_SELF with
out having to do this $_SERVER['PHP_SELF'], right?
register_globals has nothing to do with
Anybody have reason for using $_SERVER['PHP_SELF'] -v- $_SERVER['URL'] ?
They both seem to always be the same in every instance I have seen so
curious is their is a preferance for one or the other and if there is a case
where PHP_SELF!=URL
Cheers,
-Peter
##
I have developed a simple login script. Right now it will check a submitted
username and password and verify it against a database. This part works
fairly well, however I want to know how to assign a variable that will pass
through to the next page(s) to do something like:
if verified == 1
did this on my application.
Vlad
-Original Message-
From: Erich Kolb [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 4:07 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Global variable
I have developed a simple login script. Right now it will check a
submitted
username and password
Hi folks,
small problem with globals:
I would like to set a variable global called Language
This seems to be not a really problem, but it is
Indexphp:
?php {
session_start();
if (!session_is_registered('Language')) {
session_register('Language');
$Language = 1031;
}
?
But
hi ppl,
id like to set something like a global variable or constant.
i need this, to set the path of my document root. all scripts should then
use this path.
e.g.
my apache document root is: /www
all my skriptfiles are in /www/my_subdir
i include a special php script in all script files with:
On Saturday 10 November 2001 01:29 pm, you wrote:
if i like to move my scripts to /www/my_newdir i habe to change the
include() function in every script
A few options:
1. Don't use absolute paths -- use relative paths. Then you don't have to
worry about it as long as the overall structure
hi.
I want to use glabal variable.
?
global $a;
?
but it doesnot work??
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]
hi.
I use global in this form:
?
global $a;
$a=strtotime('now');
.
.
.
echo $a; but in this line dont echo $a
I dont know why??
thanks.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
Look in the manual:
language.variables.scope.html
'global' is meant to use inside a function for accessing vars that are not
in a function (the main part).
I use global in this form:
?
global $a;
$a=strtotime('now');
.
.
.
echo $a; but in this line dont echo $a
Using global
I have a class that contains a form, when the form is submitted it
posts back to the class. The class is included inside of another file,
so all of the form variables need to be declared as global in order to
access their values.
On the form are several check boxes (number undetermined until
25 matches
Mail list logo