Re: [PHP] PHP Code I Must find

2008-05-29 Thread Jeremy Privett
ndlodge.mb.ca; would be this in latin characters: mailto:[EMAIL PROTECTED]/ http://www.asciitable.com/ http://www.php.net/ord The rest should be easy to figure out on your own. -- Jeremy Privett C.E.O. & C.S.A. Omega Vortex Corporation http://www.omegavortex.net Please note: This mess

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jeremy Privett
Nathan Nobbe wrote: On Wed, Apr 16, 2008 at 12:56 PM, Jeremy Privett <[EMAIL PROTECTED]> wrote: This is a holy war that is never going to end. It boils down to personal and professional preferences. The fact of the matter is, if a company uses these concepts and you don't know,

Re: [PHP] What is the practical use of "abstract" and "interface"?

2008-04-16 Thread Jeremy Privett
nion is on the feature of the language. Useless or not, if it's not your project, you don't get to make that call. If it is your project, do whatever you want. -- Jeremy Privett C.E.O. & C.S.A. Omega Vortex Corporation http://www.omegavortex.net Please note: This message has bee

Re: [PHP] Beware of round() function

2008-03-24 Thread Jeremy Privett
Jeremy Privett wrote: [EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. This is actually a change in the behavior of the float type, not the round function. Replace your round() with a cast to float and you'll see the exact same result. Also,

Re: [PHP] Beware of round() function

2008-03-24 Thread Jeremy Privett
[EMAIL PROTECTED] wrote: Beware: round() apparently has changed its behavior from PHP 4. This is actually a change in the behavior of the float type, not the round function. Replace your round() with a cast to float and you'll see the exact same result. -- Jeremy Privett C.E.O. &a

Re: [PHP] Professional inquiry for you freelancers

2007-12-05 Thread Jeremy Privett
Steve Finkelstein wrote: Hi all, Going to cut it short and to the point. Do most of you freelancers get by with enough work that does not require front-end UI/design? Do you find it easier to get more work when you're strengths in design are just as creative as your programming capabilities? Th

Re: [PHP] define() an array?

2007-04-20 Thread Jeremy Privett
[EMAIL PROTECTED] wrote: Hi, I thought I could define() and array. However, when I do this: define("THECONSTANT", array(1,2,3)); print_r(THECONSTANT); it prints THECONSTANT and not the array :( according to the manual: bool define ( string $name, mixed $value [, bool $case_insensitive] ) An

Re: [PHP] Re: $35 to the first person who can do this XML-parsing PHP script

2007-03-08 Thread Jeremy Privett
Rob Gould wrote: Ok, well at least I'm honing in on the problems now. I appears that my ISP is only running php 4.4.4. So back in the PHP 4-days, what was the preferred method of doing such things? - Rob Expat would probably be the way to go, then. http://www.php.net/xml -- Jeremy C. Pr

Re: [PHP] segmentation fault - my fault?

2007-02-12 Thread Jeremy Privett
Jim Lucas wrote: Marc Weber wrote: Does this script cause a segmentation fault running on your php interpreter, too? = === = === My version: [EMAIL PROTECTED] ~ $

Re: [PHP] segmentation fault - my fault?

2007-02-12 Thread Jeremy Privett
Jochem Maas wrote: Marc Weber wrote: Does this script cause a segmentation fault running on your php interpreter, too? = === you can't use the return value of func_get_args() directly in this way. you must do this instea

RE: [PHP] if statement with or comparison (newbie)

2006-09-08 Thread Jeremy Privett
Well, it could be this, too: switch( $_REQUEST['id'] ) { case "white": echo "Right color."; break; case "black": echo "Right color."; break; default: echo "Wrong color."; break; } --- Jeremy C. Prive

RE: [PHP] Max File Upload

2006-08-15 Thread Jeremy Privett
http://us2.php.net/manual/en/ini.core.php#ini.upload-max-filesize In later versions of PHP, you can't use ini_set to set upload_max_filesize ... The changeable option is PHP_INI_PERDIR now, meaning you can only change it in php.ini, .htaccess or httpd.conf ... http://us2.php.net/manual/en/ini.php

Re: [PHP] Array sort question

2006-02-28 Thread Jeremy Privett
Saline Erik wrote: Sometimes I just need a point in the right direction. So RTFM is not so bad. Erik If you say so. In that case, jblanchard, I apologize for my outburst. -- Jeremy Privett Director of Product Development Zend Certified Engineer Completely Unique [EMAIL PROTECTED] Phone

Re: [PHP] Array sort question

2006-02-28 Thread Jeremy Privett
It usually just pisses them off. Also, links to other functions to help out like http://www.php.net/usort or http://www.php.net/array_multisort would've helped out more, as well. -- Jeremy Privett Director of Product Development Zend Certified Engineer Completely Unique [EMAIL PROTECTED] Ph

Re: [PHP] Array sort question

2006-02-28 Thread Jeremy Privett
ere's no one here willing to help new people more than throwing them "RTFM" responses. -- Jeremy Privett Director of Product Development Zend Certified Engineer Completely Unique [EMAIL PROTECTED] Phone: 303.415.2592 Fax: 303.415.2597 Web: www.completelyunique

Re: [PHP] Getting The Document Root

2006-02-02 Thread Jeremy Privett
John Nichel wrote: Jeremy Privett wrote: John Nichel wrote: $_SERVER['DOCUMENT_ROOT'] http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server Nope. I've already tried that... $_SERVER['DOCUMENT_ROOT'] contains /home/jeremy/public_html/t

Re: [PHP] Getting The Document Root

2006-02-02 Thread Jeremy Privett
John Nichel wrote: $_SERVER['DOCUMENT_ROOT'] http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server Nope. I've already tried that... $_SERVER['DOCUMENT_ROOT'] contains /home/jeremy/public_html/test/ ... All I want is to the public_html

Re: [PHP] Getting The Document Root

2006-02-02 Thread Jeremy Privett
ublic_html/ Now, the document root can vary from server to server ... Like /var/www/ or /home/jeremy/www/ or whatever. So, I'd like to know if there was a way to dynamically fetch it, instead of putting together a list of the known document roots (hard-coding supported ones). I hope tha

Re: [PHP] Getting The Document Root

2006-02-02 Thread Jeremy Privett
2006 07:14:22 AM -0600 From: Jeremy Privett <[EMAIL PROTECTED]> To: php-general@lists.php.net Subject: [PHP] Getting The Document Root I'm looking for a method that would be able to extract the user's true document root (e.g. /home/jeremy/public_html/) so that I can use it for som

[PHP] Getting The Document Root

2006-02-02 Thread Jeremy Privett
detect it, but nothing is coming to mind. I thought I would consult some of the minds of the mailing list for advice. Any ideas or code would be greatly appreciated. -- Jeremy Privett [ http://www.jeremyprivett.com ] Founder - Lead Software Developer - Hosting Systems Administrator Ome

Re: [PHP] Comparing of string

2006-01-04 Thread Jeremy Privett
janbro wrote: Hi Jeremy, I tried if ( strcmp( trim($SollKombination), trim($formCheck) ) ) same negativ result. For some reason both strings are not considered to be the same. They have the same length, are of the same type and have the same content. Why PHP doesn't recognize them as beeing e

Re: [PHP] Comparing of string

2006-01-03 Thread Jeremy Privett
have with this: if ( strcmp( trim($SollKombination), trim($formCheck) ) ) { echo "test"; } --- Jeremy Privett [ http://www.jeremyprivett.com ] Founder - Lead Software Developer - Hosting Systems Administrator Omega Vortex (http://www.omegavortex.com) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php