Re: [PHP] MySQL SELECT performance suggestions

2001-01-10 Thread Monte Ohrt
You don't need to select all the data to get the number of rows. Try this: select count(*) as total from products where $product_query; Then use total instead of num_rows. Be sure the elements in your where clause are properly indexed. [EMAIL PROTECTED] wrote: Could someone suggest some

[PHP] APC - new cache on the block

2001-01-11 Thread Monte Ohrt
After the release of Afterburner cache from beware, there is now a new one to check out... APC - Alternative PHP Cache http://apc.communityconnect.com/ This one can work as a drop-in module, a bit handier than recompiling just to try it. -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] regexps

2001-01-16 Thread Monte Ohrt
ease reply directly. [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Monte Ohrt [EMAIL PROTECTED] http://ww

Re: [PHP] Perl regular expression bug

2001-01-17 Thread Monte Ohrt
(http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Monte Ohrt [EMAIL PROTECTED] http://www.ispi.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscri

[PHP] Announcement: Smarty - the PHP compiling template engine

2001-01-18 Thread Monte Ohrt
Release 1.0. Please welcome Smarty to the PHP template engine arena :-) Inventors: Monte Ohrt Andrei Zmievski http://www.phpinsider.com/php/code/Smarty/ DESCRIPTION: What is Smarty? Smarty is a template engine for PHP. One of the unique aspects about Smarty that sets it apart

Re: [PHP] Any good way ?

2001-01-19 Thread Monte Ohrt
TECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Monte Ohrt [EMAIL PROTECTED] http://www.ispi.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] Announcement: Smarty template engine 1.0b released

2001-01-22 Thread Monte Ohrt
minor bug fix and several documentation changes/additions. http://www.phpinsider.com/php/code/Smarty/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail:

Re: [PHP] Form data is not remembered

2001-01-24 Thread Monte Ohrt
(http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Monte Ohrt [EMAIL PROTECTED] http://www.ispi.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] mktime() not allowing dates before 1970

2001-01-25 Thread Monte Ohrt
] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Monte Ohrt [EMAIL PROTECTED] http://www.ispi.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] Announcement: Smarty template engine 1.2.1 released

2001-01-29 Thread Monte Ohrt
Changes: - added ability to specify template and compile directory locations independently. - misc documentation updates additions http://www.phpinsider.com/php/code/Smarty/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[PHP] Announcement: Smarty template engine 1.3.1 released

2001-03-07 Thread Monte Ohrt
Homepage: http://www.phpinsider.com/php/code/Smarty/ ChangeLog for 1.3.1: - document first, last, index_prev, index_next (Monte) - added 'first' and 'last' section properties. (Andrei) - split out compiling code to separate class for faster template execution time (Monte)

Re: [PHP] Announcement: Smarty template engine 1.3.1 released (1.3.1pl1)

2001-03-08 Thread Monte Ohrt
1.3.1pl1 fixed a bug with a missing function _syntax_error. Monte Ohrt wrote: Homepage: http://www.phpinsider.com/php/code/Smarty/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact

Re: [PHP] Sending pretty email

2001-03-10 Thread Monte Ohrt
-- Todd Cary Ariste Software [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Monte Ohrt [EMAIL PROTECTED] http

[PHP] shared memory questions

2001-03-14 Thread Monte Ohrt
usage out there? The one that comes with shmop doesn't show a way to test if the shared memory segment exists before trying to create a new one (and how do I open an existing shared mem segment, not necessarily knowing its size?) I'm using Sparc Solaris 2.8, if that makes a difference. Thanks! --

[PHP] Announcement: Smarty template engine 1.5.2 available

2001-12-18 Thread Monte Ohrt
http://www.phpinsider.com/php/code/Smarty/ Version 1.5.2 - - added Smarty object as fifth argument for template resource functions (Monte) - fixed a bug with incorrectly combined cache and compile id in clear_cache(). (Andrei) - fixed bug in

[PHP] Announcement: Smarty template engine 2.0 available

2002-03-01 Thread Monte Ohrt
...} filepath. (Monte) -- Monte Ohrt [EMAIL PROTECTED] Director of Technology, ispi Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Announcement: Smarty template engine 2.0.1 available

2002-03-20 Thread Monte Ohrt
and $smarty.server. (Andrei) - wordwrap and indent are missing from 2.0 release, now fixed. (Monte) - removed show_info_header and show_info_include variables. (Monte) -- Monte Ohrt [EMAIL PROTECTED] Director of Technology, ispi Inc. -- PHP General Mailing List (http://www.php.net

[PHP] Announcement: Smarty template engine 2.2.0 released

2002-07-11 Thread Monte Ohrt
Most notable changes are support for multiple plugin directories, grouping cache and compile files, removed overlib library from distribution, many optimizations, enhancements and bug fixes. Enjoy! Homepage: http://smarty.php.net/ Release Notes: http://smarty.php.net/misc/RELEASE_NOTES

[PHP] Announcement: Smarty template engine 2.1.0 released

2002-04-30 Thread Monte Ohrt
plugins. (Andrei) -- Monte Ohrt [EMAIL PROTECTED] Director of Technology, ispi Inc. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Announcement: Smarty template engine 2.1.1 released

2002-05-07 Thread Monte Ohrt
This is a minor bug fix release. http://www.phpinsider.com/php/code/Smarty/ Version 2.1.1 - - added cycle function (Monte) - fixed bug with resource testing, and include_path (Monte) - fixed a bug with register_outputfilter function (Monte) Monte -- PHP General

[PHP] fgets question

2002-08-14 Thread Monte Ohrt
Hi, I have a question about fgets(), it seems to pick up an extra line at the end of a text file. example, I open a new file named test with the vi editor and make it 8 lines long like so (showing newlines as \n): 1\n 2\n 3\n 4\n 5\n 6\n 7\n 8\n I create this PHP program and run it: ?php

Re: [PHP] fgets question

2002-08-14 Thread Monte Ohrt
) line since there is no newline character. I'm using PHP 4.2.2 on Solaris sparc. Monte Kevin Stone wrote: The only explaination is that 'vi' is putting an extra line in there that you're not seeing. -Kevin - Original Message - From: Monte Ohrt [EMAIL PROTECTED] To: [EMAIL

Re: [PHP] fgets question

2002-08-14 Thread Monte Ohrt
I don't have the option of editing the text files to work right. I want to be able to read an arbitrary text file line by line and process each one. So I suppose I could do this (?) ?php $fd = fopen (test,r); while (!feof ($fd)) { $buffer = fgets($fd, 4096); if($buffer == '') {

[PHP] PHPSESSID appended to URL on initial page load

2002-08-27 Thread Monte Ohrt
Hi, I have a few questions with php sessions, below is an example script: test_sess.php - ?php session_cache_limiter(); session_start(); ? A HREF=/local/path.phplocal path/A When I initially load the file (session cookie gets set), the HREF link gets the PHPSESSID appended to

[PHP] Announcement: Smarty template engine 1.4.6 released

2001-11-01 Thread Monte Ohrt
from Anders Janson) - made html_options output xhtml compatible code. (Monte, Arnaud Limbourg) -- Monte Ohrt [EMAIL PROTECTED] http://www.ispi.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

[PHP] Announcement: Smarty template engine 1.5.0 available

2001-12-06 Thread Monte Ohrt
Several feature enhancements were made to this version, most notably the {foreach ...} command which is an alternative to {section ...} with an easier syntax for looping through a single array of values. Several functions were enhanced so that the output can be automatically assigned to a

[PHP] Announcement: Smarty template engine 1.5.1 available

2001-12-10 Thread Monte Ohrt
This is a critical bug fix release. If you use caching, you'll need to upgrade from 1.5.0. http://www.phpinsider.com/php/code/Smarty/ Version 1.5.1 - - removed error message from the generic _read_file() method, the caller should take care of that. (Andrei) - fixed a

[PHP] a piece of PHP history

2001-12-12 Thread Monte Ohrt
=2selm=3r7pgp%24aa1%40ionews.io.org -- Monte Ohrt [EMAIL PROTECTED] http://www.ispi.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] hotscripts.com poll

2001-12-12 Thread Monte Ohrt
FYI, there is a poll on the frontpage of hotscripts.com to vote for your favorite scripting language, and PHP is in a commanding lead. interesting stats: http://www.hotscripts.com/polls/results.hsp Monte -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Announcement: Smarty template engine 1.4.5 available

2001-09-21 Thread Monte Ohrt
Mostly bug fixes and minor improvements. Added compile id for separate compiled versions of the same script. The directory format and filename convention for the files in templates_c has changed, so you may want to remove all of the existing ones before you upgrade. Monte

[PHP] [annoucement] Smarty template engine 1.4.1 available

2001-05-16 Thread Monte Ohrt
A minor bug fix release. http://www.phpinsider.com/php/code/Smarty/ Version 1.4.1 - - fix LOCK_EX logic for all windows platforms (Monte) - fixed indexing by section properties with the new syntax. (Andrei) - updated Smarty to use absolute paths when requiring/including

[PHP] Announcement: Smarty 1.4.3 now available

2001-06-20 Thread Monte Ohrt
Smarty now has a built in debugging console, and security features for third party template editing, and many numerous fixes and enhancements. Let me know if there are any problems. Monte http://www.phpinsider.com/php/code/Smarty/ Version 1.4.3 - - added regex_replace

[PHP] Announcement: Smarty template engine 1.4.4 available

2001-07-16 Thread Monte Ohrt
that weren't really booleans. (Andrei) -- Monte Ohrt [EMAIL PROTECTED] http://www.ispi.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] splitting a class across separate files?

2001-02-08 Thread Monte Ohrt
I have a class with many functions. About 80% of these functions are rarely used, so I'd like to split them out to a separate file and include them only if a certain condition applies. This way the PHP compiling is kept to a minimum. How do I make the included functions members of the current

[PHP] imagettfbbox and imagettftext

2001-02-23 Thread Monte Ohrt
I've gone through the manual and user notes on these functions, and they tend to be highly illogical ;-) The numbers don't coincide, the x/y values are negative when it seems they ought to be positive, etc. If someone has already figured this out, would you post a code snippet that will create an

[PHP] exclusive file locking under windows

2001-03-01 Thread Monte Ohrt
Is exclusive locking not supported under windows? It doesn't seem to be working: flock($fd, LOCK_EX); -- Monte Ohrt [EMAIL PROTECTED] http://www.ispi.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

[PHP] Announcement: Smarty template engine 1.4.0 available

2001-05-07 Thread Monte Ohrt
There are many changes to this release, including runtime compilation of templates and the support for arbitrary template resources, such as multiple template directories or databases. Be sure to read the RELEASE_NOTES, especially if you are upgrading from a prior release. Monte

[PHP] Announcement: Smarty 2.6.0 RC1 released

2003-08-14 Thread Monte Ohrt
Smarty 2.6.0 Release Candidate 1. Notable new features are cachable/non-cachable function attributes, default resource type configuration, simple math and many internal optimizations. See the ChangeLog (NEWS file) for full details. http://smarty.php.net/misc/NEWS http://smarty.php.net/ -- PHP

[PHP] PHP CLI question

2003-06-06 Thread Monte Ohrt
Hi, A couple of questions: 1) Is there a way to make the CLI version of PHP ignore certain settings in the php.ini file? For instance, I don't want the ioncube accelerator invoked when using PHP from the command line. My current work around is to use two separate init files, php.ini and

