php-install Digest 5 Apr 2001 08:02:42 -0000 Issue 248

Topics (messages 2685 through 2690):

Problem compiling IMAP-SSL support into PHP4
        2685 by: Raul Alvarez Venegas

file uploads with safe_mode [could be FAQ]
        2686 by: Ron Brogden
        2687 by: Rasmus Lerdorf
        2688 by: Ron Brogden
        2689 by: Rasmus Lerdorf

Re: [PHP-DB] iODBC Mac OS X HOWTO
        2690 by: Yasuo Ohgaki

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]


----------------------------------------------------------------------


Hi!

I'm trying to compile PHP4 --with-imap-ssl support; configure and its
options run without error messages.

$ ./configure --with-apxs --with-gd --with-gettext \
--with-imap --with-imap-ssl --with-openssl --enable-bcmath \
--enable-track-vars --disable-debug

$ make
...
 /raul/src/cvs/php4/TSRM  -DLINUX=22 -DTARGET="httpsd" -DUSE_HSREGEX
-DUSE_EXPAT 
-DAPACHE_SSL -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c php_imap.c
php_imap.c: In function `php_minit_imap':
php_imap.c:450: `auth_ssl' undeclared (first use in this function)
php_imap.c:450: (Each undeclared identifier is reported only once
php_imap.c:450: for each function it appears in.)
make[3]: *** [php_imap.lo] Error 1
make[3]: Leaving directory `/home/raul/src/cvs/php4/ext/imap'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/raul/src/cvs/php4/ext/imap'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/raul/src/cvs/php4/ext'
make: *** [all-recursive] Error 1

- PHP4 cvs version
- OpenSSL 0.9.6
- IMAP-2001.BETA

I appreciate your help. Thanks.

Raul





Howdy.  I have searched high and low for a proper explanation covering this 
but to no avail.  If there is a FAQ somewhere that definitively covers this 
issue please let me know and I will stop bothering people on the list.  I 
have seen this question posted a lot so it really should be part of the PHP 
FAQ (IMHO).

=)

 From personal experience and posts on the 'Net, I have always thought that 
PHP under safe_mode was *incapable* of performing form based file uploads 
due to file ownership issues with the "/tmp" (or whatever temp directory 
your system uses).  I noticed a comment on the annotated manual at 
www.php.net claiming that setting the upload dir to "./tmp" would work if 
you just create the "./tmp" directory with 777 permissions in your local 
file tree where the script was called from.  I have tried every variation I 
can think of cannot get this to work (and I had tries this a couple of 
years ago with PHP 3.0 too).  The manual makes no mention of safe_mode file 
upload limitations really so I have not been able to 100% confirm this 
either way.  I'd like to get it working if at all possible but it is better 
to know "you cannot" than to waste time fighting with it.

Has anyone gotten file uploads to work under safe_mode and if so, what 
php.ini changes did you have to make?  Also what OS are you using (this 
particular setup is under the latest FreeBSD with PHP as an Apache module).

Any suggestions appreciated.

Cheers,

Ron


-----------------------------------------------------------------------------
Island Net AMT Solutions Group Inc.          Telephone:          250 383-0096
1412 Quadra                                  Toll Free:        1 800 331-3055
Victoria, B.C.                               Fax:                250 383-6698
V8W 2L1                                      E-Mail:    [EMAIL PROTECTED]
Canada                                       WWW:   http://www.islandnet.com/
-----------------------------------------------------------------------------





As of 4.0.5 you can use move_uploaded_file() in safe mode to get the
uploaded file.

-Rasmus

On Wed, 4 Apr 2001, Ron Brogden wrote:

> Howdy.  I have searched high and low for a proper explanation covering this
> but to no avail.  If there is a FAQ somewhere that definitively covers this
> issue please let me know and I will stop bothering people on the list.  I
> have seen this question posted a lot so it really should be part of the PHP
> FAQ (IMHO).
>
> =)
>
>  From personal experience and posts on the 'Net, I have always thought that
> PHP under safe_mode was *incapable* of performing form based file uploads
> due to file ownership issues with the "/tmp" (or whatever temp directory
> your system uses).  I noticed a comment on the annotated manual at
> www.php.net claiming that setting the upload dir to "./tmp" would work if
> you just create the "./tmp" directory with 777 permissions in your local
> file tree where the script was called from.  I have tried every variation I
> can think of cannot get this to work (and I had tries this a couple of
> years ago with PHP 3.0 too).  The manual makes no mention of safe_mode file
> upload limitations really so I have not been able to 100% confirm this
> either way.  I'd like to get it working if at all possible but it is better
> to know "you cannot" than to waste time fighting with it.
>
> Has anyone gotten file uploads to work under safe_mode and if so, what
> php.ini changes did you have to make?  Also what OS are you using (this
> particular setup is under the latest FreeBSD with PHP as an Apache module).
>
> Any suggestions appreciated.
>
> Cheers,
>
> Ron
>
>
> -----------------------------------------------------------------------------
> Island Net AMT Solutions Group Inc.          Telephone:          250 383-0096
> 1412 Quadra                                  Toll Free:        1 800 331-3055
> Victoria, B.C.                               Fax:                250 383-6698
> V8W 2L1                                      E-Mail:    [EMAIL PROTECTED]
> Canada                                       WWW:   http://www.islandnet.com/
> -----------------------------------------------------------------------------
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





At 06:13 PM 4/4/2001 -0700, you wrote:
>As of 4.0.5 you can use move_uploaded_file() in safe mode to get the
>uploaded file.

Any idea when 4.0.5 will be available?  Also, this still leaves the 
question of "does ./tmp work for upload_tmp_dir" unanswered.  The fore 
mentioned comment in the annotated manual will be leading lotsa folks 
astray if it is in fact incorrect.

http://www.php.net/manual/en/features.file-upload.php

 >>>>>
[EMAIL PROTECTED]
24-Oct-2000 09:48
[snip]
Solution: Set upload_tmp_dir in your php.ini file/Apache config, to be 
"./tmp/".
<<<<<

Thanks for the quick response!

Ron

-----------------------------------------------------------------------------
Island Net AMT Solutions Group Inc.          Telephone:          250 383-0096
1412 Quadra                                  Toll Free:        1 800 331-3055
Victoria, B.C.                               Fax:                250 383-6698
V8W 2L1                                      E-Mail:    [EMAIL PROTECTED]
Canada                                       WWW:   http://www.islandnet.com/
-----------------------------------------------------------------------------





You can download a current snapshot of 4.0.5 from http://snaps.php.net

And no, the /tmp comment is bogus.  In safe mode PHP checks the ownership
of the file, not the permissions on it.

-Rasmus

On Wed, 4 Apr 2001, Ron Brogden wrote:

> At 06:13 PM 4/4/2001 -0700, you wrote:
> >As of 4.0.5 you can use move_uploaded_file() in safe mode to get the
> >uploaded file.
>
> Any idea when 4.0.5 will be available?  Also, this still leaves the
> question of "does ./tmp work for upload_tmp_dir" unanswered.  The fore
> mentioned comment in the annotated manual will be leading lotsa folks
> astray if it is in fact incorrect.
>
> http://www.php.net/manual/en/features.file-upload.php
>
>  >>>>>
> [EMAIL PROTECTED]
> 24-Oct-2000 09:48
> [snip]
> Solution: Set upload_tmp_dir in your php.ini file/Apache config, to be
> "./tmp/".
> <<<<<
>
> Thanks for the quick response!
>
> Ron
>
> -----------------------------------------------------------------------------
> Island Net AMT Solutions Group Inc.          Telephone:          250 383-0096
> 1412 Quadra                                  Toll Free:        1 800 331-3055
> Victoria, B.C.                               Fax:                250 383-6698
> V8W 2L1                                      E-Mail:    [EMAIL PROTECTED]
> Canada                                       WWW:   http://www.islandnet.com/
> -----------------------------------------------------------------------------
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>





Is this the link you mentioned?

http://www.iodbc.org/iodbc-phposxHOWTO.html

It seems file name has been changed.

--
Yasuo Ohgaki


""Andrew Hill"" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Okay, so no attachments to the lists :)
> Here is the HOWTO:
> http://www.iodbc.org/osxphp_iodbc.htm
>
> Best regards,
> Andrew
> --------------------------------------
> Andrew Hill - OpenLink Software
> Director Technology Evangelism
> eBusiness Infrastructure Technology
> http://www.openlinksw.com
> office:781.273.0900 x 27
> mobile:781.608.4217
> >
> >
> > Hi all,
> >
> > In the past couple of weeks, many people have asked me about
> > compiling PHP /
> > Apache under Mac OS X, so I've updated my iODBC HOWTO specifically for Mac
> > OS X.
> >
> > This walks through the process of enabling ODBC support in PHP,
> > so your Mac
> > OS X PHP applications can pull data from any relational database.  I'll be
> > uploading it to the www.iodbc.org site, but if anyone would like
> > to comment
> > on the initial draft, it's attached to the post.
> >
> > Any and all feedback is welcome - tell me anything is not clear!
>
>
> --
> PHP Install Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



Reply via email to