Re: [PHP-WIN] Presenting code snipetts in standard PHP colours -THANKS

2004-12-09 Thread Ross Honniball
Thank you to all who replied to my question. The perfect solution for me was the highlight_string function. Bril. Thanks again ... Ross. X-Originating-IP: [210.213.222.149] X-Originating-Email: [EMAIL PROTECTED] X-Sender: [EMAIL PROTECTED] From: "OJ Tibi" <[EMAIL PROTECTED]> To: "Ross Honniball"

RE: [PHP-WIN] Presenting code snipetts in standard PHP colours

2004-12-09 Thread Tony Devlin
PHP's website (http://www.php.net) has a great solution to displaying source code. If you view the source code on their site you can see how they do it. It's just a basic function to loop through the text and place in code to highlight in various places. In fact here is that portion of code: fun

[PHP-WIN] fopen and ftp, help please

2004-12-09 Thread Iker Landajuela
Hi, I´m newbie in PHP programming. Iit´s about opening files in an ftp with php, I have the same problem like you, mi script opens the file correctly the first time but no longer, what`s the problem? Thanks. if(!($filehandle=fopen("ftp://user:[EMAIL PROTECTED]/html/BIOCAB/".$CFG['Fi leLogTrac

Re: [PHP-WIN] fopen and ftp, help please

2004-12-09 Thread Luis Moreira
Do you close the file after using it ? If not, it may get stuck. Luis Iker Landajuela wrote: Hi, I´m newbie in PHP programming. Iit´s about opening files in an ftp with php, I have the same problem like you, mi script opens the file correctly the first time but no longer, what`s the problem? Thank

[PHP-WIN] Presenting code snipetts in standard PHP colours

2004-12-09 Thread Ross Honniball
Hi all, What is the easiest way to get a web page to list source code with standard colour high-lighting (as used in my php_manual_el.CHM file and as you see on various php web pages about the place). Is there a class or a function or something that anyone knows of? Thanks ... Ross . . Ross Honn