php-general Digest 2 Dec 2009 01:08:50 -0000 Issue 6468

Topics (messages 300176 through 300194):

mod_rewrite...https index page -> http index page
        300176 by: John Corry
        300177 by: Kim Emax

Download and Install 64bit php into 64bit Windows
        300178 by: Edward S.P. Leung

REpost of weird error
        300179 by: The Doctor
        300180 by: Bob McConnell
        300185 by: The Doctor

Disabling button onclick in IE
        300181 by: Skip Evans
        300182 by: Ashley Sheridan
        300183 by: Andrew Ballard
        300184 by: tedd
        300186 by: Ryan Sun

Emergency! Performance downloading big files
        300187 by: Brian Dunning
        300188 by: Brian Dunning
        300189 by: Ashley Sheridan
        300190 by: Mari Masuda
        300191 by: James McLean
        300192 by: Michael Shadle
        300193 by: LinuxManMikeC

SOAP CLIENT and HEADER
        300194 by: Augusto Flavio

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 ---
My apologies, this is not strictly PHP...but it is relevant to a great
number of PHP application frameworks that many of us use or will use.

I have a Magento installation that relies heavily on mod_rewrite. For the
most part, I have all of my canonical URLs worked out, minus one issue.

How do I make sure that https:// requests for / are redirected to http:// /
?

I've got a rule already that strips the index.php off of requests, so I
don't want to check for that...just want to check for requests for the
https:// version of my root home page and redirect to the non-secure
version.

I suck with regex and all of my attempts to modify examples I've found have
failed.
-- 
John Corry
PHP developer - 3by400, Inc
http://www.3by400.com

--- End Message ---
--- Begin Message ---
Hey John

2009/12/1 John Corry <[email protected]>

> My apologies, this is not strictly PHP...but it is relevant to a great
> number of PHP application frameworks that many of us use or will use.
>

Well, still, you should ask in an apache forum :-)

I have a Magento installation that relies heavily on mod_rewrite. For the
> most part, I have all of my canonical URLs worked out, minus one issue.
>
> How do I make sure that https:// requests for / are redirected to http:///
> ?
>

