[PHP] Re: jpgs into database

2005-07-18 Thread Matthew Weier O'Phinney
. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] syntax error, unexpected T_STRING

2005-07-18 Thread Matthew Weier O'Phinney
? C *AND* something... PHP borrows heavily from both C and perl (and a variety of other languages) -- both of which use this notation. Most languages I've used other than python use a delimiter to indicate the end of a statement (python does as well, technically -- the EOL character). -- Matthew

[PHP] Re: change letter to all caps

2005-07-18 Thread Matthew Weier O'Phinney
for. You're manipulating a string, so look in the 'Strings' section of the manual (http://php.net/strings). Then look for words like 'case' or 'upper', and you'll find: strtoupper - Make a string uppercase Enjoy! -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew

[PHP] Re: PHP 5 Object Inheritance

2005-07-15 Thread Matthew Weier O'Phinney
. That should work. Have you checked your include_path to make sure a different, unmodified version of the parent class isn't getting loaded? -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] $PHP_SELF or echo $PHP_SELF

2005-07-14 Thread Matthew Weier O'Phinney
discussion on this, see: http://blog.phpdoc.info/archives/13-XSS-Woes.html If you're using Apache, the safer bet is to use $_SERVER['SCRIPT_NAME']; otherwise, use PHP_SELF, but filter it to exclude the path information. -- Matthew Weier O'Phinney Zend Certified Engineer http

[PHP] Re: Template Engine with Event Handlers

2005-07-10 Thread Matthew Weier O'Phinney
such resources listed on his blog). -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: pear channel

2005-07-06 Thread Matthew Weier O'Phinney
for this? I have php 5.0.3 You need to compile PHP --with-mcrypt and --with-mhash, as the PEAR installer for =1.4.0 is dependent on one or more libraries that require these. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http

[PHP] Re: Help - need to quickly optimize a record count!

2005-07-06 Thread Matthew Weier O'Phinney
to that count. Again, storage could be in either a file or a DB. Either way, you're down to doing the count at most 12 times per hour, instead of every time your scripts are hit. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http

[PHP] Re: x years old

2005-07-02 Thread Matthew Weier O'Phinney
) $dif_s = ($day2-$day1); $dif_d = ($dif_s/60/60/24); $age = round(($dif_d/365.24)); And, as someone else mentioned, you want to do floor() here, as somebody is 16 until their 17th birthday. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General

Re: Re[2]: [PHP] PHP vs. ColdFusion

2005-06-30 Thread Matthew Weier O'Phinney
platform addresses that issue. -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Object Oriented PHP (5)

2005-06-30 Thread Matthew Weier O'Phinney
. Thanks, Richard! -- Matthew Weier O'Phinney Zend Certified Engineer http://weierophinney.net/matthew/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP vs. ColdFusion

2005-06-29 Thread Matthew Weier O'Phinney
of these may be true for ColdFusion as well. What the OP needs to do is determine what merits PHP or ColdFusion may have over the other, as well as what demerits might be present for each, and then evaluate those in the context of their work environment. -- Matthew Weier O'Phinney Zend Certified

[PHP] Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-25 Thread Matthew Weier O'Phinney
as it is TODAY, not 3 years ago, when I last tried it -- these comments would have more weight. As it is, I feel they're just FUD based on ignorance. /rant -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

Re: [PHP] Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-25 Thread Matthew Weier O'Phinney
* Robert Cummings [EMAIL PROTECTED] : On Sat, 2005-06-25 at 10:32, Matthew Weier O'Phinney wrote: * Catalin Trifu [EMAIL PROTECTED] : I also tend to stay away from PEAR, which is kinda bloated for my taste, except the Log package. rant I hear that a lot on this list, and I don't

