Jump to content

Parse error: parse error, expecting `')'' in c:\easyphp1-8...\index.php on line 15


Recommended Posts

Bonjour/Bonsoir à toute la communauté

Je suis nouveau ici et j'espère être sur la bonne page.

J'ai besoin d'aide s'il vous plait

J'ai installé easyphp1-8 et prestashop 1.7.1.1

Lors de l'install, j'ai ce message : Parse error: parse error, expecting `')'' in c:\easyphp1-8\www\prestashop1711\index.php on line 15

Je suis capable de paramétrer un site mais absolument ignorant de tout ce qui est php.

Quelqu'un pourrait m'indiquer quoi et comment corriger à la ligne 15 pour que je puisse poursuivre l'installation s'il vous plait? Merci d'avance pour votre compréhension

 

Bien vouloir trouver ci-après le fichier en question

  1. <?php
  2. set_time_limit(0);
  3.  
  4. define('ZIP_NAME', 'prestashop.zip');
  5. define('TARGET_FOLDER', __DIR__.'/');
  6. define('BATCH_SIZE', 500);
  7.  
  8. $startId = 0;
  9. if (isset($_POST['startId'])) {
  10.   $startId = (int)$_POST['startId'];
  11. }
  12.  
  13. if (isset($_POST['extract'])) {
  14.   if (!extension_loaded('zip')) {
  15.     die(json_encode([
  16.       'error' => true,
  17.       'message' => 'You must install PHP zip extension first',
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...