request to that index.php:
--
Connection closed by foreign host.
Is this a bug with PHP 4.0.4pl1?
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
To unsu
a default value *IN*
the function definition, like:
function abc($a='', $b='') // assigns null as parameter defaults
that way, every parameter gets a value, even if all the parameters
were not supplied in the call.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http:/
egister_globals Off *AND* track_vars On, you could change:
from: $frmCompanyName
to: $HTTP_GET_VARS["frmCompanyName"]
or
$HTTP_POST_VARS["frmCompanyName"]
depending on your action method.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
h
At the top of every script that will register or use session
variables, I do "session_register" - something like this:
script_1.php
script_2.php
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Jacky [[EMAIL
, double quote, NULL character, and I can't
remember what the 4th one is - look at the manual under
"addslashes"). Then you can INSERT or UPDATE the columns with
those addslash'ed values.
There's many different ways to do this, but this is what works best
for me.
or reference at
http://php.net/manual/en/ref.session.php
Between those 3 you should be able to get sessions working with
MySQL.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Michael Champagne [[EMAIL PROTECTED]] wrote:
> Has anyone out there impleme
rror? Is this normal,
or did I do something wrong?
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
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]
Then in the next script, after you do session_start();, you
will have access to those previously registered session
variables by just using $UserName and $Password.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
> header ("Location: Http://www
ng wrong in the setup? I shouldn't
have to restart the webserver after I restart Oracle should I?
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Neil Kimber [[EMAIL PROTECTED]] wrote:
> Nothing unusual. Very robust and stable.
>
> -Origin
I'm thinking of using PHP to talk to an Oracle database with
the OCI8 interface - is PHP's OCI8 interface stable? Anything
unusual I should know about?
I'm using:
Redhat 6.1 Linux
PHP 4.0.4pl1
Oracle 8i 8.1.6
Apache 1.3.14
TIA.
--
Hardy Merrill
Mission Critical L
Ian, I think what you want is a variable variable - have a look at
http://www.php.net/manual/en/html/language.variables.variable.html
I think you might want something like this:
${$Color$Temp[$f]}
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
How about mounting a shared disk on all 4 webservers, and storing
your session files on that? The database option is probably
best though.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Michael Kimsal [[EMAIL PROTECTED]] wrote:
> Use a database to st
How 'bout using a Perl regex with $HTTP_SERVER_VARS["SCRIPT_NAME"]
like this:
echo "Starting with SCRIPT_NAME=[" . $HTTP_SERVER_VARS["SCRIPT_NAME"] . "]";
if (preg_match("/(\S+)\/\S+$/", $HTTP_SERVER_VARS["SCRIPT_NAME"], $
gt; To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
me/httpd/html/fiesc_sessao/checa_senha.php3 on line 13
>
> The "line 13" is "global $ID, $limite."
>
> What's could be the problem?
Notice my ^'s above - you are already defining $ID in your
function declaration. You can't do that *and* declare $ID a
--
key=[a], value=[Array]
key2=[1], value2=[a111]
key2=[2], value2=[a222]
key2=[3], value2=[a333]
key=[b], value=[Array]
key2=[1], value2=[b111]
key2=[2], value2=[b222]
key2=[3], value2=[b333]
key=[c], value=[Array]
key2=[1], value2=[c111]
key2=[2], value2=[c222]
key2=[3], value2
Have a look at
http://www.php.net/manual/en/function.unset.php
"unset" may do what you want.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
kaab kaoutar [[EMAIL PROTECTED]] wrote:
>
> Hi!
> FIRST OF ALL THANKS !
> well d
I'm not sure what you mean - are you trying to remove an element
from the array while you are *inside* a loop that is iterating
through that same array? If the loop is small enough, copy it
in so we can all see what you are trying to do.
kaab kaoutar [[EMAIL PROTECTED]] wrote:
> Hi!
> how can i
again.");
> > ?>
>
> Your value for the variable "sql" isn't enclosed in quotes. BTW, tracking
> down problems with a sql query gets easier when you give yourself a more
> informative die() message, such as:
>
> or die ("MySQL says: "
e I try to call ora_error I get a
segfault.
Has anyone else seen this - any solutions?
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-m
piled with
--enable-sigchild, and now I don't see any defunct processes, but
the whole webserver still hangs, and now I get a seg fault.
Is this a recognized problem/bug, and is there a solution? Would
compiling --with-oci8 solve this?
TIA.
--
Hardy Merrill
Mission Critical Linux,
Solved - I was changing a copy of the code that the webserver
was NOT looking at. "include_once" works fine.
Appologies.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Hardy Merrill [[EMAIL PROTECTED]] wrote:
> Redhat 6.1 Linux
> PHP 4
for that connect failure, but the new text is *NOT*
appearing in any subsequent connect failures.
Why won't my new text appear in the error? I've tried changing
the "include_once" to "include", and the same thing happened.
I even tried restarting the webserver, but
e the same length?
Should I make the data type some variation of "text" or
"varchar"?
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROT
Look up the "split" and "explode" functions - they both do basically
the same thing.
$token_list = split(",", $string_to_parse);
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Todd Cary [[EMAIL PROTECTED]] wrote:
> I h
Look at
http://www.php.net/manual/en/html/ref.session.html
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
spider [[EMAIL PROTECTED]] wrote:
> Is it ok to mail questions to this list? If so;
>
> Is there something similar like the "ses
, just do
echo "Value of session variable \$var_name = $var_name";
that's it.
You only need to do session_destroy() when you actually want
to destroy all the session variables for the current session -
if you do that in every script, then you obviously won't be
carryin
; documentation:
$five_days_ago_seconds = mktime (0,0,0,date("m"),date("d")-5,date("Y"));
$date_5_days_ago = date("m-d-Y", $five_days_ago_seconds);
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Matthew Ley [[EMAIL
dependent on the particular database you write it for -
then to migrate to another database would be a major rework.
If you use a method like unix timestamp for doing your date
math with just standard > or < SQL comparison operators, then
your code is much more database indepe
t create a temporary file,
and then when the download is done, copy the temporary file to the
real file.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Jeroen Jochems [[EMAIL PROTECTED]] wrote:
> When I try to download a big file (like 5meg) with fopen() I get
How do you display a "you are being redirected to xyz page" page
for some period of time(5 seconds?) and then redirect to another
page without the user having to click on a link or a button?
TIA.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
P
e" for converting a date into a
unix timestamp.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contac
Which database?
Fang Li [[EMAIL PROTECTED]] wrote:
>
> There is a LiveDate (-MM-DD) field in my table.
> 1. I want data from last 5 days up to now, and its order should be from
> latest;
> 2. I want data for next month.
>
> Any help would be appreciated.
>
>
> --
> PHP General Mailing Li
n of your
php.ini. With register_globals = On and track_vars = On, I
can do this:
if (sizeof($HTTP_COOKIE_VARS) == 0) {
error_log("no cookies!!!");
}
or
if (empty($HTTP_COOKIE_VARS["my_cookie_1"])) {
error_log("my_cookie_1 doesn't exist!&q
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
Brandon Orther [[EMAIL PROTECTED]] wrote:
> Does anyone have a place with a little more user friendly tutorial or place
> to learn about sessions? The php manual is making me go mad.
>
and give a lifetime to
each session.
You can also use a scheduled(cron on *nix) job to remove sessions
older than ??? minutes.
HTH.
--
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com
>
>
> thanks,
>
> Randy
>
>
> --
> PHP General Maili
Trying again - no-one responded 1st time...
- Forwarded message from Hardy Merrill <[EMAIL PROTECTED]> -
> Date: Wed, 10 Jan 2001 21:01:10 -0500
> From: Hardy Merrill <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: [PHP] Session Mgmt in MySQL - cleanup
>
FROM. I don't quite understand how this is
working.
Is there some documentation somewhere on the "user"(database)
functions for a session management in a database, like what
each function is expecting, and what each should return, and
when each one is called???
TIA.
--
Hardy Merril
38 matches
Mail list logo