Warning: GLOBAL variable declaration meaningless in main() scope in psettings.php on line 31
Fatal error: Call to unsupported or undefined function getpolldata() in poll.php on line 41
naja die warnings boeien opzich niet zoveel want ze zijn niet fatal..
maar die laatste is wel erg
op line 41 van poll.php bevin zich dit
en onderaan de php file bevnid zich dit
Fatal error: Call to unsupported or undefined function getpolldata() in poll.php on line 41
naja die warnings boeien opzich niet zoveel want ze zijn niet fatal..
maar die laatste is wel erg
op line 41 van poll.php bevin zich dit
PHP:
1
2
3
| <? GetPollData(); ?> |
en onderaan de php file bevnid zich dit
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
| <? function GetPollData() { global $totalvotes,$lockit,$questions, $votes, $percent, $ips, $totalips; $fp3 = fopen("polldata.txt","r"); $values = fgets($fp3,4050); $values = str_replace ("\n", "", $values); list ($totalvotes, $lockit) = split(":",$values); $totalvotes = trim($totalvotes); $lockit = trim($lockit); if ($lockit == 0 || $lockit == 2) { for ($i = 1; $i <= $questions; $i++) { $values = fgets($fp3,4050); $values = str_replace ("\n", "", $values); $votes[$i] = split(":" , $values); } $totalips = fgets($fp3,4050); $totalips = trim($totalips); if ($totalips != 0) { $values = fgets($fp3, 35*$totalips); $ips = split(":",$values); } } fclose ($fp3); } ?> |