PhpConcept
 
 

PhpConcept is a Web site created for PHP and associated languages (mySQL, ...) programmers.

 

 
   
Ressources
    AlphaWorks  
   

Ressources for PHP programmers.

PclZip
PHP Class to create and manage ZIP files
.

PclTar
PHP library to create and manage TAR files
.

PhpZip
A PHP application to graphically create archive files in several formats.

 

   

Not released alpha projects.

PhpWindowSystem
Library for managing windows-style windows and events
.

PcWeb
The
CMS that manage PhpConcept web site.

 
 
News on PhpConcept
 
 

MyPodcastPublisher : Publish your podcast on your own web site

MyPodcastPublisher is a MySQL/PHP software which help in publishing audio and video podcast on your own web site.

With MyPodcastPublisher you can create several Podcast Channels and publish episode for them. MyPodcastPublisher will manage the display in a web browser, but also RSS feeds that are compatible with podcast reader like iTunes or Nokia Podcast Reader.

MyPodcastPublisher offer management tools with access rights levels (admin, editor, author, reader) and stats.

 

More on MyPodcastPublisher

 
 
28/11/2007 
 
 
News on PhpConcept
 
 

PclZip 2.6 : New features on individual files

PclZip 2.6 introduce new granular functions at the file level. You can now add a string as a file in an archive, without the need to create temporary files when a string need to be put in a zip archive.

PclZip 2.6 also correct some bugs.

User manual is not yet updated so you can find some informations bellow :

<?php
$archive 
= new PclZip("archive.zip");
$v_filename "new_file.txt";
$v_content "This is the content of file one\nHello second line";
$list $archive->create(array(
                           array( 
PCLZIP_ATT_FILE_NAME => $v_filename,
                                  
PCLZIP_ATT_FILE_CONTENT => $v_content
                                
)
                              )
                        );
if (
$list == 0) {
  die(
"ERROR : '".$archive->errorInfo(true)."'");
}
?>

The content of string "$v_contenu" will be added in the archive as a file with name 'new_file.txt'.

Download PclZip 2.6

 
 
21/07/2007 
 
 
News on PhpConcept
 
 

PclTemplate 0.2 : User Manual

With PclTemplate 0.2 a full user guide is available. It includes a quick start guide and more detailled informations on how PclTemplate is working.

Download PclTemplate 0.2
User Manual

 

 
 
15/12/2006
 
 
News on PhpConcept
 
 

PclTemplate 0.1 : New PhpConcept Class

PclTemplate is a simple and easy template management class.
PclTemplate allow to read template files or template strings and generate
results from a simple structure. The result can be a file, a string, or can be
directly send to the output.

PclTemplate allow the configuration of the tokens delimiters.

Download PclTemplate 0.1

 

 
 
27/11/2006
 
 
News on PhpConcept
 
 

PclZip 2.5 : New Features

PclZip 2.5 introduce a security feature and the ability to modify the name of the file archived. To achieve this a large part of the code was modified in order to manage attributes associated to files (or folder) and not only global options. In this release only the name of the file can be modified, but the code was restructured in order to be able to add new features on a per file basis (like add a string as a file, change the file dates, ...). However the code was not modified yet to offer the same feature while extracting files.

The user manual is not yet updated, so you can find below a quick start on this new feature :

<?php
$archive 
= new PclZip("archive.zip");
$list $archive->create(array(
                    array( 
PCLZIP_ATT_FILE_NAME => 'data/file1.txt',
                           
PCLZIP_ATT_FILE_NEW_FULL_NAME => 'newdir/newname.txt'
                         
),
                    array( 
PCLZIP_ATT_FILE_NAME => 'data/file2.txt',
                           
PCLZIP_ATT_FILE_NEW_SHORT_NAME => 'newfilename.txt'
                         
),
                    array( 
PCLZIP_ATT_FILE_NAME => 'data/file3.txt')
                  ),
                  
PCLZIP_OPT_ADD_PATH'newpath',
                  
PCLZIP_OPT_REMOVE_PATH'data');
if (
$list == 0) {
  die(
"ERROR : '".$archive->errorInfo(true)."'");
}
?>

  • With PCLZIP_ATT_FILE_NEW_FULL_NAME, 'data/file1.txt' will be completed replaced by 'newdir/newname.txt'. The global options PCLZIP_OPT_ADD_PATH and PCLZIP_OPT_REMOVE_PATH are ignored in this case.
  • With PCLZIP_ATT_FILE_SHORT_NAME, 'file2.txt', will be first replaced by 'newfilename.txt', then the global options will be applied to modify the path on the resulting name.

