Re: [PHP] Gzipped output

2008-02-12 Thread Per Jessen
Stut wrote: Make any PHP-based script available without usage-restriction, and you've got yourself a DDOS potential.  Using exec() doesn't change anything. I would argue that it makes it easier since creating and tearing down processes is a pretty expensive operation for most OS's, but

[PHP] PHP 5.2.5 installation

2008-02-12 Thread Yoshika Kehelpannala
Hi, I have downloaded and setup the Apachi web server and My SQL 5.0.51a prior to my PHP installation on the windows platform. As I have downloaded the PHP 5.2.5 version (msi) and installed it on my system, it gave some errors that says a lot of dll's and sort of files are missing. I checked

Re: [PHP] Run Process in back ground

2008-02-12 Thread Nirmalya Lahiri
--- Richard Kurth [EMAIL PROTECTED] wrote: Is there a way that I can call a function that will send an email and then move on redirecting to another website without having to what for the email to send? SendEmail($memberemail,$MailFrom,$MailHost); header(Location:http://domain.com;);

RE: [PHP] PHP 5.2.5 installation

2008-02-12 Thread jihad A . Al-Ammar \(جهاد العمار\)
Why don’t you try installing it the easy way through WAMP. It installs PHP, MySQL, and Apache all configured and ready to go. http://www.wampserver.com/en/ Includes : - Apache 2.2.6 - MySQL 5.0.45 - PHP 5.2.5 From: Yoshika Kehelpannala [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] PHP 5.2.5 installation

2008-02-12 Thread Nirmalya Lahiri
--- Yoshika Kehelpannala [EMAIL PROTECTED] wrote: Hi, I have downloaded and setup the Apachi web server and My SQL 5.0.51a prior to my PHP installation on the windows platform. As I have downloaded the PHP 5.2.5 version (msi) and installed it on my system, it gave some errors that says

[PHP] Re: PHP 5.2.5 installation

2008-02-12 Thread Nathan Rixham
I had the same problems installing 5.2.5 last week on windows, the installer's a bit corrupt! I ended up having to manually install from the latest snapshot instead; (download, extract, configure manually) alternatively, attempt to install as best it will, then overwrite with a snapshot.

[PHP] Template system in PHP

2008-02-12 Thread Xavier de Lapeyre
Hi, I need to develop a website, but my management is rather unstable in his vision for the layout. I'm thinking of developing the components as classes and functions, and then use a template system to render the layout. If the management wishes to change the layout, I'll just have to modify my

Re: [PHP] Template system in PHP

2008-02-12 Thread Brice
Hi, I suggest you to use a framework. Lots of them implements template system and more. You'll don't have to reinvent the wheel. My favorit is Copix http://www.copix.org/ Email me if you need help. Brice On Feb 12, 2008 11:01 AM, Xavier de Lapeyre [EMAIL PROTECTED] wrote: Hi, I need to

Re: [PHP] Template system in PHP

2008-02-12 Thread clive
Xavier de Lapeyre wrote: Do any of you guys gurls know of a way to implement that template system. Smarty ? (The best one I know of is that of Wordpress) Regards, Xavier de Lapeyre Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Template system in PHP

2008-02-12 Thread Christoph Boget
eval() is my favorite templating engine. http://php.net/eval Ditto on Eval() PHP is already a templating system. Why go the long way around? eval()? Man, you guys have some seriously large cajones. :p thnx, Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: PHP 5.2.5 installation

2008-02-12 Thread Shawn McKenzie
Yoshika Kehelpannala wrote: Hi, I have downloaded and setup the Apachi web server and My SQL 5.0.51a prior to my PHP installation on the windows platform. As I have downloaded the PHP 5.2.5 version (msi) and installed it on my system, it gave some errors that says a lot of dll’s and

Re: [PHP] Template system in PHP

2008-02-12 Thread Aleksandar Vojnovic
Because its painful and fun at the same time :) Aleksandar Quoting Nate Tallman [EMAIL PROTECTED]: Ditto on Eval() PHP is already a templating system. Why go the long way around? On Feb 12, 2008 10:13 AM, Greg Donald [EMAIL PROTECTED] wrote: On 2/12/08, Xavier de Lapeyre [EMAIL

Re: [PHP] Re: Question about development

2008-02-12 Thread Shawn McKenzie
Jason Pruim wrote: On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote: Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan for what a website needs. Stuff

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 14:22 -0600, Shawn McKenzie wrote: Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with

Re: [PHP] Re: Recommended ORM for PHP

2008-02-12 Thread Manuel Lemos
Hello, on 02/08/2008 11:51 AM Zoltán Németh said the following: Metabase also generates a separate class for installing or upgrading your database schema. If you change the definition of you objects, you just need to call that class to install, upgrade, downgrade your database schemas, safely

Re: [PHP] Re: Question about development

2008-02-12 Thread Jason Pruim
On Feb 12, 2008, at 4:24 PM, Daniel Brown wrote: On Feb 12, 2008 2:53 PM, Nathan Rixham [EMAIL PROTECTED] wrote: Browsers generally send the the HTTP_ACCEPT_LANGUAGE header in a request. $_SERVER[HTTP_ACCEPT_LANGUAGE] = en-gb,en;q=0.5 thus with mine, preference is en-gb, failing that

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
*sigh* as always, firefox obeys, ie7 goes huh what? Nathan Rixham wrote: Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see that, it's something I'd toyed with a few times in the past but found it far too time consuming (even for me), and opted for the ol' redefine

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see that, it's something I'd toyed with a few times in the past but found it far too time consuming (even for me), and opted for the ol' redefine everything in CSS *lightbulb* :: runs off to try css on custom tags why have i

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote: Custom tags (XML style ones anyways) provide support for arbitrary ordering and omission of optional attributes. They nest nicer than function calls, and they have the same general formatting as the HTML with which you are

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 15:02 -0600, Greg Donald wrote: On Feb 12, 2008 2:57 PM, Robert Cummings [EMAIL PROTECTED] wrote: I prefer content formatting encapsulation as provided by custom tags. Decorators? Custom tags (XML style ones anyways) provide support for arbitrary ordering and omission

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread mike
On 2/12/08, Nathan Nobbe [EMAIL PROTECTED] wrote: also, in terms of scalability, isnt facebook proof that memcache can scale? memcached is behind facebook, livejournal (who made it), i believe dealnews, flickr, twitter, pownce, typepad, fotolog, slashdot, feedburner, 37signals, i think even

[PHP] Re: database design tool

2008-02-12 Thread Shawn McKenzie
Shawn McKenzie wrote: Can anyone recommend a preferably visual DB design tool? I normally use mysql, but one that covered several types wood be cool. I'm on Linux, so the new mysql workbench is a dud. I used it in an alpha or prior version and it looked promising but crashed frequently.

Re: [PHP] Template system in PHP

2008-02-12 Thread Michael McGlothlin
REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. REST is fine for small communications but really isn't a very good solution for large and complex communication. SOAP is the 600 pound gorilla. Usually I use XML-RPC because

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 6:27 PM, Greg Donald [EMAIL PROTECTED] wrote: On Feb 12, 2008 4:23 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: well thats what xslt is, which is pretty nice. /\ is a statement, not a question ;) Wow dude, you're a rock. I meant my question was rhetorical, not your

