[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
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 = EOF TEST EOF; } will indent things within the here doc '' statement. -dd -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[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: 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('/td[^]*/i', td id='$counter'); The preg replaces td or td with stuff inside 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 td(+all properties) and replace them with td 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
[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] 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)OF1E[EMAIL PROTECTED]AI;B!S;VQI9#L*6UAF=I;BUL969T M.B T)3L*6UAF=I;BUR:6=H=#H@,R4[@EM87)G:6XM8F]T=]M.B Q96T[ M@EW:61T:#H@,C4E.PH)%D9EN9SH@,#L*71E'0M86QI9VXZ(-E;G1E MCL*69L;V%T.B!L969T.PH)8F%C:V=R;W5N9UC;VQOCH@(T1$1#L*69O M;G0MVEZ93H@VUA;P[GT*BYC86QE;F1AB N;6]N=@@PH)9F]N=US M:7IE.B!S;6%L;#L*69O;G0M=V5I9VAT.B!B;VQD.PH)9ESQA3IB;]C M:SL*6)OF1EBUB;W1T;VTZ('1H:[EMAIL PROTECTED]]T=5D.PH)=5X=UD96-OF%T M:6]N.B!N;VYE.PH)8V]L;W(Z()L86-K.PI]@HN9%Y+ N9W)A2![@EF M;VYT+69A;6EL[EMAIL PROTECTED][EMAIL PROTECTED]!!FEA;[EMAIL PROTECTED]5L=F5T:6-A M+!S86YS+7-EFEF.PH)9F]N=US:7IE.B!S;6%L;#L*7=I9'1H.B Q,B4[ M( H)=5X=UA;EG;[EMAIL PROTECTED]5R.PH)9FQO870Z(QE9G0[@EM87)G:6XM M;5F=#H@,B4[@EM87)G:6XMFEG:'0Z(# [@EP;W-I=EO;CIS=%T:6,[ M( H)9ESQA[EMAIL PROTECTED]( I]@HN9W)A2![@EC;VQOCH@(S8V-CL* M?0H*(W-E;5C=5D('L*6)OF1E[EMAIL PROTECTED]AI;B!D;[EMAIL PROTECTED]GT* MB-T;V1A2![@EC;VQOCH@F5D.PH)8F%C:V=R;W5N9UC;VQOCH@(V5E M93L*69O;G0M=V5I9VAT.B!B;VQD.PI]@HN8V%L96YD87(@+FAE860@PH) M9F]N=UW96EG:'0Z()O;0[@ET97AT+6%L:6=N.B!C96YT97([GT*BYC M86QE;F1AB N=V5E:R![@EC;5A[EMAIL PROTECTED]:#L*7=I9'1H.B Q,# E.PI] M@HN8V%L96YD87(@+F9O;W1EB![@EB;W)D97(M=]P.B!T:EN(1O='1E M9#L*6-L96%R.B!B;W1H.PH)%D9EN9RUL969T.B N,V5M.PH)%D9EN M9RUR:[EMAIL PROTECTED];3L*?0H*+F-A;5N9%R(YF;V]T97(@82![@EC;VQO M[EMAIL PROTECTED]@ET97AT+61E8V]R871I;VXZ(YO;F4[GT*BYL969T('L* M69L;V%T.B!L969T.PI]BYR:6=H=![@EF;]A=#H@FEG:'0[GT*BYT M:6UE('L*6UAF=I;BUL969T.B R96T[@EM87)G:6XMFEG:'0Z(#)E;3L* L6-O;]R.B C,#!.PH)=5X=UD96-OF%T:6]N.B!U;F1EFQI;F4[GT` ` end begin 666 calendar.class.php M/#]P:' @[EMAIL PROTECTED](H)1FEL93H)8V%L96YD87(N[EMAIL PROTECTED]@E3:[EMAIL PROTECTED] MEN9')O!/;FQI;[EMAIL PROTECTED];VEN=UE;[EMAIL PROTECTED]@T*(H)1%T93H) M,3,@15C96UB97(@,C P,@T*(H)075T:[EMAIL PROTECTED]($1A[EMAIL PROTECTED]B J0T* M(H)5AIR!C;%SR!D:7-P;%YR!A;B!82%1-3]#4U,@8V%L96YD87(L M(ET)W,@=[EMAIL PROTECTED]@=7-E9!W:71H( T*(H)8V%L96YD87([EMAIL PROTECTED] MB\O,C,T-38W.#DP,3([EMAIL PROTECTED],#$R,S0U-CX.3 Q,C,T-38W.#DP,3(S [EMAIL PROTECTED],#$R,S0U-CX.3 Q,C,T-38W.#DP,3(S-#4V#0HO*BH-B J4-A M;5N9[EMAIL PROTECTED]@T*(H)5AIR!C;%SR!IR!A;B!82%1-3!C86QE;F1A MBX@(%EO=2!C86X@V5L96-T('1H92!M;VYT:P@V5T(QI;FMS+ -B J M65T8RX-B J4ET(-A;B!A;'-O(=R97D@;W5T(1A=5S(9OB!P87-T M(1A7,L(5T8RX-B J+PT*#0HD;FP@/2 B7XB.PT*)'1A8B ]()=([ M#0H-F-L87-S($-A;5N9%R('L-@EV87(@)QI;FL[0D)[EMAIL PROTECTED])R87D@ M;[EMAIL PROTECTED]),R!F;W(@96%C:!D871E(HO#0H)=F%R(1D97-CFEP=EO;CL) [EMAIL PROTECTED])R87D@;[EMAIL PROTECTED]5S8W)I'1I;VYS(9OB!E86-H(1A=[EMAIL PROTECTED]@EV M87(@)UO;G1H.PD)2\J(UO;G1H(]F('1H:7,@8V%L96YD87(@*B\-@EV M87(@)'EE87([0D)+RH@65AB!O9B!T:ES(-A;5N9%R(HO#0H)=F%R M(1F;V]T97([0DO*B!A(9O;W1EB!T;R!G;R!B96QO=R!T:[EMAIL PROTECTED] M87(@*B\-@EV87(@)9O;W1ED1ICL)2\J(QE9G0@;W(@FEG:'[EMAIL PROTECTED] M@EV87(@)UO;G1H3EN:SL)2\J('5R;!M;VYT:!G;V5S('1O(HO#0H) M=F%R(1D871E.PD)2\J(9IG-T(]F('EE87(@*B\-@EV87(@)'-E;5C M=5D1%Y.PDO*B!T:[EMAIL PROTECTED]%Y(]F(-H;VEC92 J+PT*0T*69U;F-T:6]N M($-A;5N9%R*1M;VYT: ]($Y53$PL(1Y96%R([EMAIL PROTECTED],3P@)'1Z(#T@ M)T-35#9#1%0G*0T*7L-@D)'5T96YV*)46CTD='HB*3L-@D)#0H)6EF M(@D;6]N=@@/[EMAIL PROTECTED],3D@PT*0D))UO;G1H([EMAIL PROTECTED][EMAIL PROTECTED];BI.R O M+R!T:ES(UO;G1H#0H)7T-@D):[EMAIL PROTECTED]1Y96%R(#T]($Y53$PI('L-@D) M21Y96%R([EMAIL PROTECTED][EMAIL PROTECTED]I.PDO+R!T:ES('EE87(-@D)?0T*0DD=AI MRT^;6]N=@@/2 D;6]N=@[#0H)21T:ES+3YY96%R(#T@)'EE87([#0H) M21T:ES+3YD871E(#T@;6MT:6UE*# L(# L(# L(1M;VYT:P@,2P@)'EE M87(I.R O*B QW0@;V8@7(@*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@)1A2P@)'EE87(I.PT*7T-@EF=6YC=EO;B!S M971,:6YK*1D87DL(1L:6YK+ D95S8R ]($Y53$PI#0H)PT*0DD=AI MRT^;EN:ULD9%Y72 ](1L:6YK.PT*0EI9B H:7-S970H)1EV,I*2![ M#0H)0DD=AIRT^95S8W)I'1I;VX@/2 D95S8SL-@D)?0T*[EMAIL PROTECTED] M;G-EG1,:6YK#0H)#0H)+RHJ#0H)(H)V5T3EN:T)AV5D3VY$87D-@D@ [EMAIL PROTECTED]2 J7-E=',@[EMAIL PROTECTED]:]R('1O([EMAIL PROTECTED]),(%N9!R97!L86-ER!P M87)T(]F('1H92!54DP-@[EMAIL PROTECTED]@EW:71H('1H92!C=7)R96YT(1A0T*2 J M+PT*69U;F-T:6]N('-E=$QI;FM87-E9$]N1%Y*1UFPI('L-@D))1I M;2 ](1A=4H)W0G+ D=AIRT^9%T92D[(\J(1A7,@:6X@;6]N=@@ M*B\-@D)#0H)69OB H)D@/2 Q.R D:2 \/2 D9EM.R D:2LK*2![#0H) M0DD=AIRT^;EN:ULD:5T@/2!S=')?F5P;[EMAIL PROTECTED])RPD:2PD=7)L M*3L-@D)?0T*7T-@T*69U;F-T:6]N('-E=$UO;G1H3EN:[EMAIL PROTECTED];EN:RD- M@E[#0H)21T:ES+3YM;VYT:$QI;FL@/2 D;EN:SL-@E]#0H)9G5N8W1I M;VX@V5T1F]O=5R*1F;V]T97(L(1D:7)E8W1I;VXI( T*7L-@D))'1H M:7,M/F9O;W1EB ](1F;V]T97([#0H)21T:ES+3YF;V]T97)$:7(@/2 D M9ER96-T:6]N.PT*7T-@D-@EF=6YC=EO;B!S%N*1C;%SRP@)'-T MFEN9RP@)ED/4Y53$PI( T*7L-@D))'(@(#T@)SQS%N(-L87-S/2(G M(X@)-L87-S+B G(B[( T*0EI9B