PHP Tutorials

Whether just getting started or an expert, this vast collection of PHP tutorials will help you create dynamic content for powerful web-based applications in no time.

Results via Envato Market

By Justin Grant on October 24, 2000 If you’ve never seen XSL then you may be thinking “what does this XSL document look like ?”. It’s not very difficult to understand if you’re new to it but I recommed some further study to bring yourself up to speed. Please see…

By Justin Grant on October 24, 2000 <?php /*     XSLTranformer — Class to transform XML files using      XSL with the Sablotron libraries.Justin Grant (2000-07-30)     Thanks to Bill Humphries for the original examples on      using the Sablotron module. */ /* test */ /* $transformer = new XSLTransformer(); if ($transform->setXsl(“http://www.someurl.com/document.xsl”) &&     $transform->setXml(“http://www.someurl.com/document.xml”)) {        $transformer->transform();        echo $transformer->getOutput();     } else {        echo $transformer->getError();     } */ class XSLTransformer {    var $xsl, $xml, $output, $error ; /* Constructor */    function XSLTransformer() {       $this->processor = xslt_create_processor();    }  /* Destructor */    function destroy() {       xslt_destroy_processor($this->processor);    }  /* output methods */    function setOutput($string) {       $this->output = $string;    }    function getOutput() {       return $this->output;    }  /* set methods */    function setXml($uri) {       if($doc = new docReader($uri)) {          $this->xml = $doc->getString();          return true;       } else {          $this->setError(“Could not open $xml”);          return false;…

By Justin Grant on October 24, 2000 Hopefully this all helps somewhat in your quest to implement XML and XSL on your PHP platform. Here are some links that should help you on your way: XML: http://www.w3.org/XML, http://www.xml.com XSL / XSLT: http://www.w3.org/Style/XSL, http://www.xslt.com Here’s some info on obtaining and installing…

By Justin Grant on October 24, 2000 Let’s see a screenshot of what the result of this transform would look like. The image below is the result of reading a “live” XML document from the web instead of the sample shown above, after all having up- to-date news can be…

When I first heard of Zend Studio, I thought, what’s the point in that? There are plenty of (free) PHP IDEs available.