Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/06/2003, 16:11
kech
 
Fecha de Ingreso: marzo-2003
Mensajes: 277
Antigüedad: 21 años, 1 mes
Puntos: 0
Problemas con una funcion

tengo esta funcion pero no me funciona por que podria ser

este es el mensaje que me arroja

Cita:
Parse error: parse error, unexpected ';', expecting '{' in c:\appserv\www\index.php on line 5

actualizar.php
Código PHP:
<?php
function actua($path){
global 
$pathtemp;
$filestemp "./temp/";
$filename explode("/",$PHP_SELF);
end($filename);
$filename explode("."pos($filename));
reset($filename);
if(
file_exists($filestemp.pos($filename)."1.html")){
    
unlink($filestemp.pos($filename)."1.html");
    
rename($filestemp.pos($filename).".html"$filestemp.pos($filename)."1.html");
    
$size1 filesize($filestemp.pos($filename)."1.html");
    }
else{
    @
rename($filestemp.pos($filename).".html"$filestemp.pos($filename)."1.html");
    @
$size1 filesize($filestemp.pos($filename)."1.html");
    }
if(
copy($path$filestemp.pos($filename).".html")){
    
$pathtemp $filestemp.pos($filename).".html";
    
$size2 filesize($pathtemp);
    }
else{
    
$pathtemp $path;
    }

if(isset(
$size2)){
     if (
$size1 == $size2){
          echo 
"ningun cambio";
          exit();
          }
  }
}
?>
y haci la llamo y haci parte el codigo osea el error segun lo que entiendo es gusto cuando llamo a la funcion

index.php
Código PHP:
<?php
include ("coneccion.php");
$path "http://www.micition.com";
include (
"actualizar.php");
function 
actua($path);
$archivo fopen($pathtemp"r");
e leido varios manuales sobre funciones pero no entiendo donde puede estar el problema

salu2