[PHP] Re: Check Variable with true or not

2008-09-29 Thread Maciek Sokolewicz
Carlos Medina wrote: Hi @ all: Question: what is quickly? if( true == isset( $var ) ){} or if( isset( $var ) ){} Can somebody explain ( not think or believe ), what happend on the Zend Engine when the first or the second code will be use? Regards Carlos The _exact_ same thing happens.

[PHP] Re: strrev() for persian language!

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: hi all, for reversing of characters, strrev() is good. but for persian characters it doesn't work! Thanks How nice of you to let us know! Now, is there a question in here somewhere? or is that all you wanted to say? -- _assuming_ you want to know why this is:

[PHP] Re: return language of a word

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: hi all, is there any function to return us the lanuage of a word in the sentence? for example : My name is شهرزاد . when it sees شهرزاد notice that is a persian language. Thanks How exactly would you expect this to work? I can't think of any way to be 100% sure

[PHP] Re: return language of a word

2008-09-29 Thread Maciek Sokolewicz
shahrzad khorrami wrote: Thanks for reply U+103A0 ... U+103DF How can I use of it? Something along the lines of: http://www.php.net/manual/en/function.ord.php should return the ordinal, which can then be compared to that. If you really want to do more with unicode and low-level twiddling

[PHP] Re: Math problems (No not high school math!)

2008-09-25 Thread Maciek Sokolewicz
Jason Pruim wrote: So I'm trying to figure out how to do a little math in php to add up the number of hours that people have worked (Still on the timecard for anyone following along at home) I have it inserting time in and timeout as timestamps into a MySQL database, from there, I use a

Re: [PHP] The Data Literacy Test

2008-09-24 Thread Maciek Sokolewicz
tedd wrote: At 12:25 PM +0100 9/24/08, Ashley Sheridan wrote: On Wed, 2008-09-24 at 09:20 +0800, Shelley wrote: http://phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-testThe Data Literacy Test: http://www.phparch.cn/index.php/php/34-php-basics/202-the-data-literacy-test

[PHP] Re: Header() - POST

2008-09-21 Thread Maciek Sokolewicz
Lupus Michaelis wrote: Michelle Konzack a écrit : Why using JS? echo meta http-equiv=\refresh\ content=\0; . $FULL_URL \; would do the trick... No, because it'll not send back the datas in the hide form. And if you suggest to pass datas in a HTTP GET, I'll answer XSS in the scope :)

Re: [PHP] Re: OOP - Calling methods from classes that are inheriting?

2008-09-21 Thread Maciek Sokolewicz
class myClass { public function func() { return Yay!!; } } class otherClass extends myClass { public function otherFunc() { echo $this-func(); } } $class=new otherClass(); echo $class-otherFunc(); oh yes, it's that simple. 2

[PHP] Re: Version Control Software

2008-09-19 Thread Maciek Sokolewicz
David Lidstone wrote: Benjamin Darwin wrote: After reading a topic on the list here about someone losing their website, and having a minor mistake on my own that cost me a week's work on a file (basically, tested the file, then uploaded to the live site and took the daily backup off the live

Re: [PHP] localization folder for web site

2008-09-13 Thread Maciek Sokolewicz
Alain R. wrote: so how can i do the same ? i mean to have 1 single PHP page and to localize, but to have the URI with /en, or /fr or /de ? i know how to localize the complete website i already done it, but what you told ? One would hope that unless it's a pretty small static site those

Re: [PHP] localization folder for web site

2008-09-13 Thread Maciek Sokolewicz
Alain R. wrote: Maciek Sokolewicz wrote: 2. google apache mod_rewrite, that way you can rewrite urls of the form www.example.org/de/whatever to www.example.org/whatever?lang=de or even stick the de part into an environment variable $_ENV['lang'] = 'de' - Tul the mod_rewrite is possible

[PHP] [Fwd: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong]

2008-09-12 Thread Maciek Sokolewicz
Forwarding to php-general. Original Message Subject: Re: [DOC-BUGS] #46054 [NEW]: comment of addcslashes 'A..z' is wrong Date: Fri, 12 Sep 2008 10:51:45 -0400 From: [EMAIL PROTECTED] (Tanveer Bhurani) To: miau dot jp at gmail dot com [EMAIL PROTECTED] Newsgroups: php.doc.bugs

[PHP] Re: [PHP-DEV] T_PAAMAYIM_NEKUDOTAYIM

2008-09-01 Thread Maciek Sokolewicz
Jochem Maas wrote: redirecting to generals mailing list ... Diogo Neves schreef: php -r 'class B { private static function a() {} public function __callStatic($method, $parms) { echo $method, \n; } } $a = new B; $a::a();' Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in

Re: [PHP] Re: Variable name as a string

2008-08-27 Thread Maciek Sokolewicz
tedd wrote: At 1:58 PM -0500 8/27/08, Shawn McKenzie wrote: ioannes wrote: Actually, you are right, as you just put the checkbox index in the POST and get the value from there. So you just need the number of checkboxes...sorry. for ($i = 1; $i = 4; $i++) { $a = 'a' . $i; $b =

Re: [PHP] Re: concatenating with . or ,

2008-08-25 Thread Maciek Sokolewicz
Thiago Melo de Paula wrote: Hello Yeti! This is a very good question, because it shows that you're interested in get the max from your PHP codes. In my research about php optimization, I couldn't find any relevant article about this specific issue, but some sites tell us that using commas

Re: [PHP] Unsubscribe issues

2008-08-22 Thread Maciek Sokolewicz
Andrew Ballard wrote: On Fri, Aug 22, 2008 at 9:10 AM, Ashley Sheridan [EMAIL PROTECTED] wrote: I assume Ronald won't see this, but I've mentioned it before. The emails coming from the mailing list all have an unsubscribe link in the header information. Just my 2p (I'm British, we don't do

Re: [PHP] Unsubscribe issues

2008-08-22 Thread Maciek Sokolewicz
www.ashleysheridan.co.uk Subject: Re: [PHP] Unsubscribe issues From: Maciek Sokolewicz [EMAIL PROTECTED] Date: Fri, 22 Aug 2008 15:51:38 +0200 To: Andrew Ballard [EMAIL PROTECTED] To: Andrew Ballard [EMAIL PROTECTED] CC: PHP

[PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Maciek Sokolewicz
Edward Diener wrote: I have a PHP file which does an: echo someresponse to return some data. When I run it from a Windows client program, the response I am seeing is not only the someresponse above but also has the entire HTML form in the PHP file appended to it. Naturally I do not want

[PHP] Re: E-Shop system

2008-08-02 Thread Maciek Sokolewicz
Alain Roger wrote: Hi, i'm currently analyzing an e-shop system. i understand how to display products and so on, however i still have some question marks on the following topics: 1. what is the best way for showing product image ? - to store them in DB or onto filesystem as simple image files

Re: [PHP] Re: Returning response includes HTML form data

2008-08-02 Thread Maciek Sokolewicz
Edward Diener wrote: Benjamin Hawkes-Lewis wrote: Edward Diener wrote: Does not the script 'exit' when the PHP code reaches the ending '?' tag ? Not exactly. PHP processes the remainder of the file too, it just doesn't find any PHP code to execute therein. It does find some text to output,

<    1   2