Re: [PHP] html parsing

2007-11-08 Thread Ron Croonenberg
:41, Ron Croonenberg wrote: ok I wrote something quick and dirty real quick: But somehow it doesn't seem to like recursion. Is there something special one needs to do in php ? Recursive functions work just fine in PHP. What's the error message? As far as I can see, there's nothing wrong

Re: [PHP] html parsing

2007-11-08 Thread Ron Croonenberg
Hi Per, the pages are templates. depending on some variables either one page shows up, or another without links in the address bar changing etc. Ron Per Jessen wrote: Ron Croonenberg wrote: I think the problem is that I read the lines in PHP, I read them with fgets and output them

[PHP] html parsing

2007-11-07 Thread Ron Croonenberg
Hello, I have a script that ads data to a html template. However when there is an include in the html like: !--#include file=include/header.sinc -- it is not processed, but just ends up as a string in the page. So I guess it needs to be parsed. Is there an easy way to do that ? thanks, Ron

Re: [PHP] html parsing

2007-11-07 Thread Ron Croonenberg
ok I wrote something quick and dirty real quick: But somehow it doesn't seem to like recursion. Is there something special one needs to do in php ? here's the code snippet: function parsehtmlline($line) { if (strlen(strstr($line, #include)) == 0 strlen(strstr($line, !--)) == 0) { /*

Re: [PHP] html parsing

2007-11-07 Thread Ron Croonenberg
like a char. until there's a server side include in the html page. (ssi's work in both html and in php) I tried to use ?php include(that.file); ? but that doesn't seem to work Tom Ray [Lists] wrote: Ron Croonenberg wrote: Hello, I have a script that ads data to a html template

Re: [PHP] html parsing

2007-11-07 Thread Ron Croonenberg
OR convince the apache server to parse it for me. Ron Casey wrote: Can you just change it to ?php include('include/header.sinc); ? ? On Nov 7, 2007, at 7:24 PM, Ron Croonenberg [EMAIL PROTECTED] wrote: Hello, I have a script that ads data to a html template. However when

[PHP] php bar/graph scripts/library

2007-03-15 Thread Ron Croonenberg
hello all, I am looking for some scripts/libraries etc to produce some bar graphs etc. Does anyone know of something nice (that works on Linux) thanks, Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php