Jump to content

Adam

Moderators
  • Posts

    5,717
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Adam

  1. This would do effectively the same thing: "One Piece ([0-9])\.mkv$" I barely ever use eregi() so I don't really know what that error message is talking about. How do you have the code setup exactly?
  2. I'd definitely use PEAR's "Spreadsheet_Excel_Writer" if you can. This seems like a good tutorial.
  3. I doubt it, probably too invasive?
  4. I was giving him the wrong answer at first, look at the regex in his first post; there's more to it. Did you manage to get it working? I just noticed you also have .mkv within the regex, this would need to be \.mkv - as you need to escape the dot with a blackslash to use it literally. '?!' as far as I understand means like 'does not equal this'. My regex terminology isn't great!
  5. When dot is used literally it needs to be escaped with a backslash, i.e: ([0-9,\.]+)
  6. I don't think $newcc is an array, which suggests the script's not getting to: $newcc[]=$temp_; Add some debugging within each of the 'foreach' and 'if' braces one by one till you find where the script stops.
  7. Ha.. makes it all worth while.
  8. I think "$links=array($phpURL,$fixedURL);" was just illustrating his multi-dimensional array?
  9. Give this a bash... foreach ($links as $key => $link) { $phpURLs[$key] = $link[0]; $fixedURLs[$key] = $link[1]; }
  10. Oh, how large is the image? There's a 2MB upload limit on your remote host, which is pretty low. I know 2MB images aren't common, but it's possible!
  11. What's in 'config.php'? Perhaps there's something server-specific in there causing the failure...
  12. I imagine it's something to do with having the function twice? Try searching through all the related files for "function fetch(" (no quotes) and locating which file fetch() was originally stored in, then include it! Probably what's happening is your putting it in setup.php, but another script uses that too which does include fetch, and so gives an error. If that makes sense?
  13. There's multiple references to fetch(); just add MadTechie's function to avoid any confusion.
  14. $check_ip = mysql_query("Select * from $tab[bannedip] where ip = '$userip'"); if (mysql_num_rows($check_ip) > 0) { echo "<html><body><script language=javascript1.1>alert('Your IP Address Was Banned!');</script><noscript>Your browser doesn't support JavaScript 1.1 or it's turned off in your browsers preferences.</noscript></body></html>"; exit; } Was meant to be a swap for: if (fetch("Select * from $tab[bannedip] where ip = '$userip';")) { echo "<html><body><script language=javascript1.1>alert('Your IP Address Was Banned!');</script><noscript>Your browser doesn't support JavaScript 1.1 or it's turned off in your browsers preferences.</noscript></body></html>"; exit; }
  15. Fair enough. Add: ini_set('display_errors', 1); error_reporting(E_ALL); To the very top of your script.
  16. <?php phpinfo(); ?> That will tell you what version is running, put it in a file and run on both servers. Why do you run the exact same code on 2 pages?
  17. What version of PHP is running on each server? What's the code for the "createThumbnail" function? Most likely you're trying to use some function on your remote hosting that is either disabled, or not available with that version of PHP.
  18. What's in "conn.php"? You'll need to either re-write the fetch() function, or change it to a normal query: $check_ip = mysql_query("Select * from $tab[bannedip] where ip = '$userip'"); if (mysql_num_rows($check_ip) > 0) { echo "<html><body><script language=javascript1.1>alert('Your IP Address Was Banned!');</script><noscript>Your browser doesn't support JavaScript 1.1 or it's turned off in your browsers preferences.</noscript></body></html>"; exit; }
  19. Yeah as jxrd was getting at fetch() isn't defined anywhere, so when you tried to call it in setup.php on line 77 it wasn't found and triggered the error there. Is this re-used code?
  20. Your buffer is backwards...
  21. That's not a question...
  22. I have no idea...
  23. It tells you the problem: 'Call to undefined function fetch()' ? Looks like a custom database function to query a database and return the rows. Are you sure the function is included into your code? It's not in any of the code you supplied, what's in "funcs.php"?
  24. You wouldn't use the dot character in this case, you'd just say like 'any character except these': [^buias]+
  25. if (!preg_match('/action=[^&]+/', $str, $matches)) { // no action } else { print_r($matches); } That will return something like "action=blah_blah". If you add in some brackets to the regex you can return the value of action as well, like this: /action=([^&]+)/
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.