Script doet helemaal niets. Begrijp er helemaal niets van, op pc wel, op webserver weigert hij....
Maar waarom hij het lokaal wel doet, maar op server niet???? Het is mij in ieder geval een raadsel
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
| //begin config $spsnr = '2'; $spstitle = ''; # big title $spsaddposttitle = 'Voeg toe'; # internal link message $spscommentadd = 'Toegevoegd door'; # first words of postingadd $spson = 'op'; # the on between for the date display $spscommenttext = 'Bericht'; # commenttext (form) $spsnicktext = 'Naam'; # nicktext (form) $spsaddcom = 'Voeg toe'; # submit button value $spsmustaddnick = 'Je moet een nickname opgeven'; # text when not adding nick $spsback = 'Vorige'; # text for link 'back' $spsaddvalidemail = 'Please add a valid email !'; # text for adding valid email ! $spsmustaddcomment = 'You must add a comment !'; # text for adding comment ! $spsstringlength = '80'; # how long can a word be (for spammers !) - 80 is about as long as 600 pixels (in most browsers with default settings) $spsstringlengthwarning = "Trying to be funny eh ..."; # warning for spammers $spsnewer = 'Vorige'; $spsolder = 'Volgende'; $spswidth = '100'; # lenght of line and table $spstags = '<b>,<u>,<a>,<i>'; # allowed tags in textarea $spsallowedtags = 'Allowed tags'; # text to allow tags ... $spsurl = 'y'; # y or no for input area for url $spshomepage = 'Homepage'; # text for the url ... //end config if (!isset($HTTP_GET_VARS['old'])) $old = ''; else $old = $HTTP_GET_VARS['old']; if (!isset($HTTP_GET_VARS['new'])) $new = ''; else $new = $HTTP_GET_VARS['new']; if (!isset($HTTP_GET_VARS['op'])) $HTTP_GET_VARS['op'] = ''; # count number of files $aantal = ''; $handle=opendir('data/test/'); while (false!=($file = readdir($handle))) { if ($file != "." && $file != "..") { $aantal++; } } closedir($handle); if ($aantal != 0){ if (!isset($old)) $old = ''; if (!isset($new)) $new =''; # now get the postings depending on $spsnr in config-file $down = $spsnr; if (!$old && !$new) { $aant = $aantal; } if ($old) { $aant = $old; } if ($new) { $aant = $new; } while ($down != 0){ $fp = fopen ("data/test/".$aant.".txt","r"); $i = 0; while (!feof($fp)) { $cont = fgets($fp, 1000); $cont = stripslashes($cont); echo $cont; $i++; } $down--; $aant--; if ($aant == 0) { $down = 0; } fclose($fp); } echo "<table class='pri'> <tr> <td class='achtergrond'>"; # newer postings if ($old){ $get = $old+$spsnr; echo"<div class='newstext'><a href=page.php?page=test&new=$get><==</a> ".$spsnewer; } if ($new AND $aantal != $new){ $get = $new+$spsnr; echo "<a href=page.php?page=test&new=$get><==</a> ".$spsnewer; } # older postings if ($down != $aant) { $oldaant = $aant; echo "".$spsolder." <a href=page.php?page=test&old=$oldaant>==></a>\n"; } } echo "</div> </td> </tr> </table>"; ?> |
Maar waarom hij het lokaal wel doet, maar op server niet???? Het is mij in ieder geval een raadsel