[PHP] Re: Anybody have any thoughts on Smarty?

2003-03-20 Thread David Eisenhart
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

[PHP] Re: PHP XML Reference

2003-03-14 Thread David Eisenhart
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

[PHP] Re: Collating Values from database fields

2003-03-14 Thread David Eisenhart
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'm building a site for my rugby club and I want

Re: [PHP] PHP/HTML table layout?

2003-03-13 Thread David Eisenhart
of, say, 1 pixel) David Eisenhart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Books

2003-03-12 Thread David Eisenhart
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 Mailing List (http://www.php.net

[PHP] Re: Message Board Question

2003-03-11 Thread David Eisenhart
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, all 25 messages on the same page

[PHP] Re: reversing attribute in array of objects

2003-03-11 Thread David Eisenhart
if I've understood you correctly how about something like: $valArr = array(); for($i=0;$icount($objArr);$i++){ array_push($valArr, $objArr[$i]-level); } $valArr = array_reverse($valArr); for($i=0;$icount($objArr);$i++){ $objArr[$i]-level = $valArr[$i]; } David Eisenhart Neko [EMAIL

[PHP] Re: pagination help

2003-03-09 Thread David Eisenhart
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 about 20 records per page

[PHP] Re: Member function as error_handler

2003-03-09 Thread David Eisenhart
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] wrote in message news:[EMAIL PROTECTED

[PHP] Re: MySQL Query

2003-03-05 Thread David Eisenhart
) 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 to be able to modify the table so I can set a variable

[PHP] Re: question about smarty

2003-03-04 Thread David Eisenhart
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 Sunfire

[PHP] Re: classes and functions in include files

2003-02-27 Thread David Eisenhart
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 you can include variables in an include

Re: [PHP] Include files

2003-02-26 Thread David Eisenhart
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

Re: [PHP] phpmyadmin duplication of sql

2003-02-25 Thread David Eisenhart
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

[PHP] Re: smarty vs. patTemplate vs. inclu

2003-02-21 Thread David Eisenhart
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!

Re: [PHP] register_globals On

2003-02-17 Thread David Eisenhart
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 [EMAIL PROTECTED] wrote

[PHP] Re: Login system using PHP/MySql

2003-02-14 Thread David Eisenhart
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

Re: [PHP] Templates

2003-02-14 Thread David Eisenhart
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

[PHP] Re: Why use XML?

2003-02-12 Thread David Eisenhart
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: David Eisenhart [EMAIL PROTECTED] Sent

[PHP] Re: Why use XML?

2003-02-11 Thread David Eisenhart
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

Re: [PHP] Re: Static functions (java/php)

2003-02-10 Thread David Eisenhart
to work with most 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 se

[PHP] Re: Static functions

2003-02-09 Thread David Eisenhart
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] wrote in message [EMAIL

[PHP] Re: Static functions

2003-02-09 Thread David Eisenhart
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

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread David Eisenhart
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 reqiure a definition for a variable. Josh.

Re: [PHP] Re: Static functions (java/php)

2003-02-09 Thread David Eisenhart
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 Eisenhart I cannot suppress the feeling that someone out t

Re: [PHP] Re: Static functions

2003-02-09 Thread David Eisenhart
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 Eisenhart wrote: yes, you can call a stati

[PHP] Re: 3 tier web development

2003-02-07 Thread David Eisenhart
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 Everyone, I am curious to

[PHP] Re: best oop book

2003-02-06 Thread David Eisenhart
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

[PHP] Re: how to write clean code.

2003-02-03 Thread David Eisenhart
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

[PHP] Re: Template tutorials?

2003-01-11 Thread David Eisenhart
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

[PHP] Re: Converting Excel Spreadsheet to MySQL table ...

2003-01-10 Thread David Eisenhart
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

[PHP] Re: Medium to Large PHP Application Design

2003-01-10 Thread David Eisenhart
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

Re: [PHP] Re: Databases vs. File Access

2003-01-09 Thread David Eisenhart
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

[PHP] Re: PHP vs. ASP

2003-01-06 Thread David Eisenhart
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

[PHP] Re: Inserting tab delimited textfiles into mysql

2002-12-19 Thread David Eisenhart
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 Description

[PHP] Re: Showing 10 record items per page...?

2002-12-17 Thread David Eisenhart
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 query from a mysql

[PHP] Re: PHP Editor Browser View? (Beginner Question)

2002-12-11 Thread David Eisenhart
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] wrote in message

[PHP] Re: Help Please

2002-12-10 Thread David Eisenhart
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 [EMAIL PROTECTED] Subject: Help nedded Date: 09 December 2002 16:46 I d

[PHP] Re: Help on OOP

2002-12-09 Thread David Eisenhart
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 Eisenhart -- PHP General

[PHP] Pear vs Phplib vs adodb

2002-12-03 Thread David Eisenhart
specific circumstances?) Cheers, David Eisenhart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re[2]: [PHP] need advice on template engine

2002-12-03 Thread David Eisenhart
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 popular? I try select engine for me but I alredy become involved

[PHP] how to detect if the client's browser accepts cookies ?

2002-05-31 Thread David Eisenhart
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

[PHP] getting the 'client' date and time for use in PHP scripts ??

2002-04-08 Thread David Eisenhart
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

[PHP] Re: getting the 'client' date and time for use in PHP scripts ??

2002-04-08 Thread David Eisenhart
alculate 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 David Eisenhart [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news: