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..
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 a
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
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 f
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:
>
>
>
>
> Guru - Virtual bookstore who understands you for
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;$j<5;$j++):
$result=mysql_query("select * from user where SponsorID='$id[$j]' ")
[snip]
for($j=0;$j<5;$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 dec
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;$j<5;$j++):
$result=mysql_query("select * from user where SponsorID='$id
[$j]' "
* 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 $P
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
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 goi
> 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 Mailin
The best way for this is to use sessions.
What you do is you check the identity and if it's valid you create a
session with name 'validuser' or whatever the name you want. Then any
secure operations/actions along the script you'll check for this session
name if it exists. I can demonstrate how I
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
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 globa
15 matches
Mail list logo