27/12/2008 12:13
(Questo messaggio è stato modificato l'ultima volta il: 27/12/2008 12:15 da filippo9639.)
ho questo piccolo problema non mi funziona uno script per importare i dati di una tabella utent dal vecchio hosting nel databese del nuovo hosting, posto lo script in oggetto ed anche l'errore che esce quando lo lancio,
l'errore è questo: Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@centbux.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
cosa puo essere ?????????
Codice PHP:
<?php
session_start();
if($_SESSION['imported']) { die("Multiple importation ruins it."); }
//old database containing securebux/bux3/yourownbux data
$ndb_host = 'localhost';
$ndb_user = '********';
$ndb_pass = '********';
$ndb_base = '********';
$p3 = mysql_connect($ndb_host,$ndb_user,$ndb_pass) or die("Couldn't connect to old database.");
mysql_select_db($ndb_base,$p3) or die("Couldn't connect to old database.");
include "lib/lib_database.php";
$cfg = mysql_connect(DB_HOST,DB_USER,DB_PASS);
mysql_select_db(DB_NAME,$cfg);
$runp1 = mysql_query("SELECT * FROM tb_users ORDER BY id",$p3);
while($rp1 = mysql_fetch_array($runp1))
{
mysql_query("INSERT INTO `users` (
`userid` ,
`username` ,
`password` ,
`email` ,
`paypal_email` ,
`alertpay_email` ,
`signupdate` ,
`signupip` ,
`upgraded` ,
`country` ,
`balance` ,
`withdrew` ,
`ads_clicked` ,
`upline` ,
`referrals` ,
`posts` ,
`lastaction` ,
`lastip` ,
`advertiser_balance` ,
`suspended`,
`refclicks`
)
VALUES (
'{$rp1['id']}' , '{$rp1['username']}', '{$rp1['password']}', '{$rp1['email']}', '{$rp1['email']}', '{$rp1['email']}', unix_timestamp(), '{$rp1['ip']}', '0', '{$rp1['country']}', '{$rp1['money']}', '{$rp1['paid']}', '', '{$rp1['referer']}', '{$rp1['referals']}', '0', '{$rp1['lastlogdate']}', '{$_SERVER['REMOTE_ADDR']}', '0.00', '0', '{$rp1['referalvisits']}'
);",$cfg);
$transferred++;
}
if($transferred > 0)
{
$contents .= "We successfully transfered {$transferred} users to your SCRIPT!<br />";
$_SESSION['imported']=1;
}
?>
l'errore è questo: Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@centbux.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
cosa puo essere ?????????