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.
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'.
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.
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 :
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.
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.
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.
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".
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.
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.
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 ...
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 !
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 !