[PHP] Re: sanitizing/security

2004-12-19 Thread Matthew Weier O'Phinney
database driver's quoting method. In MySQL, this is mysql_real_escape_string(). Alternatively, use a database abstraction layer such as ADODB or PEAR::DB/MDB2 and use its prepare() functionality (that way you don't need to know the db's specific functions). -- Matthew Weier O'Phinney

[PHP] Re: HTML_Template_Flexy or Smarty

2004-12-15 Thread Matthew Weier O'Phinney
to generate a page. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List

Re: [PHP] Re: Good and free encoder for PHP5

2004-12-15 Thread Matthew Weier O'Phinney
. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List (http://www.php.net

Re: [PHP] Re: HTML_Template_Flexy or Smarty

2004-12-15 Thread Matthew Weier O'Phinney
it simple, it does that, too. On 16/12/2004, at 12:55 AM, Matthew Weier O'Phinney wrote: * Electroteque [EMAIL PROTECTED]: hi there I am trying to choose between the two, which one is efficient, but is also html programmer friendly and can still do template block style templating like

[PHP] Re: Database Framework

2004-12-15 Thread Matthew Weier O'Phinney
DataObject/DataGrid classes in specific. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP

[PHP] Re: scripting with php

2004-12-14 Thread Matthew Weier O'Phinney
make the script executable...? Is the path to PHP correct? Did you enclose all PHP commands within ?php ... ? directives? -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

Re: [PHP] GD functions don't delete temporary files

2004-12-13 Thread Matthew Weier O'Phinney
associated with an image resource; it doesn't remove the temp file associated with it. It's possible that PHP is either relying on the OS's /tmp cleanup routines or Apache's temp file cleanup, or has set a large garbage collection interval itself in its php.ini. -- Matthew Weier O'Phinney

[PHP] Re: Forms Question: Options

2004-12-11 Thread Matthew Weier O'Phinney
you're only fetching from the results set once. Change that to : while ($one_line_of_data = mysql_fetch_array($response)) { and you should be set. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening

[PHP] Re: Object In Object

2004-12-09 Thread Matthew Weier O'Phinney
to want to use references. Try the following: $mysql = new mysql(); $this-mysql = $mysql; $user= new user(); $this-user = $user; Other than that, yes, this is a fairly standard mechanism in PHP's OOP. -- Matthew Weier O'Phinney

[PHP] Re: PEAR performance/overhead

2004-12-07 Thread Matthew Weier O'Phinney
time is simply too valuable. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP

Re: [PHP] Re: create htaccess.

2004-12-06 Thread Matthew Weier O'Phinney
$val = $args[$i + 1]; // Grab value from odd arguments $$key = $val; // Use dynamic variable assignment } Basically, with PATH_INFO, YOU have to do the work of determining where items in the url map to variables for your script. -- Matthew Weier O'Phinney | mailto

Re: [PHP] Re: create htaccess.

2004-12-06 Thread Matthew Weier O'Phinney
* Jason Wong [EMAIL PROTECTED]: On Monday 06 December 2004 20:11, Matthew Weier O'Phinney wrote: 'article.php' will have to become just 'article' for the above to work (unless you can do rewriting, but you indicated that you don't have access to your httpd.conf file). The directions

Re: [PHP] Quick questions ?=something?

2004-12-06 Thread Matthew Weier O'Phinney
to use the ?php echo ; ? construct. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org

Re: [PHP] Magic-quotes

