+ Reply to Thread
Results 1 to 4 of 4

Thread: Whats wrong with this PHP?

  1. #1
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Whats wrong with this PHP?

    PHP Code:
    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 by galaxyAbstractor; 11-02-2007 at 03:07 PM.

  2. #2
    Bryon is offline Administrator Bryon has disabled reputation
    Join Date
    Apr 2005
    Location
    Northfield, NH
    Posts
    7,608

    Re: Whats wrong with this PHP?

    What is 'munin()' and what is 'security/' ?

  3. #3
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Re: Whats wrong with this PHP?

    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.

  4. #4
    Thewinator is offline x10 Lieutenant Thewinator is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    [NL]
    Posts
    256

    Re: Whats wrong with this PHP?

    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/');



+ Reply to Thread

Similar Threads

  1. tons of PHP Resources
    By Chris S in forum Scripts & 3rd Party Apps
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  2. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM
  3. Sigo con problemas con phpbb2
    By reciecho in forum Soporte
    Replies: 7
    Last Post: 10-20-2007, 06:28 PM
  4. "PHP Startup: Invalid Library" - Interesting error
    By javaguy78 in forum Free Hosting
    Replies: 5
    Last Post: 03-27-2007, 02:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers