Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Sancar Saran wrote: 0 ) { $content = ''; foreach( $comments as $index => $comment ) : $content. = "".$comment->title.""; endforeach; } ?> Comments index.php ob_start(); require('template.php'); echo ob_get_clean(); I'm still do not understand for complex template s

Re: [PHP] templating engine options

2009-05-25 Thread Sancar Saran
On Tuesday 26 May 2009 01:44:43 am Nathan Rixham wrote: > Stuart wrote: > > 2009/5/25 Robert Cummings : > >> I continued the discussion with Nathan. > > > > I too have had an off-list discussion with Nathan on this topic, and a > > productive one at that. > > which would probably be a good time for

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Stuart wrote: 2009/5/25 Robert Cummings : I continued the discussion with Nathan. I too have had an off-list discussion with Nathan on this topic, and a productive one at that. which would probably be a good time for me to step back in; having had a nice little inside in to both Robert an

Re: [PHP] html and password management

2009-05-25 Thread Michael A. Peters
Michael A. Peters wrote: I'm working on the user registration part of my site. User registration works fine, but there's an oddity with password management. The use I registered is username: someone After logging in, I told firefox to save the username and password. I then went to the UserP

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings : > On Mon, 2009-05-25 at 19:56 +0100, Stuart wrote: >> 2009/5/25 Robert Cummings : >> > On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: >> >> 2009/5/25 Robert Cummings : >> >> > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: >> >> >> 2009/5/25 Robert Cummings : >> >> >

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 19:56 +0100, Stuart wrote: > 2009/5/25 Robert Cummings : > > On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: > >> 2009/5/25 Robert Cummings : > >> > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: > >> >> 2009/5/25 Robert Cummings : > >> >> > On Sun, 2009-05-24 at 21:26 +010

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings : > On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: >> 2009/5/25 Robert Cummings : >> > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: >> >> 2009/5/25 Robert Cummings : >> >> > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: >> >> >> 2009/5/24 Nathan Rixham : >> >> >>

Re: [PHP] Re: -less layouts; Ideas welcome

2009-05-25 Thread Lists
Paul M Foster wrote: [snip] > I wish someone had thought of a similar thing for databases. From the > beginning, there should have been a spreadsheet-like interface for > databases. This could have saved endless trouble, since for lack of > this, people store database information in spreadsheets.

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 16:58 +0100, Nathan Rixham wrote: > Robert Cummings wrote: > > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: > >> 2009/5/25 Robert Cummings : > >> Have I done something to annoy you lately? You seem to be directing a > >> lot of hostility my way recently. Just wondering. >

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Tom Worster wrote: On 5/25/09 10:04 AM, "Stuart" wrote: Quick question, how would you implement the following using your XML-based template syntax... ... It's worth noting that I'm simply suggesting a different way of looking at the world. If you have a templating system you're happy with

Re: [PHP] templating engine options

2009-05-25 Thread Nathan Rixham
Robert Cummings wrote: On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: 2009/5/25 Robert Cummings : Have I done something to annoy you lately? You seem to be directing a lot of hostility my way recently. Just wondering. I'm sorry you're taking it personally... you may want to invest some time

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 16:31 +0100, Stuart wrote: > 2009/5/25 Robert Cummings : > > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: > >> 2009/5/25 Robert Cummings : > >> > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: > >> >> 2009/5/24 Nathan Rixham : > >> >> > LinuxManMikeC wrote: > >> >> >> >

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings : > On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: >> 2009/5/25 Robert Cummings : >> > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: >> >> 2009/5/24 Nathan Rixham : >> >> > LinuxManMikeC wrote: >> >> >> >> >> >> On Sun, May 24, 2009 at 11:09 AM, tedd wrote: >> >> >>>

Re: [PHP] General Web Development Editor/IDE