2004-12-06 Thread Matthew Weier O'Phinney
including databases and text files will have quotes escaped with a backslash. In other words, if magic_quotes_runtime is ON, you *will* need to run stripslashes on data returned from your database if you don't want quotes escaped with a backslash. -- Matthew Weier O'Phinney | mailto:[EMAIL

[PHP] Re: create htaccess.

2004-12-05 Thread Matthew Weier O'Phinney
($pi, 1);// Remove the opening slash $args = split('/', $pi); // Create array of arguments $f= $args[0]; // Grab first argument -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National

[PHP] Re: Stupid question

2004-12-04 Thread Matthew Weier O'Phinney
* Phpu [EMAIL PROTECTED]: If i have a php and mysql website...how many connections support mysql = at one time ? Depends on your mysql setup; you'll have to look at the mysql configuration file (/etc/my.cnf on most *nices). -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED

[PHP] Re: $this -

2004-12-02 Thread Matthew Weier O'Phinney
to access object properties and methods. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org

[PHP] Re: constructing class

2004-12-01 Thread Matthew Weier O'Phinney
() ? Why don't you just pass an associative array as the second argument? Then you can have each class' constructor figure out what it needs from the array. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening

Re: [PHP] Date Manipulation

2004-12-01 Thread Matthew Weier O'Phinney
but can't find what I need. All I want to do is add and subtract days without ending up with bogus date values. IOW, Nov. 29 + 7 days shouldn't be Nov. 36. Just a nod in the write direction would be great. mktime() or strtotime() -- Matthew Weier O'Phinney | mailto

Re: [PHP] Organisation of classes

2004-12-01 Thread Matthew Weier O'Phinney
for editing, etc... -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List

Re: [PHP] Re: php editor or php IDE for linux with autocompletion

2004-11-30 Thread Matthew Weier O'Phinney
://vim.sourceforge.net/tips/tip.php?tip_id=91 is a HOW, can't find the dictionary file anymore, and don't have it locally either (I don't use auto-completion with PHP). But it shouldn't be too hard to make ;) google for 'rasmus vim php dictionary', and I think you'll find it. -- Matthew Weier O'Phinney

[PHP] Re: Problem with parameter count in strstr()

2004-11-30 Thread Matthew Weier O'Phinney
, ','); } $stripped = array_map('subStr', $data); $my_data_array[] = join(', ', $stripped); -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251

[PHP] Re: Do i have to recompile php?

2004-11-29 Thread Matthew Weier O'Phinney
, if you start having issues at all with mysql from PHP, recompile. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http

[PHP] Re: Overriding static members?

2004-11-28 Thread Matthew Weier O'Phinney
. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List (http

Re: [PHP] Problem with PHP Curl support and Apache

2004-11-28 Thread Matthew Weier O'Phinney
with your *Apache* installation, not with PHP itself; you may have forgotten to pass the --with-ssl switch to the apache configure script, or passed it to the wrong path. If you don't need SSL support, you should be able to turn it off in your httpd.conf. -- Matthew Weier O'Phinney

[PHP] Re: automatic responder

2004-11-26 Thread Matthew Weier O'Phinney
NET::POP3 classes, or mysql's native imap classes ( which cover much more than IMAP). -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156

[PHP] Re: Tabs or Spaces?

2004-11-21 Thread Matthew Weier O'Phinney
to PEAR standards: http://pear.sourceforge.net/en/standards.php I'm not sure what the rationale was behind using spaces instead of tabs, but it's a standard I've seen in perl as well; it's not entirely unheard of. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster

[PHP] Re: Understanding Static Methods

2004-11-19 Thread Matthew Weier O'Phinney
} or $objectInstance-testStatic(); I've been using static methods in exactly this way since 4.2 versions of PHP4 without issue, and see the same behaviour so far in PHP5. Somebody please correct me if this is not how they work. -- Matthew Weier O'Phinney | mailto:[EMAIL

[PHP] Re: PHP Supremacy...

2004-11-17 Thread Matthew Weier O'Phinney
indication of its staying power in the future. (And, for the record: our intranet is PHP based.) -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251

[PHP] Re: Converting to integer

2004-11-16 Thread Matthew Weier O'Phinney
which of the values returned from MySQL are numbers, but none of them appear to be a number, so I cannot convert them. Use intval($value) to get the integer value. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National

[PHP] Re: Automatically Escape?

2004-11-16 Thread Matthew Weier O'Phinney
, array($value1, $value2)); -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General

[PHP] Re: handling tag and quote (' )

2004-11-16 Thread Matthew Weier O'Phinney
* Adwinwijaya [EMAIL PROTECTED]: Hello php-general, Is there suggestion about how to remove html tag, javascript and quote (' ) from user's input at the same time ? Yes. Oh, you wanted an example? $value = preg_replace('/[\'\]/', '', strip_tags($value)); -- Matthew Weier O'Phinney

[PHP] Re: Dinamically adding methods to an object instance?

2004-11-15 Thread Matthew Weier O'Phinney
://php.net/oop5 for more information. Either way, you need to add a __call() method to your class and tell it how to handle dynamic methods. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association

[PHP] Re: Date Conversions?

2004-11-15 Thread Matthew Weier O'Phinney
and dump it back out in the way I need it. Any suggestions? http://php.net/strtotime Specifically, try the following: // $date is the date as pulled from the MySQL table $convertedDate = date(m-d-y, strtotime($date)); -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster

[PHP] Re: Pagination need help again

2004-11-13 Thread Matthew Weier O'Phinney
PEAR's Pager class for this sort of thing. It's highly configurable -- which means it may take a few tries to get it working with your own code, but it *will* work, eventually. Browse for the Pager class at http://pear.php.net -- look in the HTML category. -- Matthew Weier O'Phinney

[PHP] Re: Current URL?

2004-11-12 Thread Matthew Weier O'Phinney
: $url = $_SERVER['PHP_SELF'] . '?' . $_SERVER['QUERY_STRING']; -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http

[PHP] Re: basic script

2004-11-10 Thread Matthew Weier O'Phinney
for security reasons. You can still accomplish that you want to do; simply change the php line to: ?php echo VALUE IS: . $_GET['x']; ? If that's not what you're trying to do... explain in more detail. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist

[PHP] Re: Shell Script error

2004-11-10 Thread Matthew Weier O'Phinney
in the command line it reports one error (DB Error: connect failed). Does anybody know what is the problem ? Are you running the script on the same server as the webserver process? If not, you may need to set up additional permissions on the database to run it from the new machine. -- Matthew Weier

Re: [PHP] Shell Script error

2004-11-10 Thread Matthew Weier O'Phinney
(DB Error: connect failed). -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP

[PHP] Re: Callback function as parameter

2004-11-10 Thread Matthew Weier O'Phinney
a class name or object reference and the second argument a method name (the first does a static method call, the second an object method call). -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association

[PHP] Re: PEAR mail

2004-11-08 Thread Matthew Weier O'Phinney
] or a comma-separated string with both addresses? Those are the two accepted forms for the first argument to the send() method. The common pitfall I run into is that I forget to add the Cc and/or Bcc elements to it before sending -- which means they do not get delivered. -- Matthew Weier

[PHP] Re: New/changing subject... was [PHP] Re: PEAR mail

2004-11-08 Thread Matthew Weier O'Phinney
it there. Then put that address in your address book so you don't need to look next time. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156

[PHP] Re: Newbie pattern question

2004-11-05 Thread Matthew Weier O'Phinney
-9_ ]{2,30}$/i', $name)) { return true; } will perform faster, and gives you case insensitivity with the 'i' switch following the regexp. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening

Re: [PHP] Zip Codes

2004-11-04 Thread Matthew Weier O'Phinney
code, and this allows them to see their personalized movie times on subsequent visits. (You could even hide the zipcode form if the cookie is set) -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association

[PHP] Re: blank function parameters

2004-11-03 Thread Matthew Weier O'Phinney
about functions on php.net. Basically, yes: function someFunc($arg1, $arg2, $arg3, $arg4 = 'default') {} -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802

[PHP] Re: blank function parameters

2004-11-03 Thread Matthew Weier O'Phinney
should be for 'is_null($c)' as the default value of $c will be null, and it will be always set, even if not sent. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com

Re: [PHP] image files - upload and managment

2004-10-30 Thread Matthew Weier O'Phinney
malicious, you can usually complain to the service provider and get compensation. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156

[PHP] Re: Add methods to object dinamically

2004-10-26 Thread Matthew Weier O'Phinney
). -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List (http

[PHP] Re: Rotating image using imagerotate creates large black area on image

2004-10-24 Thread Matthew Weier O'Phinney
the second argument to imagerotate() is supposed to be a floating decimal, not a string. Try: imagerotate($im, -90, 0); and see what happens. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening

[PHP] Re: adding a new property to an object instance

2004-10-22 Thread Matthew Weier O'Phinney
, you can add properties on the fly at any time -- which is why it's good to declare any that you KNOW will be used in the class via the 'var' declarations. That way you have at least documented that those are reserved. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster

Re: [PHP] Best practices for php application

2004-10-21 Thread Matthew Weier O'Phinney
recommend The Pragmatic Programmer, by Hunt and Thomas (Addison Wesley Press). Another place to look might be the Horde's CVS collection -- to see how other PHP programmers do it. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org

Re: [PHP] heredoc syntax

2004-10-20 Thread Matthew Weier O'Phinney
, nothing after it, not even a blank space. The last END must be at the beginning of the line, not before it, not even a blank space. And don't forget that the last END must be followed by a semi-colon ONLY, no other characters on that line... ;-) -- Matthew Weier O'Phinney | mailto

[PHP] Re: heredoc syntax

2004-10-20 Thread Matthew Weier O'Phinney
extensively for SQL, and have had no problems with it in PHP5. Are you sure you're forming the heredoc correctly -- regarding whitespace and punctuation? For reference: http://php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc -- Matthew Weier O'Phinney

[PHP] Re: Session

2004-10-19 Thread Matthew Weier O'Phinney
(if session.use_cookies == 1) and I've also found that the session.gc_maxlifetime variable can often have an effect on these issues. Also... Did you restart apache? -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening

[PHP] Re: PHP5 and Multi Inheritance?

2004-10-17 Thread Matthew Weier O'Phinney
has a more definitive answer, but I thought I'd give it a shot. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http

[PHP] Re: How to optimize select of random record in DB ?

2004-10-15 Thread Matthew Weier O'Phinney
); $personID = mysql_result($query, 0); I've used this quite a bit -- much easier than using PHP to do it. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251

[PHP] Re: Sessions and Mozilla (Firefox)

2004-10-12 Thread Matthew Weier O'Phinney
this. My understanding is that if you have a session of Mozilla open, if you run the executable again, it searches for a running session and, if one is found, uses it to spawn a new window without actually running another copy. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED

Re: [PHP] general organization question

2004-10-12 Thread Matthew Weier O'Phinney
PEAR code (http://pear.php.net); it's typically very high quality. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http

[PHP] Re: OOP -- passing messages between objects

2004-10-11 Thread Matthew Weier O'Phinney
, failed in another application on another server. Please give some more details of your code -- the context in which the call is being made would be helpful. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening

[PHP] Re: general research question (maybe a little OT, sorry)

2004-10-07 Thread Matthew Weier O'Phinney
. And they create many REAL sites... including Yahoo. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org

Re: [PHP] sending mail

2004-10-07 Thread Matthew Weier O'Phinney
Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List (http://www.php.net

[PHP] Re: Subversion

2004-09-29 Thread Matthew Weier O'Phinney
. On the subversion site itself is WebSVN, which is a PHP frontend for browsing SVN. PEAR also has an SVN library, although I think it's in alpha or beta stage right now. If you want things more stable, offer your help to the developers (though I find WebSVN quite stable already). -- Matthew Weier

[PHP] Re: simple templateing

2004-09-25 Thread Matthew Weier O'Phinney
, and I'd be surprised if they don't do caching; look under the HTTP or HTML categories on PEAR for some possibilities. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

[PHP] Re: Recommendations for php email list managers?

2004-09-21 Thread Matthew Weier O'Phinney
with we home-brewed (and it's not publicly available). -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http

Re: [PHP] php5 and php4?

2004-09-21 Thread Matthew Weier O'Phinney
may introduce new features, and PHP6 definitely will, but at this point PHP4 will only experience bugfixes and security updates. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

[PHP] Re: curl grabbing a website

2004-09-20 Thread Matthew Weier O'Phinney
); Couple of things: 1) I'd close the curl connection before doing your explode 2) I'd check for an error returned by the curl_exec() -- you may have an error and not even realize it. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http

[PHP] Re: MySQL to OO

2004-09-15 Thread Matthew Weier O'Phinney
such a project or something similar? I just want to avoid writing to much SQL You might want to look into PEAR's DB_DataObject class. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

[PHP] Re: How to access one class from another

2004-09-10 Thread Matthew Weier O'Phinney
(); } } -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org -- PHP General Mailing List

[PHP] Re: referencing a class

2004-09-08 Thread Matthew Weier O'Phinney
of ways, and this is the only one that works consistently. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http

[PHP] Re: remote script execution

2004-09-07 Thread Matthew Weier O'Phinney
both with good success, in similar situations. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http

Re: [PHP] Dynamic Class Methods

2004-09-07 Thread Matthew Weier O'Phinney
. I'd need to test something like this pretty rigorously, though. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http://www.kidsgardening.com 802-863-5251 x156 | http

Re: [PHP] Re: PHP to replace javascript

2004-09-03 Thread Matthew Weier O'Phinney
into the source page: '(action) is only accessible if javascript is turned on.' As much as possible, however, I try and do things on the server-side, particularly where form validation is concerned. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http

Re: [PHP] trying to do too much with functions?

2004-09-02 Thread Matthew Weier O'Phinney
now... } But, as you can see, you still end up with a lot of duplication and chances to go wrong -- for instance, what if you forget to include the file that has get_args() in it? This is why I like OOP... :-) -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster

[PHP] Re: Large database, slow search times

2004-09-02 Thread Matthew Weier O'Phinney
on MySQL, do a fulltext index of the column you're searching on. 2) Read up on the MATCH () ON () syntax in the MySQL documentation. -- Matthew Weier O'Phinney | mailto:[EMAIL PROTECTED] Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

[PHP] Re: summarized results

2004-08-25 Thread Matthew Weier O'Phinney
) with a number of systems, and love it. -- 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: post file from one server to other