RE: [PHP] Security scanner (Lockdown Networks Enforcer)

2008-02-12 Thread Daevid Vincent
-Original Message- From: Emil Edeholt [mailto:[EMAIL PROTECTED] Sent: Monday, February 11, 2008 5:17 AM To: php-general@lists.php.net Subject: [PHP] Security scanner I've been trying Nessus to search for sql injections and other security issues. I'm quite sure Nessus is

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
Michael McGlothlin wrote: REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. REST is fine for small communications but really isn't a very good solution for large and complex communication. SOAP is the 600 pound gorilla.

[PHP] database design tool

2008-02-12 Thread Shawn McKenzie
Can anyone recommend a preferably visual DB design tool? I normally use mysql, but one that covered several types wood be cool. I'm on Linux, so the new mysql workbench is a dud. I used it in an alpha or prior version and it looked promising but crashed frequently. They say a Linux version in

Re: [PHP] Template system in PHP

2008-02-12 Thread Michael McGlothlin
Nathan Nobbe wrote: On Feb 12, 2008 7:42 PM, Michael McGlothlin [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. YAML doesn't seem significantly easier

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 7:42 PM, Michael McGlothlin [EMAIL PROTECTED] wrote: REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. YAML doesn't seem significantly easier (faster less intensive) to parse than XML, it doesn't seem as

Re: [PHP] Re: memcached (was: session and Multi Server Architecture)

2008-02-12 Thread mike
On 2/12/08, Per Jessen [EMAIL PROTECTED] wrote: My mistake - I though I'd understood that memcached would replicate objects across the servers, but that's clearly wrong. If I've got it right, virtually every access to a cached object will require network traffic? (the exception being those

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 4:23 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: well thats what xslt is, which is pretty nice. /\ is a statement, not a question ;) Wow dude, you're a rock. I meant my question was rhetorical, not your statement about my question. /me point Nathan to

RE: [PHP] Question about development

2008-02-12 Thread Xavier de Lapeyre
Hi, I usually use a MoSCoW Analysis. http://en.wikipedia.org/wiki/MoSCoW_Method From then on, I move into detailing each needs. The S - Should have and C - could have parts are rather tricky if you are new to it. So far this method has saved me more than once in many projects. The most

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 5:10 PM, Greg Donald [EMAIL PROTECTED] wrote: On Feb 12, 2008 3:37 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: well thats what xslt is, which is pretty nice. /\ is a statement, not a question ;) /me point Nathan to http://en.wikipedia.org/wiki/Rhetorical_question XSLT

