PHP Classes

php 4

Recommend this page to a friend!

      Clean Output  >  All threads  >  php 4  >  (Un) Subscribe thread alerts  
Subject:php 4
Summary:PHP4 version?
Messages:6
Author:jeff coolen
Date:2006-12-18 04:28:00
Update:2006-12-19 23:29:28
 

  1. php 4   Reply   Report abuse  
Picture of jeff coolen jeff coolen - 2006-12-18 04:28:00
When you first released this class, I was excited, and it was php4 compatible.
I had problems with the output, which were fixed in newer versions, but then it went to php5 only.
I'm using a shared server so theres no chance I can upgrade to PHP5.
Is there a version floating around with fixes that will still work for me?

  2. Re: php 4   Reply   Report abuse  
Picture of Jon Gjengset Jon Gjengset - 2006-12-18 15:14:54 - In reply to message 1 from jeff coolen
Hmm..
Unfortunately I don't have enough experience with OOP under PHP4 to know what causes your trouble.. Which error messages are you getting? I could see what I can do if you gave me a list of errors =)

  3. Re: php 4   Reply   Report abuse  
Picture of jeff coolen jeff coolen - 2006-12-18 15:53:42 - In reply to message 2 from Jon Gjengset
Thank you for replying and creating a very useful class...

actually, I have php5 on my local server and just tried installing the current class locally so I could upload remotely and get the php4 errors.
But now, even with php5 I am getting errors
[code]Warning: preg_replace() [function.preg-replace]: Unknown modifier 't' in e:\EasyPHP\www\WACOG\classes\cleanmyhtml.class.php on line 53

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'p' in e:\EasyPHP\www\WACOG\classes\cleanmyhtml.class.php on line 53

Warning: preg_replace() [function.preg-replace]: Unknown modifier 'c' in e:\EasyPHP\www\WACOG\classes\cleanmyhtml.class.php on line 53

Notice: Undefined variable: fixedtext_array in e:\EasyPHP\www\WACOG\classes\cleanmyhtml.class.php on line 66

Warning: implode() [function.implode]: Bad arguments. in e:\EasyPHP\www\WACOG\classes\cleanmyhtml.class.php on line 66

Warning: preg_match() [function.preg-match]: Unknown modifier ')' in e:\EasyPHP\www\WACOG\classes\cleanmyhtml.class.php on line 113[/code]

echoing $current_tag right before line 53 it shows the T P and C as
textarea
pre
code

  4. Re: php 4   Reply   Report abuse  
Picture of Jon Gjengset Jon Gjengset - 2006-12-18 20:11:03 - In reply to message 3 from jeff coolen
Heh, sorry about that, the last update I made created a new error. Try downloading the new version I've put out, and see what PHP4 errors that gives :)

  5. Re: php 4   Reply   Report abuse  
Picture of jeff coolen jeff coolen - 2006-12-19 02:36:50 - In reply to message 4 from Jon Gjengset
getting new warnings with php5
Warning: preg_match() [function.preg-match]: Unknown modifier ')' in e:\EasyPHP\www\WACOG\classes\cleanmyhtml.class.php on line 114

also it is not formatting the <ul></ul> or <li></li> properly

<ul>
<li>
<a href="?action=gid_1" >Home</a></li>

<li>
<a href="?action=gid_95" >Message from the Director</a></li>
<li>
<a href="?action=events" >Events calendar</a></li>


  6. Re: php 4   Reply   Report abuse  
Picture of Jon Gjengset Jon Gjengset - 2006-12-19 23:29:28 - In reply to message 5 from jeff coolen
Hmm.. Strange.. I don't get that error any more..
Try downloading the newest version.. I have updated some other stuff as well, so it will be good to upgrade anyway :)