Zippen und Downloaden

OK... Dann muss es nur noch eingebauen werden... Sonst mach ichs bei mir selber :) (Evt. dann als public hack)
 
bekomme mit b1gzip folgende fehlermeldung:

Warning: dl() [function.dl]: ÀyAúHwA: Unable to initialize module Module compiled with module API=20020429, debug=0, thread-safety=0 PHP compiled with module API=20041030, debug=0, thread-safety=0 These options need to match in /srv/www/htdocs/mcules-de/cs-maps.php on line 11

Mache ich da was falsch?
 
Deine PHP-Version ist inkompatibel zum Modul. Compilier das Modul einfach nochmal selbst mit deiner PHP-Version. Source liegt ja im ZIP-Archiv bei.
 
McUles said:
Mache ich da was falsch?
Ja :D
Zeig mal den Auszug aus PHP :baby:

EDIT: Und Patrick war wieder mal wenige Sekunden schneller ;)
 
Last edited:
Hossa, ging das jetzt aber schnell!
Danke, werde ich mal versuchen.

Ähm, dumme Frage, wie compiliere ich ein C script?
 
Last edited:
Bekomme dabei diese Fehlermeldung:
Code:
b1gzip.cpp:26:25: php.h: No such file or directory
b1gzip.cpp:27:29: php_ini.h: No such file or directory
b1gzip.cpp:28:39: ext/standard/info.h: No such file or directory
In file included from b1gzip.cpp:31:
php_b1gzip.h:24: error: syntax error before `;' token
php_b1gzip.h:37: error: `b1gzip' was not declared in this scope
php_b1gzip.h:37: error: ISO C++ forbids declaration of `PHP_MINIT_FUNCTION'
   with no type
php_b1gzip.h:38: error: `b1gzip' was not declared in this scope
php_b1gzip.h:38: error: ISO C++ forbids declaration of `PHP_MSHUTDOWN_FUNCTION'
   with no type
php_b1gzip.h:39: error: `b1gzip' was not declared in this scope
php_b1gzip.h:39: error: ISO C++ forbids declaration of `PHP_RINIT_FUNCTION'
   with no type
php_b1gzip.h:40: error: `b1gzip' was not declared in this scope
php_b1gzip.h:40: error: ISO C++ forbids declaration of `PHP_RSHUTDOWN_FUNCTION'
   with no type
php_b1gzip.h:41: error: `b1gzip' was not declared in this scope
php_b1gzip.h:41: error: ISO C++ forbids declaration of `PHP_MINFO_FUNCTION'
   with no type
php_b1gzip.h:44: error: `b1gzip_create' was not declared in this scope
php_b1gzip.h:44: error: ISO C++ forbids declaration of `PHP_FUNCTION' with no
   type
php_b1gzip.h:45: error: `b1gzip_add' was not declared in this scope
php_b1gzip.h:45: error: ISO C++ forbids declaration of `PHP_FUNCTION' with no
   type
php_b1gzip.h:45: error: redefinition of `int PHP_FUNCTION'
php_b1gzip.h:44: error: `int PHP_FUNCTION' previously defined here
php_b1gzip.h:46: error: `b1gzip_final' was not declared in this scope
php_b1gzip.h:46: error: ISO C++ forbids declaration of `PHP_FUNCTION' with no
   type
php_b1gzip.h:46: error: redefinition of `int PHP_FUNCTION'
php_b1gzip.h:45: error: `int PHP_FUNCTION' previously defined here
b1gzip.cpp:32:24: ZipArchive.h: No such file or directory
b1gzip.cpp:42: error: 'CZipArchive' is used as a type, but is not defined as a
   type.
b1gzip.cpp:43: error: 'CZipMemFile' is used as a type, but is not defined as a
   type.
b1gzip.cpp:50: error: syntax error before `[' token
b1gzip.cpp:62: error: syntax error before `=' token
b1gzip.cpp:89: error: syntax error before `;' token
b1gzip.cpp:90: error: syntax error before `;' token
b1gzip.cpp:94: error: `zend_rsrc_list_entry' was not declared in this scope
b1gzip.cpp:94: error: `rsrc' was not declared in this scope
b1gzip.cpp:94: error: syntax error before `)' token
b1gzip.cpp:99: error: `b1gzip' was not declared in this scope
b1gzip.cpp:100: error: ISO C++ forbids declaration of `PHP_MINIT_FUNCTION' with
   no type
