ID: 22045 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] Status: Feedback Bug Type: Filesystem function related Operating System: WinME PHP Version: 4.3.0 New Comment:
WHAT part of that script does not work? Please provide a short and COMPLETE script which clearly shows the 'bug'. Most likely the problem is not any bug anyway... Previous Comments: ------------------------------------------------------------------------ [2003-02-04 09:29:27] [EMAIL PROTECTED] Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. ------------------------------------------------------------------------ [2003-02-04 09:28:49] [EMAIL PROTECTED] I' am sorry for my bad english, but I have a Problem with this Script. function exec_sql_lines($sql_file, $old_string = '', $new_string = '') { $sql_query = isset($sql_query) ? $sql_query : ""; if(!empty($sql_file) && $sql_file != "none") { $sql_query = fread(fopen($sql_file, "r"), filesize($sql_file)); /* If magic_quotes_runtime is enabled, most functions that return data from any sort of external source including databases and text files will have quotes escaped with a backslash. */ if (get_magic_quotes_runtime() == 1) $sql_query = stripslashes($sql_query); /* replace old_string with new_string if they are set */ if($old_string != '') { $sql_query = ereg_replace($old_string,$new_string,$sql_query); } } $sql_query = trim($sql_query); if($sql_query != "") { $sql_query = remove_remarks($sql_query); $pieces = split_sql_file($sql_query,";"); $cnt_pieces = count($pieces); /* run multiple queries */ for ($i=0; $i<$cnt_pieces; $i++) { $sql = trim($pieces[$i]); if (!empty($sql) and $sql[0] != "#") $result = mysql_query($sql); } } return true; } My Provider changed the PHP-Verion to 4.3.0 and from this time this Script dosn't work. Is there a Bug, nobody can help me. Thanx Alf ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22045&edit=1