Re: [PHP] Get timestamp?

2006-01-25 Thread Max Schwanekamp
Max Schwanekamp wrote: Jay Paulson wrote: > How would I go about getting the timestamp of a day of the week from 7 weeks > ago? $lastsunday = strtotime("last Sunday"); $sunday7weeks = $lastsunday - (86400 * 49); // 7 weeks = 49 days Oops, that would be the sunday 7 weeks

Re: [PHP] Reverse Engineering of Smarty

2006-02-05 Thread Max Schwanekamp
piled PHP is strictly for the output. There is little connection (or there shouldn't be anyway) between your application php and the compiled php that Smarty produces when it parses a template file. -- Max Schwanekamp http://www.neptunewebworks.com/ -- PHP General Mailing List (http://www.ph

[PHP] Files upload

2003-02-09 Thread Max 'AMiGo' Gashkov
Is there any difference between using move_uploaded_file(... or if(is_uploaded_file... ... copy( (security hazards etc.)? WBR, Max 'AMiGo' Gashkov [EMAIL PROTECTED] ]=[ http://diary.otaku.ru/amigo Distributed.net participant [408228][RC5-72] -- PHP General Mailing

Re: [PHP] declaring variables in class definitions

2001-01-10 Thread Max A. Derkachev
; it would throw an error saying that you have no variable named 'somevar' in you class. -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 http://www.Books.Ru -- All Books of Russia   -- PHP General Mailing List (http://

Re[2]: [PHP] declaring variables in class definitions

2001-01-10 Thread Max A. Derkachev
oes not appear to be true. With error reporting set to max, and the sic> variables not defined in the class ( $somevar,$somevar2 and $somevar3 ), sic> the following will echo out: sic> Not set sic> empty sic> value of somevar2 sic> value of somevar3 sic> class a { sic&

Re[4]: [PHP] declaring variables in class definitions

2001-01-11 Thread Max A. Derkachev
ndard. Moreover, it's a common sense. Try to imagine what will say other developer which may use or maintain your code looking at this mess. -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 http://www.Books.Ru -- All Books of Rus

Re[2]: [PHP] RE: Ethics question...

2001-01-19 Thread Max A. Derkachev
ething like killall -1 httpd to restore normal operations. -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 http://www.Books.Ru -- All Books of Russia   -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

Re[2]: [PHP] is it possible to communicate javascript and php?

2001-01-22 Thread Max A. Derkachev
learned mind reading yet :) -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] Symbol-Plus Publishing Ltd. phone: +7 (812) 324-53-53 http://www.Books.Ru -- All Books of Russia   -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Re: [PHP] Post without submit?

2001-01-26 Thread Max A. Derkachev
Hello Chris, Friday, January 26, 2001, 8:23:27 AM, you wrote: C> is there anyway to post without clicking a submit button? You can, e.g. using javascript event. on="document.forms['formname'].submit()" -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] Sym

[PHP] Re: Warning: Sybase message: Incorrect syntax near 't'.

2001-10-01 Thread TURPIN Jean Max
ot;INSERT into problem VALUES('$product','$pro_title','$description','$solution')"); $sybase_result=sybase_query($sybase_query); -- TURPIN Jean Max STUDENT College of Reunion's Island -- PHP General Mailing List (http://www.php.n

[PHP] Re: Array Elements & While Loops

2001-10-01 Thread TURPIN Jean Max
[$j])) > { > $flag = 1; > $errorNo = $j + 1; > } >$j++; >} -- TURPIN Jean Max STUDENT College of Reunion's Island -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re[2]: [PHP] session question

2001-01-31 Thread Max A. Derkachev
sion_register($funky_session_var) gives your nothing (if not an error). You should session_register('funky_session_var') instead (the NAME of the variable, not the variable itself). -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] Symbol-Plus Publishing Ltd. phone: +7 (812)

Re: [PHP] Function by reference?

2001-01-31 Thread Max A. Derkachev
lines NS> $func=&urlencode; It won't work. You can not reference a function. But you can call a variable with the function name value. $func = 'urlencode' $func($str) here will do the same as urlencode($str). -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] Sy

Re: [PHP] Mixing PHP code with phplib templates... possible?

2001-02-06 Thread Max A. Derkachev
ript. I figure this must df> be possible, but I'm new at using phplib, so I'm not all that clear df> on it... Set the links as template variables and then substitute them with values using Template's set_var(). -- Best regards, Max A. Derkachev mailto:[EMAIL PROTECTED] S

Re[2]: [PHP] Mixing PHP code with phplib templates... possible?

2001-02-07 Thread Max A. Derkachev
Hello derek, Tuesday, February 06, 2001, 7:58:25 PM, you wrote: df> Hi Max, df> Thanks for the reply. Unfortunately, the solution you suggest means df> that I would have to do a set_var on all hyperlinks (i.e., define all df> hyperlinks everywhere on the site), which is a hu

<    1   2