[PHP] Re: Run a php script as a separate thread/process

2005-10-12 Thread Tommy Jensehaugen
Thank you very much. This is what I ended up with if anyone needs it: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Check if an url is a jpg image

2005-10-12 Thread Tommy Jensehaugen
Hi, Is it possible to check if an url is a jpg image from php? Thank you for your help. Cheers, Tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Run a php script as a separate thread/process

2005-10-11 Thread Tommy Jensehaugen
Hi, Anyone knows how to start a php script as a separate thread/process from another php script? example.php: The reason why I want to do this is because separate_script.php has to be fully executed even if the request for example.php is stopped in the middle of "more logic". I am using PHP

[PHP] Run a php script as a separate thread/process

2005-10-11 Thread Tommy Jensehaugen
Hi, Anyone knows how to start a php script as a separate thread/process from another php script? example.php: The reason why I want to do this is because separate_script.php has to be fully executed even if the request for example.php is stopped in the middle of "more logic". I am using PHP

[PHP] apache webprotect logout

2003-01-27 Thread Tommy Jensehaugen
help. Thanks Tommy Jensehaugen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] get apache user

2003-01-25 Thread Tommy Jensehaugen
If I can't use any of those, it's not possible? correct? thank you for your help. tommy "Jason Wong" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote: > >

[PHP] get apache user

2003-01-24 Thread Tommy Jensehaugen
Hi folks! I have a page where I log in as an Apache user. How do I get the apache username in php? thanks tommy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Are 2 mysql_query statements psble?

2003-01-10 Thread Tommy Jensehaugen
i don't know if this is the most efficient way, but it'll work: $query = "SELECT username FROM users WHERE username = > '{$_POST['strUserName']}'"; $query2 = "SELECT Ngfnummer FROM lid WHERE Ngfnummer = '{$_POST['strNgfnummer']}'"; if ( mysql_num_rows( mysql_query( $query ) ) == 0 && mysql_num_r

[PHP] Re: Parsing a directory for specific files

2003-01-10 Thread Tommy Jensehaugen
function get_file_list($dirName=".") { $list = array(); $handle = opendir($dirName); while (false !== ($file = readdir($handle))) { /* Omit the '.' and the '..' directories. */ if ((".."== $file) || ("."== $file)) continue; array_push($list, $file); } closedir($handle); return $list; }

[PHP] Re: need some javascript code

2003-01-10 Thread Tommy Jensehaugen
This works with your first question. Might work for all. html: javascript: function validate() { form = document.name_of_form; if( form.name.value == '' ) { alert( "You forgot to write your name." ); document.forms[0].name.focus(); return false; } else { return true; } } tommy

[PHP] Re: How can I redirect to another php page

2003-01-09 Thread Tommy Jensehaugen
If you choose to use header("Location: yellow.php"); it might be useful to add an exit; statement after it. I have experienced that if I use more header(..) function calls in one page, it can skip the first ones. Don't know why, but with the exit; statement your are sure: if ($Color == "Yellow") {