[PHP] Creating ZIP-File with password

2007-11-12 Thread Sebastian Hopfe
Dear PHP-Friends, normaly its my job to find solutions about problems around PHP. Now, i have a problem, that seems to be unsolved in PHP. Actually i create some zip-files and this works fine. $zip = new ZipArchive(); $zip-open(./foo.zip, ZIPARCHIVE::CREATE); $dir = scandir (doc/);

Re: [PHP] Creating ZIP-File with password

2007-11-12 Thread Sebastian Hopfe
] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Sebastian Hopfe wrote: Now, the ZIP-files must be protect. There a important files included. Each site and forum seems to have no solution about this problem. Now, I need a solution or a workarround. Are the some people, who have some ideas? You could

[PHP] Re: back-up mysql database using PHP

2007-11-07 Thread Sebastian Hopfe
Dear Vanessa You can use the SELECT ... INTO OUTFILE 'file_name' with mysql_query($vAnf, $dbconn); For the syntax you can have a look at http://dev.mysql.com/doc/refman/5.0/en/select.html Should you be allowed to send system-queries to the Server, than you should have a look to

[PHP] Re: enhanced_list_box, 2 tables from a database

2007-11-07 Thread Sebastian Hopfe
Dear kNish, first of all i have formated your PHP Code it looks better now. ?php echo tr\n; echo td height=\33\nbsp;/td\n; echo td width=\14%\ class=\style3\Artist/td\n; $options = mysql_query(SELECT artist_name FROM artist); $options=mysql_fetch_array($options); echo 'td';

[PHP] Re: Sessionvariable

2007-11-07 Thread Sebastian Hopfe
Dear Ronald, I would like to ask you, want kind of session you use in you application. regards Sebastian Ronald Wiplinger [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] I use at the first page a session variable to set a flag. After a few pages, or if somebody wait too

[PHP] Re: Help with OOPHP

2007-11-01 Thread Sebastian Hopfe
Dear Andrew, I think normaly it isn't possible to use another class in a class, without using extends. But you should use your array as a container. After you use as a container, you can make new instance into a array field. Now you can use the content of the container to administrate the

[PHP] Re: Function variables in classes

2007-11-01 Thread Sebastian Hopfe
It seems to be a PHP Bug, because normaly it should very well. but you can solve this problem, by a workarround. using eval($a.();); instead of $a(); in the class. Best regards Sebastian Paul van Haren [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Hi there, I'm trying to

[PHP] Re: Function variables in classes

2007-11-01 Thread Sebastian Hopfe
I think you should log it, because it seems to be, and you found this error. Regard Sebastian Paul van Haren [EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Thanks, this helps. The code now works. In case this is truely a bug in PHP, where should I log it? Anything that I