anton144
Gebruiker
- Lid geworden
- 5 apr 2008
- Berichten
- 100
Beste Allemaal,
Ik krijg vlg. Foutmelding :
Deprecated: Function split() is deprecated in /var/www/g46304/ mijn domein on line 40
in dit gedeelte van het script :
28 function calendar($theactualmonth){
29 echo '
30 <div class="calendar">
31 <table class="month">
32 <tr><th colspan="7">'.ucwords(str_replace("_", " ", str_replace(".txt", "",$theactualmonth))).'</th></tr>
33 <tr><th>Zo</th><th>Ma</th><th>Di</th><th>Wo</th><th>Do</th> <th>Vr</th><th>Za</th></tr>';
34
35 $fp = fopen('dates/'.$theactualmonth,'r');
36 if (!$fp) {echo 'ERROR: Unable to open file.</table></div></body></html>'; exit;}
37
38 while (!feof($fp)) {
39 $line = fgets($fp,1024);
40 list ($field1, $state1, $field2, $state2, $field3, $state3, $field4, $state4, $field5, $state5, $field6, $state6, $field7, $state7,) = split ('\|', $line);
41 echo '
42 <tr>
43 <td class="'.$state1.'">'.$field1.'</td>
44 <td class="'.$state2.'">'.$field2.'</td>
45 <td class="'.$state3.'">'.$field3.'</td>
46 <td class="'.$state4.'">'.$field4.'</td>
47 <td class="'.$state5.'">'.$field5.'</td>
48 <td class="'.$state6.'">'.$field6.'</td>
49 <td class="'.$state7.'">'.$field7.'</td>
50 </tr>';
51 $fp++;
52 }
53
54 fclose($fp);
55 echo '</table></div>';
56
57 } // end the calendar function
58
Wie ziet het, ik even niet meer, heb al van alles geprobeert.
Bij voorbaat mijn dank.
Anton144
Ik krijg vlg. Foutmelding :
Deprecated: Function split() is deprecated in /var/www/g46304/ mijn domein on line 40
in dit gedeelte van het script :
28 function calendar($theactualmonth){
29 echo '
30 <div class="calendar">
31 <table class="month">
32 <tr><th colspan="7">'.ucwords(str_replace("_", " ", str_replace(".txt", "",$theactualmonth))).'</th></tr>
33 <tr><th>Zo</th><th>Ma</th><th>Di</th><th>Wo</th><th>Do</th> <th>Vr</th><th>Za</th></tr>';
34
35 $fp = fopen('dates/'.$theactualmonth,'r');
36 if (!$fp) {echo 'ERROR: Unable to open file.</table></div></body></html>'; exit;}
37
38 while (!feof($fp)) {
39 $line = fgets($fp,1024);
40 list ($field1, $state1, $field2, $state2, $field3, $state3, $field4, $state4, $field5, $state5, $field6, $state6, $field7, $state7,) = split ('\|', $line);
41 echo '
42 <tr>
43 <td class="'.$state1.'">'.$field1.'</td>
44 <td class="'.$state2.'">'.$field2.'</td>
45 <td class="'.$state3.'">'.$field3.'</td>
46 <td class="'.$state4.'">'.$field4.'</td>
47 <td class="'.$state5.'">'.$field5.'</td>
48 <td class="'.$state6.'">'.$field6.'</td>
49 <td class="'.$state7.'">'.$field7.'</td>
50 </tr>';
51 $fp++;
52 }
53
54 fclose($fp);
55 echo '</table></div>';
56
57 } // end the calendar function
58
Wie ziet het, ik even niet meer, heb al van alles geprobeert.
Bij voorbaat mijn dank.
Anton144
Laatst bewerkt: