Profile
Achievement
 
    
                iroybot's Recent SnippetsTagged php
- All /
 « Prev 1 Next »
easy way of catching and displaying errors and return values from a exec() command  back in PHP.
        
        
        
            0 
        
        
            1340 
        
                    posted 13 years ago by iroybot
            easy way of catching and displaying errors and return values from a exec() command  back in PHP.
        
        
        
            0 
        
        
            1466 
        
                    posted 13 years ago by iroybot
            Simplepie per default uses relative paths to generate the cache filename. Whenever I  use Simplepie I run into the same problem, that the cache directory can't be located. This is why I modify the file everytime. Here's my version (with a hardcoded p...
        
        
        
            0 
        
        
            2431 
        
                    posted 13 years ago by iroybot
            Turns a Zend_Form object into XML data. Click the associated link to see an Example XML result and a XSL Stylesheet used to display regular HMTL.
        
        
        
            1 
        
        
            1587 
        
                    posted 14 years ago by iroybot
            I'm using this out of laziness.
PHP is slowing things down here, since it's not as close to C as XPath.
A better solution would be to have an attribute specifically for search purposes (either in upper or lowercase).
        
        
        
            0 
        
        
            1305 
        
                    posted 14 years ago by iroybot
            replacing single quotes with its (double-escaped) entity, for use of a text within xsl.
        
        
        
            2 
        
        
            3876 
        
                    posted 15 years ago by iroybot
            courtesy of mark8barnes (http://wordpress.org/support/profile/52354)
        
        
        
            1 
        
        
            1405 
        
                    posted 15 years ago by iroybot
            this comes from YAPB plugin for WordPress. kudos to the author.
(there are some functions that are deprecated in PHP 5.2+ - you'll need to replace eregi with the mb_ version). This should be quite failsafe, regardless if curl is installed or the set...
        
        
        
            1 
        
        
            1545 
        
                    posted 16 years ago by iroybot
            i know these regex stuff is rather slow, but still i like having slim documents. (don't forget to use gzip compression on all text docs)
        
        
        
            3 
        
        
            1429 
        
                    posted 16 years ago by iroybot