in message
news:[EMAIL PROTECTED]
Thanks guys. Yes I figured using an array and the MIN function would be
a
start.
Now the random part.
Boot [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Any help with this would be appreciated.
I am trying to come up
Any help with this would be appreciated.
I am trying to come up with something that will find which variable(s) have
the lowest value and inidicate which variable this is. In the event that
variables have an equally low value then it is to randomly pick one of the
variables and idicate which this
I don't get this!
Why does example (a) work for me but not example (b) ??? I realize that no
output can be sent to the browser before the header but why would code
linepace effect? Thanks for any info!
(a)
?php $a = 1; ?
?php header(Location: 1.php);?
(b)
?php $a = 1; ?
?php
Does anyone have a script that can be used to call linux's locate command
and display the results in a browser?
I don't think it would be that hard and will make an effort today...
Thanks!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks for all the replies.
Regarding security, I use a script to ensure (hopefully LOL) that only
requests from inside our network are accepted both hostnames and IP's
are checked.
I did find lonewolf's reply most usefull, but now I need to come up with way
to make each result (a href...)
Currently session variables are dropped in a shorter time period than I
would like when a user sits with a page open but idle.
My PHP.INI has session_gc_maxlifetime set to 1440.
If I want variables kept for two hours, is setting session_gc_maxlifetime
the correct setting to change (to 7200) ?
Thanks Torsten. I wasn't 100% sure that was the right env var to change
but now I am :)
Torsten Roehr [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Boot [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Currently session variables are dropped in a shorter time
for the
possibility that a variable does not exist!
Boot [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
My server was under a heavy load (rebuilding software raid 1 array) and my
PHP+MySQL site seemed to be all messed up. From what I can makeout
session
variables were being lost. I
I am sure that this is a problem with my MTA configuration not PHP itself,
but any help would be appreciated.
PHP is set to use sendmail (although I understand that my server may be
using qmail and not really sendmail?)
It seems that whatever SMPT settings I place in php.ini ignores. (SMTP
My server was under a heavy load (rebuilding software raid 1 array) and my
PHP+MySQL site seemed to be all messed up. From what I can makeout session
variables were being lost. I would expect simply degraded performance but
not the loss of variables. Is this normal? LOL the array is still
Greetings. Any help appreciated.
I'm at a loss here! I am trying to use and ODBC database connection. If I
run my script through PHP commandline interpreter it's fine, however through
apache it will not connect and just basically hangs (no error either.)
Any ideas would be much appreciated!
Hello!
Can anyone tell me if there is an easier/shorthand for:
if (($x == $a) || ($x == $b) || ($x == $c) || ($x == $d) ... ) {;}
I understand the logic of why the following does not work:
if ($x == ($a || $b || $c || $d)) {;}
Thanks!
--
PHP General Mailing List
Whats the difference between $_SESSION[foo] and $_SESSION['foo'] I have been
using the 's but they seem to be unecessary?
I run into trouble if I try something like:
$query = select * from table where (test.id = '$_SESSION['foo']') ;
but the following works:
$query = select * from table
Thanks for any help, even if you just suggest built in functions to look at.
I'm looking for a way to take a 7 digit number and put it into xxx-
format.
So basically the logic is to count 3 characters into $number and insert a
- there.
Thanks!
--
PHP General Mailing List
Any help with this would be appreciated. the p and v lnames are posted from
a form. In the form, the user seperates last names with a /. What I can't
understand is why Test1 shows as nothing, while Test2 shows the value I
wanted. Thanks a lot!
$p_lnames= explode(/, $p_lnames);
Yes in php.ini. I never bothered turning off as (a) I did not take the time
to understand the implications and (b) my project is only for internal
network use anyway.
So I went and turned them off. Now of course my pages don't work properly. I
guess I have to go through all my code and address
But if I want to use $username accross many pages then I will have to make
it a session variable and call it as such on each page like
$_SESSION['username']
Thanks again!
Chris W. Parker [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
BOOT mailto:[EMAIL PROTECTED]
on Wednesday
Thanks to those who helped with my last post on session vars.
My question now is why does my server seem to randomly choose whether or not
to show the session ID appended to the browser URL? Sometimes it is there,
sometimes not. All pages session_start();.
Thanks!
--
PHP General Mailing List
Hello.
I can unset multiple variables easily, however I can't see how to unset
multiple globals without:
unset($GLOBALS['1']);
unset($GLOBALS['2'])
unset($GLOBALS['3'])
and so forth
I have tried a few variations with no success.
Thanks for any help!
--
PHP General Mailing List
Sorry for so many questions, thanks to all those who have helped.
I am finding that in order to completely unset some of my variables, I need
to use both unset($GLOBALS. and unset($_SESSION)
Does this make sense? Thanks!
--
PHP General Mailing List (http://www.php.net/)
To
. Then, replace the old file
with the new. Slow, but it works.
--
.-. Chris Boot
/v\ [EMAIL PROTECTED]
// \\
/( )\L I N U X
^^-^^Phear the Penguin
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
21 matches
Mail list logo