Koozali.org: home of the SME Server

upload with copy in php webpage doesn't work

Mike

upload with copy in php webpage doesn't work
« on: April 06, 2003, 03:10:47 AM »
wrote a form in php to upload files to specific directory, given 777 rights.
use php copy function.
this form works perfectly on other servers (a MacOSX and a BSD), not under my e-smith !
thx for any help.

Luke

Re: upload with copy in php webpage doesn't work
« Reply #1 on: April 07, 2003, 02:30:04 AM »
Any error messages returned etc?

Regards,
Luke

Marvin

Re: upload with copy in php webpage doesn't work
« Reply #2 on: April 09, 2003, 01:02:14 AM »
I have a similar problem with file uploads in PHProjekt.

I tried the PHProject 4.0 ZIP from the web-site (TAR is lacking file structure), and the RPM found at some other place. Nether allowed for uplaods.

Any help on this would be GREATLY appreciated.

damjan

Re: upload with copy in php webpage doesn't work
« Reply #3 on: April 11, 2003, 05:05:21 PM »
Try this link.....

Br
Damjan

Author: Jon Blakely (jon.blakely_AT_clear.net.nz)
Date:   02-26-02 21:53

Bill, I notice you have PHProjekt installed in an ibay. Have you disabled the PHP sandbox security that was introduced in SME 5.1.2. This security feature does not allow a PHP script in an ibay to access files outside of the ibay e.g your /tmp directory.

To disable this feature read

http://www.e-smith.org/bboard//read.php?f=3&i=11473&t=11473

JonMarvin wrote:
>
> I have a similar problem with file uploads in PHProjekt.
>
> I tried the PHProject 4.0 ZIP from the web-site (TAR is
> lacking file structure), and the RPM found at some other
> place. Nether allowed for uplaods.
>
> Any help on this would be GREATLY appreciated.

Han

Re: upload with copy in php webpage doesn't work
« Reply #4 on: April 14, 2003, 01:24:03 PM »
damjan wrote:
>
> Try this link.....
>
> Br
> Damjan
>
> Author: Jon Blakely (jon.blakely_AT_clear.net.nz)
> Date:   02-26-02 21:53
>
> Bill, I notice you have PHProjekt installed in an ibay. Have
> you disabled the PHP sandbox security that was introduced in
> SME 5.1.2. This security feature does not allow a PHP script
> in an ibay to access files outside of the ibay e.g your /tmp
> directory.
>
> To disable this feature read
>
> http://www.e-smith.org/bboard//read.php?f=3&i=11473&t=11473
>
> JonMarvin wrote:
> >
> > I have a similar problem with file uploads in PHProjekt.
> >
> > I tried the PHProject 4.0 ZIP from the web-site (TAR is
> > lacking file structure), and the RPM found at some other
> > place. Nether allowed for uplaods.
> >
> > Any help on this would be GREATLY appreciated.

These scripts use copy to transfer the files from the /tmp directory to the ibay. If you replace copy by move_uploaded_file it works without disabling the security feature.

Han

Ken

Re: upload with copy in php webpage doesn't work
« Reply #5 on: January 13, 2004, 05:34:10 AM »
I have this problem with version 6.03 beta of e-smith and phproject 4.1, can you tell me which file uses the word copy so I can change it, I assume it is in phprojekt?

Ken

Or should I perhaps be Han wrote:

> > Bill, I notice you have PHProjekt installed in an ibay.
> Have
> > you disabled the PHP sandbox security that was introduced
> in
> > SME 5.1.2. This security feature does not allow a PHP
> script
> > in an ibay to access files outside of the ibay e.g your
> /tmp
> > directory.
> >
> > To disable this feature read
> >
> >
> http://www.e-smith.org/bboard//read.php?f=3&i=11473&t=11473
> >
> > JonMarvin wrote:
> > >
> > > I have a similar problem with file uploads in PHProjekt.
> > >
> > > I tried the PHProject 4.0 ZIP from the web-site (TAR is
> > > lacking file structure), and the RPM found at some other
> > > place. Nether allowed for uplaods.
> > >
> > > Any help on this would be GREATLY appreciated.
>
> These scripts use copy to transfer the files from the /tmp
> directory to the ibay. If you replace copy by
> move_uploaded_file it works without disabling the security
> feature.
>
> Han

Ken

Re: upload with copy in php webpage doesn't work
« Reply #6 on: January 13, 2004, 05:34:27 AM »
I have this problem with version 6.03 beta of e-smith and phproject 4.1, can you tell me which file uses the word copy so I can change it, I assume it is in phprojekt?

Ken

Or should I perhaps be Han wrote:

> > Bill, I notice you have PHProjekt installed in an ibay.
> Have
> > you disabled the PHP sandbox security that was introduced
> in
> > SME 5.1.2. This security feature does not allow a PHP
> script
> > in an ibay to access files outside of the ibay e.g your
> /tmp
> > directory.
> >
> > To disable this feature read
> >
> >
> http://www.e-smith.org/bboard//read.php?f=3&i=11473&t=11473
> >
> > JonMarvin wrote:
> > >
> > > I have a similar problem with file uploads in PHProjekt.
> > >
> > > I tried the PHProject 4.0 ZIP from the web-site (TAR is
> > > lacking file structure), and the RPM found at some other
> > > place. Nether allowed for uplaods.
> > >
> > > Any help on this would be GREATLY appreciated.
>
> These scripts use copy to transfer the files from the /tmp
> directory to the ibay. If you replace copy by
> move_uploaded_file it works without disabling the security
> feature.
>
> Han