php-general Digest 26 Oct 2005 17:00:35 -0000 Issue 3759
Topics (messages 224659 through 224683):
Re: Strange array access problem
224659 by: Robert Cummings
224661 by: Robert Cummings
224665 by: Robert Cummings
224666 by: Ken Tozier
224668 by: Ken Tozier
fopen
224660 by: John Taylor-Johnston
224662 by: Stephen Leaf
224664 by: Joe Wollard
224669 by: Jochem Maas
224671 by: Petr Smith
Re: create HTML page on the fly
224663 by: Angelo Zanetti
Re: Java editor
224667 by: Angelo Zanetti
zipped files
224670 by: Clive
224673 by: Rosty Kerei
224678 by: James Lobley
Perl style
224672 by: Søren Schimkat
224675 by: Jay Blanchard
224676 by: Jochem Maas
224677 by: rouvas
Re: GUID or any other unique IDs
224674 by: Denis Gerasimov
MySql connection error on win XP for script that works on Freebsd 5.3
224679 by: Vizion
224680 by: Jay Blanchard
224681 by: Holografix
Decompress a zlib'd string in PHP
224682 by: Graham Anderson
224683 by: Richard Lynch
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
On Wed, 2005-10-26 at 00:28, Ken Tozier wrote:
> I'm having a major problem with what seems, on it's face, to be a
> really basic array function.
>
> What happens is on the browser end, I've written some javascript code
> that packages up javascript variables in native PHP format and sends
> the packed variables to a PHP script on the server via a POST and
> XMLHTTP. On the server end, the PHP script grabs the packed variables
> out of the $_POST, strips slashes and uses the "unserialize" command.
>
> Here's the function that gets the post data
> $unpacked_data = GetDataFromPOST();
>
> And here's a var_dump of $unpacked_data as it appears in the browser
> array(1) { ["handler"]=> array(1) { ["0"]=> string(9)
> "databases" } }
>
> I'm able to get the "handler with no problem like so:
> $parts = $unpacked_data['handler'];
>
> Which yields the following var_dump
> array(1) { ["0"]=> string(9) "databases" }
I did the following as a test:
<?php
$unpacked_data = array
(
'handler' => array
(
'0' => 'databases',
),
);
?>
var_dump( $unpacked_data );
and I did...
<?php
$unpacked_data = array
(
'handler' => array
(
"0" => 'databases',
),
);
var_dump( $unpacked_data );
?>
I also tried:
<?php
$unpacked_data = array
(
'handler' => array
(
'"0"' => 'databases',
),
);
var_dump( $unpacked_data );
?>
But no matter what I did I could NOT get var_dump to dump my 0 key for
the 'databases' as you have in your output. So methinks therein may lie
your problem. Perhaps during the serialization in javascript check if
the key is an integer-like string and if so then convert to an integer
for the key serialization.
Let us know if it works :)
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
> On Wed, 2005-10-26 at 00:28, Ken Tozier wrote:
> > I'm having a major problem with what seems, on it's face, to be a
> > really basic array function.
> >
> > What happens is on the browser end, I've written some javascript code
> > that packages up javascript variables in native PHP format and sends
> > the packed variables to a PHP script on the server via a POST and
> > XMLHTTP. On the server end, the PHP script grabs the packed variables
> > out of the $_POST, strips slashes and uses the "unserialize" command.
> >
> > Here's the function that gets the post data
> > $unpacked_data = GetDataFromPOST();
> >
> > And here's a var_dump of $unpacked_data as it appears in the browser
> > array(1) { ["handler"]=> array(1) { ["0"]=> string(9)
> > "databases" } }
> >
> > I'm able to get the "handler with no problem like so:
> > $parts = $unpacked_data['handler'];
> >
> > Which yields the following var_dump
> > array(1) { ["0"]=> string(9) "databases" }
Then later that day I wrote:
> But no matter what I did I could NOT get var_dump to dump my 0 key for
> the 'databases' as you have in your output. So methinks therein may lie
> your problem. Perhaps during the serialization in javascript check if
> the key is an integer-like string and if so then convert to an integer
> for the key serialization.
I did some more investigating. Your problem appears to be PHP5 specific.
I manually created the serialize string I assumed you had, but PHP4 was
smarter than me and auto converted the string key to an integer once
again; however, PHP5 for some reason during unserialization maintained
the string type for the key, however it was not able to access the value
because upon attempting to access the value I'm assuming it did a type
conversion to integer... additionally I got the following error notice
when trying to access the value:
<b>Notice</b>: Undefined index: 0 in <b>/home/suds/foo.php</b> on line
<b>25</b><br />
NULL
The following can duplicated the error:
$ser = 'a:1:{s:1:"0";s:3:"foo";}';
$unser = unserialize( $ser );
var_dump( $unser );
var_dump( $unser['0'] );
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
On Wed, 2005-10-26 at 01:06, Robert Cummings wrote:
>
> I did some more investigating. Your problem appears to be PHP5 specific.
> I manually created the serialize string I assumed you had, but PHP4 was
> smarter than me and auto converted the string key to an integer once
> again; however, PHP5 for some reason during unserialization maintained
> the string type for the key, however it was not able to access the value
> because upon attempting to access the value I'm assuming it did a type
> conversion to integer... additionally I got the following error notice
> when trying to access the value:
>
> <b>Notice</b>: Undefined index: 0 in <b>/home/suds/foo.php</b> on line
> <b>25</b><br />
> NULL
>
> The following can duplicated the error:
>
> $ser = 'a:1:{s:1:"0";s:3:"foo";}';
> $unser = unserialize( $ser );
> var_dump( $unser );
> var_dump( $unser['0'] );
FYI this is not considered a bug in PHP since PHP will not produce
serialized output in that form (IMHO it is a bug since it deviates from
an expected functionality with respect to how serialized data should be
encoded-- but then maybe there's a doc somewhere that states you have to
convert integer strings to real integers for keys *shrug*):
http://bugs.php.net/bug.php?id=27712
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
Rob ,
Very helpful, Thanks!
I'll try to rewrite the serializer on the javascript end to encode
integer keys as integers.
Ken
On Oct 26, 2005, at 1:23 AM, Robert Cummings wrote:
On Wed, 2005-10-26 at 01:06, Robert Cummings wrote:
I did some more investigating. Your problem appears to be PHP5
specific.
I manually created the serialize string I assumed you had, but
PHP4 was
smarter than me and auto converted the string key to an integer once
again; however, PHP5 for some reason during unserialization
maintained
the string type for the key, however it was not able to access the
value
because upon attempting to access the value I'm assuming it did a
type
conversion to integer... additionally I got the following error
notice
when trying to access the value:
<b>Notice</b>: Undefined index: 0 in <b>/home/suds/foo.php</b>
on line
<b>25</b><br />
NULL
The following can duplicated the error:
$ser = 'a:1:{s:1:"0";s:3:"foo";}';
$unser = unserialize( $ser );
var_dump( $unser );
var_dump( $unser['0'] );
FYI this is not considered a bug in PHP since PHP will not produce
serialized output in that form (IMHO it is a bug since it deviates
from
an expected functionality with respect to how serialized data
should be
encoded-- but then maybe there's a doc somewhere that states you
have to
convert integer strings to real integers for keys *shrug*):
http://bugs.php.net/bug.php?id=27712
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Got it working.
Thanks for all your help Rob.
Ken
--- End Message ---
--- Begin Message ---
It does what I want, but I worry 4096 may not be big enough. Possible?
Is there a way to detect the filesize and insert a value for 4096?
$buffer = fgets($dataFile, $filesize);
Is this what it is for?
John
<?php
#http://ca3.php.net/fopen
$filename = "/var/www/html2/assets/about.htm" ;
$dataFile = fopen( $filename, "r" ) ;
while (!feof($dataFile))
{
$buffer = fgets($dataFile, 4096);
echo $buffer;
}
$sql = "insert into table ... $buffer";
?>
--- End Message ---
--- Begin Message ---
if all you want to do is read the entire file try
$contents = file_get_contents($filename);
On Tuesday 25 October 2005 11:54 pm, John Taylor-Johnston wrote:
> It does what I want, but I worry 4096 may not be big enough. Possible?
> Is there a way to detect the filesize and insert a value for 4096?
> $buffer = fgets($dataFile, $filesize);
> Is this what it is for?
> John
>
>
> <?php
> #http://ca3.php.net/fopen
> $filename = "/var/www/html2/assets/about.htm" ;
> $dataFile = fopen( $filename, "r" ) ;
> while (!feof($dataFile))
> {
> $buffer = fgets($dataFile, 4096);
> echo $buffer;
> }
> $sql = "insert into table ... $buffer";
> ?>
--- End Message ---
--- Begin Message ---
On Oct 26, 2005, at 12:54 AM, John Taylor-Johnston wrote:
It does what I want, but I worry 4096 may not be big enough.
Possible? Is there a way to detect the filesize and insert a value
for 4096?
$buffer = fgets($dataFile, $filesize);
Is this what it is for?
John
<?php
#http://ca3.php.net/fopen
$filename = "/var/www/html2/assets/about.htm" ;
$dataFile = fopen( $filename, "r" ) ;
while (!feof($dataFile))
{
$buffer = fgets($dataFile, 4096);
echo $buffer;
}
$sql = "insert into table ... $buffer";
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
fgets
(PHP 3, PHP 4, PHP 5)
fgets -- Gets line from file pointer
Description
string fgets ( resource handle [, int length] )
Returns a string of up to length - 1 bytes read from the file pointed
to by handle. Reading ends when length - 1 bytes have been read, on a
newline (which is included in the return value), or on EOF (whichever
comes first). If no length is specified, the length defaults to 1k,
or 1024 bytes.
If an error occurs, returns FALSE.
--- End Message ---
--- Begin Message ---
John Taylor-Johnston wrote:
It does what I want, but I worry 4096 may not be big enough. Possible?
4096 is the number of bytes fgets() will get, but the fgets()
call is inside a while loop which keeps running until the 'filepointer'
(as denoted by the handle $dataFile) in question has reached the end of the
given file. so if 4096 is not big enough the loop merely grabs another 4096
bytes until its grabbed it all.
so actually you have a handy bit of code which will allow you to 'eat' through
massive files without the requirement of being able to store the
whole file in memory.
Is there a way to detect the filesize and insert a value for 4096?
filesize()
$buffer = fgets($dataFile, $filesize);
Is this what it is for?
John
<?php
#http://ca3.php.net/fopen
$filename = "/var/www/html2/assets/about.htm" ;
$dataFile = fopen( $filename, "r" ) ;
while (!feof($dataFile))
{
$buffer = fgets($dataFile, 4096);
echo $buffer;
}
$sql = "insert into table ... $buffer";
?>
--- End Message ---
--- Begin Message ---
Hi,
yes, there could be some problem with your code. But it depends on what
are you trying to archieve.
If you are trying to put whole file to database, there is no reason to
use fgets function. Just use $buffer=file_get_contents($filename); and
put the buffer into SQL. No reason to read it line by line using fgets.
The whole file will end in memory in the SQL section, so it doesn't
matter ho you read it.
If you want to process huge file line by line, it's really good idea to
not put whole file to memory (using file_get_contents) but to read it
line by line using fgets, process every line and forgot it. The file
could be very large and you still need only very small memory amount.
And there can be problem you are saying.
What if there is some line longer than 4096 bytes (or some bigger
limit)?? You can solve it simply using code like this:
$dataFile = fopen( $filename, "r" ) ;
$buffer = "";
while (!feof($dataFile)) {
$buffer .= fgets($dataFile, 4096);
if (strstr($buffer, "\n") === false && !feof($dataFile)) {
// long line
continue;
}
echo $buffer;
$buffer = "";
}
Petr
John Taylor-Johnston wrote:
It does what I want, but I worry 4096 may not be big enough. Possible?
Is there a way to detect the filesize and insert a value for 4096?
$buffer = fgets($dataFile, $filesize);
Is this what it is for?
John
<?php
#http://ca3.php.net/fopen
$filename = "/var/www/html2/assets/about.htm" ;
$dataFile = fopen( $filename, "r" ) ;
while (!feof($dataFile))
{
$buffer = fgets($dataFile, 4096);
echo $buffer;
}
$sql = "insert into table ... $buffer";
?>
--- End Message ---
--- Begin Message ---
Hi Miles.
Well the system that I wrote generates HTML newsletters using templates
etc... and before the newsletter is sent out it has to go to moderators
for approval.So a moderator will have a link in his email received and
it will point to the newsletter in HTML format, also it is needed so
that people who cant read HTML emails get a link to the newsletter and
can go to that page to see it. Does it make sense??
thanks for your input, much appreciated.
Angelo Zanetti
Z Logic
www.zlogic.co.za
[c] +27 72 441 3355
[t] +27 21 469 1052
Miles Thompson wrote:
At 10:26 PM 10/25/2005, Angelo Zanetti wrote:
Hi guys.
I've created a small newsletter application and the content of the
newsletter is stored in a DB (the HTML).
However once the newsletter is complete and the user clicks a button I
want the newsletter/html file to be created on the server. How do I
go about this?
I assume that I will use fwrite() to add the HTML to the file, I need
to know how to actually create the file before adding the content to it.
thanks in advance.
Angelo
Angelo,
Does the content in the db contain HTML tags? If so you may need use
addslashes(), stripslashes(), htmlentities() and the like as you save
and retrieve content.
All you really have to do is generate any HTML to start the page, add
your content, and then closing tags and echo() or print() the whole
shooting match.
You could do this with a function called CurrentIssue(). Within the
function, as you build the HTML, concatenate it to the function's
internal return variable.
Then you could simply echo CurrentIssue ;
Why do you have to generate an HTML file?
Regards - MIles Thompson
--- End Message ---
--- Begin Message ---
also check out solmetra.com I think, not sure if its open source...
HTH
John Taylor-Johnston wrote:
Is there a OS java (or other) html editor I can implement on a Web page.
I want a user to type text, use bold, italics, etc.
I would then store the html in a MySQl record and then use php to insert
the edited text.
I've seen some packaged, in Moodle for example.
John
--- End Message ---
--- Begin Message ---
Hi
does any one have code/examples for unzipping a file thats been uploaded
to a server. I would prefer a class rather than something that uses
zip.lib as it may not be configured on the server.
clive
--- End Message ---
--- Begin Message ---
Try something from here http://www.phpclasses.org/browse/class/42.html
Sincerely,
Rosty Kerei <[EMAIL PROTECTED]>
"Clive" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi
>
> does any one have code/examples for unzipping a file thats been uploaded
> to a server. I would prefer a class rather than something that uses
> zip.lib as it may not be configured on the server.
>
> clive
--- End Message ---
--- Begin Message ---
This is the class I use:
http://www.phpconcept.net/pclzip/man/en/index.php
On 10/26/05, Clive <[EMAIL PROTECTED]> wrote:
>
> Hi
>
> does any one have code/examples for unzipping a file thats been uploaded
> to a server. I would prefer a class rather than something that uses
> zip.lib as it may not be configured on the server.
>
> clive
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hi guys
I would like to convert this ..
$tmparray = split(',', $csvstring);
$element5 = $tmparray[5];
. to something like this:
$element5 = (split(',', $csvstring))[5];
. but I just can't find the correct syntax. It is Perl style - i know, but I
just love this syntax. :-)
Does anyonw know the correct syntax?
--
Regards Søren Schimkat
www.schimkat.dk
---------------------------------------
www.dyrenes-venner.dk/densorteliste.asp
--- End Message ---
--- Begin Message ---
[snip]
$tmparray = split(',', $csvstring);
$element5 = $tmparray[5];
. to something like this:
$element5 = (split(',', $csvstring))[5];
[/snip]
The syntax is correct in your first example, AFAIK the PERL syntax you
describe cannot be done straight up in PHP unless you write a function to
handle it. You could always write a PHP extension.
--- End Message ---
--- Begin Message ---
Søren Schimkat wrote:
Hi guys
I would like to convert this ..
$tmparray = split(',', $csvstring);
don't use split() here - there is no need for regexp.
use explode() instead.
$element5 = $tmparray[5];
. to something like this:
$element5 = (split(',', $csvstring))[5];
$csvstring = "1,2,3,4,5,6";
echo "route "; // humor me
echo $element5 = current(array_reverse(array_slice(explode(",", $csvstring), 0,
6)));
echo $element5 = end(array_slice(explode(",", $csvstring), 0, 6));
not as short as perl - unfortunately there is no valid
syntax that allows dereferenced access to array elements (AFAIK).
. but I just can't find the correct syntax. It is Perl style - i know, but I
just love this syntax. :-)
Does anyonw know the correct syntax?
--- End Message ---
--- Begin Message ---
Simpler(?) approach:
$element5 = current(array_splice(split(',',$csvstring),5,1));
This is fun!
-Stathis
On Wednesday 26 October 2005 17:08, Jochem Maas wrote:
> Sψren Schimkat wrote:
> > Hi guys
> >
> > I would like to convert this ..
> >
> >
> > $tmparray = split(',', $csvstring);
>
> don't use split() here - there is no need for regexp.
> use explode() instead.
>
> > $element5 = $tmparray[5];
> >
> >
> > . to something like this:
> >
> >
> > $element5 = (split(',', $csvstring))[5];
>
> $csvstring = "1,2,3,4,5,6";
> echo "route "; // humor me
> echo $element5 = current(array_reverse(array_slice(explode(",",
> $csvstring), 0, 6))); echo $element5 = end(array_slice(explode(",",
> $csvstring), 0, 6));
>
> not as short as perl - unfortunately there is no valid
> syntax that allows dereferenced access to array elements (AFAIK).
>
> > . but I just can't find the correct syntax. It is Perl style - i know,
> > but I just love this syntax. :-)
> >
> > Does anyonw know the correct syntax?
--- End Message ---
--- Begin Message ---
Hello Ben,
> While not ideal, you could do a select on a db. MS SQL and MySQL both have
> functions to generate unique id's and I imagine the other databases do as
> well. While running a "SELECT uuid()" and hitting the database for each
> one of these things is annoying, it is one possible pseudo-solution.
Finally I have come to the same solution since the generated UUIDs/GUIDs are
intended to be saved into a DB after performing some actions.
I was also suggested to use a PECL extension for this but I have no idea how
to make it work under Win32 (since it uses *nix's libuuid).
Many thanks to all contributors!
Have a great day,
Denis S Gerasimov
Web Developer
Team Force LLC
Web: www.team-force.org
RU & Int'l: +7 8362-468693
email: [EMAIL PROTECTED]
--- End Message ---
--- Begin Message ---
I have just installed MySql on Win XP and am attempting to run a php script to
create some databases. The script works fine on FreeBSD 5.3 running
mysql-client-5.0.11 and mysql-server-5.0.11.
MySQL has been installed on windows XP using a download of
mysql-5.0.13-rc-win32.zip. Test.php reports php version 4.3.1.0 and is
installed with ZendStudio which I am currently testing on win XP as I cannot
yet get any version of Zend later than 3.x to run on FreeBSD.
The username for mysql is 10 chars with a password of 8 chars and is able to
login successfully from the command line.
However when attempting to login via the script I get the following error:
"Error while connecting to MySQL: Client does not support authentication
protocol requested by server; consider upgrading MySQL client."
I have searched the mysql website and located an article which shows reference
to this error indicating that the client may need to be upgraded but as I am
using the mysql-5.0.13-rc-win32.zip package I am cautious about assuming that
that is the actual cause.
I am curious whether it is something to do with the php version.
Does anyone know how I can fix this?
Please ask for additional information you think might be helpful
Thanks in advance
david
--
40 yrs navigating and computing in blue waters.
English Owner & Captain of British Registered 60' bluewater Ketch S/V Taurus.
Currently in San Diego, CA. Sailing bound for Europe via Panama Canal after
completing engineroom refit.
--- End Message ---
--- Begin Message ---
[snip]
I have searched the mysql website and located an article which shows
reference
to this error indicating that the client may need to be upgraded but as I am
using the mysql-5.0.13-rc-win32.zip package I am cautious about assuming
that
that is the actual cause.
[/snip]
http://us3.php.net/mysqli
"The mysqli extension allows you to access the functionality provided by
MySQL 4.1 and above."
--- End Message ---
--- Begin Message ---
Hi
See this
http://dev.mysql.com/doc/refman/5.0/en/old-client.html
Best regards
"Vizion" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
>I have just installed MySql on Win XP and am attempting to run a php script
>to
> create some databases. The script works fine on FreeBSD 5.3 running
> mysql-client-5.0.11 and mysql-server-5.0.11.
>
> MySQL has been installed on windows XP using a download of
> mysql-5.0.13-rc-win32.zip. Test.php reports php version 4.3.1.0 and is
> installed with ZendStudio which I am currently testing on win XP as I
> cannot
> yet get any version of Zend later than 3.x to run on FreeBSD.
>
> The username for mysql is 10 chars with a password of 8 chars and is able
> to
> login successfully from the command line.
>
> However when attempting to login via the script I get the following error:
>
> "Error while connecting to MySQL: Client does not support authentication
> protocol requested by server; consider upgrading MySQL client."
>
> I have searched the mysql website and located an article which shows
> reference
> to this error indicating that the client may need to be upgraded but as I
> am
> using the mysql-5.0.13-rc-win32.zip package I am cautious about assuming
> that
> that is the actual cause.
>
> I am curious whether it is something to do with the php version.
>
> Does anyone know how I can fix this?
>
> Please ask for additional information you think might be helpful
> Thanks in advance
>
> david
>
>
> --
> 40 yrs navigating and computing in blue waters.
> English Owner & Captain of British Registered 60' bluewater Ketch S/V
> Taurus.
> Currently in San Diego, CA. Sailing bound for Europe via Panama Canal
> after
> completing engineroom refit.
--- End Message ---
--- Begin Message ---
How do you decompress a zlib'd string located in a file with php ?
I need to dynamically write a password string into a movie file.....
It appears that in QuickTime movie API, all sprite variables/values
are zlib'd inside the movie file
So I need to:
find the string
decompress a zlib'd string inside a file.
change its value => password=new_password
recompress the new value
write the zlib'd string back to the file
I'm sure if I can decompress the string, then it will not be too
hard to do the rest :)
many thanks
g
--- End Message ---
--- Begin Message ---
On Wed, October 26, 2005 11:07 am, Graham Anderson wrote:
> How do you decompress a zlib'd string located in a file with php ?
http://www.php.net/zlib
> I need to dynamically write a password string into a movie file.....
> It appears that in QuickTime movie API, all sprite variables/values
> are zlib'd inside the movie file
There will maybe be references to size of the string in other places
in the file that you will need to update...
--
Like Music?
http://l-i-e.com/artists.htm
--- End Message ---