A security alert was raised by GulfTech explaining that PclZip can be badly used during the file extraction. In fact a script using PclZip to extract a zip file uploaded by a user of a web service, can have the effect of extracting a file and modifying a système file. PclZip support the extraction of files in different folders. Release 2.5 add an option to control that the extracted file is not outside a specific basedir. The idea is similar to the open_basedir restriction of PHP.

<?php
$archive 
= new PclZip("archive.zip");
$list $archive->extract(PCLZIP_OPT_EXTRACT_DIR_RESTRICTION'./base_dir');
if (
$list == 0) {
  die(
"ERROR : '".$archive->errorInfo(true)."'");
}
?>

In this example archive.zip will be extracted in the current folder. If any file is not with a path inside 'base_dir' PclZip will stop and send an error. Notice that the associated value of PCLZIP_OPT_EXTRACT_DIR_RESTRICTION must be a full path from the root filesystem (and not relative). However the use of './' will indicate that the path is relative to the current path.

Download PclZip 2.5

 

 
 
10/03/2006
 
 
News on PhpConcept
 
 

New version 0.2 of PcjsColorChooser

PCJS Color Chooser is a popup window which allow you to select a color and return its value in a form element. It can also be used to dynamically modify the color attributes of an object.

The new release corrct some bugs and deliver the support for Firefox.

About PcjsColorChooser
See the demo
Download PcsExplorer 1.0

 
 
14/12/2005
 
 
News on PhpConcept
 
 

New version of PcsExplorer 1.0

PcsExplorer gets new features. You can now run javascript action after a file or a folder is selected. The javascript actions can be a line of code or a javascript function.

User Manual PcsExplorer
Download PcsExplorer 1.0

 
 
14/12/2005
 
 
News on PhpConcept
 
 

Russian translation of the PclZip User Guide

The original PclZip User Guide is available on PhpConcept ().

Feskov Kuzma did a russian translation of the manual. You can see it directly on his web site :

PclZip Manual in English
PclZip Manual in Russian

See more old news ...

 
 
04/10/2005
 
 
News on PhpConcept
 
 

New release PclZip 2.4

PclZip 2.4 is a bug correction release. It support the correction for the major bug related to the configuration of PHP parameter "magic_quotes_runtime".

Download the new version
See more old news ...

 
 
26/09/2005
 
 
News on PhpConcept
 
 

PcsExplorer 0.3-RC1 - Popup explorer Window

PcsExplorer is a Javascript/PHP scripts that manage a remote "file selection" popup window.

PcsExplorer can be used by PHP scripts hosted in web sites, in order to select file or folder that are present in the web server. It can not be used to open files present in the client browser filesystem.

The current version is a "Release Candidate" for a 0.3 release. Please test it and give me feedback if needed.

More ...
See more old news ...

 

 
 
11/04/2005
 
 
News on PhpConcept
 
 

PclZip 2.3 - "PCLZIP_ERR_BAD_FORMAT" Error

Some "PCLZIP_ERR_BAD_FORMAT" erros comes from the PHP configuration parameter "magic_quotes_runtime". When it is set to "on" in the php.ini file, some characters are automatically escaped by a "backslash" when read form a file. This is important for text file but not for the binary files (zip files or image files are binary files).

The next version of PclZip will take care of this PHP configuration, and will test the value of the parameter. If it is "on", PclZip willtry to change its value to "off" during the extraction or the archive creation, and then will set it back to its original value.

This correction is available in the last PclZip CVS version, waiting for the next PclZip release.

CVS version on SourceForge
See more old news ...

 

 
 
26/03/2005
 
 
News on PhpConcept
 
 

PclZip 2.3 - PHP 5 Bug Correction

PclZip has a bug with PHP 5.0.2 ....

PclZip 2.3 add a work arround. It seems that affecting the value 0xFE49FFE0 to a variable does not give the same result in PHP4 and PHP5 ....

