RE: [PHP] Confused a little with = to and grater than ...

2003-03-15 Thread Dennis Cole
I think this is what you mean ?php // This looks cleaner, and is a lot easyer to read! $siteAccessLevel = 2; $gAccessLevel = 1; switch ($siteAccessLevel) { case level-1: $slevel = 0; break; case level-2: $slevel = 1; break; case level-3:

RE: [PHP] Hacker problem

2003-03-12 Thread Dennis Cole
If you are really that strict about it coming from you site, have your form page create an image with five letter of number on it - like 4Y6O7. Have it create a new one each time. Then use crypt to encrypt it and put the encrypted one into a form value, have the person that is submitting the form

RE: [PHP] sessions terminating randomly please help

2003-03-10 Thread Dennis Cole
Make sure that the url is always the same. For example if a user is at a page http://mysite.com/phpscript.php and you link to http://www.mysite.com/phpscript.php (notice the www) the session might not follow because the url is different. -Original Message- From: freaky deaky

RE: [PHP] Re: sessions terminating randomly please help

2003-03-10 Thread Dennis Cole
Assuming that php is configued to rewrite the url tags, try turning off cokkies in the browser and let the Session if carry over. This might help you debugg it. -Original Message- From: David Chamberlin [mailto:[EMAIL PROTECTED] Sent: Monday, March 10, 2003 3:41 PM To: [EMAIL PROTECTED];

[PHP] RE: [PHP-DB] RE: [PHP] Random not working?

2003-03-01 Thread Dennis Cole
You might try getting the random number before the query. -Original Message- From: Rich Gray [mailto:[EMAIL PROTECTED] Sent: Saturday, March 01, 2003 8:37 PM To: Frank Keessen; [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] RE: [PHP] Random not working? Hi All, I'm trying to

RE: [PHP] Output Numerical Month as String?

2003-02-25 Thread Dennis Cole
[code] date (F, mktime(0,0,0,6,1,2000)); [\code] Replace 6 with the month number and your on your way -Original Message- From: CF High [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:54 PM To: [EMAIL PROTECTED] Subject: [PHP] Output Numerical Month as String? Hey all.

RE: [PHP] session_start

2003-02-24 Thread Dennis Cole
Not to be nosey or anything but usually session data will always be saved or not. How come one would want to check to see if is was or not. -Original Message- From: Ernest E Vogelsinger [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 7:49 AM To: Mr Percival Cc: [EMAIL PROTECTED]

RE: [PHP] Zend Encoder

2003-02-24 Thread Dennis Cole
There is not a way to encrypt something so that is is totaly, positivly, iriversable. As for someone at zend looking at them, there probably is, but they have a duty not to do anything with them. -Original Message- From: Thomas Johnsson [mailto:[EMAIL PROTECTED] Sent: Monday, February 24,

RE: [PHP] table width problems

2003-02-23 Thread Dennis Cole
You can use the code below to trim a string to a specified number of charecters. Change 64 to how long you want the string to be. This won't cut words in half. wordwrap( $text, 64, Br, 0); -Original Message- From: Adriaan Nel [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003

RE: [PHP] TO JOSH

2003-02-23 Thread Dennis Cole
Please do not send the same message over and over! And use more descriptive titles! Your code is right, It problem only a problem with your form, browser, or a platform specific platform. Please read http://www.thickbook.com/extra/php_email.phtml Dennis -Original Message- From: Luis A

RE: [PHP] session_start

2003-02-23 Thread Dennis Cole
data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 --- Dennis Cole DCW Productions.us -Original Message- From: Mr Percival [mailto:[EMAIL PROTECTED] Sent: Sunday, February 23, 2003 11:52 PM To: [EMAIL

RE: [PHP] table border colors in html/xml

2003-02-23 Thread Dennis Cole
rant This isn't a PHP thing. /rant And you should use bordercolor=#FF -Original Message- From: Sunfire [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 1:24 AM To: [EMAIL PROTECTED] Subject: [PHP] table border colors in html/xml hi my client just told me that he wants

RE: [PHP] radio buttons

2003-02-23 Thread Dennis Cole
Using a case statment would be the easyest way to tell which one was checked, but technicly one could check all three unless the value of name is changed the same like ... input type=radio name=priority value=this is a general statement?this is a general post input type=radio name=priority

RE: [PHP] Which function?

2003-02-23 Thread Dennis Cole
Use this http://www.php.net/manual/en/function.strstr.php -Original Message- From: John Taylor-Johnston [mailto:[EMAIL PROTECTED] Sent: Monday, February 24, 2003 2:21 AM To: [EMAIL PROTECTED] Subject: [PHP] Which function? Instead of doing this: ?php if ($HTTP_HOST ==

RE: [PHP] sending results by email

2003-02-22 Thread Dennis Cole
A subjestion would be to use the mail() function to. You can find the mail fuction at http://www.php.net/manual/en/function.mail.php. -Original Message- From: Luis A [mailto:[EMAIL PROTECTED] Sent: Saturday, February 22, 2003 5:42 PM To: [EMAIL PROTECTED] Subject: [PHP] sending results by

RE: [PHP] Correct number format (curency)

2003-02-20 Thread Dennis Cole
This should also work, without any problems. - Php Code -- ? $total = 1.000,00; $total = str_replace(',','',$total); echo number_format($total, 2, '.', ''); ? - End PHP Code -- - Original Message - From: Bas Jobsen [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 20,

[PHP][PHP] Money Decimals

2003-02-19 Thread Dennis Cole
I am writing a script that will take amount out of a database then display them on the page. But, some of these are like 46.0 or 46 or 46.005, and they all need to look like 46.00. Is there an easy way to do this. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] limiting characters

2003-02-18 Thread Dennis Cole
$words = All I want for Christmas is my two front teeth ; $newwords = trim($words); $pieces = explode( , $words); echo $pieces[0] $pieces[1] $pieces[2] $pieces[3]...; // Retures All I want for... -Original Message- From: Michael P. Carel [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

RE: [PHP] ASCII/UNICODE Character Translation Comparison in Strings

2003-02-18 Thread Dennis Cole
$txt = björk; $txt = strtr($txt, ÁÉÍÓÚÑÀÈÌÒÙÄËÏÖÜÂÊÎÔÛáéíóúñàèìòùäëïöüâêîôûç, aeiounaeiouaeiouaeiouaeiounaeiouaeiouaeiouc); echo $txt; // Returns bjork -Original Message- From: Chris McCluskey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 18, 2003 7:03 PM To: [EMAIL PROTECTED] Cc:

RE: [PHP] SQL Query

2003-02-14 Thread Dennis Cole
There is a nice piece of software that you should get, http://ems-hitech.com/mymanager/! It's not free, but you can download a trial. (I would get it) It is great for building querys across tables. -Original Message- From: Zydox [mailto:[EMAIL PROTECTED]] Sent: Friday, February 14, 2003

RE: [PHP] File upload problem

2003-02-10 Thread Dennis Cole
MAX_FILE_SIZE only tells the browser how large the file should be. This is why the PHP manual page also says, The MAX_FILE_SIZE is advisory to the browser. It is easy to circumvent this maximum. So don't count on it that the browser obeys your wish! The PHP-settings for maximum-size, however,

RE: [PHP] Avoiding several windows with the same session

2003-02-07 Thread Dennis Cole Jr
If you are using cookies the new window will pick it up. Have the original page change a variable to say that it has loaded then when the new window loads have it check that variable first. -Original Message- From: Roman Sanchez [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003

RE: [PHP] mail() and sendmail path

2003-02-07 Thread Dennis Cole Jr
You can find this here - http://www.php.net/manual/en/ref.mail.php -Original Message- From: micah lamb [mailto:[EMAIL PROTECTED]] Sent: Friday, February 07, 2003 5:29 PM To: [EMAIL PROTECTED] Subject: [PHP] mail() and sendmail path Is there any way to declare the path to sendmail