PDA

View Full Version : HMTL code error



Allen
01-Sep-2004, 08:47 AM
I am using Dreamweaver 4.
The code checker is showing that there is a problem with these two lines, (marked in red).
These errors do not seem to interfere with the running og the program but they are an anomaly.
I do not have the knowledge to figure it out.
Can anyone help??

//
// replace paragraphs with new lines (line feeds)
//
$s_str = preg_replace('/<p[^>]*?>/i',$s_line_feed,$s_str);
//
// replace breaks with new lines (line feeds)
//
$s_str = preg_replace('/<br[[:space:]]*\/?[[:space:]]*>/i',$s_line_feed,$s_str);

russellr
01-Sep-2004, 08:57 AM
Hi,

Code checkers are not perfect and for some reason it's looking inside a string and claiming there's something wrong.

The problem is almost certainly that Dreamweaver 4 doesn't understand PHP code.

Apparently Dreamweaver MX does understand PHP.

Are you getting a specific error message or is it just highlighting the code in a different colour?

Allen
02-Sep-2004, 06:42 AM
Just a different colour - seems to make no difference to the operation of the program.

russellr
02-Sep-2004, 06:44 AM
Just ignore it then. :)