[PHP] Re: Determine variable with the lowest value?

2004-10-14 Thread BOOT
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

[PHP] Determine variable with the lowest value?

2004-10-13 Thread BOOT
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

[PHP] Code spacing causing HEADER problem?

2004-09-17 Thread BOOT
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

[PHP] PHP Linux locate to html script?

2004-09-03 Thread BOOT
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

Re: [PHP] PHP Linux locate to html script?

2004-09-03 Thread BOOT
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...)

[PHP] Is this the right way to increase the amount of time session variables are dropped

2004-08-20 Thread BOOT
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) ?

[PHP] Re: Is this the right way to increase the amount of time session variables are dropped

2004-08-20 Thread BOOT
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

[PHP] Re: Session problems under heavy load???

2004-08-09 Thread BOOT
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

[PHP] MAIL function sends as anonymouse@mydomain.com instead of what I specify in php.ini?

2004-08-09 Thread BOOT
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

[PHP] Session problems under heavy load???

2004-08-06 Thread BOOT
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

[PHP] Can access ODBC database via commandline int but not Apache - WTF?

2004-06-15 Thread BOOT
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!

[PHP] Control structure - easier way than repeating conditions in IF?

2004-04-30 Thread BOOT
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

[PHP] Using ' to access session variables?

2004-04-16 Thread BOOT
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

[PHP] Formatting phone numbers?

2004-04-15 Thread BOOT
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

[PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
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);

Re: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
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

Re: [PHP] Session confusion again :( - Thanks!

2004-04-14 Thread BOOT
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

[PHP] Why does session ID sometimes show appeneded to url and sometimes not?

2004-04-02 Thread BOOT
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

[PHP] Unsetting multiple globals?

2004-01-27 Thread BOOT
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

[PHP] I need to unset BOTH $GLOBALS and $_SESSION vars?

2004-01-27 Thread BOOT
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

Re: [PHP] URGENT! Regarding file manipulation

2001-03-20 Thread Chris Boot
. 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