Ver Mensaje Individual
  #1 (permalink)  
Antiguo 11/03/2005, 22:37
Avatar de Tarecito
Tarecito
 
Fecha de Ingreso: noviembre-2003
Ubicación: Lima - Perú
Mensajes: 443
Antigüedad: 20 años, 4 meses
Puntos: 1
Pregunta No funciona mi codigo en un servidor pero en otro si!!

Hola a todos, tengo el siguietne codigo:

<?

/************************************************** ****
**
** This script is easy to configure. Just change the variables below to
** suit your environment and PHP does the rest!
**
** http://www.bigjolt.com
**
************************************************** *****/

// Enter your email address here
$adminaddress = "[email protected]";

// Enter the address of your website here MUST include http://www.
$siteaddress ="http://www.cwperu.com";

// Enter your company name or site name here
$sitename = "Coltène Whaledent";

// Gets the date and time from your server
$date = date("m/d/Y H:i:s");

// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);

//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
IF ($action != ""):
mail("$adminaddress","Info Request",
"FAO: Admin @ $sitename \n
First Name: $fname
Last Name: $lname
Email: $vemail
Company: $cname
Telephone: $telno\n
The visitor commented:
------------------------------
$comments
------------------------------

Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");


//This sends a confirmation to your visitor
mail("$vemail","Gracias por visitar $sitename", "Hi $fname,\n
Gracias por interesarse en $sitename!\n
Saludos,
$sitename
$siteaddress","FROM:$adminaddress");

//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Enviado!";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";

ENDIF;
?>

la cosa esq no funciona en el servidor donde estará alojado, pero lo he probado en otros servidores y si funciona. El servidor donde estará alojado soprta php versión 5, no se si tendrá algo q ver las versiones. Alguie nq me ayude por favor. Muchas gracias.
__________________
Tarecito