[PHP] Static methods vs. plain functions

2013-09-19 Thread Simon Dániel
Hi, I am working on an OOP project, and cannot decide which way to follow when I have to write a simple function. For example, I want to write a function which generates a random string. In an OOP environtment, it is a matter of course to create a static class and a static method for that. But

Re: [PHP] PDO Transaction

2013-03-16 Thread Simon Dániel
2013/3/15 Lester Caine les...@lsces.co.uk Simon Dániel wrote: Hi, I have a trouble with PDO transactions. I would like to start using transactions, but I am not familiar with it. I have got a 'There is no active transaction' exception, however, I am using beginTransaction method

[PHP] PDO Transaction

2013-03-15 Thread Simon Dániel
Hi, I have a trouble with PDO transactions. I would like to start using transactions, but I am not familiar with it. I have got a 'There is no active transaction' exception, however, I am using beginTransaction method, and also I have set PDO::ATTR_AUTOCOMMIT to false right after connecting to

[PHP] Differentiate Line breaks and Paragraphs

2012-11-02 Thread Simon Dániel
Hi, Is there a way to make difference between line breaks and paragraphs, when I save a text to a database from a user input? The new line characters (\n, \r) are not too consequent to determine when did the user only one new line or more new lines. (Some clients make only \n or \r, some others

Re: [PHP] Regex

2012-07-27 Thread Simon Dániel
#[0-9a-zA-Z,.]# 2012/7/27 Ethan Rosenberg eth...@earthlink.net Dear list - I've tried everything and am still stuck. A regex that will accept numbers, letters, comma, period and no other characters Thanks. Ethan Rosenberg -- PHP General Mailing List (http://www.php.net/) To

[PHP] Entry point of an MVC framework

2012-07-12 Thread Simon Dániel
Hi, I have started to develop a simple MVC framework. I have a base controller class which is abstract and all of the controllers are inherited from that. Every controller contains actions represented by methods. (E. g. there is a controller for managing product items in a webshop, and there are

Re: [PHP] Searching IDE.

2012-06-13 Thread Simon Dániel
Hi, Although it's not an IDE, it is full of very useful developer tools: Kate 2012/6/13 David Arroyo darr...@gmail.com Hi Folks, I am searching an IDE for php and web development, my options are Aptana or Eclipse+PDT. What is your opinion? Thanks. Regards. -- -- PHP General