Re: [PHP] Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-25 Thread Matthew Weier O'Phinney
* Robert Cummings [EMAIL PROTECTED] : On Sat, 2005-06-25 at 11:06, Matthew Weier O'Phinney wrote: * Robert Cummings [EMAIL PROTECTED] : On Sat, 2005-06-25 at 10:32, Matthew Weier O'Phinney wrote: * Catalin Trifu [EMAIL PROTECTED] : I also tend to stay away from PEAR, which is kinda

Re: [PHP] Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-25 Thread Matthew Weier O'Phinney
* Paul Waring [EMAIL PROTECTED] : On Sat, Jun 25, 2005 at 10:32:41AM -0400, Matthew Weier O'Phinney wrote: If somebody could offer some *constructive* criticism of PEAR -- PEAR as it is TODAY, not 3 years ago, when I last tried it -- these comments would have more weight. As it is, I feel

[PHP] Module testing; WAS Re: [PHP] Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-25 Thread Matthew Weier O'Phinney
* Chris Shiflett [EMAIL PROTECTED] : Matthew Weier O'Phinney wrote: The perl culture is one that includes testing and documentation as the norm You might be interested to know that there is a PHP equivalent for Test::More, the CPAN library that prompted the testing revolution that Perl

Re: [PHP] Stop spreading PEAR FUD; WAS Re: [PHP] Re: PHP web archeticture

2005-06-25 Thread Matthew Weier O'Phinney
' without the authors of said statements offering any reasons why they think so. I wanted to address these reasons, instead of just letting the comment slide on by this time. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening

Re: [PHP] Re: Strange notation to create object

2005-06-24 Thread Matthew Weier O'Phinney
$foo = new SomeClass(); since assigning by reference will break any previous references -- something I forgot to mention to Matthew Weier when he challenged the relevance of the snippet I sent. Funny... I just ran into that last night as I was writing some unit tests for an app that uses

[PHP] Re: PHP web archeticture

2005-06-24 Thread Matthew Weier O'Phinney
company. It's robust and tested. If you give it a whirl and have questions, feel free to email me directly. /shamelessSelfPromotion -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

[PHP] Re: Can't even make a simple test RSS feed

2005-06-24 Thread Matthew Weier O'Phinney
://somelink/link'; echo '/item'; echo '/channel/rss'; ? You need to add the following before echoing anything: header('Content-type: text/xml'); -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

[PHP] Re: Strange notation to create object

2005-06-23 Thread Matthew Weier O'Phinney
in an array or another object (otherwise you got a copy of the object, which means state would then differ between the original and the copy). -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

Re: [PHP] Re: Strange notation to create object

2005-06-23 Thread Matthew Weier O'Phinney
* Robert Cummings [EMAIL PROTECTED] : On Thu, 2005-06-23 at 11:32, Matthew Weier O'Phinney wrote: * Michael Stepanov [EMAIL PROTECTED] : Usually, I develop on Perl. But my current task pushes me to start use PHP. Generally, it's great but sometimes I'm a little bit confused

Re: [PHP] Re: Strange notation to create object

2005-06-23 Thread Matthew Weier O'Phinney
* Robert Cummings [EMAIL PROTECTED] : On Thu, 2005-06-23 at 13:36, Matthew Weier O'Phinney wrote: * Robert Cummings [EMAIL PROTECTED] : On Thu, 2005-06-23 at 11:32, Matthew Weier O'Phinney wrote: The above notation is unnecessary when developing in PHP5, as objects in PHP5 are passed

Re: [PHP] Re: Strange notation to create object

2005-06-23 Thread Matthew Weier O'Phinney
* Robert Cummings [EMAIL PROTECTED] : On Thu, 2005-06-23 at 15:28, Matthew Weier O'Phinney wrote: * Robert Cummings [EMAIL PROTECTED] : On Thu, 2005-06-23 at 13:36, Matthew Weier O'Phinney wrote: * Robert Cummings [EMAIL PROTECTED] : On Thu, 2005-06-23 at 11:32, Matthew Weier

