RE: [PHP] Vermis The Issue Tracking System

2010-11-09 Thread Mert Oztekin
Looks great. Thanks. ***?imdi her yerde ?ubemiz var: http://www.anadolusigortaonline.com.tr a??ld?.-Original Message- From: Lukasz Cepowski [mailto:c...@freecode.pl] Sent: Tuesday, November 09, 2010 12:34 AM To: php-general@lists.php.net Subject: [PHP] Vermis The Issue Tracking System

RE: [PHP] Using remote include config file and class in a local file

2009-11-03 Thread Mert Oztekin
Why dont you try returning config variables as string from remote server. Something like : http://192.XXX.XXX.XXX/getconfig.php?token=123encoded=; And the getconfig.php file can be like ?php /// validate if request is from a friendly server something like the following 2 if

RE: [PHP] What is the best practice for adding persistence to an MVC model?

2009-10-27 Thread Mert Oztekin
Hi Eric, IMO, controllers shouldnt be responsible for interacting models and datastoreres. Controllers might only change the datastore class of a model. You may use your models in lots of controller functions. Defining datastore in all controllers seems not a good practice. (too much

RE: [PHP] French characters

2009-10-19 Thread Mert Oztekin
What about browsers encoding? And also, does your html code has a header about character-encoding in french -Original Message- From: Don [mailto:d...@program-it.ca] Sent: Monday, October 19, 2009 3:58 PM To: php-general@lists.php.net Subject: [PHP] French characters Hi, I use PHP to

RE: [PHP] French characters

2009-10-19 Thread Mert Oztekin
am using the following code: meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 / Mert Oztekin mozte...@anadolusigorta.com.tr wrote in message news:e2c046087e10d943811a0bd0a4e8316d1bd2e81...@ankara.anadolusigorta.pvt... What about browsers encoding? And also, does your html code has

RE: [PHP] Re: avoid Denial of Service

2009-10-09 Thread Mert Oztekin
PHP is not the right place to find answer to avoid DDoS attack. Your server configuration and firewall software/hardware should try avoiding it (if they can) -Original Message- From: Peter Ford [mailto:p...@justcroft.com] Sent: Friday, October 09, 2009 11:08 AM To:

RE: [PHP] Insult my code!

2009-10-08 Thread Mert Oztekin
Hi Paul, As I agree some of your thoughts, I want to add my opinion also. Yes the code should work. That is why we earn Money. If it doesnt work, then we are on fire. But things like OOP or MVC weren't invented for a better running code. They are invented so the codes will going to be much more

RE: [PHP] Insult my code!

2009-10-07 Thread Mert Oztekin
Seems ok. Just a thought: Your model seems to be coded just for retreiving data. IMO you should code it for all possible actions(insert,update,delete,select). And also it should run without any database calls(you may create a new bank user in a page and use it than throw it away, so

RE: [PHP] How do YOU set default function/method params?

2009-10-06 Thread Mert Oztekin
IMO, array_merge() is easy to use, however it suppose to use more cpu than other options. If you are a performance freak, i suggest you to not choose array_merge() solution. (also you execute date() and md5() functions even if you wont need to use them) In the other way, I think first option

RE: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Mert Oztekin
You also write the answer var_dump(strftime(%d.%m.%Y %H:%m,$time)); there are 2 %m you see? %m is month :) for minute use %i -Original Message- From: Matthias Laug [mailto:matthias.l...@gmail.com] Sent: Tuesday, October 06, 2009 10:53 AM To: php-general@lists.php.net Subject: [PHP]

RE: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Mert Oztekin
Jason, %M is also month: Month --- --- F A full textual representation of a month, such as January or March January through December m Numeric representation of a month, with leading zeros 01 through 12 M A short textual representation of a month, three letters Jan through Dec n Numeric

RE: [PHP] Time Problem: always ten past xx

2009-10-06 Thread Mert Oztekin
My mistake, I thought it was date() now strftime() Sorry (why do php developers create two different standarts for such similiar functions???☺ ) _ From: Mert Oztekin Sent: Tuesday, October 06, 2009 11:07 AM To: 'Jason'; 'Matthias Laug'; php-general

RE: [PHP] Self-Process php forms or not?

2009-10-01 Thread Mert Oztekin
May be it is best time to for you to start using Zend Framework - Zend_Form -Original Message- From: MEM [mailto:tal...@gmail.com] Sent: Thursday, October 01, 2009 3:01 PM To: 'Bob McConnell'; 'PHP-General List' Subject: RE: [PHP] Self-Process php forms or not? One last question about

RE: [PHP] Paging script

2009-09-30 Thread Mert Oztekin
Sorry but I dont understand what you mean. Can you be more specific? {1} 2 3 ... 12 (Startup / Total 12 pages) When you click 7 1 ... 6 {7} 8 ... 12 When you click 11 or 12 1 ... 10 11 {12} Do you mean something like this? -Original Message- From: Angelo Zanetti

RE: [PHP] Paging script

2009-09-30 Thread Mert Oztekin
Zanetti [mailto:ang...@elemental.co.za] Sent: Wednesday, September 30, 2009 1:59 PM To: Mert Oztekin; php-general@lists.php.net Subject: RE: [PHP] Paging script -Original Message- From: Mert Oztekin [mailto:mozte...@anadolusigorta.com.tr] Sent: 30 September 2009 12:40 PM To: 'Angelo

RE: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-23 Thread Mert Oztekin
Output buffering will do it. Also I am not sure but did you try retrieving content with fopen() ? Something like $file = 'invoicetable_bottom.php'; fopen(http://yoursite.com/folder/$file,r;); http://tr.php.net/function.fopen worth trying. Easier than output buffering -Original

RE: [PHP] Re: NULLS vs Empty result in PHP

2009-09-23 Thread Mert Oztekin
if it can take only numeric values u can use is_numeric() also i suggest that you not to use nulls in dbs. instead, use not null and default value property. Its more simple and more effective for both managing your database and coding your program. -Original Message- From: Robert