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
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
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
(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
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
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]
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:
(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
]
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
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
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)
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
--
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
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!
--
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
...}
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
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
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
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
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
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
) 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
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 == '') {
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
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
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
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
=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]
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
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
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
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
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]
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
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
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
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
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
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
://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
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
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
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
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:
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
45 matches
Mail list logo