Smarty is a fantastic tool.
One of it's really great features (compared with a couple of other
templating engines that I have looked at) is the inherent ability to include
logic (using smary syntax) in the templates. This'll sound a bit odd - after
all, a point of templates is to separate logic an
ppearances
tables (check out GROUP BY in the MySQL (I assume you are using MySQL)
online manual.) Then simply print out the results of the respective select
queries.
David Eisenhart
"Matt Macleod" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I'
check out the book XML and PHP by Vikram Vaswani, News Riders; a well
written and concise treatment of xml and php.
David Eisenhart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ive column.(with a height of,
say, 1 pixel)
David Eisenhart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
presented throughout the book. Well worth
buying though.
2) Web Application Development with PHP 4.0; this is an interesting read
though is not so good if you are just starting out due to its advanced
nature; it also shows its age in places
Happy reading!!
David Eisenhart.
--
PHP General Mai
if I've understood you correctly how about something like:
$valArr = array();
for($i=0;$ilevel);
}
$valArr = array_reverse($valArr);
for($i=0;$ilevel = $valArr[$i];
}
David Eisenhart
"Neko" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a bit of
This is a good article on pagination:
http://www.phpfreaks.com/tutorials/43/0.php
David Eisenhart
"Conbud" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi, this is kind of a complex question, Im making a message board, now I
> dont want list, lets say,
()) - very
handy indeed!
Of course rather than doing this on every page place such code in a single
file and include this file (using the include construct or variation on
this) within all your site pages.
Hope this helps.
David Eisenhart
"Nik Makepeace" <[EMAIL PROTECTED]> wr
This is a good article on pagination:
http://www.phpfreaks.com/tutorials/43/0.php
David Eisenhart
"Denis L. Menezes" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello friends.
My records on one page are bout 200. So I wish to paginate them and show
only abou
; as mentioned
above)
Hope this helps
David Eisenhart
"Shaun" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> Is there a way of updating a table so that I can add some sort of
identifier
> to each field, something as simple as x=1 will do. I want
You just put the smarty files on the server like you would load up your php
files.
Note that a common gotcha is when safe mode is enabled on the server -
smarty will not ,by default, run in this case; the resolution is simple and
is explained in the smarty manual.
David Eisenhart
"Su
on they'll have
global scope
David Eisenhart
"Sunfire" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> just a fast question here.. and the lotic probably isnt to bright on my
part
> and i think i know the answer to this question too but just to make
sure...
if require is used to include the 'same file', say, twice that file will be
loaded twice. This can of course cause errors (such as resulting from the
redefinition of functions within this file). In contrast the require_once
construct will only load a file 'once' irrespective of the number of times
have you attempted to simply create the table and column using the sql text
box (ie not using the create table interface)? eg pasting and submitting
something like:
CREATE TABLE t2 (
y varchar(5)
) TYPE=MyISAM;
(I appreciate this does not address the reason behind the actual problem you
are hav
I have never used patTemplate but from my experience Smarty is both fast and
robust (I now would not consider building a site without it)
Even given your scenario I would recommend that you at least consider using
a templating engine. Smarty is very quick and easy to set up so just have a
play!
D
yeh, I'd strongly agree with Jonathan's view that quality of the code can
mitigate against the dangers of register_globals.
FYI, an interesting article on php vulnerabilities is at:
http://www.securereality.com.au/studyinscarlet.txt
David Eisenhart
"Jonathan Pitcher" <[
yeh, I'd totally agree with this. Smarty is fantastic
The best one imho in PHP is Smarty.
> I'd rank it up there with Template::Toolkit. Take a look:
>
> http://smarty.php.net/
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you could try the phplib libraries (which as well as authentication
implement other things such as database abstraction and templates) There is
some overhead involved in getting up to speed with phplib but there is a lot
of help out there (in the form of articles, email list etc..) I found phplib
v
ith the very comprehensive manual and an active, well supported email
list)
> If
> you have more knowledge regarding XML+XSL then it
not a great deal a this stage, but they are clearly worth looking into.
- Original Message -
From: "Hardik Doshi" <[EMAIL PROTECTED]>
To: &
big issues!! I'd recommend that you check out the book 'XML and PHP' by
Vikram Vaswani, New Riders. Its well written and concise - should answer
your queries and more.
(BTW, like you I also use Smarty to separate application logic and
presentation; for my purps and circumstances this is preferable
>
> On February 9, 2003 06:38 pm, David Eisenhart wrote:
> > yeh, I'd agree with this; on your second issue of variable definitions I
do
> > find that being able set the error reporting level to show non critical
> > errors (such as undefined variables) to be a reaso
pleasure Leo, happy php'ing !!
"Leo Spalteholz" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> ah! thank you very much. Thats exactly what I was looking for.
>
> Leo
>
> On February 9, 2003 01:49 pm, David Eis
"Chris Hayes" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> At 23:09 9-2-2003, you wrote:
> >you may find the following link interesting
> >http://www.tek271.com/articles/JavaOrPhp.html
> >
> >David Eisenha
t respects though
...
David Eisenhart
"Joshua Moore-Oliva" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> The only thing I do wish is that there was a way to force php into a
typecast
> mode... and possibly a setting to reqiu
you may find the following link interesting
http://www.tek271.com/articles/JavaOrPhp.html
David Eisenhart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
yes, you can call a static method on a class by specifying the class name,
then 2 colons and finally the function name:
classname :: functionname([arg,.])
(of course properties can not be accessed by such methods)
David Eisenhart
"Leo Spalteholz" <[EMAIL PROTECTED]>
You may be interested in the article: Using PHP to Develop Three-Tier
Architecture Applications
(http://www.zend.com/zend/tut/tutsweatpart1.php)
David Eisenhart.
"Hardik Doshi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi Ev
I got a lot out of Web Application Development with PHP4, by Tobias
Ratshiller and Till Gerken, New Riders. Its not just about oop but covers
this aspect well and is generally a very well written intermediate to
advanced treatment of php.
Also to keep ahead of the game this is an interesting artic
Another template engine you could consider is Smarty http://smarty.php.net/.
One can write very elegant code using such an templating system
david
>
> it is also good idea to separate html from the code, for instance by using
> some template engine.
>
> rush
--
PHP General Mailing List (htt
Check out the Smarty tutorial links page from it's site resources section -
http://smarty.php.net/resources.php?category=0
Also the Smarty manual is excellent - very comprehensive and well written. I
just about taught myself Smarty using this alone.
I think Smarty is the absolute biz when it com
> I'm looking for online
> references, personal experience and opinion and even examples of open
> source code which you think demonstrate the above criteria on this one.
I have found the Smarty template engine (http://smarty.php.net/) to be a
most excellent tool for separating business logic and
as a 'one off' exercise I recently did something similar except the data was
from Access, but would work the same from an excel file:- saved as
a CSV file and then used phpMyAdmin to import the CSV file data into a MySQL
table (of course, didn't have to use phpMyAdmin for this but it did make the
i
to add another cent to Timothy's contribution I agree, check out Smarty
(http://smarty.php.net/) for the templating.
D
"Timothy Hitchens )" <[EMAIL PROTECTED]> wrote in message
000801c2b7ab$837eefa0$0500a8c0@bambino">news:000801c2b7ab$837eefa0$0500a8c0@bambino...
> My 2 cents would be use a
this is addressed in quite a few dedicated articles in php sites.
For me some of the big pros of PHP:
- the active community behind it
- associated open source products (such as phpMyAdmin and the Smarty
template engine)
- the ease and power behind coupling it with MySQL databases (ASP has of
cour
I recommend that you check out phpMyAdmin http://www.phpmyadmin.net/
David
"Thomas Goeminne" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I got a tab delimited file which looks like this:
>
> let us call it items.txt
>
> TypeCatalog NumberItem Desc
check out:
http://www.phpfreaks.com/tutorials/43/0.php
David Eisenhart
"Föíö Öxî?êójînyóon" <[EMAIL PROTECTED]> wrote in message
047d01c2a5ba$0b7bd480$c900640a@gandalf">news:047d01c2a5ba$0b7bd480$c900640a@gandalf...
I need to be able to show maybe 10 items that I que
If your local machine is running Windows you could also use Personal Web
Server or IIS (whichever comes with your Windows) for the web server (of
course you will also need a local copy of php, but this is very easy to set
up)
David Eisenhart
"Ubergoober" <[EMAIL PROTECTED]>
ate the first approach - a properly designed
database will generally always pay divis in the long run.
Hope that this helps.
David Eisenhart
"Spiderwebb" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> From: "SpiderWebb" <[EM
> if anyone can suggest the best tutorial on OBJECTS and CLASSES, I'll be
grateful.
for a very well written treatment (albeit no tutorials) of most things PHP
(including OOP) I'd recommend O'Reilly's book Programming PHP (by Rasmus
Lerdorf and Kevin Tatroe).
David E
a result.
Hope that this convinces you to give Smarty a go,
David Eisenhart
> http://smarty.php.net seems polular
>
> J
>
>
> on 04/12/02 12:40 AM, Alexander A. Savenkov ([EMAIL PROTECTED]) wrote:
>
> > Hi PHP.
> >
> > Suggest me which template engine is more popu
what specific circumstances?)
Cheers,
David Eisenhart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
I am writing a function to construct page links within my site; I want it to
append the session id to the URL's query string if the client does not
accept cookies (and ignore the session id if the client does accept
cookies).
How do I detect if the client browser accepts cookies?
Indeed, has
uld get what country the user is and calculate the time zones.
>
> --
>
> Julio Nobrega.
>
> Um dia eu chego lá:
> http://sourceforge.net/projects/toca
>
> Ajudei? Salvei? Que tal um presentinho?
> http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884
>
Hi
Does anyone know of a technique for obtaining the date and time of the
client's system?
(I can conceive of generating this with Java Script and passing it to pages
within the site, but it is important that this information is obtained by
the 'first' page that the user accesses.)
Any ideas gra
44 matches
Mail list logo