Whats wrong with this PHP?

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
PHP:
require(security/munin.php);
munin(security/);

I get:
Unexpected ")" on Line 12
When I put it on one php page. But every other php page it works fine. Like it works on index.php but not on bb3portal.php

This piece of code only works on 2 of 6 php pages I've tested it on. Should I replace it with something else???
 
Last edited:

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
What is 'munin()' and what is 'security/' ?
 

galaxyAbstractor

Community Advocate
Community Support
Messages
5,508
Reaction score
35
Points
48
the security/ is the folder there I have a piece of code that block the spammers for me. The script is called "munin". I talked with the owner and he says it will block DDoS attacks, spambots and wrong IPs to connect to my site.
 

Thewinator

New Member
Messages
256
Reaction score
0
Points
0
both the require and munin function should have the file and directory respectively in quotes to mark them as strings.
like this:
Code:
require('security/munin.php');
munin('security/');
 
Top