[PHP] Re: Creating a Calender
I've got a few elementry classes that might help, I think you just need to instantiate the class and then run the display method. "Dan Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Does anybody know how to generate calendars easily? (i.e. print out > complete calenders from the current month on) > > Thanks in advance, > > -Dan begin 666 cal.css M+F-A;&5N9&%R('L*"6)O'0M86QI9VXZ(&-E;G1E MPH)9F]N="US M:7IE.B!S;6%L;#L*"69O;G0M=V5I9VAT.B!B;VQD.PH)9&ES<&QA>3IB;&]C M:SL*"6)O2!["@EF M;VYT+69A;6EL>[EMAIL PROTECTED]&[EMAIL PROTECTED]"!A>2!["@EC;VQO2!["@EC;VQOPH) M9F]N="UW96EG:'0Z(&)O;&0["@ET97AT+6%L:6=N.B!C96YT97(["GT*"BYC M86QE;F1A7,L(&5T8RX-"B J+PT*#0HD;FP@/2 B7&XB.PT*)'1A8B ](")<="([ M#0H-"F-L87-S($-A;&5N9&%R('L-"@EV87(@)&QI;FL["0D)[EMAIL PROTECTED])R87D@ M;[EMAIL PROTECTED]),65A7(@*B\-"@T*"[EMAIL PROTECTED]@9G5N8W1I;[EMAIL PROTECTED] M87(-"@D-"@EF=6YC=&EO;B!S971396QE8W1E9$1A>[EMAIL PROTECTED]&%Y+" D;6]N=&@L M("1Y96%R*0T*"7L-"@D))'1H:7,M/G-E;&5C=&5D1&%Y(#T@;6MT:6UE*# L M(# L(# L("1M;VYT:"P@)&1A>2P@)'EE87(I.PT*"7T-"@EF=6YC=&EO;B!S M971,:6YK*"1D87DL("1L:6YK+" D9&5S8R ]($Y53$PI#0H)>PT*"0DD=&AI M0T*"2 J M+PT*"69U;F-T:6]N('-E=$QI;FM"87-E9$]N1&%Y*"1U7,@:6X@;6]N=&@@ M*B\-"@D)#0H)"69OPT*"0D))'(@ M+CT@(B!I9#TD:60B.PT*"0E]#0H)"21R("X]("<^)R N("1S=')I;F<@+B G M/"]S<&%N/B<[#0H)"7)E='5R;B D2P@)&=R87D],"D-"@E[#0H)"21G22D[#0H)"7)E='5R;B D0T* M"0T*"69U;F-T:6]N(&%N8VAO<[EMAIL PROTECTED])L+" D;&EN:RP@)&-L87-S([EMAIL PROTECTED], M3"P@)'1I=&QE([EMAIL PROTECTED],3"P@)&ED([EMAIL PROTECTED],3"D-"@E[#0H)"21R(#T@(CQA M(&AR968]7"(D=7)L7"(B.PT*"0EI9B H)&-L87-S*2![#0H)"0DDPT*"0D))'(@+CT@(B!I9#U<(B1I9%PB(CL-"@D)?0T*"0DDPT*"0EG;&]B86P@)&YL+" D=&%B.PT*"0DD9&%T92 ] M("1T:&ES+3YD871E.PT*"0D-"@D))'(@(#T@)SQD:[EMAIL PROTECTED]PT* M"0D))'(@+CT@)'1A8B N("<\[EMAIL PROTECTED][EMAIL PROTECTED]2!O9B!M;VX-"@T*"0DD3L@)&DK*RD@>PT*"0D))'(@+CT@)'1H:7,M/G-P86Y$87DH)R9N M8G-P.R7,@*B\-"@D)9F]R("@D:2 ] M(#$[("1I(#P]("1D87ES26Y-;VYT:#L@)&DK*RD@>PT*"0D):68H*"1M;VYT M:%-T87)T1&%Y("L@)&DI("[EMAIL PROTECTED] ]/2 Q("8F("1I("$](#$I('L-"@D)"0DD M65A2<[#0H)"0D)"21I9" @(" ] M("=T;V1A>2<[#0H)"0D)?2!E;'-E('L-"@D)"0D))&-L87-S(#T@)V1A>2<[ M#0H)"0D)"21I9" @(" ]($Y53$P[#0H)"0D)?0D-"@D)"0EI9B H)&-U65A M65A22 K("1I*2 E(#<@/3T@,"[EMAIL PROTECTED]'P@)&D@/3T@)&1A>7-) M;DUO;G1H*2![#0H)"0D))'(@+CT@)&YL("X@)'1A8B N("<\+V1I=CXG("X@ M)&YL.PT*"0D)?0T*"0D)#0H)"[EMAIL PROTECTED];W(-"@D):[EMAIL PROTECTED]&EShttp://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Single Quotes vs Double Quotes
With all that's been said in mind ('$var' unparsed "$var" parsed). The rule of thumb I follow is, if it needs to be parsed (has a $variable or \n \r \t etc) then used double quotes, otherwise use single quotes... it conserves processing. -dd "Micro Brew" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi everyone, > > Could somebody please explain to me the difference > between single quotes and double quotes in PHP. It > seems like they can be used interchangeably a lot in > PHP but not always. For example: > > This works: > header('Location: http://somedomain.com') > > This does not work: > header('Location: $url') > > This works: > header("Location: $url") > > > Why??? Sorry if this has been asked before, but I > didn't find a suitable answer in the archives. TIA. > > Mike > > __ > Do you Yahoo!? > Yahoo! SiteBuilder - Free, easy-to-use web site design software > http://sitebuilder.yahoo.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PREG-pattern, help needed
Hi Tobias, This matches more than you'd like because [td] will match anything that has a t in it or a d in it. More generally anything in brackets means the RegExp will try to match something from that set. What you might want is this: preg_replace('/]*>/i', ""); The preg replaces or to what you wanted. -d "Tobias Talltorp" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I need help with a preg-pattern for preg_replace_callback(). > > I need to match and replace them with id=$counter>. > > // this pattern is all wrong, since it matches and replaces all tags > echo preg_replace_callback("|(<[td][^>]+>)|i", "bla", $html); > > ?> > > > Any thoughts? > // Tobias -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Looking for a real good editor with some specificfeatrues ...
"Dan Anderson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > 60% of what makes an editor good is familiarity. Take emacs for > instance (http://www.gnu.org/software/emacs/emacs.html). Running PHP > Mode (http://sourceforge.net/projects/php-mode/) I fly through code. > But I've also spent quite a lot of time memorizing the zillion or so > commands to do things automatically. This tends to be my favorite too, because of the auto-indenting when you hit TAB, except I've come to rely on it too much, and it doesn't always work. For example: if ($var = 1) { $p = <
[PHP] Re: ereg
I think this is a lot more complicated than somethign a simple regular expression can handle. You would need to do soemthign that reads the entire file, up until the first occurrence of your '//' and in the meantime do a count that checks to make sure all the quotes are closed. I'd be interested to see what you come up with... although I'm sure just borrowing some syntax highlighting code. -dd "Alexander Sundli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I use this expression to remove oneline comments: > iereg_replace("//([^\n]*)\n",'',$code); > > I need to make a check if this expression is inside a string. If it is, its > not a comment. > > I think it has something to do with context.. > > Anyone who could help me? > > thanx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: No answers found - Why var and why & ?
var $varname before a constructor is just conventional syntax when defining a class. class myClass { var $myThis; function myClass() { } } I'm sure you can do this another way, but it just makes reading the class very easy, and it defines those variables for the entire scope of the class. -dd "André Cupini" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Save all programers! (sorry my "brazilian english") > > I have a simple doubt, but i´m tired because i not found answers... > Why, inside a class, declarare $this variables in a format "var $varname;" > before of a constructor? > And, please, what intend the "&" signal before functions name? > > I know the arguments reference methods like this: > function bla(&$reference_arg) > > But what's the diference of the sintax: > function &bla(&$var) > > Thanks for attention > > -- > André Cupini > Programador - NeoBiz > [EMAIL PROTECTED] > http://www.neobiz.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] LDAP and PHP
I'm having trouble getting LDAP to work with PHP. ldap_connect results in: Fatal error: Call to undefined function: ldap_connect() in /home/davedash/public_html/ldap.php on line 3 and when I compiled I enabled --enable-ldap. Am I missing something else here? I've got openldap installed as well. Thanks for any help :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php