See session.gc_maxlifetime in php.ini. The session timer is based on the
session file access (or modified?) timestamp. It gets reset every time the
session data is accessed, which is every time a page using that session is
requested.
Kirk
-Original Message-
From: Smileyq
The coding style needs to match the register_globals setting in php.ini.
register_globals on:
$accountsession = $session;
$accountemail = $email;
session_register(accountsession);
session_register(accountemail);
register_globals off:
Do just like you have it below, except remove the calls to
Unless you are using PHP version 4.2 or higher, the first argument can't be
an array.
Kirk
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 21, 2002 11:46 AM
To: [EMAIL PROTECTED]
Subject: [PHP] in_array problems (another pair of eyes?)
I don't think
I have wondered for some time if this is a bug or just an interesting design
choice ;) I agree with you, I was surprised when I first encountered this.
But it is what it is, so code accordingly.
Kirk
-Original Message-
From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
Sent:
Which begs the question, why does PHP see a '?' in a '//' comment line, but
not in a multi-line comment, e.g., /* ? */ ?
-Original Message-
From: Ed Gorski [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 28, 2002 2:46 PM
To: Leotta Natalie (NCI/IMS); 'Jonathan Rosenberg'; Johnson, Kirk
: Johnson, Kirk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, May 28, 2002 2:55 PM
Subject: RE: [PHP] comment followed by ? fails to parse
Which begs the question, why does PHP see a '?' in a
'//' comment line,
but
not in a multi-line comment, e.g
If you made an array for your buttons, then you could use PHP's looping
constructs to process the array. Write the input tag like this:
INPUT NAME=Game[1] VALUE=1Chicago
The processing code will then have access to the array $Game indexed by the
game number, e.g., $Game[1].
Good luck!
Kirk
Kondwani Spike Mkandawire wrote:
Am I mistaken to assume that a Session is automatically
destroyed if a Window Browser is closed?
*Eventually* it is destroyed, but not at the instant the browser is closed.
See the session.gc_maxlifetime and session.gc_probability settings in
php.ini. If the
Things I want to do:
- convert this site into a dynamic one, where I can very easily
change the layout of things whenever it comes time to revamp
the site into a new design.
I have not worked with any of the templating systems, but here is a
home-grown one. Separate the
There is no 'unless' in PHP, so you just have to grind it out. If you are
searching for known strings, rather than string *patterns*, use the strstr()
function here: http://www.php.net/manual/en/function.strstr.php.
So, something like:
if(!strstr($c,$a) !strstr($c,$b)) {
bla;
exit;
}
Indeed, it is a negated something or other.
-Original Message-
From: David Buerer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 11:23 AM
To: '[EMAIL PROTECTED]'
Subject: RE: [PHP] Re: unless something...
True, but isn't unless just a negated while?
--
PHP
And remember 0 as a number is as important as any other number.
I wish the rest of the world saw it that way! But not so...
You may want to look at MySQL's IS_NULL function for retrieving data. Other
than that, I don't have any good advice. It seems that if you retrieve a
NULL from the
Perhaps you could post the [Session] section of your php.ini file. It
appears that session.cookie_lifetime is not set to 0, which is what you want
for a session cookie. Perhaps we can find another setting that needs a
change.
Kirk
Sessions just don't work on my machine...
--
PHP General
After reloading IE on the PC now the SID constant doesn't
echo anything at
all.
SID is always defined on the first page request. It is only defined on later
page requests if cookies are disabled in the browser.
Kirk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Try these changes:
session.cookie_lifetime = 0
session.use_trans_sid = 1
Also, what version of PHP are you using?
My php.ini:
[Session]
session.save_handler = files
session.save_path = /tmp
session.use_cookies = 1
session.name = PHPSESSID
OK, do you have access to your /tmp directory? If so, close your browser,
then open it and request your index page. Now sort the files in /tmp by
creation time, to find the newly created session file. Look at its contents,
and see if the 2 variables have values assigned to them in the file. Do
SELECT * from some_table WHERE some_field IS NULL;
Andrey Hristov
--
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]
Thanks for
So, no matter if the user is still working, the session will be
destroyed. I mean session.gc_maxlifetime isn't
session.gc_maxIDLEtime?
Every time the user requests a page in an application using sessions, the
session file's access time gets updated. The garbage collection routine
looks at
I thought that php works as you wrote. But sometimes I find that much
older session are still alive. I have 1440secs for maxlifetime, and
if I bookmark a page with the session id I can use it till days or
even weeks (I haven't tested longer time period :))
Are old files being re-used, or
Is here anyway to make a variable like $var not the same than
$HTTP_SESSION_VARS[var], when register_globals=1?. (where
$var is in the
script scope).
I read in a changelog that this is relatively recent (make
$var the same
than $HTTP_SESSION_VARS[var]).
I'm not sure what was changed.
Two php functions may help, func_num_args() and func_get_args(). For
example,
$numargs = func_num_args();
$arg_list = func_get_args();
Kirk
-Original Message-
From: Kurt Lieber [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 25, 2001 4:58 PM
To: [EMAIL PROTECTED]
Subject:
onClick
Kirk
-Original Message-
From: Boaz Yahav [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 3:03 PM
To: PHP General (E-mail)
Subject: [PHP] checkboxes
does anyone know the HTML event that knows when a checkbox has been
checked and unchecked?
--
PHP General
Thanks for the link, Kurt. Can you also point to any authentication code
examples, or further discussion? The user comments in the manual suggest
there are at least a couple ways to code stuff, ldap_compare vs ldap_bind.
Any additional help appreciated.
TIA
Kirk
-Original Message-
PROTECTED]]
Sent: Wednesday, October 31, 2001 3:06 AM
To: Johnson, Kirk
Cc: PHP General List
Subject: Re: [PHP] User Authentication against remote authentication
serve r [ LDAP ]
On Mon, Oct 29, 2001 at 04:54:37PM -0700, Johnson, Kirk wrote:
Thanks for the link, Kurt. Can you also point
Thank you Jim, Mike, CC and Philip.
Geez! I thought I did a search, but maybe I imagined that...
LOL
Kirk
--
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:
session_destroy() works fine for me - it deletes the session file after the
script finishes. I have never used the session_name() function. I am
wondering if it is possible that the server is confused about what session
needs to be destroyed because of the way session_name() is being used
Here's a link http://www.itworks.demon.co.uk/phpeditors.htm
Got this link at http://www.php.net/links.php#TOP.
Kirk
-Original Message-
From: Chris Bailey [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 8:56 AM
To: TD - Sales International Holland B.V.; [EMAIL PROTECTED]
If the cookie lifetime is set to 0, then it is a session cookie, and it
persists until the browser is closed.
Kirk
-Original Message-
From: jennyw [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 02, 2001 12:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Cookies won't stick
For
Regarding the same topic of session management, I am using
PHP 3.09 and when
I call session_start() or $HTTP_SESSION_VARS['someVariable]
I get :
Fatal error: Call to unsupported or undefined function session_start()
So, my question is that: Is there any session management in
Happy Friday!
I don't know anything about the innards of the PHP/Apache relationship. I am
wondering if there is a security advantage to using the getenv() function to
access an environment variable, instead of using the $HTTP_SERVER_VARS
array, or, if register_globals is on, the global version
The else clause can be removed, since it is not doing anything. What is the
error message?
Kirk
Hey everyone, I need some help with a variable issue. How can
I delcare a variable and then if a url variable of the same
name is present use that value instead?
this is what I have:
http://www.php.net/manual/en/function.eval.php
Kirk
-Original Message-
From: Christopher Raymond [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 09, 2001 1:11 PM
To: PHP List
Subject: Re: [PHP] Eval()??? A variables contents?
on 11/9/01 2:01 PM, Kurt Lieber at [EMAIL
A space is a valid string. Are you sure there is a space?
?
$a = ' ';
if($a == '') {
echo a is blankbr;
} else {
echo a is not blankbr; // this is printed
}
if(is_null($a)) {
echo a is nullbr;
} else {
echo a is not nullbr; // this is printed
}
?
Kirk
I need to check variables
Have you looked at what is in $HTTP_SERVER_VARS['PHP_SELF']? Does this array
element even exist? I am wondering if there is an Apache setting that
affects this, but I sure don't know.
Kirk
-Original Message-
From: John Steele [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15,
There is a semi-colon missing on the session_start() line. PHP can't pin
down the exact line number of an error where the error is a missing
terminator.
Kirk
-Original Message-
From: Oosten, Sjoerd van [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 06, 2001 8:44 AM
To: 'Andrew
I think this approach should work as long as register_globals is set to 'on'
in php.ini. If it isn't, then reference the cookie as
$HTTP_COOKIE_VARS['poccd_session'].
Kirk
Can someone tell me if there is a bit of code I need to put
on pages so I
can retrieve a cookie.
The cookie was set
If you redirect into the query page using a META refresh, you can display
the message:
echo(HTMLHEADMETA HTTP-EQUIV=\refresh\
CONTENT=\0;url=your_url_here.php\/HEADBODYprocessing... please
wait/BODY/HTML);
The message will display until the query page finishes.
Kirk
-Original
I tried this... it just continually refreshes ... and doesn't
ever re-direct
to my page.. am i missing something?
If the URL is correct, it should work.
The *first* page should have this code. The variable $query_page contains
the URL to the *next* page, which contains the database query
Ideal scenario, a blank form is presented to the
user, and when
the form is submitted, do the logic check and act accordingly. Is it
possible using $PHP_SELF as the target, or do I have to use 2
files: a
form 'front end' with the php logic in the 'backend'??
Yes, this is possible, and
Not for this list specifically, and not as well used as it might be ;)
http://www.php.net/manual/en/faq.php
Kirk
what is up with a faq for this list? is there one?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
I know of 3 php faqs (I know there are tons), maybe we should
make a faq on how to
find faqs? :)
http://alt-php-faq.org/
http://www.php.net/manual/en/faq.php
http://php.faqts.com
Rasmus, do you think there would be any value in adding these 3 links to the
PHP General Mailing List
Does anyone know what PHP stands for?
PHP = People Hate Perl.
No, that's just a joke, no flames please :)
PHP Hypertext Preprocessor.
Kirk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To
while (list ($key, $val) = each ($HTTP_session_VARS)) {
echo $key = $valbr;
}
i get the error -
Warning: Variable passed to each() is not an array or object
in /var/www/html/adult/func.php on line 5
Change HTTP_session_VARS to HTTP_SESSION_VARS, since variable names are
Can someone tell me how to properly compare the value
returned from the
db to see if it is blank ?
if ( (
mysql_result($db_result,$db_record,'order_date')=00)
) ) {
Two things, Jack. Enclose 00 in quotes, since it is a string,
but more importantly, use '=='
I try to use include() and require() an that what i get:
The path is 100% good.
Warning: Failed opening '../inc/menu.inc' for inclusion
(include_path='') in
Make sure that file permissions allow 'nobody' to view the file.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Has the 3rd include bug (where variable definitions ar
lost at the 3rd
include), been fixed yet?
--Drew Vogel
Drew, I hadn't heard about this one. If you find anything, would you please
post back your results to the list?
TIA
Kirk
--
PHP General Mailing List (http://www.php.net/)
To
If I have a file called db.inc with, for example, this:
However, any user on the system can read db.inc cause its
chmod'd 0644.
If I chmod db.inc 0600 or even 0640, index.php can not include it.
How do I go about protecting my files from being read by
users on the system?
Below is
?php
session_start();
global $count;
session_register (count);
$count++;
?
Hello visitor, you have seen this page ?php echo
$HTTP_SESSION_VARS[count]; ? times.p
There was a bug in PHP in versions prior to 4.0.6: $count and
$HTTP_SESSION_VARS[count] did not reference
What it looks like it is doing to me, if you hit the script
and reload it a
bunch, is it creates a session, sticks with it for a while,
then dumps it ..
it then creates another session, starts over at 1, and begins
counting up..
then sometimes it will see the old session, and go back to
What it looks like it is doing to me, if you hit the script
and reload it a
bunch, is it creates a session, sticks with it for a while,
then dumps it ..
it then creates another session, starts over at 1, and begins
counting up..
then sometimes it will see the old session, and go back to
I just come across and odd behaviour with the register_globals and
session handling. The problem is that when I set the register
globals to
on I cannot access the session_variables through the associative array
HTTP_SESSION_VARS. The manual says explicitly that with track_vars and
session_start();
session_unregister(val_1);
session_register(val_1);
I am doing this to clear the contents of val_1 before I use it again.
Needless to say its not working. val_1 always contains the
same value until
session_registering()'ing a variable just puts it in a list of names of
apparently, session_is_registered and isset return null if
they evaluate to
false. I was expecting boolean true and false return values,
What you were expecting is correct, boolean true/false. However, it appears
that PHP converts these values to strings during the echo. true converts to
Start with this correction on page1.php:
if (session_is_registered != 1) {
should be
if (session_is_registered(FailedLogins) != 1) {
We'll go from there :)
Kirk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
OK, the session_is_registered() thing is correct.
It seems like the gist of the problems is that different
pages can't seem to
modify the same session variables.
This is definitely not the case. Two things to try:
1. In page2, put some logic around the session_register(FailedLogins);,
One way around this is to make the first page just a dummy that starts a
session then redirects to the real first page, with the session id passed on
the redirect URL.
Kirk
-Original Message-
From: Egan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 10:56 AM
To: [EMAIL
I am using php 4.0.6 and i would rather not use global variables.
I hear ya.
After playing around with this, your approach works if register_globals is
set to off (I did this with an .htaccess file). I'm surprised by this. It
appears that the global version of a variable still overwrites the
Why timeout at 300s instead of the 30s or the 12000s which
are the only two values reported?
Looks like some HTTP timeout, i.e. either Apache or the browser is
getting bored. Try outputting something from time to time.
Can anybody point me to information on all the possible HTTP timeouts
I have seen this behavior when the user had a bookmark to the page with a
session ID in the bookmark URL. Just a thought.
Kirk
-Original Message-
From: Mike [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 8:17 AM
To: [EMAIL PROTECTED]
Subject: [PHP] GET / POST strange
Try echo $r[$i] instead of echo $r[i].
Kirk
-Original Message-
From: Frank Loewenthal [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 9:33 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Fwd: functions returning arrays
Hi
Perhaps I am confused, but is it not possible to
Everything is pretty much set to default vaules. I can
leave the browser open and come back 12+ hours later
and the session is still active. Why??
There is another setting which affects this, gc_probability. This setting
determines how often the garbage collection routine runs (that kills off
You need to close off this bit of code with a brace '}':
if (!isset($page_id))
{
Kirk
-Original Message-
From: Jaxon [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 9:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] parse error AFTER end of included file??
Hi,
See the magic_quotes_gpc setting in the php.ini file. This can be set to on
or off, and is responsible for escaping GET/POST/COOKIE data automatically.
Kirk
-Original Message-
From: Mike Gifford [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 9:58 AM
To: [EMAIL
Check if register_globals is off in php.ini. If it is, you will need to
access it through the $HTTP_SERVER_VARS array, e.g.,
$HTTP_SERVER_VARS['PHP_SELF'].
Kirk
-Original Message-
From: John Meyer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 5:43 PM
To: Jason Bell;
Tim Ward wrote:
Be careful using values of submit buttons ... if the user hits return
instead of clicking one of the buttons you won't get anything. If you want a
default value try a hidden field before the submits with same name.
Tim, thanks for the tip. I had heard of this behavior before,
I'm about ready to go insane over this one. I have the following link.
http://www.wayneswoodworks.net/test/samples.php3?key=1
When I get into samples.php3 I do:
$record = $HTTP_GET_VARS[key];
echo record=$recordbr;
And the record variable is blank/missing.
Did you get this
The session variables will remain set, but will it looks
like my session gets lost every now and then if you want
to see an example, go to http://northpointless.org/test.php
and hit refresh several times. I cannot figure out what is happening.
Did you get this figured out? It looks
session files get saved in /tmp by default, correct? Is
there a way to have
them saved somewhere that would propogate to all the servers
in the cluster?
Warning! The following is from me, a non-gearhead.
1. We use a load balancer which is able to set a cookie on the first page
request.
We use a Big-IP controller from F5:
http://www.f5.com/f5products/bigip/index.html
Kirk
-Original Message-
From: Jason Bell [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 10, 2001 1:33 PM
To: PHP Users
Subject: Re: [PHP] Reprise of dissapearing session variables
Thanks for
so if a particular form button is clicked a different process
will occcur.
well what happens if i press return to enter my form submission?
nothing is set!
so the processing file does nothing
This has been pointed out from time to time on this list. It is a fact: if
the user submits a
Feature. By placing a dash next to the bracket, there is no confusion that
the dash is being used to specify a range.
Kirk
-Original Message-
From: Andrew Perevodchik [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 13, 2001 9:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] minus in
JK Feature. By placing a dash next to the
JK bracket, there is no confusion that the dash
JK is being used to specify a range.
Doesn't slash before dash mean that???
Could be, I don't know. I always put a dash next to the bracket, instead of
escaping it with a backslash. As is often the
Several comments, Jason.
session_destroy() terminates the session, which cannot be
started up again
until the browser is restarted...
Yes, session_destroy removes the session file that stores the values of
session variables between pages. Once gone, it cannot be accessed again
under any
Then how can i set the time for session??
See the php.ini file, for session.gc_maxlifetime setting:
session.gc_maxlifetime= 1440; after this number of seconds, stored
; data will be seen as 'garbage' and
; cleaned
Check the permissions on both the directory and the file, so that they are
accessible to 'nobody' (or whomever PHP is running as). I'm not sure what to
make of the empty include path in the error message.
Kirk
I've tried including just a file that was in the /usr/lib/php
directory.
No
I only know of two ways to do page redirects with PHP: the header() function
and a META refresh tag. I suppose you could also use PHP to dynamically
generate the javascript code you included in your email. Good luck!
Kirk
- Original Message -
From: Wee Chua [EMAIL PROTECTED]
To: PHP
I'm not sure what question you are asking, but try changing this line
$aFinfOn = Getenv($aFindOnInput);
to
$aFinfOn = $HTTP_POST_VARS[aFindOnInput];
The function getenv() gets environment variables, not post variables.
Kirk
-Original Message-
From: hvm
Try number_format() http://www.php.net/manual/en/function.number-format.php
Kirk
-Original Message-
From: Ramiro Radjiman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 08, 2001 8:35 AM
To: [EMAIL PROTECTED]
Subject: [PHP] money print out with two digits after , e.g. 49,00
I
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Subject: [PHP] HELP, problems with sessions.
so what aren'T i understanding here? shouldn't all the vars and values
be in the encoded string??? and what could cause the loss of
the session
vars on my
My guess is one server has register_globals on, the other has
register_globals off. Try this change in your code: instead of assigning a
value to $HTTP_SESSION_VARS[toto], instead assign a value to $toto. You
will then see a value for $toto in the echo session_encode().
$HTTP_SESSION_VARS[toto]
http://www.php.net/manual/en/language.variables.predefined.php#language.vari
ables.predefined.php
Kirk
-Original Message-
From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 09, 2001 10:08 AM
To: PHP Mailing List
Subject: [PHP] Environment Variables
I have a PHP script that opens a socket to another (non-PHP) process. This
process has been having problems of late, and can take 10 minutes or more to
execute. I have max_execution_time set to 300 seconds in php.ini. However,
users report to me that the PHP script does not always time-out after
I think this question was answered by Stewart Taylor earlier today. Here is
his response:
This error occurrs when you start a session that recreates an object
variable but does not know the class definition for it.
You need to make sure you include the class source before you start the
session.
One way:
$phone = ereg_replace([^0-9], , $phone);
if(!ereg(^[0-9]{10}$,$phoneHome)) {
echo error;
}
You could also check the string length after removing all non-numbers.
Kirk
-Original Message-
From: Claudia Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 11, 2001 4:52 PM
With register_globals off, ordinary GLOBAL variables can't be registered, so
the line session_register(language); isn't doing anything. Access all
registered variables through $HTTP_SESSION_VARS only.
Kirk
-Original Message-
From: Christian Ribeaud [mailto:[EMAIL PROTECTED]]
Sent:
This isn't quite what you are asking, but maybe it will be of help. Use the
loop below to create and assign GLOBAL versions of the $HTTP_POST_VARS:;
reset($HTTP_POST_VARS);
while(list($key, $val) = each($HTTP_POST_VARS)) {
$GLOBALS[$key] = $val;
}
Kirk
-Original Message-
From:
, May 14, 2001 2:40 PM
To: Johnson, Kirk; Php-General
Subject: RE: [PHP] Easily Making Post Vars Session Vars
Ok, I see where that's going.
I actually was a bit off in my first posting.
The form field names are a multi-dimesional array. The goal it to make
writing all of the info
We are doing it here, although I am not involved in the server setup so I
can't give you much help. I guess the main thing is setting up the session
storage mechanism. If you use session files, then the load balancer needs to
add a cookie so that requests in multi-page applications always go to
Just to add a couple details. On the first page request, PHP sets the
constant SID as well as the cookie. If the user has cookies disabled, then
SID is also set on all following page requests. If cookies are enabled, then
the cookie PHPSESSID (if you stick with the default name) exists on all
See http://www.php.net/manual/en/function.mysql-num-rows.php
Kirk
-Original Message-
From: midget2000x [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 3:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP] coding for 'no match found'
This is a simple yet fundamental programming
Jerry, try sprintf(). Here's an example:
sprintf((%s) %s-%s, substr($GLOBALS[appPhoneHome], 0,
3),substr($GLOBALS[appPhoneHome], 3, 3),substr($GLOBALS[appPhoneHome],
6, 4))
Kirk
-Original Message-
From: Jerry Lake [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 4:48 PM
To:
Chris, is this requirement spelled out in the manual anywhere? I have never
seen any effect of the order of calling session_register() and assigning a
value in my own code. In fact, I almost always register a variable before
assigning a value.
Just curious.
Kirk
-Original Message-
__FILE__ is a constant predefined by PHP. See
http://www.php.net/manual/en/language.constants.php
For help on the basename() function, see
http://www.php.net/manual/en/function.basename.php
Kirk
-Original Message-
From: Fai [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001
Give this a try:
if(!ereg(^([0-9]{5}([-]{1}[0-9]{4})?)$,$data)) {
Kirk
-Original Message-
From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 8:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] EREGI -- Help
I'm just trying to create a eregi expression that
http://www.php.net/manual/en/function.unlink.php
Kirk
-Original Message-
From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 16, 2001 1:53 PM
To: PHP (E-mail)
Subject: [PHP] deleting a file
What is the file function to remove/delete a file from a server?
Add an exit(); immediately following all the header() calls. Hitting a
header() does not end execution of the script, so without the exit() the
last header() that gets called is the one that actually occurs.
Kirk
-Original Message-
From: Chad Day [mailto:[EMAIL PROTECTED]]
Sent:
I don't know of any way to make a script self-submitting for POST data,
wish I did. Alternatives:
1. Do the processing with JavaScript on the original input page.
2. Get the other company to modify C to look for GET variables, and build a
query string as suggested earlier.
3. Add a simple FORM
Louis, if you track this down, please post back to the list what you find.
TIA
Kirk
-Original Message-
From: infoz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 12:21 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] preprocessing
There's a public
Thanks, Tim!
http://marc.theaimsgroup.com/?l=php-generalm=98582357009336w=2
Kirk
-Original Message-
From: infoz [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 12:21 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] preprocessing
There's a public domain
Always a good idea to do a View Source, capture that to a file, then run it
through a tag checker program.
Kirk
-Original Message-
From: Brandon Orther [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 5:21 PM
To: PHP User Group
Subject: RE: [PHP] Netscape 6, What a piece of
101 - 200 of 335 matches
Mail list logo