2009-05-25 Thread Raymond Irving
> I'm looking for a nice, user (i.e. me) friendly general-purpose IDE, > where most of my work will be done in PHP. > > I'm considering using Dreamweaver CS4 as my IDE, where I will disable > most of the WYSIWYG elements and use all of the other features that I > need/want (contextual syntax col

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 15:04 +0100, Stuart wrote: > 2009/5/25 Robert Cummings : > > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: > >> 2009/5/24 Nathan Rixham : > >> > LinuxManMikeC wrote: > >> >> > >> >> On Sun, May 24, 2009 at 11:09 AM, tedd wrote: > >> >>> > >> >>> At 12:01 AM +0100 5/24/09,

Re: [PHP] templating engine options

2009-05-25 Thread Tom Worster
On 5/25/09 10:04 AM, "Stuart" wrote: > Quick question, how would you implement the following using your > XML-based template syntax... > > ... > > It's worth noting that I'm simply suggesting a different way of > looking at the world. If you have a templating system you're happy > with then f

Re: [PHP] templating engine options

2009-05-25 Thread Tom Worster
On 5/23/09 6:21 PM, "Nathan Rixham" wrote: > Just a quick one, can anybody recommend any decent templating engines > other than smarty. i started using phplib template in 2002. since then i've never bothered to revisit that choice. it may not qualify as an engine (all it does is juggle files and

Re: [PHP] templating engine options

2009-05-25 Thread Stuart
2009/5/25 Robert Cummings : > On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: >> 2009/5/24 Nathan Rixham : >> > LinuxManMikeC wrote: >> >> >> >> On Sun, May 24, 2009 at 11:09 AM, tedd wrote: >> >>> >> >>> At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: >> >> LinuxManMikeC wrote: >>

Re: [PHP] templating engine options

2009-05-25 Thread tedd
At 9:06 AM -0400 5/25/09, Robert Cummings wrote: On Mon, 2009-05-25 at 13:46 +0100, Richard Heyes wrote: > > That's where your integrity is called into question. What's that...? :-) One of the most important attributes a person can have. It is more important than the person's technical abil

Re: [PHP] templating engine options

2009-05-25 Thread tedd
At 11:11 PM +0100 5/24/09, Nathan Rixham wrote: often though you have dedicated web designers who do html, css java and nothing else - and a graphics design guy and the developers (php + server side) - that was a pointless comment though and it is all scenario based. You can wear the hat prov

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 13:46 +0100, Richard Heyes wrote: > > That's where your integrity is called into question. > > What's that...? :-) One of the most important attributes a person can have. It is more important than the person's technical ability. :) Cheers, Rob -- http://www.interjinn.com

Re: [PHP] Re: Display Image

2009-05-25 Thread Bastien Koert
On Mon, May 25, 2009 at 5:36 AM, David Robley wrote: > Vernon St . Croix wrote: > > > > > I am trying to send images to my browser using the header function, but > > keep on getting 'No image Available'. > > > > Can someone please help!! > > Some code would help diagnosis. Also, try removing the

Re: [PHP] templating engine options

2009-05-25 Thread Richard Heyes
> That's where your integrity is called into question. What's that...? :-) -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www.phpguru.org/rtemplate) PHP SMTP:

Re: [PHP] executing background process from php

2009-05-25 Thread Richard Heyes
Hi, > I am newbie with this subject and really need to know it... > I need a good and clear samples of 'executing background process from > php' > > where can I find it? The manual I would imagine. To execute a background task you need to

Re: [PHP] templating engine options

2009-05-25 Thread Tom Chubb
"Sometimes I'm the windshield and sometimes I'm the bug" Ha ha! Love that!

[PHP] executing background process from php

2009-05-25 Thread shahrzad khorrami
Hi friends, I am newbie with this subject and really need to know it... I need a good and clear samples of 'executing background process from php' where can I find it? Thanks in advance, Shahrzad

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Mon, 2009-05-25 at 09:39 +0100, Richard Heyes wrote: > Hi, > > > and then you have the joy of telling the client its 6 months work > > 6 months vs 1 day... Ka-Ching! :-) That's where your integrity is called into question. Cheers, Rob. -- http://www.interjinn.com Application and Templating

Re: [PHP] templating engine options

2009-05-25 Thread Robert Cummings
On Sun, 2009-05-24 at 21:26 +0100, Stuart wrote: > 2009/5/24 Nathan Rixham : > > LinuxManMikeC wrote: > >> > >> On Sun, May 24, 2009 at 11:09 AM, tedd wrote: > >>> > >>> At 12:01 AM +0100 5/24/09, Nathan Rixham wrote: > > LinuxManMikeC wrote: > > > > I was recently researching te

Re: [PHP] fgets function for very large files

2009-05-25 Thread shahrzad khorrami
in the following loop: $row = 1; while (($line = fgets($handle, 1024)) !== FALSE ) { $line = str_replace(SEPARATOR, ",", $line); $data = explode(",", $line); $row++; } How put 1000 by 1000 lines of csv file to new ones? and you know I think this works slow

Re: [PHP] templating engine options

2009-05-25 Thread Sancar Saran
> > You're missing the point just because he threw in some old HTML > > styling attributes. The main issue is the overhead of added parsing > > layers to find where content goes in the HTML. Aren't we already > > using a language (PHP) that parses for place holders for dynamic > > content within

[PHP] html and password management

2009-05-25 Thread Michael A. Peters
I'm working on the user registration part of my site. User registration works fine, but there's an oddity with password management. The use I registered is username: someone After logging in, I told firefox to save the username and password. I then went to the UserPrefs page to test both e-m

Re: [PHP] php dev environment

2009-05-25 Thread David Robley
Eddie Drapkin wrote: > -- Forwarded message -- > From: Eddie Drapkin > Date: Mon, May 25, 2009 at 3:24 AM > Subject: Re: [PHP] php dev environment > To: Lester Caine > > > > Vim? Vi? PFT > > If you're gonna CLI, CLI *like a man* and use emacs! I'm sure someone once s

[PHP] Re: Display Image

2009-05-25 Thread David Robley
Vernon St . Croix wrote: > > I am trying to send images to my browser using the header function, but > keep on getting 'No image Available'. > > Can someone please help!! Some code would help diagnosis. Also, try removing the header and calling the script; if there is an error in your image scr

Re: [PHP] change server time

2009-05-25 Thread Sumit Sharma
That's really a good bunch of information. Thanks, Sumit. On Mon, May 25, 2009 at 2:43 PM, Lester Caine wrote: > Sumit Sharma wrote: > >> Hi, >> >> What I mean is my windows time is set to local time but when I use any >> date >> function in PHP it shows time in GMT on web browser a

Re: [PHP] change server time

2009-05-25 Thread Lester Caine
Sumit Sharma wrote: Hi, What I mean is my windows time is set to local time but when I use any date function in PHP it shows time in GMT on web browser and to change this I have to use putenv("TZ=asia/calcutta"); Thus: 1 There is no problem with Windows time its according to IST. 2 Problem sta

[PHP] Display Image

2009-05-25 Thread Vernon St . Croix
I am trying to send images to my browser using the header function, but keep on getting 'No image Available'. Can someone please help!! _ View your Twitter and Flickr updates from one place – Learn more! http://clk.atdmt.com/UKM/go/

Re: Re: [PHP] change server time

2009-05-25 Thread Sumit Sharma
Hi, What I mean is my windows time is set to local time but when I use any date function in PHP it shows time in GMT on web browser and to change this I have to use putenv("TZ=asia/calcutta"); Thus: 1 There is no problem with Windows time its according to IST. 2 Problem start with PHP, which dis

Re: [PHP] templating engine options

2009-05-25 Thread Richard Heyes
Hi, > and then you have the joy of telling the client its 6 months work 6 months vs 1 day... Ka-Ching! :-) -- Richard Heyes HTML5 graphing: RGraph (www.rgraph.net - updated 23rd May) PHP mail: RMail (www.phpguru.org/rmail) PHP datagrid: RGrid (www.phpguru.org/rgrid) PHP Template: RTemplate (www

Re: [PHP] php dev environment

2009-05-25 Thread Eddie Drapkin
-- Forwarded message -- From: Eddie Drapkin Date: Mon, May 25, 2009 at 3:24 AM Subject: Re: [PHP] php dev environment To: Lester Caine Vim? Vi? PFT If you're gonna CLI, CLI *like a man* and use emacs! On Mon, May 25, 2009 at 3:21 AM, Lester Caine wrote: > Lester Ca

Re: [PHP] php dev environment

2009-05-25 Thread Lester Caine
Lester Caine wrote: Paul M Foster wrote: On Sun, May 24, 2009 at 10:32:23AM +0100, Nathan Rixham wrote: Hi All, A recent post just reminded me of something I did a while ago that may be of use to many of you (and its sitting doing nothing), it's a kind of how to for getting a full development

Re: Re: [PHP] change server time

2009-05-25 Thread Ashley Sheridan
On Mon, 2009-05-25 at 03:54 +, oorza...@gmail.com wrote: > In windows? I have no idea. I use linux for my server stacks. You'll have > to ask Dr. Google! I'd expect it's just like with normal windows, in the > date properties in the control panel. > > On May 24, 2009 11:44pm, Sumit Sharma