2004-08-24 Thread Matthew Weier O'Phinney
functions; these should allow you to post a binary file. -- 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: php4 classes, extending same class

2004-08-23 Thread Matthew Weier O'Phinney
, you're going to see stuff like this (hence my question after your point 2). My suspicion is that you're not using require_once or include_once, and the school class file is getting loaded twice. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http

Re: [PHP] Re: Reading the documentation

2004-08-23 Thread Matthew Weier O'Phinney
that helped, - Tul -- 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] Yet another Newb Question - error

2004-08-13 Thread Matthew Weier O'Phinney
, you'll need to run 'apt-get install php4-pgsql'; I'm not sure if there's a php5-pgsql package, but most likely there is -- do an apt-cache search to find it. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association

Re: [PHP] OO Question for PHP4

2004-08-11 Thread Matthew Weier O'Phinney
does nothing, in either PHP4 or PHP5. -- 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: preg_match_all but no preg_replace_all?

2004-08-10 Thread Matthew Weier O'Phinney
by default. If you *don't* want it to replace everything, you need to pass a fourth argument, which tells it the number of replacements to make. See the docs for preg_replace for more details. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org

[PHP] Re: MVC pattern help?

2004-08-10 Thread Matthew Weier O'Phinney
as self-contained; I think of them as traffic controllers. They take input from the user, interpret that into requests to the Model, then take any information returned by the model and pass it to the view, and then take the content returned by the view and return it to the user. -- Matthew Weier

[PHP] Re: php tools

2004-08-10 Thread Matthew Weier O'Phinney
if one or more commercial editors weren't offered. Basically, you're going to need to weed through the suggestions and find the tools that suit you. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association| http

[PHP] Re: preg_match_all but no preg_replace_all?

2004-08-10 Thread Matthew Weier O'Phinney
is the term of whether or not a range of matches should be expanded to as long as possible, e.g.: Good point; I was a bit hasty in my terminology. I should have said '*global* by default'. -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org

[PHP] Re: php tools

2004-08-10 Thread Matthew Weier O'Phinney
, CSS, SQL, and javascript. As I said, I have that in Vim. I also know EditPlus has that and is either shareware or freeware. If you're looking for an IDE, can't help you. Matthew Weier O'Phinney [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Naty [EMAIL PROTECTED]: I'm trying

[PHP] PHP5 exception handling

2004-07-30 Thread Matthew Weier O'Phinney
). Is the 'Exception' class a base class/handler with PHP5? Do I need to create my own exception handler classes? Do I even need to catch objects of a specific type, or can I simply do: catch ($error) { do something with $error } Thanks in advance. -- Matthew Weier O'Phinney

Re: [PHP] PHP5 exception handling

2004-07-30 Thread Matthew Weier O'Phinney
* Curt Zirzow [EMAIL PROTECTED]: * Thus wrote Matthew Weier O'Phinney: The problem I'm running into: what do I pass as arguments to catch()? The articles on ZE2 use something like: catch (Exception $e) {}, or something like catch(MyException $e) (where MyException is a class

Re: [PHP] PHP5 exception handling

2004-07-30 Thread Matthew Weier O'Phinney
* Tularis [EMAIL PROTECTED]: Matthew Weier O'Phinney wrote: * Curt Zirzow [EMAIL PROTECTED]: * Thus wrote Matthew Weier O'Phinney: The problem I'm running into: what do I pass as arguments to catch()? The articles on ZE2 use something like: catch (Exception $e) {}, or something like catch

[PHP] Re: Regular expression help?

2004-02-02 Thread Matthew Weier O'Phinney
Weier O'Phinney Webmaster and IT Specialist National Gardening Association 802-863-5251 x156 mailto:[EMAIL PROTECTED] http://www.garden.org http://www.kidsgardening.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] sessions and virtual sites

2004-01-05 Thread Matthew Weier O'Phinney
of several sites hosted on the server, and none are the default site (i.e., in the main server webroot). I have tried specifying the cookie domain and path explicitly, as well as turning on trans-sid (via .htaccess) -- neither has worked. Any ideas? Thanks! -- Matthew Weier O'Phinney Webmaster

[PHP] Re: Session expiry issues in IE, still.

2004-01-05 Thread Matthew Weier O'Phinney
with IE if your server's clock is behind the client machine's clock -- IE is particularly sensitive to this particular situation, and expires the cookies -- which leaves the person using IE without a session. -- Matthew Weier O'Phinney Webmaster and IT Specialist National Gardening Association 802-863

<    1   2   3