Download the new version
See more old news ...

 
 
17/11/2004
 
 
News on PhpConcept
 
 

PclZip 2.2 Released

PclZip 2.2 introduce some bug correction and few new features.

I worked on archive encryption without any success. I need to do the multiplicationof two long integer, which is not suppported by PHP. Even the use of bcmath does not give a result ...

Download the new version
See more old news ...

 
 
05/11/2004
 
 
News on PhpConcept
 
 

PclZip 2.1

Updated User Manual

The PclZip 2.1 user manual is now updated in English.

PclZip 2.1 User Manual
See more old news ...

 
 
15/02/2004
 
 
Last News on PhpConcept
 
 

PclZip 2.1 Released

PclZip 2.1 is a minor release, with some bug correction and few new features.

New features :

  • Ability to add or modify the comments associated with the archive,
  • Ability to cleanly stop the extraction by using the call-back functions.

The documentation will be updated (and fully translated in english) very soon.

Happy New Year !

Download the new version
See CVS on SourceForge

See more old news ...

 
 
31/12/2003
 
 
News
 
 

PclZip 2.0 Released

PclZip 2.0 stable is now released. Nothing new since 2.0-RC2.

Please read the release note, some points may break the backward compatibility for your script.

Download the new version
See the (not-yet-complete) english manual
See CVS on SourceForge

See more old news ...

 
 
08/09/2003
 
 
News
 
 

PclZip 2.0 - Candidate Release 2

PclZip has now a 2.0 release candidate 2. The main improvment is the rewrite of the create/extraction of files. Temporary files are not any more used, with improve performance and correct a bug with gz files (PHP seems to have a max 500 opened files per php process).

Please read the release note, some points may break the backward compatibility for your script.

A short "What's new" :

  • Rewrite of create/extract code,
  • Add attribute PCLZIP_OPT_EXTRACT_AS_STRING, which allow to extract a file in a string without using temporary file,
  • Add attribute PCLZIP_OPT_NO_COMPRESSION to add a file without compression,
  • Modification of the default PCLZIP_SEPARATOR constant value, it is now ',' rather than a blank space which introduce confusion with some windows paths. Be carefull with the backward compatibility of your scripts
  • Extraction by index, name et regular expression :

<?php
  $archive 
= new PclZip("archive.zip");
  
$list $archive->extract(PCLZIP_OPT_BY_INDEX"1-3,10-15,35");
  
// OR by filename
  
$list $archive->extract(PCLZIP_OPT_BY_NAME"file1.txt,file2.txt");
  
// OR by directory (and subdir content)
  
$list $archive->extract(PCLZIP_OPT_BY_NAME"data/toto/");
  
// OR by ereg (all filenames finishing by txt)
  
$list $archive->extract(PCLZIP_OPT_BY_EREG"txt$");
?>

  • File removing by index, name et regular expression.

SourceForge is still used for code versioning, bug alert and feature request. Don't hesitate to use it !

Download the new version
See the (not-yet-complete) english manual
See CVS on SourceForge

See more old news ...

 
 
21/08/2003
 
 
News
 
 

PclZip 2.0 - Candidate Release 1

PclZip has now a 2.0 release candidate 1. The main improvment is the rewrite of the create/extraction of files. Temporary files are not any more used, with improve performance and correct a bug with gz files (PHP seems to have a max 500 opened files per php process).

Please read the release note, some points may break the backward compatibility for your script.

A short "What's new" :

  • Rewrite of create/extract code,
  • Add attribute PCLZIP_OPT_EXTRACT_AS_STRING, which allow to extract a file in a string without using temporary file,
  • Add attribute PCLZIP_OPT_NO_COMPRESSION to add a file without compression,
  • Modification of the default PCLZIP_SEPARATOR constant value, it is now ',' rather than a blank space which introduce confusion with some windows paths. Be carefull with the backward compatibility of your scripts

SourceForge is still used for code versioning, bug alert and feature request. Don't hesitate to use it !

Download the new version
See the (not-yet-complete) english manual
See CVS on SourceForge

See more old news ...

 
 
23/07/2003
 

Member login - Stats
Copyright 2003 - PhpConcept

Powered by PcWeb