b1gzip.cpp:100: error: redefinition of `int PHP_MINIT_FUNCTION'
php_b1gzip.h:37: error: `int PHP_MINIT_FUNCTION' previously defined here
b1gzip.cpp:100: error: syntax error before `{' token
b1gzip.cpp:111: error: `b1gzip' was not declared in this scope
b1gzip.cpp:112: error: ISO C++ forbids declaration of `PHP_MSHUTDOWN_FUNCTION'
   with no type
b1gzip.cpp:112: error: redefinition of `int PHP_MSHUTDOWN_FUNCTION'
php_b1gzip.h:38: error: `int PHP_MSHUTDOWN_FUNCTION' previously defined here
b1gzip.cpp:112: error: syntax error before `{' token
b1gzip.cpp:119: error: `b1gzip' was not declared in this scope
b1gzip.cpp:120: error: ISO C++ forbids declaration of `PHP_RINIT_FUNCTION' with
   no type
b1gzip.cpp:120: error: redefinition of `int PHP_RINIT_FUNCTION'
php_b1gzip.h:39: error: `int PHP_RINIT_FUNCTION' previously defined here
b1gzip.cpp:120: error: syntax error before `{' token
b1gzip.cpp:125: error: `b1gzip' was not declared in this scope
b1gzip.cpp:126: error: ISO C++ forbids declaration of `PHP_RSHUTDOWN_FUNCTION'
   with no type
b1gzip.cpp:126: error: redefinition of `int PHP_RSHUTDOWN_FUNCTION'
php_b1gzip.h:40: error: `int PHP_RSHUTDOWN_FUNCTION' previously defined here
b1gzip.cpp:126: error: syntax error before `{' token
b1gzip.cpp:130: error: `b1gzip' was not declared in this scope
b1gzip.cpp:131: error: ISO C++ forbids declaration of `PHP_MINFO_FUNCTION' with
   no type
b1gzip.cpp:131: error: redefinition of `int PHP_MINFO_FUNCTION'
php_b1gzip.h:41: error: `int PHP_MINFO_FUNCTION' previously defined here
b1gzip.cpp:131: error: syntax error before `{' token
b1gzip.cpp:133: error: ISO C++ forbids declaration of `
   php_info_print_table_header' with no type
b1gzip.cpp:133: error: initializer list being treated as compound expression
b1gzip.cpp:133: error: invalid conversion from `const char*' to `int'
b1gzip.cpp:134: error: ISO C++ forbids declaration of `php_info_print_table_end
   ' with no type
b1gzip.cpp:135: error: syntax error before `}' token
b1gzip.cpp:137: error: `b1gzip_add' was not declared in this scope
b1gzip.cpp:138: error: ISO C++ forbids declaration of `PHP_FUNCTION' with no
   type
b1gzip.cpp:138: error: redefinition of `int PHP_FUNCTION'
php_b1gzip.h:46: error: `int PHP_FUNCTION' previously defined here
b1gzip.cpp:138: error: syntax error before `{' token
b1gzip.cpp:140: error: `NULL' was not declared in this scope
b1gzip.cpp:142: error: 'CZipMemFile' is used as a type, but is not defined as a
   type.
b1gzip.cpp:143: error: syntax error before `*' token
b1gzip.cpp:145: error: `NULL' was not declared in this scope
b1gzip.cpp:147: error: syntax error before `if'
b1gzip.cpp:151: error: syntax error before `*' token
b1gzip.cpp:151: error: ISO C++ forbids declaration of `ZEND_FETCH_RESOURCE'
   with no type
b1gzip.cpp:153: error: syntax error before `.' token
b1gzip.cpp:155: error: syntax error before `->' token
b1gzip.cpp:158: error: `b1gzip_final' was not declared in this scope
b1gzip.cpp:159: error: ISO C++ forbids declaration of `PHP_FUNCTION' with no
   type
b1gzip.cpp:159: error: redefinition of `int PHP_FUNCTION'
b1gzip.cpp:138: error: `int PHP_FUNCTION' previously defined here
b1gzip.cpp:159: error: syntax error before `{' token
b1gzip.cpp:161: error: redefinition of `zip_res*handle'
b1gzip.cpp:145: error: `zip_res*handle' previously defined here
b1gzip.cpp:161: error: `NULL' was not declared in this scope
b1gzip.cpp:162: error: syntax error before `*' token
b1gzip.cpp:168: error: syntax error before `*' token
b1gzip.cpp:168: error: ISO C++ forbids declaration of `ZEND_FETCH_RESOURCE'
   with no type
b1gzip.cpp:170: error: syntax error before `->' token
b1gzip.cpp:171: error: ISO C++ forbids declaration of `zip_len' with no type
b1gzip.cpp:171: error: 'struct zip_res' has no member named 'out'
b1gzip.cpp:173: error: `rid' was not declared in this scope
b1gzip.cpp:173: error: `Z_LVAL_P' was not declared in this scope
b1gzip.cpp:173: error: ISO C++ forbids declaration of `zend_list_delete' with
   no type
b1gzip.cpp:175: error: 'struct zip_res' has no member named 'out'
b1gzip.cpp:175: error: ISO C++ forbids declaration of `RETURN_STRINGL' with no
   type
b1gzip.cpp:175: error: initializer list being treated as compound expression
b1gzip.cpp:176: error: syntax error before `}' token
b1gzip.cpp:178: error: `b1gzip_create' was not declared in this scope
b1gzip.cpp:179: error: ISO C++ forbids declaration of `PHP_FUNCTION' with no
   type
b1gzip.cpp:179: error: redefinition of `int PHP_FUNCTION'
b1gzip.cpp:159: error: `int PHP_FUNCTION' previously defined here
b1gzip.cpp:179: error: syntax error before `{' token
b1gzip.cpp:181: error: syntax error before `->' token
b1gzip.cpp:182: error: `return_value' was not declared in this scope
b1gzip.cpp:182: error: ISO C++ forbids declaration of `ZEND_REGISTER_RESOURCE'
   with no type
b1gzip.cpp:182: error: initializer list being treated as compound expression
b1gzip.cpp:184: error: syntax error before `}' token
 
mal so als anmerkung, bei der jetztigen lösung muss der server jedes mal neu rechnen oder? warum machst du das nicht im admin oder so... das die .zip fertig auffem server liegt?
 
timme said:
mal so als anmerkung, bei der jetztigen lösung muss der server jedes mal neu rechnen oder? warum machst du das nicht im admin oder so... das die .zip fertig auffem server liegt?

Weil das in manchen Szenarien nicht sinnvoll ist ;)
 
Ja, aber hierbei finde ich dass ne statische Datei nicht schlechter ist... Naja ist seine Entscheidung, aber wie sich das so anhört ist das Modul an sich ja große Klasse, will ich gleich mal ausprobieren.
 
Back
Top