Ik heb de volgende phpcode die in een class zit:
Maar nu krijg ik steeds de volgende error:
En ik kan er niet echt achterkomen wat k nu precies fout doe...
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
| <? $string = preg_replace("/(\\[php\])(.*)(\\[\/php\])/Uise",$this->Highlight('<?\\1?>'),$string); function Highlight($post) { $post = stripslashes($post); $split = split("\n", $post); $size = count($split); $new_post = "<table bgcolor=\"#ffffff\" bordercolor=\"black\" cellspacing=\"0\" width=\"100%\" style='border: 1px solid black'>"; for($i = 0; $i < $size; $i++) { $t = $i + 1; $post = highlight_string($post, true); $new_post .= "<tr><td bgcolor=\"#CCCCCC\" align=\"right\" width=\"14\"> <font face=\"verdana\" size=\"1\">".$t."</font></td>"; if($t < 2) { $new_post .= "<td style='padding-left: 5px' rowspan=\"10000\" valign=\"top\">".$post."</td>"; } $new_post .= "</tr></table>"; } return $new_post; } ?> |
Maar nu krijg ik steeds de volgende error:
code:
1
2
3
4
5
| Parse error: parse error, unexpected '<' in d:\phpdev\www\masterbb\version 1\forums\source\ functions.php(480) : regexp code on line 1 Fatal error: Failed evaluating code: 1 <?1?> in d:\phpdev\www\masterbb\version 1\forums\source\functions.php on line 480 |
En ik kan er niet echt achterkomen wat k nu precies fout doe...