Re: [PHP] Re: Strange notation to create object

2005-06-23 Thread Matthew Weier O'Phinney
* Jason Barnett [EMAIL PROTECTED] : Matthew Weier O'Phinney wrote: ... This doesn't demonstrate what the OP was talking about, which is initial assignment of an object using a reference operator. The results of this make perfect sense to me -- the references are passed exactly as I would

Re: [PHP] Re: security question...??

2005-06-21 Thread Matthew Weier O'Phinney
* david forums [EMAIL PROTECTED]: Why don't you try to get interactivity with ID machin which is unique, or with mac address. MAC address wouldn't work if the user is behind a proxy. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org

Re: [PHP] Re: security question...??

2005-06-21 Thread Matthew Weier O'Phinney
* Rory Browne [EMAIL PROTECTED] : On 6/21/05, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: * david forums [EMAIL PROTECTED] : Why don't you try to get interactivity with ID machin which is unique, or with mac address. MAC address wouldn't work if the user is behind a proxy. I

[PHP] Re: security question...??

2005-06-20 Thread Matthew Weier O'Phinney
is meant to give hints as to how to perform layout, but in the end, it's just a huge string. Is there some specific issue you're thinking about? -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

Re: [PHP] Re: security question...??

2005-06-20 Thread Matthew Weier O'Phinney
provide a service that can be agnostic of the device using it. I understand your concerns, but they come more from a world where environments can be strictly controlled, and the web ain't one of them. -Original Message- From: Matthew Weier O'Phinney [mailto:[EMAIL PROTECTED] Sent: Monday

Re: [PHP] Re: security question...??

2005-06-20 Thread Matthew Weier O'Phinney
a command line and type # telnet php.net 80 My point? Anything that can communicate over TCP and talk using HTTP commands is a valid client. That's the way the web was designed, and that's the way it works. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist

Re: [PHP] PHP autogenerating Website Templates

2005-06-17 Thread Matthew Weier O'Phinney
, if they were there at the moment, I'll get an answer immediately. Here, sometimes I'm scared to ask because of RTFM Why be scared? Good thing this isn't Usenet. ;) Speak for yourself... I read via news.php.net... ;-) -- Matthew Weier O'Phinney | WEBSITES: Webmaster

[PHP] Re: Problems with header()

2005-06-17 Thread Matthew Weier O'Phinney
). -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http://vermontbotanical.org

[PHP] Re: form inside an email

2005-06-14 Thread Matthew Weier O'Phinney
with the form. If this can be done in php then great. If not any other suggestions are welcome. The form handler can be done in any language you want... so, of course, use PHP! -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National

[PHP] Re: split()?

2005-06-14 Thread Matthew Weier O'Phinney
(no braces): Array ( [0] = Array ( [0] = [ OUT1 ] [1] = [ OUT2 ] [2] = [ OUT3 ] ) [1] = Array ( [0] = OUT1 [1] = OUT2 [2] = OUT3 ) ) -- Matthew Weier O'Phinney | WEBSITES

[PHP] Re: Retrievable weather service info?

2005-06-14 Thread Matthew Weier O'Phinney
/STATE_PROVINCE_CODE/City_Name.gif, and that when you choose what type of sticker you want, that determines the path and the image size. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

Re: [PHP] split()?

2005-06-14 Thread Matthew Weier O'Phinney
] = [ OUT2 ] [2] = [ OUT3 ] -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED

[PHP] Re: include()

2005-06-13 Thread Matthew Weier O'Phinney
in your scripts. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http

[PHP] Re: Documenting Code Question

2005-06-13 Thread Matthew Weier O'Phinney
, then it will even link to that class' documentation; if not, it shows it statically. I tend to go with the class name, as it gives more information to the individual reading the documentation. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org

[PHP] Re: tidy question

