cron - copy and create files in a server folder automatically with php.exe -f -


i try copy file capturar_dades_preparar_mail.php in c:\xampp\htdocs\projecte_a\engine_automail_win c:\xampp\htdocs\projecte_a\engine_automail_win\mails_preparats_per_enviar other name.php.

well, have code executed automatically task scheduler in windows:

$nombre_archivo = "mail_preparat.php"; $ruta= "../../xampp/htdocs/projecte_a/engine_automail_win/mails_preparats_per_enviar/";  if(!copy("../../xampp/htdocs/projecte_a/engine_automail_win/estructura_mail_a_preparar.php" , $ruta.$nombre_archivo)) {   echo "error al copiar \n"; 

but doesn't copy file. problem don't know how access file in folder when executing automated job because php access files /, , cmd/ms-dos .

i tried / , \ doesn't work.

sorry english.

may ask why use relative paths in script when know absolute paths? suggest test absolute paths start with, remove possibility have made error working them out.

the relative path relative execute script from, not script is.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -