Jump to content
php.lv forumi

Deb pakotne


Kikisss

Recommended Posts

Izlaboju to archive.php, bet vēl tāpat met erroru

Fatal error: Cannot pass parameter 1 by reference in D:\xampp\htdocs\index.php on line 4

 

sēžu ar tām pašām rindiņām -

<?php
require_once "File/Archive.php";
File_Archive::extract('./archive.zip/', './archive');
?>

Link to comment
Share on other sites

Nu nav kaut kas normāli, jo errors ir 4 rindiņā, kaut arī tavā norādītajā kodā 4. rindiņa ir ?>

šī

File_Archive::extract('./archive.zip/', './archive');

 

 

Ja tu esi izvilcis pareizaas rindinjas (kura ir 4 rindinja?), tad dari taa:

 

$archive = './archive.zip';
$to = './archive';

File_Archive::extract($archive, $to);

 

uzrakstīju pa tavam

 

http://pastebin.com/fZN11trj

 

miljons problēmu uzreiz :D

Edited by Kikisss
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...