2005-06-10 Thread Matthew Weier O'Phinney
so I don't have to call that repair function on every page call, 2. I am using xhtml1.1 as DOCTYPE and tidy only gives me the 1.0 transitional version. tidy_repair_string() OR tidy_parse_string() + tidy_clean_repair() -- Matthew Weier O'Phinney | WEBSITES: Webmaster

[PHP] Re: output buffering / output compression

2005-06-09 Thread Matthew Weier O'Phinney
and Apache and/or the underlying OS. You want to set it to a value that matches Apache's buffer size and/or the OS's network buffer size. If you don't know these, using the defaults is probably the best bet. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http

Re: [PHP] Objects and Performance

2005-06-09 Thread Matthew Weier O'Phinney
should try to write efficient code. But sometimes you have to look at programmer efficiency as well -- if you're working for a client under a deadline, you don't always have that luxury. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org

Re: [PHP] Really simple regex

2005-06-08 Thread Matthew Weier O'Phinney
of a string of text I could not get. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED

Re: [PHP] linux php editor

2005-06-08 Thread Matthew Weier O'Phinney
as my primary editor :-) On 6/6/05, Clive Zagno [EMAIL PROTECTED] wrote: what php GUI editors do you recommend. any other recommendations, thanks -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association

Re: [PHP] Explanation in Shiflett's PHP Security Briefing

2005-06-08 Thread Matthew Weier O'Phinney
will only contain the values you expect it to - they should be moved out into a clean array first for further inspection and filtering, if anything else lingers in the $_POST array, it's most likely been tainted. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist

[PHP] Re: How to execute local applications on the client

2005-06-07 Thread Matthew Weier O'Phinney
() -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http://vermontbotanical.org

Re: [PHP] Re: Unit testing ?

2005-06-07 Thread Matthew Weier O'Phinney
the details differ. If you have more info (like books, urls, examples) please send me. Unfortunately, no. Most of this is personal experience, a little of it was garnered from php|Tropics, and that portion wasn't an official part of Jason Sweat's presentation. On 6/2/05, Matthew Weier O'Phinney [EMAIL

Re: [PHP] Re: How to execute local applications on the client

2005-06-07 Thread Matthew Weier O'Phinney
* John Nichel [EMAIL PROTECTED] : Matthew Weier O'Phinney wrote: * Mauricio Pellegrini [EMAIL PROTECTED] : Some one has asked me to set a web page from within wich users could launch local applications. Those applications are allready installed in the client PC. The link

[PHP] Re: PHP bug within multi. dimensional arrays?

2005-06-06 Thread Matthew Weier O'Phinney
if // desired } } -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org

[PHP] Re: headers and session

2005-06-06 Thread Matthew Weier O'Phinney
config.inc.php have any whitespace following the closing ? tag, or does it output any HTML? That could be your culprit. What happens if you do your $_SESSION setting *before* the require, but directly after the initial header() call? -- Matthew Weier O'Phinney | WEBSITES: Webmaster

[PHP] Re: PHP bug within multi. dimensional arrays?

2005-06-06 Thread Matthew Weier O'Phinney
* Merlin [EMAIL PROTECTED] : Matthew Weier O'Phinney wrote: * Merlin [EMAIL PROTECTED] : I am outputting an multidim. array. That works fine, except one thing. The first letter of the value inside dimension 1 always gets printed. For example: I fill the arrays: while

[PHP] Re: headers and session (question)

2005-06-06 Thread Matthew Weier O'Phinney
, output will have been sent, and you will not be able to send a cookie or additional HTTP headers. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156

[PHP] Re: What is faster?

2005-06-05 Thread Matthew Weier O'Phinney
contortions in PHP4 to get similar functionality with microtime.) From my own benchmarks, it looks like the if-else is slightly faster. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

[PHP] Re: stripping html tags

2005-06-05 Thread Matthew Weier O'Phinney
)*?(.|\s)*?\/head/i , , $text); ==^ It seems to be pointing to the 'e' is 'head'. Why? Thanks. Why are you using regexes instead of strip_tags()? -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org

