-
Posts
5,717 -
Joined
-
Last visited
-
Days Won
6
Everything posted by Adam
-
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?
-
I'd definitely use PEAR's "Spreadsheet_Excel_Writer" if you can. This seems like a good tutorial.
-
I doubt it, probably too invasive?
-
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!
-
When dot is used literally it needs to be escaped with a backslash, i.e: ([0-9,\.]+)
-
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.
-
Ha.. makes it all worth while.
-
I think "$links=array($phpURL,$fixedURL);" was just illustrating his multi-dimensional array?
-
Give this a bash... foreach ($links as $key => $link) { $phpURLs[$key] = $link[0]; $fixedURLs[$key] = $link[1]; }
-
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!
-
What's in 'config.php'? Perhaps there's something server-specific in there causing the failure...
-
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?
-
There's multiple references to fetch(); just add MadTechie's function to avoid any confusion.
-
$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; }
-
Fair enough. Add: ini_set('display_errors', 1); error_reporting(E_ALL); To the very top of your script.
-
<?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?
-
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.
-
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; }
-
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?
-
Your buffer is backwards...
-
That's not a question...
-
I have no idea...
-
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"?
-
You wouldn't use the dot character in this case, you'd just say like 'any character except these': [^buias]+
-
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=([^&]+)/