[imp] Can't attach files

Sasa STUPAR sasa at stupar.homelinux.net
Wed Feb 26 09:26:48 PST 2003


Finnaly I have solved the problem...I have set for tmp dir to /usr/tmp
and now it uploads attachments.
What a mind job. :(


Sasa

On 2/26/2003 9:03 AM, Sasa STUPAR a écrit:
> I have definitly problem with php. I have just compiled version 4.3.1
> with apache 2.0.44 as DSO and also I cannot upload files not with IMP
> and not with other webmail programs.
> I get these errors:
> -------------------
> Warning: File upload error - unable to create a temporary file in
> Unknown on line 0
> 
> Warning: Cannot modify header information - headers already sent in
> /var/www/konik/horde/imp/templates/common-header.inc on line 3
> 
> Warning: Cannot modify header information - headers already sent in
> /var/www/konik/horde/imp/templates/common-header.inc on line 4
> -------------------
> 
> Any idea ?
> 
> Sasa
> 
> On 2/25/2003 9:48 PM, Sasa STUPAR a écrit:
>> I have already read these faq. I have set in my php.ini upload dir to
>> /tmp and I have restarted apache but it doesn't help.
>> 
>> Yes, I have also compiled PHP myself.
>> 
>> I have attached what I get back when I run php test.
>> 
>> Any comment on that?
>> 
>> Sasa
>> 
>> On 2/25/2003 9:19 PM, Eric Rostetter a écrit:
>>> Quoting Sasa STUPAR <sasa at stupar.homelinux.net>:
>>> 
>>>> Yes, I am running RH8 but I don't use Apache which comes with it...I
>>> 
>>> The file I mention comes from php, not apache, in RH 8.0.
>>> 
>>>> have compiled my own 2.0.44 with php 4.3.0.
>>> 
>>> Looks like you compiled your own php also?
>>> 
>>> See the faq for the settings that control the uploading of files.
>>> http://www.horde.org/faq/admin/
>>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> 
>>   PHP Version 4.3.0
>> 
>> 
>> System Linux mig29 2.4.18-14 #1 Wed Sep 4 12:13:11 EDT 2002 i686
>> Build Date Feb 21 2003 19:47:16
>> Configure Command './configure'
>> '--with-apxs2=/usr/local/apache2/bin/apxs' '--with-gettext' '--with-xml'
>> '--with-mysql' '--with-imap' '--with-kerberos' '--with-imap-ssl'
>> Server API Apache 2.0 Filter
>> Virtual Directory Support disabled
>> Configuration File (php.ini) Path /usr/local/lib/php.ini
>> PHP API 20020918
>> PHP Extension 20020429
>> Zend Extension 20021010
>> Debug Build no
>> Thread Safety disabled
>> Registered PHP Streams php, http, ftp
>> 
>> 
>> This program makes use of the Zend Scripting Language Engine:
>> Zend Engine v1.3.0, Copyright (c) 1998-2002 Zend Technologies
>> 
>> 
>> ------------------------------------------------------------------------
>> 
>> 
>>   Configuration
>> 
>> 
>>     PHP Core
>> 
>> Directive Local Value Master Value
>> allow_call_time_pass_reference On On
>> allow_url_fopen On On
>> always_populate_raw_post_data Off Off
>> arg_separator.input & &
>> arg_separator.output & &
>> asp_tags Off Off
>> auto_append_file no value no value
>> auto_prepend_file no value no value
>> browscap no value no value
>> default_charset no value no value
>> default_mimetype text/html text/html
>> define_syslog_variables Off Off
>> disable_functions no value no value
>> display_errors Off Off
>> display_startup_errors Off Off
>> doc_root no value no value
>> docref_ext no value no value
>> docref_root http://www.php.net/ http://www.php.net/
>> enable_dl On On
>> error_append_string no value no value
>> error_log no value no value
>> error_prepend_string no value no value
>> error_reporting 2047 2039
>> expose_php Off Off
>> extension_dir ./ ./
>> file_uploads On On
>> gpc_order GPC GPC
>> highlight.bg #FFFFFF #FFFFFF
>> highlight.comment #FF8000 #FF8000
>> highlight.default #0000BB #0000BB
>> highlight.html #000000 #000000
>> highlight.keyword #007700 #007700
>> highlight.string #DD0000 #DD0000
>> html_errors On On
>> ignore_repeated_errors Off Off
>> ignore_repeated_source Off Off
>> ignore_user_abort Off Off
>> implicit_flush Off Off
>> include_path .:/usr/local/lib/php .:/usr/local/lib/php
>> log_errors Off Off
>> log_errors_max_len 1024 1024
>> magic_quotes_gpc On On
>> magic_quotes_runtime Off Off
>> magic_quotes_sybase Off Off
>> max_execution_time 30 30
>> max_input_time 60 60
>> open_basedir no value no value
>> output_buffering no value no value
>> output_handler no value no value
>> post_max_size 50M 50M
>> precision 12 12
>> register_argc_argv On On
>> register_globals Off Off
>> report_memleaks On On
>> safe_mode Off Off
>> safe_mode_exec_dir no value no value
>> safe_mode_gid Off Off
>> safe_mode_include_dir no value no value
>> sendmail_from no value no value
>> sendmail_path /usr/sbin/sendmail -t /usr/sbin/sendmail -t
>> short_open_tag On On
>> SMTP localhost localhost
>> smtp_port 25 25
>> sql.safe_mode Off Off
>> track_errors On Off
>> unserialize_callback_func no value no value
>> upload_max_filesize 50M 50M
>> upload_tmp_dir /tmp /tmp
>> user_dir no value no value
>> variables_order EGPCS EGPCS
>> xmlrpc_error_number 0 0
>> xmlrpc_errors Off Off
>> y2k_compliance On On
>> 
>> 
>>     Apache 2.0
>> 
>> 
>>     ctype
>> 
>> ctype functions enabled
>> 
>> 
>>     gettext
>> 
>> GetText Support enabled
>> 
>> 
>>     imap
>> 
>> IMAP c-Client Version 2001
>> SSL Support enabled
>> Kerberos Support enabled
>> 
>> 
>>     mysql
>> 
>> MySQL Support enabled
>> Active Persistent Links 1
>> Active Links 1
>> Client API version 3.23.49
>> MYSQL_MODULE_TYPE builtin
>> MYSQL_SOCKET /var/lib/mysql/mysql.sock
>> MYSQL_INCLUDE no value
>> MYSQL_LIBS no value
>> 
>> 
>> Directive Local Value Master Value
>> mysql.allow_persistent On On
>> mysql.connect_timeout -1 -1
>> mysql.default_host no value no value
>> mysql.default_password no value no value
>> mysql.default_port no value no value
>> mysql.default_socket no value no value
>> mysql.default_user no value no value
>> mysql.max_links Unlimited Unlimited
>> mysql.max_persistent Unlimited Unlimited
>> mysql.trace_mode Off Off
>> 
>> 
>>     overload
>> 
>> User-Space Object Overloading Support enabled
>> 
>> 
>>     pcre
>> 
>> PCRE (Perl Compatible Regular Expressions) Support enabled
>> PCRE Library Version 3.92 11-Sep-2002
>> 
>> 
>>     posix
>> 
>> Revision $Revision: 1.51 $
>> 
>> 
>>     session
>> 
>> Session Support enabled
>> Registered save handlers files user
>> 
>> 
>> Directive Local Value Master Value
>> session.auto_start Off Off
>> session.bug_compat_42 On On
>> session.bug_compat_warn On On
>> session.cache_expire 180 180
>> session.cache_limiter nocache nocache
>> session.cookie_domain no value no value
>> session.cookie_lifetime 0 0
>> session.cookie_path / /
>> session.cookie_secure Off Off
>> session.entropy_file no value no value
>> session.entropy_length 0 0
>> session.gc_dividend 100 100
>> session.gc_maxlifetime 1440 1440
>> session.gc_probability 1 1
>> session.name PHPSESSID PHPSESSID
>> session.referer_check no value no value
>> session.save_handler files files
>> session.save_path /tmp /tmp
>> session.serialize_handler php php
>> session.use_cookies On On
>> session.use_only_cookies Off Off
>> session.use_trans_sid Off Off
>> 
>> 
>>     standard
>> 
>> Regex Library Bundled library enabled
>> Dynamic Library Support enabled
>> Path to sendmail /usr/sbin/sendmail -t
>> 
>> 
>> Directive Local Value Master Value
>> assert.active 1 1
>> assert.bail 0 0
>> assert.callback no value no value
>> assert.quiet_eval 0 0
>> assert.warning 1 1
>> auto_detect_line_endings 0 0
>> default_socket_timeout 60 60
>> safe_mode_allowed_env_vars PHP_ PHP_
>> safe_mode_protected_env_vars LD_LIBRARY_PATH LD_LIBRARY_PATH
>> url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset=
>> a=href,area=href,frame=src,input=src,form=,fieldset=
>> user_agent no value no value
>> 
>> 
>>     tokenizer
>> 
>> Tokenizer Support enabled
>> 
>> 
>>     xml
>> 
>> XML Support active
>> XML Namespace Support active
>> EXPAT Version 1.95.2
>> 
>> 
>>     Additional Modules
>> 
>> Module Name
>> 
>> 
>>     Environment
>> 
>> Variable Value
>> HOSTNAME mig29
>> PVM_RSH /usr/bin/rsh
>> SHELL /bin/bash
>> TERM linux
>> HISTSIZE 1000
>> QTDIR /usr/lib/qt3-gcc3.2
>> USER root
>> LS_COLORS
>> no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
>> 
>> PVM_ROOT /usr/share/pvm3
>> USERNAME root
>> PATH /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
>> MAIL /var/spool/mail/root
>> PWD /usr/local/lib
>> INPUTRC /etc/inputrc
>> LANG en_US.UTF-8
>> LAMHELPFILE /etc/lam/lam-helpfile
>> SSH_ASKPASS /usr/libexec/openssh/gnome-ssh-askpass
>> HOME /root
>> SHLVL 2
>> XPVM_ROOT /usr/share/pvm3/xpvm
>> BASH_ENV /root/.bashrc
>> LOGNAME root
>> LESSOPEN |/usr/bin/lesspipe.sh %s
>> G_BROKEN_FILENAMES 1
>> _ /sbin/initlog
>> 
>> 
>>     PHP Variables
>> 
>> Variable Value
>> _GET["mode"] phpinfo
>> _COOKIE["PHPSESSID"] 9a74f77b6ff289593bf5e3bd705a1f66
>> _SERVER["UNIQUE_ID"] z3nTsX8AAAEAAAfW2LUAAAAC
>> _SERVER["HTTPS"] on
>> _SERVER["HTTP_HOST"] konik.homelinux.net
>> _SERVER["HTTP_USER_AGENT"] Mozilla/5.0 (Windows; U; Windows NT 5.0;
>> fr-FR; rv:1.0.2) Gecko/20021120 Netscape/7.01 (Compact)
>> _SERVER["HTTP_ACCEPT"]
>> text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1
>> _SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate, compress;q=0.9
>> _SERVER["HTTP_ACCEPT_CHARSET"] ISO-8859-1, utf-8;q=0.66, *;q=0.66
>> _SERVER["HTTP_KEEP_ALIVE"] 300
>> _SERVER["HTTP_CONNECTION"] keep-alive
>> _SERVER["HTTP_REFERER"] https://konik.homelinux.net/horde/test.php
>> _SERVER["HTTP_COOKIE"] PHPSESSID=9a74f77b6ff289593bf5e3bd705a1f66
>> _SERVER["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
>> _SERVER["SERVER_SIGNATURE"] <address>Apache/2.0.44 Server at
>> konik.homelinux.net Port 443</address>
>> _SERVER["SERVER_SOFTWARE"] Apache/2.0.44
>> _SERVER["SERVER_NAME"] konik.homelinux.net
>> _SERVER["SERVER_ADDR"] 194.249.40.218
>> _SERVER["SERVER_PORT"] 443
>> _SERVER["REMOTE_ADDR"] 192.168.10.1
>> _SERVER["DOCUMENT_ROOT"] /var/www/konik
>> _SERVER["SERVER_ADMIN"] webmaster at konik.homelinux.net
>> _SERVER["SCRIPT_FILENAME"] /var/www/konik/horde/test.php
>> _SERVER["REMOTE_PORT"] 4039
>> _SERVER["GATEWAY_INTERFACE"] CGI/1.1
>> _SERVER["SERVER_PROTOCOL"] HTTP/1.1
>> _SERVER["REQUEST_METHOD"] GET
>> _SERVER["QUERY_STRING"] mode=phpinfo
>> _SERVER["REQUEST_URI"] /horde/test.php?mode=phpinfo
>> _SERVER["SCRIPT_NAME"] /horde/test.php
>> _SERVER["PHP_SELF"] /horde/test.php
>> _SERVER["argv"]
>> 
>> Array
>> (
>>     [0] => mode=phpinfo
>> )
>> 
>> _SERVER["argc"] 1
>> _ENV["HOSTNAME"] mig29
>> _ENV["PVM_RSH"] /usr/bin/rsh
>> _ENV["SHELL"] /bin/bash
>> _ENV["TERM"] linux
>> _ENV["HISTSIZE"] 1000
>> _ENV["QTDIR"] /usr/lib/qt3-gcc3.2
>> _ENV["USER"] root
>> _ENV["LS_COLORS"]
>> no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=01;32:*.cmd=01;32:*.exe=01;32:*.com=01;32:*.btm=01;32:*.bat=01;32:*.sh=01;32:*.csh=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.bz=01;31:*.tz=01;31:*.rpm=01;31:*.cpio=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.xbm=01;35:*.xpm=01;35:*.png=01;35:*.tif=01;35:
>> _ENV["PVM_ROOT"] /usr/share/pvm3
>> _ENV["USERNAME"] root
>> _ENV["PATH"] /sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
>> _ENV["MAIL"] /var/spool/mail/root
>> _ENV["PWD"] /usr/local/lib
>> _ENV["INPUTRC"] /etc/inputrc
>> _ENV["LANG"] en_US.UTF-8
>> _ENV["LAMHELPFILE"] /etc/lam/lam-helpfile
>> _ENV["SSH_ASKPASS"] /usr/libexec/openssh/gnome-ssh-askpass
>> _ENV["HOME"] /root
>> _ENV["SHLVL"] 2
>> _ENV["XPVM_ROOT"] /usr/share/pvm3/xpvm
>> _ENV["BASH_ENV"] /root/.bashrc
>> _ENV["LOGNAME"] root
>> _ENV["LESSOPEN"] |/usr/bin/lesspipe.sh %s
>> _ENV["G_BROKEN_FILENAMES"] 1
>> _ENV["_"] /sbin/initlog
>> 
>> 
>>     PHP License
>> 
>> This program is free software; you can redistribute it and/or modify it
>> under the terms of the PHP License as published by the PHP Group and
>> included in the distribution in the file: LICENSE
>> 
>> This program is distributed in the hope that it will be useful, but
>> WITHOUT ANY WARRANTY; without even the implied warranty of
>> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>> 
>> If you did not receive a copy of the PHP license, or have any questions
>> about PHP licensing, please contact license at php.net.
>> 
>> 
> 
> 




More information about the imp mailing list