Re: [PHP] Template system in PHP

2008-02-12 Thread Shawn McKenzie
Nathan Rixham wrote: Shawn McKenzie wrote: Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search.

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 3:37 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: well thats what xslt is, which is pretty nice. /me point Nathan to http://en.wikipedia.org/wiki/Rhetorical_question XSLT sucks, complete overkill. -- Greg Donald http://destiney.com/ -- PHP General Mailing List

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 4:45 PM, Robert Cummings [EMAIL PROTECTED] wrote: well thats what xslt is, which is pretty nice. Nah, I don't bother with XSLT. i know, i just thought id mention it, since xml was brought up and nobodys even mentioned xslt yet. i will likely move away from xslt, but i will

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
guys, you all know you can F5 in the view source bit of firefox yeah.. save's all the pre's and loads of time! right click : view source : F5 till your done debugging. :) Christoph Boget wrote: I agree. I usually add a little function like this to my PHP projects: function debug( $var ) {

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 16:37 -0500, Nathan Nobbe wrote: On Feb 12, 2008 4:18 PM, Greg Donald [EMAIL PROTECTED] wrote: On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote: Custom tags (XML style ones anyways) provide support for arbitrary ordering and omission of optional

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 21:19 +, Nathan Rixham wrote: Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see that, it's something I'd toyed with a few times in the past but found it far too time consuming (even for me), and opted for the ol' redefine everything in CSS

Re: [PHP] Template system in PHP

2008-02-12 Thread Robert Cummings
On Tue, 2008-02-12 at 15:18 -0600, Greg Donald wrote: On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote: Custom tags (XML style ones anyways) provide support for arbitrary ordering and omission of optional attributes. They nest nicer than function calls, and they have the

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 4:18 PM, Greg Donald [EMAIL PROTECTED] wrote: On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote: Custom tags (XML style ones anyways) provide support for arbitrary ordering and omission of optional attributes. They nest nicer than function calls, and they

Re: [PHP] Template system in PHP

2008-02-12 Thread Christoph Boget
I agree. I usually add a little function like this to my PHP projects: function debug( $var ) { echo 'pre'; print_r( $var ); echo '/pre'; } As an aside, you can save lines when debugging by doing: echo 'pre' . print_r( $var, TRUE ) . '/pre'; thnx, Chris -- PHP General Mailing

Re: [PHP] Template system in PHP

2008-02-12 Thread András Csányi
2008/2/12, Xavier de Lapeyre [EMAIL PROTECTED]: Hi, I need to develop a website, but my management is rather unstable in his vision for the layout. I'm thinking of developing the components as classes and functions, and then use a template system to render the layout. If the management

Re: [PHP] Template system in PHP

2008-02-12 Thread Łukasz Wojciechowski
I used Smarty for long time but now switched to two-step-rendering. It's way more comfortable (for me). I suggest Zend_Layout + Zend_View at the moment (framework.zend.com) -- Łukasz Wojciechowski

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 3:32 PM, Christoph Boget [EMAIL PROTECTED] wrote: As an aside, you can save lines when debugging by doing: echo 'pre' . print_r( $var, TRUE ) . '/pre'; OMG, thanks for that. Lines are so expensive nowadays and all. -- Greg Donald http://destiney.com/ -- PHP General

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 1:58 PM, Nathan Rixham [EMAIL PROTECTED] wrote: I still don't understand why general net users don't just like to see print_r output; it's got all the info they could want, ordered and structured *shrugs* vote: text/plain I agree. I usually add a little function like this to

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
Shawn McKenzie wrote: Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search.

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On Feb 12, 2008 2:57 PM, Robert Cummings [EMAIL PROTECTED] wrote: I prefer content formatting encapsulation as provided by custom tags. Decorators? -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Template system in PHP

2008-02-12 Thread Shawn McKenzie
Ryan A wrote: Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search.

Re: [PHP] Template system in PHP

2008-02-12 Thread Ryan A
Add my vote too for Smarty HTH, -R Looking for last minute shopping deals? Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping -- PHP

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
I still don't understand why general net users don't just like to see print_r output; it's got all the info they could want, ordered and structured *shrugs* vote: text/plain Aleksandar Vojnovic wrote: Because its painful and fun at the same time :) Aleksandar Quoting Nate Tallman [EMAIL

Re: [PHP] Re: Question about development

2008-02-12 Thread Nathan Rixham
Jason, If you don't mind I may give you an email off the list in a moment to brain storm up a quick list of questions to ask clients and indeed client gotchas. For the time being as this seems to be going down the line of how to handle multilingual sites here's my two pennies. XML, store

Re: [PHP] Re: Question about development

2008-02-12 Thread Jason Pruim
On Feb 12, 2008, at 2:09 PM, Aleksandar Vojnovic wrote: Could you explain this a little better - ...into using a database[1] for storing the pages and using browser sniffing to find out what language preference they currently had selected to display in that language? Aleksandar I'll

Re: [PHP] Re: Question about development

2008-02-12 Thread Wolf
Jason Pruim [EMAIL PROTECTED] wrote: On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote: Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan

Re: [PHP] Re: Question about development

2008-02-12 Thread Aleksandar Vojnovic
Could you explain this a little better - ...into using a database[1] for storing the pages and using browser sniffing to find out what language preference they currently had selected to display in that language? Aleksandar Quoting Jason Pruim [EMAIL PROTECTED]: On Feb 12, 2008, at 1:03

Re: [PHP] Re: Question about development

2008-02-12 Thread Jason Pruim
On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote: Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan for what a website needs. Stuff like Does it need a

[PHP] Re: Question about development

2008-02-12 Thread Nathan Rixham
Jason Pruim wrote: Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan for what a website needs. Stuff like Does it need a forum, live support, database driven etc. etc. Does

Re: [PHP] Template system in PHP

2008-02-12 Thread Michael McGlothlin
I don't suggest the use of a template system unless you do need something as complex as XSLT. PHP itself works very well for templating. Just write your code so that the UI code is sepperate from the logic and everything is neat and tidy without adding a layer of complexity. If you want a

Re: [PHP] Re: Question about development

2008-02-12 Thread Daniel Brown
On Feb 12, 2008 2:53 PM, Nathan Rixham [EMAIL PROTECTED] wrote: Browsers generally send the the HTTP_ACCEPT_LANGUAGE header in a request. $_SERVER[HTTP_ACCEPT_LANGUAGE] = en-gb,en;q=0.5 thus with mine, preference is en-gb, failing that anything en; failing that whatever you've got.

Re: [PHP] Re: Question about development

2008-02-12 Thread Nathan Rixham
Jason Pruim wrote: On Feb 12, 2008, at 2:09 PM, Aleksandar Vojnovic wrote: Could you explain this a little better - ...into using a database[1] for storing the pages and using browser sniffing to find out what language preference they currently had selected to display in that language?

Re: [PHP] Template system in PHP

2008-02-12 Thread Nate Tallman
Ditto on Eval() PHP is already a templating system. Why go the long way around? On Feb 12, 2008 10:13 AM, Greg Donald [EMAIL PROTECTED] wrote: On 2/12/08, Xavier de Lapeyre [EMAIL PROTECTED] wrote: Do any of you guys gurls know of a way to implement that template system. eval() is my

Re: [PHP] Re: Question about development

2008-02-12 Thread Richard Lynch
On Tue, February 12, 2008 3:32 pm, Jason Pruim wrote: On Feb 12, 2008, at 4:24 PM, Daniel Brown wrote: On Feb 12, 2008 2:53 PM, Nathan Rixham [EMAIL PROTECTED] wrote: Browsers generally send the the HTTP_ACCEPT_LANGUAGE header in a request. $_SERVER[HTTP_ACCEPT_LANGUAGE] = en-gb,en;q=0.5

Re: [PHP] Template system in PHP

2008-02-12 Thread Greg Donald
On 2/12/08, Xavier de Lapeyre [EMAIL PROTECTED] wrote: Do any of you guys gurls know of a way to implement that template system. eval() is my favorite templating engine. http://php.net/eval -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To

[PHP] Question about development

2008-02-12 Thread Jason Pruim
Hi Everyone, I know this isn't 100% on topic... But when is any post to this list 100% on topic? :) I've been doing some googling trying to find info on how to plan for what a website needs. Stuff like Does it need a forum, live support, database driven etc. etc. Does anyone have a form

[PHP] Re: memcached (was: session and Multi Server Architecture)

2008-02-12 Thread Per Jessen
Stut wrote: There's no question of locking users to particular machines, nor of uneven distribution. LVS will distribute evenly or according to weights. Indeed, but you must see that making the decision of which server to use per request will result in a more even distribution than

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Per Jessen
Stut wrote: There's no question of locking users to particular machines, nor of uneven distribution. LVS will distribute evenly or according to weights. Indeed, but you must see that making the decision of which server to use per request will result in a more even distribution than

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Stut
Per Jessen wrote: Stut wrote: Of course, processing power, network capacity and memory are all very cheap these days, so it's easy to put on the Microsoft hat and be wasteful. In my mind you're exchanging traffic over a local network (probably 1Gbps) for a less resilient load balancing

Re: [PHP] Re: LVS (was: Session and Multi Server Architecture)

2008-02-12 Thread Nathan Nobbe
On Feb 12, 2008 10:55 AM, Per Jessen [EMAIL PROTECTED] wrote: Nathan Nobbe wrote: i mean, i do understand the vserver concept, is LVS essentially the same as v-server, http://linux-vserver.org/Welcome_to_Linux-VServer.org ? Hi Nathan, they're two very different things. The VServer

[PHP] Re: LVS (was: Session and Multi Server Architecture)

2008-02-12 Thread Per Jessen
Nathan Nobbe wrote: i mean, i do understand the vserver concept, is LVS essentially the same as v-server, http://linux-vserver.org/Welcome_to_Linux-VServer.org ? Hi Nathan, they're two very different things. The VServer project makes multiple servers out of one, LVS makes multiple physical

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Sancar Saran
On Tuesday 12 February 2008 16:06:04 Stut wrote: Sancar Saran wrote: Hello On Tuesday 12 February 2008 13:39:19 Stut wrote: I'll be using memcache as a simple cache. I hate sessions and avoid them for anything but the most trivial sites. The main sites I work with no longer use

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Stut
Per Jessen wrote: Stut wrote: There's no question of locking users to particular machines, nor of uneven distribution. LVS will distribute evenly or according to weights. Indeed, but you must see that making the decision of which server to use per request will result in a more even

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Per Jessen
Stut wrote: Of course, processing power, network capacity and memory are all very cheap these days, so it's easy to put on the Microsoft hat and be wasteful. In my mind you're exchanging traffic over a local network (probably 1Gbps) for a less resilient load balancing system. By locking

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Sancar Saran
Hello For poor man's multinode, ADODB offers Sql based sessions, it was good enough for starters. Of course memcached based session storage was an option. But with this model need better implementation. Memcached was just cache, there was no offical way to backup data. (as far as I know)

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Sancar Saran
Hello On Tuesday 12 February 2008 13:39:19 Stut wrote: I'll be using memcache as a simple cache. I hate sessions and avoid them for anything but the most trivial sites. The main sites I work with no longer use sessions because they add a pointless layer of complexity to any application that

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Sancar Saran
On Tuesday 12 February 2008 00:45:59 Michael McGlothlin wrote: implement session_set_save_handler() with a database, or ideally, memcache. I use memcache with a secondary db backing. Works pretty well. I use it for session data as well as any other uses I want to make of memcache. Memcache

Re: [PHP] Template system in PHP

2008-02-12 Thread Jochem Maas
Xavier de Lapeyre schreef: Hi, I need to develop a website, but my management is rather unstable in his vision for the layout. I'm thinking of developing the components as classes and functions, and then use a template system to render the layout. If the management wishes to change the layout,

Re: [PHP] Template system in PHP

2008-02-12 Thread Nathan Rixham
another vote here for smarty - it's pretty much standard issue nowadays and means should the need ever arise you can easily bring in a web designer to do the html without having to worry about them learning some new system. Nathan clive wrote: Xavier de Lapeyre wrote: Do any of you guys

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Stut
Per Jessen wrote: Stut wrote: Per Jessen wrote: mike wrote: Check out persistency in LVS for instance: http://www.linuxvirtualserver.org/docs/persistence.html i know persistence handling is an option in LVS, but i haven't seen the need to use it. i use LVS right now without even bothering

Re: [PHP] PHP 5.2.5 installation

2008-02-12 Thread Floor Terra
On Feb 12, 2008 9:55 AM, Yoshika Kehelpannala [EMAIL PROTECTED] wrote: I have downloaded and setup the Apachi web server and My SQL 5.0.51a prior to my PHP installation on the windows platform. As I have downloaded the PHP 5.2.5 version (msi) and installed it on my system, it gave some errors

Re: [PHP] Re: memcached (was: session and Multi Server Architecture)

2008-02-12 Thread Per Jessen
mike wrote: To me it isn't a memcached vs. session persistency debate. memcached to me is a cache layer for anything - if I wanted to use it for sessions, it's an added bonus (I'd probably make sure to use 3.0.0+ so I could ensure the data is in more than one server, losing people's session

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Stut
Sancar Saran wrote: Hello On Tuesday 12 February 2008 13:39:19 Stut wrote: I'll be using memcache as a simple cache. I hate sessions and avoid them for anything but the most trivial sites. The main sites I work with no longer use sessions because they add a pointless layer of complexity to any

RE: [PHP] Template system in PHP

2008-02-12 Thread Bastien Koert
smarty? bastien Date: Tue, 12 Feb 2008 14:01:11 +0400 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] Template system in PHP Hi, I need to develop a website, but my management is rather unstable in his vision for the layout. I'm thinking of developing the

Re: [PHP] Session and Multi Server Architecture

2008-02-12 Thread Nathan Nobbe
well guys, im reading all this stuff about LVS and so forth, and i must admit, i really dont know the first thing about it. i mean, i do understand the vserver concept, is LVS essentially the same as v-server, http://linux-vserver.org/Welcome_to_Linux-VServer.org ? also, i dont understand how LVS

Re: [PHP] Template system in PHP

2008-02-12 Thread mike
On 2/12/08, Greg Donald [EMAIL PROTECTED] wrote: REST is the new SOAP. Yaml is the new XML. I'm guessing this news just hasn't made it into any PHP frameworks yet. REST for the win. SOAP is best left for the bathtub. as far as templating engines go, a while back i wanted to see if i could

[PHP] DOMXML Warning

2008-02-12 Thread Miguel J. Jiménez
Hi, after enabling error reporting with E_ALL I am having this strange warning while loading a XML: Warning: DOMDocument::load() [function.DOMDocument-load]: Extra content at the end of the document in [...] The code I use is: $dom = new DOMDocument(); $dom-load(http://example.com/file.xml;);

Re: [PHP] Re: memcached (was: session and Multi Server Architecture)

2008-02-12 Thread mike
On 2/12/08, Per Jessen [EMAIL PROTECTED] wrote: Cache layers are cheap - it's a known science after all. The key thing (AFAICT) about memcached is that is _distributed_. You need this when you don't have session persistency (session being the client-to-server relationship). correct. local