[PHP] Re: Check class definition

2005-06-03 Thread Matthew Weier O'Phinney
* Chris Boget [EMAIL PROTECTED]: You can use defined() to check to see if a constant has been defined. You can use function_exists() to see if a function has been defined. But what can you use to check to see if a class has been defined? class_exists() -- Matthew Weier O'Phinney

[PHP] Re: Unit testing ?

2005-06-02 Thread Matthew Weier O'Phinney
that it helps. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http

[PHP] Re: Best way to use other objects within classes?

2005-06-02 Thread Matthew Weier O'Phinney
will actually generate some notices -- but since you're developing for PHP4, you can safely ignore them). -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156

Re: [PHP] PHP 5 Question about OO

2005-06-01 Thread Matthew Weier O'Phinney
is, so keep your case consistent throughout. Docs are here: http://www.php.net/manual/en/language.oop5.autoload.php -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802

[PHP] Re: Looking for a developer's weblog/cms system?

2005-05-19 Thread Matthew Weier O'Phinney
likely get that 'for free'. If all else fails... you're a PHP developer -- code your own! -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156

[PHP] Re: Excellent language PHP5 is!

2005-05-19 Thread Matthew Weier O'Phinney
with the func_get_arg() calls, you still get a variable number of arguments, and you can easily pass references. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156

[PHP] Re: RSS news feed (slightly 0T)

2005-05-18 Thread Matthew Weier O'Phinney
, but most of it will be. If nothing else, it will turn you towards other newsfeeds that might be of interest. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156

[PHP] Re: Basic PHP/HTML code question

2005-05-18 Thread Matthew Weier O'Phinney
, and what falls under the javascript umbrella. Rule of thumb: * If it's display related, it's HTML/CSS * If it has to happen before a request is made, it's Javascript * If it happens in response to a request, it's PHP Good luck! -- Matthew Weier O'Phinney | WEBSITES: Webmaster

[PHP] Re: PHP Complex Data Structures

2005-05-17 Thread Matthew Weier O'Phinney
be afraid to experiment. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http

Re: [PHP] extension development

2005-05-15 Thread Matthew Fonda
/zend.php Regards, Matthew Fonda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: yet another php templating question

2005-05-10 Thread Matthew Weier O'Phinney
the website is http://www.phpsavant.org/ PEAR has a couple of template solutions, but I'm not hear too much about them, good or bad. Another one I've seen favorable review on is patTemplate, from the PHP Tools site: http://www.php-tools.net/ -- Matthew Weier O'Phinney | WEBSITES: Webmaster

Re: [PHP] Re: A couple questions about templating

2005-05-10 Thread Matthew Weier O'Phinney
developer/designer efficiency. Finding a happy medium is the challenge. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http

Re: [PHP] Between Query (0T)

2005-05-09 Thread Matthew Weier O'Phinney
though today is May 9, and they're still 25. Matthew Weier O'Phinney [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Ryan A [EMAIL PROTECTED] : Thanks for replying. SELECT * FROM `table` WHERE `age` BETWEEN 25 AND 26; I knew the above, but how do i use

[PHP] Re: Accessible HTML - OT

2005-05-09 Thread Matthew Weier O'Phinney
. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http

[PHP] Re: A couple questions about templating

2005-05-09 Thread Matthew Weier O'Phinney
own templating class, go and thoroughly review the code of those that already exist: Smarty, Savant, paTemplate, FastTemplate, etc. Figure out how each solved the problems. Then determine if you can improve upon their solutions. -- Matthew Weier O'Phinney | WEBSITES: Webmaster

Re: [PHP] Re: Accessible HTML - OT

2005-05-09 Thread Matthew Weier O'Phinney
not *allowed* to make a tableless design due to the wishes of my boss or client. And, unfortunately, I have to pay the bills so my family and I have a place to live and food to eat, so I can't simply refuse a job based on principle. That's pretty much all I was getting at in my first post. Matthew Weier

Re: [PHP] Between Query (0T)

2005-05-08 Thread Matthew Weier O'Phinney
` WHERE `age` BETWEEN 25 AND 26; You might want to sanitize your input first. Like using intval() on your input or mysql_escape_string -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

Re: [PHP] Between Query (0T)

2005-05-08 Thread Matthew Weier O'Phinney
for comparisons). -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http

[PHP] Re: expression between vertical bars

2005-05-07 Thread Matthew Weier O'Phinney
if (preg_match('/http:\/\/www.php.net\//U', $url) # PHP If you want more information on this, pick up a copy of Mastering Regular Expressions or Programming Perl, both from O'Reilly Press. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National

[PHP] Re: need class to send email w/attachments

2005-05-06 Thread Matthew Weier O'Phinney
* Dave Bosky [EMAIL PROTECTED]: Any recommendations for PHP classes that will send email messages with attachments? PEAR::Mail + PEAR::Mail_Mime -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

[PHP] Re: if then else statement not working

2005-05-05 Thread Matthew Weier O'Phinney
of these a variable? is one a string? I'm suspecting that what you're trying to compare is more like this: if ($seatnum == 'seat1') { but I don't know for sure if you've defined a $seatnum variable previously. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist

Re: [PHP] handling a user pressing browser's back button

2005-05-04 Thread Matthew Weier O'Phinney
browser back to script 1 Script 1 is in charge of submitting and displaying; script 2 does the processing. This list is the best! -James At 2:08 AM + 4/27/05, Matthew Weier O'Phinney wrote: * James [EMAIL PROTECTED]: I apologize in advance if I'm asking basic questions... When you

Re: [PHP] Re: Can someone help me build a regular expression?

2005-05-04 Thread Matthew Weier O'Phinney
) follows. It's typically only necessary in perl if using delimiters other than / around the regexp. (The person who posted that should have written it as PHP to avoid confusion: preg_match('/^[0-9][A-Z][a-z]{2-3} \.[0-9]+$/', $string);) -- Matthew Weier O'Phinney | WEBSITES: Webmaster

[PHP] Re: Valid email address syntax script?

2005-05-04 Thread Matthew Weier O'Phinney
, by David Sklar, but I can't remember for certain. It's not 100% accurate, but I rarely have complaints from users whose emails don't validate. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

[PHP] Re: somebody have an example for PEAR packet?

2005-05-04 Thread Matthew Weier O'Phinney
wrapper class that shows very nicely how to use it. If you installed Pager using the pear installer, the examples aren't included, so you'll need to grab a Pager package off the pear website, unpack it, and find the examples within. -- Matthew Weier O'Phinney | WEBSITES: Webmaster

[PHP] Re: losing session values

2005-05-04 Thread Matthew Weier O'Phinney
between locations. Another possibility is if there is a proxy between you and the server. If so, you'll need to do some workarounds to keep the proxy server from caching session IDs between requests. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http

[PHP] Re: just going with LIKE

2005-05-02 Thread Matthew Weier O'Phinney
in mysql works quite nicely, and are relatively fast (though not as fast as LIKE) when going through smaller sets of records -- I wouldn't use it for large sets of records, however. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National

Re: [PHP] Regular expressions problem

2005-04-30 Thread Matthew Weier O'Phinney
in the regular expressions (POSIX)? -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED

[PHP] Re: Regular expressions problem

2005-04-29 Thread Matthew Weier O'Phinney
* Khorosh Irani [EMAIL PROTECTED]: Hello I have a question: What is in the role of space in the regular expressions (POSIX)? To match a space. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

Re: [PHP] Re: Templating engines

2005-04-29 Thread Matthew Weier O'Phinney
... priorities you know :) Cheers, Rob. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL

[PHP] Re: __autoLoad php5 callback is being triggered for every class ?

2005-04-29 Thread Matthew Weier O'Phinney
$final; } -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http

Re: [PHP] check for alphanumeric characters

2005-04-29 Thread Matthew Weier O'Phinney
be simpler than that, actually: preg_match('/^[a-z0-9]+$/i', $string) (tested and works) -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156

Re: [PHP] Re: Templating engines

2005-04-29 Thread Matthew Weier O'Phinney
of those for my display logic. Using a template engine and its language helps me switch gears in my brain to thinking in terms of display instead of my application logic. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening

[PHP] Re: Global Variables

2005-04-28 Thread Matthew Weier O'Phinney
['bar']; // set a session variable ? -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL

[PHP] Re: Templating engines

2005-04-28 Thread Matthew Weier O'Phinney
on the subject. (me? I use Smarty.) -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED

Re: [PHP] php/pear question

2005-04-28 Thread Matthew Weier O'Phinney
. I'll have to agree with you there. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL

[PHP] Re: What's changed between version 4.2.2 and 4.3.4 regarding POSTing?

2005-04-27 Thread Matthew Weier O'Phinney
ideas why? Yes. It's using the global arrays HTTP_POST_VARS and HTTP_SESSION_VARS arrays, and 4.3.x has the directive register_globals set to off by default. It's safer to leave it off. You can easily update the script by replacing these with $_POST and $_SESSION, respectively. -- Matthew Weier

[PHP] Re: handling a user pressing browser's back button

2005-04-26 Thread Matthew Weier O'Phinney
to reload. Alternatively, you set a session variable indicating that the action has already occurred so that when user submits form again, you check for existence of said session variable, and, if found, display an error. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist

Re: [PHP] handling a user pressing browser's back button

2005-04-26 Thread Matthew Weier O'Phinney
' just sounds better). Heck, versions of the same browser on different platforms sometimes treat them differently. This is why session handling techniques are a common 'fix' for bad browser behaviour in these instances. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist

[PHP] Re: array from folder

2005-04-25 Thread Matthew Weier O'Phinney
', $photos); To determine the number of files, simply do a count() on the $photos array. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http

[PHP] Re: Php defense

2005-04-23 Thread Matthew Weier O'Phinney
at other languages. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http

Re: [PHP] I need do paging in php, I use ODBC Access

2005-04-22 Thread Matthew Weier O'Phinney
SQL. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:[EMAIL PROTECTED] | http

Re: [PHP] problem with the pager class not found

2005-04-22 Thread Matthew Weier O'Phinney
of your class definition. I'm guessing this is probably *not* the case... it's a PEAR package, and if it's considered stable, this is *highly* unlikely. (Plus, if it's the stable version, then I'm running it on my production servers, and I *know* it's working fine!) -- Matthew Weier O'Phinney

[PHP] Re: I need do paging in php, I use ODBC Access

2005-04-21 Thread Matthew Weier O'Phinney
* Tomás Rodriguez Orta [EMAIL PROTECTED]: Somebody did paging in php for data origin in ODBC Access? I need an algorithm for doing this, please Help me! Grab PEAR Pager, and let it do the work for you. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist

[PHP] Re: Abstract Legacy question

2005-04-20 Thread Matthew Weier O'Phinney
class B calls its function Y, it will in its turn call function X (which is not overloaded in class B) and function X calls the function GUID from which class? Class A or Class B? Since Class B overrides method guid, function x will call the method from Class B. -- Matthew Weier O'Phinney

Re: [PHP] Matching Number of Times a Word Occurs...

2005-04-19 Thread Matthew Fonda
Hello, http://us4.php.net/substr_count Regards, Matthew Fonda Russell P Jones wrote: Im trying to count the number of times a word occurs in a string - is the only way to do this preg_match_all? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

<    1   2   3   4   5   6   7   8   9   10   >