Foros del Web » Programando para Internet » PHP »

require Error

Estas en el tema de require Error en el foro de PHP en Foros del Web. hola amigos tengo el siguiente error en mi web al solicitar la enviacion smtp a mi correo Warning: require(../old/include/class.phpmailer.php) [function.require]: failed to open stream: No ...
  #1 (permalink)  
Antiguo 08/05/2012, 14:33
 
Fecha de Ingreso: mayo-2012
Mensajes: 18
Antigüedad: 11 años, 11 meses
Puntos: 0
require Error

hola amigos tengo el siguiente error en mi web al solicitar la enviacion smtp a mi correo



Warning: require(../old/include/class.phpmailer.php) [function.require]: failed to open stream: No such file or directory in C:\AppServ\www\includes\yakhocode.php on line 49

Fatal error: require() [function.require]: Failed opening required '../old/include/class.phpmailer.php' (include_path='.;C:\php5\pear') in C:\AppServ\www\includes\yakhocode.php on line 49

este es mi scrip


<?php
require_once('recaptchalib.php');

// Get a key from https://www.google.com/recaptcha/admin/create
$publickey = "6LfAC8QSAAAAAMvL2fSSK7tmxxtfeTEF1kGPsxv3";
$privatekey = "6LfAC8QSAAAAALuw43RRakUDirxd8udXewhhKA5z";

# the response from reCAPTCHA
$resp = null;
# the error code from reCAPTCHA, if any
$error = null;
if($logeado == 1){
# was there a reCAPTCHA response?
if ($_POST["recaptcha_response_field"]) {
$resp = recaptcha_check_answer ($privatekey,
$_SERVER["REMOTE_ADDR"],
$_POST["recaptcha_challenge_field"],
$_POST["recaptcha_response_field"]);

$wea = mssql_query("SELECT Email FROM Account where UserID='".$_SESSION['username']."'");
$row = mssql_fetch_row($wea);
$wead = mssql_query("SELECT KSCode FROM Account where UserID='".$_SESSION['username']."'");
$rowd = mssql_fetch_row($wead);

if ($row[0] == '') {
$resultado = "There has been an error and we weren't able to retrieve your Nova Code. Contact the staff for more information.<br/><a href=javascript:history.go(-1)>Go Back!</a>";
}
elseif (!$resp->is_valid) {
# set the error code so that we can display it
$error = $resp->error;
$resultado = "The security code you gave in does not match the image shown.<br/><a href=javascript:history.go(-1)>Go Back!</a>";
}

if($resultado != ''){
echo $resultado;
}
else
{
$webA = mssql_query("SELECT * FROM Account where UserID = '".$_SESSION['username']."'");
$robA = mssql_fetch_row($webA);
$FirstName = $robA[11];
$LastName = $robA[13];
$UserName = $robA[2];
$KSCode = $robA[46];
$Email = $robA[1];
$time = time();
$FechaYHora = date('d\/m\/Y \a \l\a\s h:i:s A');

require '../old/include/class.phpmailer.php';
require '../old/include/class.smtp.php'; //incluimos la clase para envíos por SMTP
$mail = new PHPMailer();
$mail->IsSMTP();
$mail->CharSet = 'iso-8859-1';
$mail->Mailer = "smtp";
$mail->Host = "ssl://smtp.gmail.com";
$mail->Port = 465;
$mail->SMTPAuth = true;
$mail->Username = '[email protected]';
$mail->Password = 'admRTA7154';

$mail->FromName = 'Tantra Nova Servers';
$mail->From = '[email protected]';//email de remitente desde donde se envía el correo.correo.

$mail->AddAddress($Email, $FirstName. " " .$LastName);//destinatario que va a recibir el correo

$mail->Subject = 'Tantra Nova Servers - Nova Code';

$mail->AltBody = 'body';//cuerpo con texto plano

$mail->MsgHTML("Greetings <b>$FirstName</b>, we've recieved the order to retrieve your Nova Code.
<br><br>
Your current information:<br>
Username: $UserName<br>
Nova Code: $KSCode<br>
<br>
Have a nice day!
");//cuerpo con html

if(!$mail->Send())
{
echo "The information you asked for could not be sended.<br> Please try again later, if this message persists to appear, contact the Staff.";
}
else
{
echo "An E-Mail with your Nova Code has been sent to your E-Mail.";
}


}
}
else
{
?>
The <b>Nova Code</b> is a randomly generated number used to retrieve and activate certain functions, if you didn't write it down when you recieved it after you registered, enter the recaptcha below and we will send you an E-Mail with your new Nova Code.<br />

<form action="" id="formID" class="formular" method="post">
<br><br>
<?php echo recaptcha_get_html($publickey, $error); ?><br />
<input value="&nbsp;" type="submit" name="submit" style="height: 20px; width: 100px; background-image:url(images/retrieve.png); border:0;" class="submit">
</form>

<?php
}
}
else
{
?>
<font size="+2">ERROR</font><br /><br />
You are not logged in, please log in and try again!
<? } ?>

y este el error de la

linea 49
require '../old/include/class.phpmailer.php';

ayuda porfa

Etiquetas: html, require, sql
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 18:00.