Re: [PHP] PHP CLI question

2003-06-06 Thread Monte Ohrt
://www.christianperformer.com * Stay plugged into your audience * The measure of a programmer is not the number of lines of code he writes but the number of lines he does not have to write. * - Original Message - From: Monte Ohrt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent

Re: [PHP] PHP CLI question

2003-06-06 Thread Monte Ohrt
path|file Look for php.ini file in this directory The | means OR, so logic would dictate you can point directly to the file with the -c option. On Thu, 2003-06-05 at 10:35, Monte Ohrt wrote: Hi Cal, I may be missing something, but I don't see how this page answers either of my

Re: [PHP] PHP CLI question

2003-06-06 Thread Monte Ohrt
wrote: Wrap it in a shell script or batch file. Something like: REM ---Start cli.bat--- ./cli/php.exe -c cli-php.ini location %1 %2 %3 %4 %5 %6 %7 %8 %9 @exit REM ---End cli.bat--- --- Monte Ohrt [EMAIL PROTECTED] wrote: Hi Adam, I know it can be altered with a command-line

[PHP] Announcement: Smarty template engine 2.4.2 released

2003-02-12 Thread Monte Ohrt
Hello! Smarty 2.4.2 now supports the ability to access objects within the templates, a long awaited feature. Two methods are available, one which closely follows Smartys existing syntax conventions, and another that follows more traditional object syntax for those familiar with PHP. The regex

[PHP] Announcement: Smarty template engine 2.6.0 released

2003-11-19 Thread Monte Ohrt
Hello! 2.6.0 has been released. There are numerous enhancements and fixes, take a look at the release notes for the details. Have fun! -Monte Homepage: http://smarty.php.net/ Release Notes: http://smarty.php.net/release_notes.php ChangeLog: http://smarty.php.net/misc/NEWS Download:

[PHP] Announcement: Smarty template engine 2.6.4 released

2004-09-07 Thread Monte Ohrt
Hi, This is a bug fix and minor feature release. Have fun, -Monte Homepage: http://*smarty*.php.net/ http://smarty.php.net/ ChangeLog: http://*smarty*.php.net/misc/NEWS http://smarty.php.net/misc/NEWS Download: http://*smarty*.php.net/download.php http://smarty.php.net/download.php -- PHP