I´ve once solved that by the virtualhost block (http://webmail var directed
to https://webmail)



> I've got a rule already that strips the index.php off of requests, so I
> don't want to check for that...just want to check for requests for the
> https:// version of my root home page and redirect to the non-secure
> version.
>
> I suck with regex and all of my attempts to modify examples I've found have
> failed.
>

well, ^means start of line, but the rewrites I´ve got examples of and are
using at work says ^admin so that´s cleary the query_string, not the entire
URL. (I haven´t used mod_rewite at all until this week...)

And as I see it nothing come close to what you want here:
http://httpd.apache.org/docs/2.0/misc/rewriteguide.html, so maybe it´s not
possible?

or you do this: RewriteRule ^(.*)$      https://yoursite.com$1

This should catch everything in the query_string and save it in $1, maybe
that works?


Kind regards
Kim

--- End Message ---
--- Begin Message ---
Dear All,

Where can we download the 64bit php package for running on 64bit Windows
platform ?

Thanks !

Edward.

--- End Message ---
--- Begin Message ---
I needed this up like last week, but no reply.

So a repost:

Why is the below happening?


Script started on Tue Dec  1 12:42:59 2009
doctor.nl2k.ab.ca//usr/source/php-5.3.1$ less configphpdso
[?1h=./configure \
  --prefix=/usr/contrib \
  --localstatedir=/var \
  --with-apxs2=/usr/contrib/bin/apxs \
  --enable-embed=shared \
  --enable-debug \
  --enable-shared \
  --disable-static \
  --with-libxml-dir=/usr/contrib \
  --with-openssl=/usr/contrib \
  --with-zlib=/usr \
  --with-bz2=/usr/contrib \
  --enable-calendar       \
  --with-curl=/usr/contrib \
  --with-curlwrappers   \
  --with-db4=/usr \
  --with-pcre-dir=/usr/contrib  \
  --enable-ftp \
  --with-openssl-dir=/usr/contrib \
  --with-gd=/usr \
  --with-jpeg-dir=/usr \
  --with-png-dir=/usr \
  --with-zlib-dir=/usr \
  --with-xpm-dir=/usr \
  --with-freetype-dir=/usr \
  --enable-gd-native-ttf   \
  --enable-gd-jis-conv     \
  --with-gmp=/usr \
  --with-mcrypt=/usr/contrib \
  --with-mysql=/usr/contrib \
  --with-mysql-sock=/tmp \
  --with-pgsql=/usr/contrib/pgsql\
  --with-libxml-dir=/usr/contrib \
  --enable-sqlite-utf8   \
  --with-pear=/usr/contrib 
configphpdso 
(END)[?1l>doctor.nl2k.ab.ca//usr/source/php-5.3.1$ httpd -V
Server version: Apache/2.2.14 (Unix)
Server built:   Nov 10 2009 23:10:45
Server's Module Magic Number: 20051115:23
Server loaded:  APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
 -D APR_USE_SYSVSEM_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/var/www"
 -D SUEXEC_BIN="/usr/contrib/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="logs/error_log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"
doctor.nl2k.ab.ca//usr/source/php-5.3.1$ make libs/libphp5.bundle
gcc  -I/usr/include -g -g -O0 -Wall   -avoid-version -module -L/usr/contrib/lib 
-L/usr/contrib//lib -L/usr/X11R6/lib -L/usr/contrib/lib/mysql 
-L/usr/contrib/pgsql/lib ext/date/php_date.o ext/date/lib/astro.o 
ext/date/lib/dow.o ext/date/lib/parse_date.o ext/date/lib/parse_tz.o 
ext/date/lib/timelib.o ext/date/lib/tm2unixtime.o ext/date/lib/unixtime2tm.o 
ext/date/lib/parse_iso_intervals.o ext/date/lib/interval.o ext/ereg/ereg.o 
ext/ereg/regex/regcomp.o ext/ereg/regex/regexec.o ext/ereg/regex/regerror.o 
ext/ereg/regex/regfree.o ext/libxml/libxml.o ext/openssl/openssl.o 
ext/openssl/xp_ssl.o ext/pcre/pcrelib/pcre_chartables.o 
ext/pcre/pcrelib/pcre_ucd.o ext/pcre/pcrelib/pcre_compile.o 
ext/pcre/pcrelib/pcre_config.o ext/pcre/pcrelib/pcre_exec.o 
ext/pcre/pcrelib/pcre_fullinfo.o ext/pcre/pcrelib/pcre_get.o 
ext/pcre/pcrelib/pcre_globals.o ext/pcre/pcrelib/pcre_info.o 
ext/pcre/pcrelib/pcre_maketables.o ext/pcre/pcrelib/pcre_newline.o 
ext/pcre/pcrelib/pcre_ord2utf8.o ext/pcre/pcrelib/pcre_refcount.o 
ext/pcre/pcrelib/pcre_study.o ext/pcre/pcrelib/pcre_tables.o 
ext/pcre/pcrelib/pcre_try_flipped.o ext/pcre/pcrelib/pcre_valid_utf8.o 
ext/pcre/pcrelib/pcre_version.o ext/pcre/pcrelib/pcre_xclass.o 
ext/pcre/php_pcre.o ext/sqlite3/sqlite3.o ext/sqlite3/libsqlite/sqlite3.o 
ext/zlib/zlib.o ext/zlib/zlib_fopen_wrapper.o ext/zlib/zlib_filter.o 
ext/bz2/bz2.o ext/bz2/bz2_filter.o ext/calendar/calendar.o ext/calendar/dow.o 
ext/calendar/french.o ext/calendar/gregor.o ext/calendar/jewish.o 
ext/calendar/julian.o ext/calendar/easter.o ext/calendar/cal_unix.o 
ext/ctype/ctype.o ext/curl/interface.o ext/curl/multi.o ext/curl/streams.o 
ext/dba/dba.o ext/dba/dba_cdb.o ext/dba/dba_dbm.o ext/dba/dba_gdbm.o 
ext/dba/dba_ndbm.o ext/dba/dba_db1.o ext/dba/dba_db2.o ext/dba/dba_db3.o 
ext/dba/dba_db4.o ext/dba/dba_flatfile.o ext/dba/dba_inifile.o 
ext/dba/dba_qdbm.o ext/dba/libcdb/cdb.o ext/dba/libcdb/cdb_make.o 
ext/dba/libcdb/uint32.o ext/dba/libflatfile/flatfile.o 
ext/dba/libinifile/inifile.o ext/dom/php_dom.o ext/dom/attr.o 
ext/dom/document.o ext/dom/domerrorhandler.o ext/dom/domstringlist.o 
ext/dom/domexception.o ext/dom/namelist.o ext/dom/processinginstruction.o 
ext/dom/cdatasection.o ext/dom/documentfragment.o ext/dom/domimplementation.o 
ext/dom/element.o ext/dom/node.o ext/dom/string_extend.o 
ext/dom/characterdata.o ext/dom/documenttype.o ext/dom/domimplementationlist.o 
ext/dom/entity.o ext/dom/nodelist.o ext/dom/text.o ext/dom/comment.o 
ext/dom/domconfiguration.o ext/dom/domimplementationsource.o 
ext/dom/entityreference.o ext/dom/notation.o ext/dom/xpath.o 
ext/dom/dom_iterators.o ext/dom/typeinfo.o ext/dom/domerror.o 
ext/dom/domlocator.o ext/dom/namednodemap.o ext/dom/userdatahandler.o 
ext/fileinfo/fileinfo.o ext/fileinfo/libmagic/apprentice.o 
ext/fileinfo/libmagic/apptype.o ext/fileinfo/libmagic/ascmagic.o 
ext/fileinfo/libmagic/cdf.o ext/fileinfo/libmagic/cdf_time.o 
ext/fileinfo/libmagic/compress.o ext/fileinfo/libmagic/encoding.o 
ext/fileinfo/libmagic/fsmagic.o ext/fileinfo/libmagic/funcs.o 
ext/fileinfo/libmagic/is_tar.o ext/fileinfo/libmagic/magic.o 
ext/fileinfo/libmagic/print.o ext/fileinfo/libmagic/readcdf.o 
ext/fileinfo/libmagic/readelf.o ext/fileinfo/libmagic/softmagic.o 
ext/filter/filter.o ext/filter/sanitizing_filters.o 
ext/filter/logical_filters.o ext/filter/callback_filter.o ext/ftp/php_ftp.o 
ext/ftp/ftp.o ext/gd/gd.o ext/gd/gdcache.o ext/gd/libgd/gd_compat.o 
ext/gd/libgd/gd_filter.o ext/gd/libgd/gd_pixelate.o ext/gd/libgd/gd_arc.o 
ext/gd/libgd/gd_rotate.o ext/gd/libgd/gd_color.o ext/gmp/gmp.o ext/hash/hash.o 
ext/hash/hash_md.o ext/hash/hash_sha.o ext/hash/hash_ripemd.o 
ext/hash/hash_haval.o ext/hash/hash_tiger.o ext/hash/hash_gost.o 
ext/hash/hash_snefru.o ext/hash/hash_whirlpool.o ext/hash/hash_adler32.o 
ext/hash/hash_crc32.o ext/hash/hash_salsa.o ext/iconv/iconv.o ext/json/json.o 
ext/json/utf8_to_utf16.o ext/json/utf8_decode.o ext/json/JSON_parser.o 
ext/mcrypt/mcrypt.o ext/mysql/php_mysql.o ext/pdo/pdo.o ext/pdo/pdo_dbh.o 
ext/pdo/pdo_stmt.o ext/pdo/pdo_sql_parser.o ext/pdo/pdo_sqlstate.o 
ext/pdo_sqlite/pdo_sqlite.o ext/pdo_sqlite/sqlite_driver.o 
ext/pdo_sqlite/sqlite_statement.o ext/pgsql/pgsql.o ext/phar/util.o 
ext/phar/tar.o ext/phar/zip.o ext/phar/stream.o ext/phar/func_interceptors.o 
ext/phar/dirstream.o ext/phar/phar.o ext/phar/phar_object.o 
ext/phar/phar_path_check.o ext/posix/posix.o ext/reflection/php_reflection.o 
ext/session/session.o ext/session/mod_files.o ext/session/mod_mm.o 
ext/session/mod_user.o ext/simplexml/simplexml.o ext/simplexml/sxe.o 
ext/spl/php_spl.o ext/spl/spl_functions.o ext/spl/spl_engine.o 
ext/spl/spl_iterators.o ext/spl/spl_array.o ext/spl/spl_directory.o 
ext/spl/spl_exceptions.o ext/spl/spl_observer.o ext/spl/spl_dllist.o 
ext/spl/spl_heap.o ext/spl/spl_fixedarray.o ext/sqlite/sqlite.o 
ext/sqlite/sess_sqlite.o ext/sqlite/pdo_sqlite2.o 
ext/sqlite/libsqlite/src/opcodes.o ext/sqlite/libsqlite/src/parse.o 
ext/sqlite/libsqlite/src/encode.o ext/sqlite/libsqlite/src/auth.o 
ext/sqlite/libsqlite/src/btree.o ext/sqlite/libsqlite/src/build.o 
ext/sqlite/libsqlite/src/delete.o ext/sqlite/libsqlite/src/expr.o 
ext/sqlite/libsqlite/src/func.o ext/sqlite/libsqlite/src/hash.o 
ext/sqlite/libsqlite/src/insert.o ext/sqlite/libsqlite/src/main.o 
ext/sqlite/libsqlite/src/os.o ext/sqlite/libsqlite/src/pager.o 
ext/sqlite/libsqlite/src/printf.o ext/sqlite/libsqlite/src/random.o 
ext/sqlite/libsqlite/src/select.o ext/sqlite/libsqlite/src/table.o 
ext/sqlite/libsqlite/src/tokenize.o ext/sqlite/libsqlite/src/update.o 
ext/sqlite/libsqlite/src/util.o ext/sqlite/libsqlite/src/vdbe.o 
ext/sqlite/libsqlite/src/attach.o ext/sqlite/libsqlite/src/btree_rb.o 
ext/sqlite/libsqlite/src/pragma.o ext/sqlite/libsqlite/src/vacuum.o 
ext/sqlite/libsqlite/src/copy.o ext/sqlite/libsqlite/src/vdbeaux.o 
ext/sqlite/libsqlite/src/date.o ext/sqlite/libsqlite/src/where.o 
ext/sqlite/libsqlite/src/trigger.o ext/standard/crypt_freesec.o 
ext/standard/crypt_blowfish.o ext/standard/php_crypt_r.o ext/standard/array.o 
ext/standard/base64.o ext/standard/basic_functions.o ext/standard/browscap.o 
ext/standard/crc32.o ext/standard/crypt.o ext/standard/cyr_convert.o 
ext/standard/datetime.o ext/standard/dir.o ext/standard/dl.o ext/standard/dns.o 
ext/standard/exec.o ext/standard/file.o ext/standard/filestat.o 
ext/standard/flock_compat.o ext/standard/formatted_print.o ext/standard/fsock.o 
ext/standard/head.o ext/standard/html.o ext/standard/image.o 
ext/standard/info.o ext/standard/iptc.o ext/standard/lcg.o ext/standard/link.o 
ext/standard/mail.o ext/standard/math.o ext/standard/md5.o 
ext/standard/metaphone.o ext/standard/microtime.o ext/standard/pack.o 
ext/standard/pageinfo.o ext/standard/quot_print.o ext/standard/rand.o 
ext/standard/soundex.o ext/standard/string.o ext/standard/scanf.o 
ext/standard/syslog.o ext/standard/type.o ext/standard/uniqid.o 
ext/standard/url.o ext/standard/var.o ext/standard/versioning.o 
ext/standard/assert.o ext/standard/strnatcmp.o ext/standard/levenshtein.o 
ext/standard/incomplete_class.o ext/standard/url_scanner_ex.o 
ext/standard/ftp_fopen_wrapper.o ext/standard/http_fopen_wrapper.o 
ext/standard/php_fopen_wrapper.o ext/standard/credits.o ext/standard/css.o 
ext/standard/var_unserializer.o ext/standard/ftok.o ext/standard/sha1.o 
ext/standard/user_filters.o ext/standard/uuencode.o ext/standard/filters.o 
ext/standard/proc_open.o ext/standard/streamsfuncs.o ext/standard/http.o 
ext/tokenizer/tokenizer.o ext/tokenizer/tokenizer_data.o ext/xml/xml.o 
ext/xml/compat.o ext/xmlreader/php_xmlreader.o ext/xmlwriter/php_xmlwriter.o 
TSRM/TSRM.o TSRM/tsrm_strtok_r.o TSRM/tsrm_virtual_cwd.o main/main.o 
main/snprintf.o main/spprintf.o main/php_sprintf.o main/safe_mode.o 
main/fopen_wrappers.o main/alloca.o main/php_scandir.o main/php_ini.o 
main/SAPI.o main/rfc1867.o main/php_content_types.o main/strlcpy.o 
main/strlcat.o main/mergesort.o main/reentrancy.o main/php_variables.o 
main/php_ticks.o main/network.o main/php_open_temporary_file.o main/php_logos.o 
main/output.o main/getopt.o main/streams/streams.o main/streams/cast.o 
main/streams/memory.o main/streams/filter.o main/streams/plain_wrapper.o 
main/streams/userspace.o main/streams/transports.o main/streams/xp_socket.o 
main/streams/mmap.o main/streams/glob_wrapper.o Zend/zend_language_parser.o 
Zend/zend_language_scanner.o Zend/zend_ini_parser.o Zend/zend_ini_scanner.o 
Zend/zend_alloc.o Zend/zend_compile.o Zend/zend_constants.o 
Zend/zend_dynamic_array.o Zend/zend_execute_API.o Zend/zend_highlight.o 
Zend/zend_llist.o Zend/zend_opcode.o Zend/zend_operators.o 
Zend/zend_ptr_stack.o Zend/zend_stack.o Zend/zend_variables.o Zend/zend.o 
Zend/zend_API.o Zend/zend_extensions.o Zend/zend_hash.o Zend/zend_list.o 
Zend/zend_indent.o Zend/zend_builtin_functions.o Zend/zend_sprintf.o 
Zend/zend_ini.o Zend/zend_qsort.o Zend/zend_multibyte.o Zend/zend_ts_hash.o 
Zend/zend_stream.o Zend/zend_iterators.o Zend/zend_interfaces.o 
Zend/zend_exceptions.o Zend/zend_strtod.o Zend/zend_gc.o Zend/zend_closures.o 
Zend/zend_float.o Zend/zend_objects.o Zend/zend_object_handlers.o 
Zend/zend_objects_API.o Zend/zend_default_classes.o Zend/zend_execute.o 
sapi/apache2handler/mod_php5.o sapi/apache2handler/sapi_apache2.o 
sapi/apache2handler/apache_config.o sapi/apache2handler/php_functions.o 
sapi/embed/php_embed.o main/internal_functions.o  -lpq -lmysqlclient -lmcrypt 
-lltdl -liconv -lgmp -lgd -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lssl 
-lcrypto -ldb-4.5 -lcurl -lbz2 -lz -lssl -lcrypto -lm -ldl -lxml2 -lz -lm 
-lcurl -lssl -lcrypto -ldl -lz -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm 
-lxml2 -lz -lm -lxml2 -lz -lm -lapr-1 -laprutil-1 -lapr -laprutil-0 -lapr-0  -o 
libs/libphp5.bundle && cp libs/libphp5.bundle libs/libphp5.so
ld: warning: libssl.so.0.9.8, needed by /usr/contrib/lib/libldap-2.3.so.0, may 
conflict with libssl.so.1.0.0
ld: warning: libcrypto.so.0.9.8, needed by /usr/contrib/lib/libldap-2.3.so.0, 
may conflict with libcrypto.so.1.0.0
/usr/lib/crt1.o: In function `__start':
/usr/lib/crt1.o(.text+0x8f): undefined reference to `main'
sapi/apache2handler/sapi_apache2.o: In function `php_apache_sapi_ub_write':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:78: undefined 
reference to `ap_rwrite'
sapi/apache2handler/sapi_apache2.o: In function `php_apache_sapi_send_headers':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:160: undefined 
reference to `ap_set_content_type'
sapi/apache2handler/sapi_apache2.o: In function `php_apache_sapi_read_post':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:185: undefined 
reference to `ap_get_brigade'
sapi/apache2handler/sapi_apache2.o: In function `php_apache_sapi_flush':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:291: undefined 
reference to `ap_rflush'
sapi/apache2handler/sapi_apache2.o: In function `php_apache_sapi_log_message':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:304: undefined 
reference to `ap_log_error'
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:306: undefined 
reference to `ap_log_rerror'
sapi/apache2handler/sapi_apache2.o: In function 
`php_apache_sapi_log_message_ex':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:313: undefined 
reference to `ap_log_rerror'
sapi/apache2handler/sapi_apache2.o: In function `php_apache_add_version':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:389: undefined 
reference to `ap_add_version_component'
sapi/apache2handler/sapi_apache2.o: In function `php_pre_config':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:398: undefined 
reference to `ap_mpm_query'
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:400: undefined 
reference to `ap_log_error'
sapi/apache2handler/sapi_apache2.o: In function `php_apache_request_ctor':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:472: undefined 
reference to `ap_auth_type'
sapi/apache2handler/sapi_apache2.o: In function `php_handler':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:588: undefined 
reference to `ap_add_common_vars'
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:589: undefined 
reference to `ap_add_cgi_vars'
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:630: undefined 
reference to `ap_update_mtime'
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:631: undefined 
reference to `ap_set_last_modified'
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:665: undefined 
reference to `ap_pass_brigade'
sapi/apache2handler/sapi_apache2.o: In function `php_ap2_register_hook':
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:686: undefined 
reference to `ap_hook_pre_config'
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:687: undefined 
reference to `ap_hook_post_config'
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:688: undefined 
reference to `ap_hook_handler'
/usr/source/php-5.3.1/sapi/apache2handler/sapi_apache2.c:689: undefined 
reference to `ap_hook_child_init'
sapi/apache2handler/apache_config.o: In function `php_apache_phpini_set':
/usr/source/php-5.3.1/sapi/apache2handler/apache_config.c:116: undefined 
reference to `ap_server_root_relative'
sapi/apache2handler/php_functions.o: In function `php_apache_lookup_uri':
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:67: undefined 
reference to `ap_sub_req_lookup_uri'
sapi/apache2handler/php_functions.o: In function `zif_virtual':
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:89: undefined 
reference to `ap_destroy_sub_req'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:99: undefined 
reference to `ap_rflush'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:101: undefined 
reference to `ap_run_sub_req'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:103: undefined 
reference to `ap_destroy_sub_req'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:106: undefined 
reference to `ap_destroy_sub_req'
sapi/apache2handler/php_functions.o: In function `zif_apache_lookup_uri':
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:162: undefined 
reference to `ap_destroy_sub_req'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:167: undefined 
reference to `ap_destroy_sub_req'
sapi/apache2handler/php_functions.o: In function `php_apache_get_version':
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:328: undefined 
reference to `ap_get_server_version'
sapi/apache2handler/php_functions.o: In function `zif_apache_get_modules':
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:355: undefined 
reference to `ap_loaded_modules'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:356: undefined 
reference to `ap_loaded_modules'
sapi/apache2handler/php_functions.o: In function `zm_info_apache':
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:382: undefined 
reference to `ap_loaded_modules'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:383: undefined 
reference to `ap_loaded_modules'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:413: undefined 
reference to `unixd_config'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:413: undefined 
reference to `unixd_config'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:413: undefined 
reference to `unixd_config'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:418: undefined 
reference to `ap_mpm_query'
/usr/source/php-5.3.1/sapi/apache2handler/php_functions.c:428: undefined 
reference to `ap_server_root'
*** Error code 1

Stop.
doctor.nl2k.ab.ca//usr/source/php-5.3.1$ exit
exit

Script done on Tue Dec  1 12:47:00 2009
-- 
Member - Liberal International  This is [email protected] Ici [email protected]
God, Queen and country! Never Satan President Republic! Beware AntiChrist 
rising! 
http://twitter.com/rootnl2k http://www.myspace.com/502748630 
Merry Christmas 2009 and Happy New Year 2010

--- End Message ---
--- Begin Message ---
From: The Doctor

> I needed this up like last week, but no reply.
> 
> So a repost:
> 
> Why is the below happening?
> 

Just a guess, but it looks like you updated the ssh library but not the
ldap libraries which depend on them. So ldap is looking for the older
version. There may be others that need to be updated to match the new
ssh kit.

Bob McConnell

--- End Message ---
--- Begin Message ---
On Tue, Dec 01, 2009 at 03:25:47PM -0500, Bob McConnell wrote:
> From: The Doctor
> 
> > I needed this up like last week, but no reply.
> > 
> > So a repost:
> > 
> > Why is the below happening?
> > 
> 
> Just a guess, but it looks like you updated the ssh library but not the
> ldap libraries which depend on them. So ldap is looking for the older
> version. There may be others that need to be updated to match the new
> ssh kit.
>

I think you refer to the openssl kit.  I am aware, but the apache
portion is not complying.

I would not mind telling php --disable-ldap
 
> Bob McConnell

-- 
Member - Liberal International  This is [email protected] Ici [email protected]
God, Queen and country! Never Satan President Republic! Beware AntiChrist 
rising! 
http://twitter.com/rootnl2k http://www.myspace.com/502748630 
Merry Christmas 2009 and Happy New Year 2010

--- End Message ---
--- Begin Message ---
Hey all,

You probably remember me asking about disabling a submit button when it is clicked to prevent double clicks submitting a form for CC processing.

I put the following code into the submit button and it works fine on FireFox, but... hold your breath... not on IE.

The button gets disabled but the form just sits there, not submitting. At first I just had

onclick="this.disabled=true;"

and that worked in FF also, but not in IE. Then I added the

document.ticket_form.submit();

But even that doesn't work with IE.

Below is the whole snippet for the button.

<input type="submit" name="submit" value="Purchase Ticket(s)" id="submit_tickets" onclick="this.disabled=true; document.ticket_form.submit();">

Any suggestions would be greatly appreciated.

Thanks,
Skip

--
====================================
Skip Evans
PenguinSites.com, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://penguinsites.com
------------------------------------
Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut




--- End Message ---
--- Begin Message ---
On Tue, 2009-12-01 at 15:06 -0600, Skip Evans wrote:

> Hey all,
> 
> You probably remember me asking about disabling a submit 
> button when it is clicked to prevent double clicks submitting 
>   a form for CC processing.
> 
> I put the following code into the submit button and it works 
> fine on FireFox, but... hold your breath... not on IE.
> 
> The button gets disabled but the form just sits there, not 
> submitting. At first I just had
> 
> onclick="this.disabled=true;"
> 
> and that worked in FF also, but not in IE. Then I added the
> 
> document.ticket_form.submit();
> 
> But even that doesn't work with IE.
> 
> Below is the whole snippet for the button.
> 
> <input type="submit" name="submit" value="Purchase Ticket(s)" 
> id="submit_tickets" onclick="this.disabled=true; 
> document.ticket_form.submit();">
> 
> Any suggestions would be greatly appreciated.
> 
> Thanks,
> Skip
> 
> -- 
> ====================================
> Skip Evans
> PenguinSites.com, LLC
> 503 S Baldwin St, #1
> Madison WI 53703
> 608.250.2720
> http://penguinsites.com
> ------------------------------------
> Those of you who believe in
> telekinesis, raise my hand.
>   -- Kurt Vonnegut
> 
> 
> 
> 

wow, i really think you're going about this all the wrong way. in your
code, you should check to see if the exact same details have just been
passed from the same IP within a certain time-limit, say half a second.
Now this isn't foolproof, but it's a lot better than using javascript
(which isn't always available remember) solution.

interestingly, this server-side solution also gets around the problem
where information is sent via get. some browsers send it twice in
attempt to download and display the page more quickly (as get behaves
very differently from post data)

Thanks,
Ash
http://www.ashleysheridan.co.uk



--- End Message ---
--- Begin Message ---
On Tue, Dec 1, 2009 at 4:06 PM, Skip Evans <[email protected]> wrote:
> Hey all,
>
> You probably remember me asking about disabling a submit button when it is
> clicked to prevent double clicks submitting  a form for CC processing.
>
> I put the following code into the submit button and it works fine on
> FireFox, but... hold your breath... not on IE.
>
> The button gets disabled but the form just sits there, not submitting. At
> first I just had
>
> onclick="this.disabled=true;"
>
> and that worked in FF also, but not in IE. Then I added the
>
> document.ticket_form.submit();
>
> But even that doesn't work with IE.
>
> Below is the whole snippet for the button.
>
> <input type="submit" name="submit" value="Purchase Ticket(s)"
> id="submit_tickets" onclick="this.disabled=true;
> document.ticket_form.submit();">
>
> Any suggestions would be greatly appreciated.
>

It looks like IE has an issue with your button being named "submit",
and is replacing the submit() method of the form with the element
named "submit". Try changing the name of the button.

Andrew

--- End Message ---
--- Begin Message ---
At 9:16 PM +0000 12/1/09, Ashley Sheridan wrote:
On Tue, 2009-12-01 at 15:06 -0600, Skip Evans wrote:
wow, i really think you're going about this all the wrong way.

Ash:

I thought the same thing considering that I went through the exact same problem and provided a solution, which he never mentioned.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
Andrew is right, another solution is to move your code from onclick to
onsubmit event,
<form name="ticket_form" onsubmit="this.submit.disabled=true;">

On Tue, Dec 1, 2009 at 4:06 PM, Skip Evans <[email protected]> wrote:

> Hey all,
>
> You probably remember me asking about disabling a submit button when it is
> clicked to prevent double clicks submitting  a form for CC processing.
>
> I put the following code into the submit button and it works fine on
> FireFox, but... hold your breath... not on IE.
>
> The button gets disabled but the form just sits there, not submitting. At
> first I just had
>
> onclick="this.disabled=true;"
>
> and that worked in FF also, but not in IE. Then I added the
>
> document.ticket_form.submit();
>
> But even that doesn't work with IE.
>
> Below is the whole snippet for the button.
>
> <input type="submit" name="submit" value="Purchase Ticket(s)"
> id="submit_tickets" onclick="this.disabled=true;
> document.ticket_form.submit();">
>
> Any suggestions would be greatly appreciated.
>
> Thanks,
> Skip
>
> --
> ====================================
> Skip Evans
> PenguinSites.com, LLC
> 503 S Baldwin St, #1
> Madison WI 53703
> 608.250.2720
> http://penguinsites.com
> ------------------------------------
> Those of you who believe in
> telekinesis, raise my hand.
>  -- Kurt Vonnegut
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--- End Message ---
--- Begin Message ---
This is a holiday-crunch emergency.

I'm dealing with a client from whom we need to download many large PDF docs 
24x7, several thousand per hour, all between a few hundred K and about 50 MB. 
Their security process requires the files to be downloaded via https using a 
big long URL with lots of credential parameters.

Here's how I'm doing it. This is on Windows, a quad Xeon with 16GB RAM:

$ctx = stream_context_create(array('http' => array('timeout' => 1200)));
$contents = file_get_contents($full_url, 0, $ctx);
$fp = fopen('D:\\DocShare\\'.$filename, "w");
$bytes_written = fwrite($fp, $contents);
fclose($fp);

It's WAY TOO SLOW. I can paste the URL into a browser and download even the 
largest files quite quickly, but the PHP method bottlenecks and cannot keep up.

Is there a SUBSTANTIALLY faster way to download and save these files? Keep in 
mind the client's requirements cannot be changed. Thanks for any suggestions.



--- End Message ---
--- Begin Message ---
Oops, it's several hundred per hour, several thousand per day. Sorry for the 
accidental superlative.

> I'm dealing with a client from whom we need to download many large PDF docs 
> 24x7, several thousand per hour, all between a few hundred K and about 50 MB. 



--- End Message ---
--- Begin Message ---
On Tue, 2009-12-01 at 14:51 -0800, Brian Dunning wrote:

> Oops, it's several hundred per hour, several thousand per day. Sorry for the 
> accidental superlative.
> 
> > I'm dealing with a client from whom we need to download many large PDF docs 
> > 24x7, several thousand per hour, all between a few hundred K and about 50 
> > MB. 
> 
> 
> 


Why not put the files behind a secured directory. Apache will handle
that, so PHP needs not be involved. Once logged in, they can download
loads without it being asked for again.

Thanks,
Ash
http://www.ashleysheridan.co.uk



--- End Message ---
--- Begin Message ---
On Dec 1, 2009, at 2:48 PM, Brian Dunning wrote:

> This is a holiday-crunch emergency.
[snip]
> Is there a SUBSTANTIALLY faster way to download and save these files? Keep in 
> mind the client's requirements cannot be changed. Thanks for any suggestions.


Could you just put the URLs of the files into something that you can iterate 
over and use curl to get the PDFs?  I don't know if this would be any faster 
than your method but it was just an idea.

Mari

--- End Message ---
--- Begin Message ---
On Wed, Dec 2, 2009 at 9:18 AM, Brian Dunning <[email protected]> wrote:
> This is a holiday-crunch emergency.

Aren't they all! :)

> It's WAY TOO SLOW. I can paste the URL into a browser and download even the 
> largest files quite quickly, but the PHP method bottlenecks and cannot keep 
> up.

Are you certain you also have the bandwidth to support it as well?

The suggestion from other users of off-loading the PDF downloading to
Apache (or another webserver) is a good idea also.

Cheers

--- End Message ---
--- Begin Message ---
On Tue, Dec 1, 2009 at 3:21 PM, James McLean <[email protected]> wrote:

> The suggestion from other users of off-loading the PDF downloading to
> Apache (or another webserver) is a good idea also.

^

I never allow PHP to be [ab]used and kept open to spoonfeed clients
with fopen/readfile/etc.

in nginx:

header("X-Accel-Redirect: /uri/path/to/file")

in lighttpd (if I recall)

header("X-Sendfile: /full/path/to/file") or now header("X-Sendfile2:
/full/path/to/file byterange")

in apache there is a "mod_sendfile" module I think. never used it.

be sure to set appropriate other headers too. nginx will fill in the
content-length for you, but you need to fill in content-type i believe
still. things like that.

--- End Message ---
--- Begin Message ---
On Tue, Dec 1, 2009 at 3:48 PM, Brian Dunning <[email protected]> wrote:
>
> This is a holiday-crunch emergency.
>
> I'm dealing with a client from whom we need to download many large PDF docs 
> 24x7, several thousand per hour, all between a few hundred K and about 50 MB. 
> Their security process requires the files to be downloaded via https using a 
> big long URL with lots of credential parameters.
>
> Here's how I'm doing it. This is on Windows, a quad Xeon with 16GB RAM:
>
> $ctx = stream_context_create(array('http' => array('timeout' => 1200)));
> $contents = file_get_contents($full_url, 0, $ctx);
> $fp = fopen('D:\\DocShare\\'.$filename, "w");
> $bytes_written = fwrite($fp, $contents);
> fclose($fp);
>
> It's WAY TOO SLOW. I can paste the URL into a browser and download even the 
> largest files quite quickly, but the PHP method bottlenecks and cannot keep 
> up.
>
> Is there a SUBSTANTIALLY faster way to download and save these files? Keep in 
> mind the client's requirements cannot be changed. Thanks for any suggestions.
>
>

Well one problem with your code is file_get_contents.  Its downloading
the entire file, putting it in a variable, then returning that
variable.  Then you write this super huge variable (as much as 50MB
from what you said) to a file.  If you think about what might be going
on underneath that seemingly simple function, there could be millions
of memory reallocations occurring to accommodate this growing
variable.  I would instead use fopen and read a set number of bytes
into a buffer variable (taking into consideration available bandwidth)
and write it to the file.  That said, I would never do this kind of a
program in PHP.  Like other's have suggested, use curl or wget, and
you can interface with it through PHP to initiate and control the
process if you need to.

--- End Message ---
--- Begin Message ---
hi All,



I'm trying to access a SOAP service but i have one doubt. I paste a
sample SOAP request for you know the problem:


//---------------- START SOAP REQUEST
POST /wbm/shopping/script/CalcPrecoPrazo.asmx HTTP/1.1
Host: shopping.correios.com.br
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/CalcPrecoPrazo";               //NOTE THIS LINE

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
  <soap:Body>
    <CalcPrecoPrazo xmlns="http://tempuri.org/";>
      <nCdEmpresa>string</nCdEmpresa>
      <sDsSenha>string</sDsSenha>
      <nCdServico>string</nCdServico>
      <sCepOrigem>string</sCepOrigem>
      <sCepDestino>string</sCepDestino>
      <nVlPeso>string</nVlPeso>
      <nCdFormato>int</nCdFormato>
      <nVlComprimento>decimal</nVlComprimento>
      <nVlAltura>decimal</nVlAltura>
      <nVlLargura>decimal</nVlLargura>
      <nVlDiametro>decimal</nVlDiametro>
      <sCdMaoPropria>string</sCdMaoPropria>
      <nVlValorDeclarado>decimal</nVlValorDeclarado>
      <sCdAvisoRecebimento>string</sCdAvisoRecebimento>
    </CalcPrecoPrazo>
  </soap:Body>
</soap:Envelope>
//---------------- END SOAP REQUEST




Ok. Now i'm creating the soap client:

$client = new SoapClient(null, array('location' =>
"http://shopping.correios.com.br/wbm/shopping/script/CalcPrecoPrazo.asmx";,
                                     'uri'      => "http://localhost/";));

//I need set the a header for this request: SOAPAction:
"http://tempuri.org/CalcPrecoPrazo";, right?
How can i do it ?


I tried something like this but not worked.

$header = new SoapHeader('http://tempuri.org/CalcPrecoPrazo',
                            'SOAPAction',
                            null);

$client->__setSoapHeaders($header);


Someidea?

$results = $client->CalcPrecoPrazo($empresaCod, $empresaSenha,
$codigoFrete, $cepOrigem, $cepDestino, $peso,
                                                    (int)$formatoCd,
(int)$comprimento, (int)$altura, (int)$largura, (int)$VlDiametro,
                                                    $codMaoPropria,
(float)$valor, $codAvisoRecebimento);


thanks



Augusto Morais

--- End Message ---

Reply via email to