Log in

View Full Version : Dynamic Commenting Question...



Beau
04-12-2007, 08:03 AM
Hi there,

I want to create a system similar to vBulletin for dynamically commenting my PHP scripts. I want to be able to include a licence number, file revision number, file downloaded etc. However, I scanned a couple of online PHP ZIP streaming classes, and couldn't come up with anything. Does anyone know something that would get this sort of job done?

Thanks :D

Tomm
04-12-2007, 08:11 AM
http://us2.php.net/ZIP

Everything you need is there.

Beau
04-12-2007, 08:23 AM
Thanks Tomm :)

However, php_zip.dll is added in my php.ini file, yet the example scripts on the manual aren't working. Do I need to install the PECL extention too? The instructions weren't that clear... :P

Tomm
04-12-2007, 08:31 AM
Check phpinfo to make sure its loaded. Are you using PHP4 or PHP5?


Thanks Tomm :)

However, php_zip.dll is added in my php.ini file, yet the example scripts on the manual aren't working. Do I need to install the PECL extention too? The instructions weren't that clear... :P

Beau
04-12-2007, 08:44 AM
It's loaded, and I'm running PHP 5.1 (I need to update, I know :P). As I said earlier, I just copied and pasted the sample script, however, it begins with this line:



$zip = new ZipArchive();


Is that going to work with an extention. I'm getting errors about there not being a class by the name of 'ZipArchive', which I can understand, considering I'm used to that syntax being used to instantite a class...

Beau
05-12-2007, 10:12 AM
*Bump* :)

Want to hide these adverts? Register an account for free!