RE: [PHP] OOP and xml_set_element_handler
have a look to the function xml_set_object in the doc: http://www.php.net/manual/en/function.xml-set-object.php -Original Message- From: Christof Rath [mailto:[EMAIL PROTECTED]] Sent: jeudi 27 juin 2002 23:19 To: [EMAIL PROTECTED] Subject: [PHP] OOP and xml_set_element_handler Is it possible to call xml_set_element_handler() with a class function like: xml_set_element_handler($parser, $this-startElement, $this-endElement); thx Christof Rath -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Seperating presentation from logic
personnaly, I agree with you, and I would really like to see more PHP frameworks (or template systems) rely on XML/XSLT. you can have a look at : http://www.interakt.ro/products/Krysalis/ it's a sort of rewrite of cocoon in PHP ... I had a look to the code, but never used it yet on a real project. looks interesting ... -Original Message- From: Jerome Houston [mailto:[EMAIL PROTECTED]] Sent: mardi 25 juin 2002 20:51 To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] Seperating presentation from logic Is there a particular reason everyone is skipping over the idea of using XML/XSLT? What you're talking about is EXACTLY what XSLT was designed for. You can write scripts that access the DB, and output XML. Then you just use XSL files written by your designers to translate your XML into HTML. they get to choose EVERYTHING about what the page looks like. Granted, your designers need to learn a little XSL, but it sounds like, for what you're doing, they wouldn't need to learn much. If you're going to teach them to use something proprietary like pattemplate (as mentioned below), why not spend that time teaching them to use XSL, which is easy to use and isn't proprietary, it's actually W3 specified. for info on how to get it working with php, go to: http://www.webmasterbase.com/article/602 some people may disagree. -jerome Basically, like someone else said, you teach your HTML designers to use custom tags that your template engine will recognize and place the correct values for. To make a loop, you'd tell your designers to do something like this table pattemplate:loop trtda href='{download_link}'{filename}/a/td/tr /pattemplate:loop It's not exactly like that, mind you, but you get the idea. You can't ever completely separate you designers and programmers. What you do is provide an easy to understand way for your designers to include the programming elements. What's easier, teaching them to put ?=$_POST['name']? or {name} in the document??? _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Web Services
you should use PEAR-SOAP ... there is also a php mailing list dedicated to the soap extension development ([EMAIL PROTECTED]) -Original Message- From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] Sent: mercredi 26 juin 2002 17:11 To: Laurent Drouet Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Web Services I've used Dietrich's SOAP implementation for PHP and have been able to use only with specific type of webservices (soap:binding style=rpc... and soap:body use=encoded...). Unfortunately your service has style=document and use=literal, so I'm not sure about it. It can be found at: http://dietrich.ganx4.com/nusoap/index.php cheers, thalis On Wed, 26 Jun 2002, Laurent Drouet wrote: Hi the ML I would like to know if there is a way to request data from a web services for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx using php without java ? If yes do you have some examples ? regards Laurent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Web Services
you can get the entire php code with examples from the pear cvs repository -Original Message- From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] Sent: mercredi 26 juin 2002 17:35 To: phpsurf Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Web Services I looked in pear.php.net and I couldn't find it. Also http://www.soapware.org/directory/4/implementations links PEAR-SOAP to http://pear.php.net There is only a m-list? On Wed, 26 Jun 2002, phpsurf wrote: you should use PEAR-SOAP ... there is also a php mailing list dedicated to the soap extension development ([EMAIL PROTECTED]) -Original Message- From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]] Sent: mercredi 26 juin 2002 17:11 To: Laurent Drouet Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Web Services I've used Dietrich's SOAP implementation for PHP and have been able to use only with specific type of webservices (soap:binding style=rpc... and soap:body use=encoded...). Unfortunately your service has style=document and use=literal, so I'm not sure about it. It can be found at: http://dietrich.ganx4.com/nusoap/index.php cheers, thalis On Wed, 26 Jun 2002, Laurent Drouet wrote: Hi the ML I would like to know if there is a way to request data from a web services for example http://glkev.net.innerhost.com/glkev_ws/Currencyws.asmx using php without java ? If yes do you have some examples ? regards Laurent -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] using extract inside an object
Hi does anyone know how to use the function extract inside an object, so as the created variables become attributes of the object ? a little example to be more explicit :) I have the following array: Array ( [one] = 1 [two] = 2 ) that I would like to transform into the following object stdClass Object ( [one] = 1 [two] = 2 ) any idea ? I though I could use someway the function extract, for example by using the prefix this- class someObj { function someObj($someArray) { extract($someArray, EXTR_PREFIX_ALL, this-); } } but it doesn't work ! __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] using extract inside an object
great ! I should have thought about that ! :) and any idea of how to cast into a specific class instead of stdClass ? -Original Message- From: Remy Dufour [mailto:[EMAIL PROTECTED]] Sent: vendredi 21 juin 2002 15:21 To: phpsurf; [EMAIL PROTECTED] Subject: Re: [PHP] using extract inside an object Try this $a = array('one'=1, 'two'=2 ); $b = (object)$a; I have the following array: Array ( [one] = 1 [two] = 2 ) that I would like to transform into the following object stdClass Object ( [one] = 1 [two] = 2 ) any idea ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] overload extension doesn't load on PHP 4.2.1 + win2k
everything is in the subject :) the error message on apache startup is: Invalid library (maybe not a PHP library) 'php_overload.dll' anyone had this problem ? here is my phpinfo: PHP Version 4.2.1 System Windows NT 5.0 build 2195 Build Date May 12 2002 23:51:56 Server API Apache Virtual Directory Support enabled Configuration File (php.ini) Path C:\WINNT\php.ini Debug Build no Thread Safety enabled __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP Development Mailing List http://www.php.net/ To unsubscribe, visit: http://www.php.net/unsub.php __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Is there a replicate function in PHP
have look at the function 'str_pad' http://www.php.net/manual/en/function.str-pad.php -Original Message- From: Lazor, Ed [mailto:[EMAIL PROTECTED]] Sent: vendredi 21 juin 2002 17:57 To: 'Don'; php list Subject: RE: [PHP] Is there a replicate function in PHP I don't know if the function exists, but it should be easy to create. Something like this: function replicate($Repeat, $RepeatCount) { $Results = ; if ( ($RepeatCount 1) or ($Repeat == ) ) return false; for ($i=0; $i $RepeatCount;$i++) $Results .= $Repeat; return $Results; } -Original Message- I'd like to print one or more specific characters many times. For example, let's say I'd like to display the '*' 50 times on one line. Is there a function that will do this? Something like: ? replicate('*',50); ** ** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php __ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php