Tengo un problema de sintaxis en un código y es que por mas que busque no encuentro la solución
Parse error: syntax error, unexpected '"Expires: Mon, 26 Jul 1997 05:' (T_CONSTANT_ENCAPSED_STRING), expecting identifier (T_STRING) in C:\xampp\htdocs\tiendaonline\ps-todoenuno\ps-tr001.php on line 294
la linea 294 es el cierre de la variable $contenido y lo que pretendo hacer es crear un fichero con ese código...
Código PHP:
$contenido = "<?php
/*
* 2007-2014 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to [email protected] so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
* @author PrestaShop SA <[email protected]>
* @copyright 2007-2014 PrestaShop SA
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
* International Registered Trademark & Property of PrestaShop SA
*/
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT\");
header(\"Last-Modified: \".gmdate(\"D, d M Y H:i:s\").\" GMT\");
header(\"Cache-Control: no-store, no-cache, must-revalidate\");
header(\"Cache-Control: post-check=0, pre-check=0\", false);
header(\"Pragma: no-cache\");
header(\"Location: ../\");
exit;
";
$archivo="./".$caracter1."/".$caracter2."/".$caracter3."/".$caracter4."/index.php";
$fp = fopen("$archivo", "w");
fwrite($fp,$contenido);
fclose($fp);
Gracias de antemano.