Permissions

Okie. I need TWO more things for my father’s new site to go online!

  1. What permissions are necessary to accept file uploads? Is the path
    relative to the website or its physical spot on the file system? eg. my
    /public_html/foo/bar translates to
    /home/a-e/coinman/public_html/foo/bar on JD’s box. In PHP’s COPY()
    function do I specify the first (/public_html/foo/bar/file.blah) or the
    second (/home/a-e/coinman/public_html/foo/bar/file.blah)? And what
    permissions are necessary to accomidate this to the file structure?
    And, FWIW, only people who have been “authenticated” can upload files.

As a corellary, the error I get when I try to upload files now is:

Warning: Unable to create
‘/home/a-e/coinman/public_html/foo/bar/file.doc’: Permission denied in
/home/a-e/coinman/public_html/somephpfile.php on line 45 Could not copy
file: /tmp/php8mZFs9 to /home/a-e/coinman/public_html/foo/bar/file.doc

  1. JD, can you please recompile PHP to allow GD functions to work
    (Specifically with PNG!)? Pretty please? :wink:


Sean S. <?$s=“moc.seiticoeg@osomynus”;$s=ereg_replace(
“osom”,“noom”,$s);$s=strrev($s);echo"mailto:$s";?> Hex(RGB) ->
http://thedoh.dyndns.org/hexrgb/index.php

Sean S. wrote:

>Okie. I need TWO more things for my father’s new site to go online!
>
>1) What permissions are necessary to accept file uploads? Is the path
> relative to the website or its physical spot on the file system?
>
Use the full path, and the directory your copying to has to be writeable
by the user nobody.

>
>2) JD, can you please recompile PHP to allow GD functions to work
> (Specifically with PNG!)? Pretty please?
>
And cURL, and zlib, and pdf, and enable PEAR, and while your at it
upgrade to PHP 4.0.6… shoot might as well thow the (free) Zend
optomizer in as well. :wink:


John R. Marshall - Web Developer

JRM Studios - http://www.jrmstudios.com The Hotrodding Network -
http://www.hotrodding.net

“John R. Marshall” <john@jrmstudios.com> wrote in message
news:3B4707DA.6070209@jrmstudios.com
> Sean S. wrote:
>
> >Okie. I need TWO more things for my father’s new site to go online!
> >
> >1) What permissions are necessary to accept file uploads? Is the path
> > relative to the website or its physical spot on the file system?
> >
> Use the full path, and the directory your copying to has to be writeable
> by the user nobody.

So that’d be what…? :slight_smile: chmod ??? :slight_smile:

>
> >
> >2) JD, can you please recompile PHP to allow GD functions to work
> > (Specifically with PNG!)? Pretty please?
> >
> And cURL, and zlib, and pdf, and enable PEAR, and while your at it
> upgrade to PHP 4.0.6… shoot might as well thow the (free) Zend
> optomizer in as well.

Ohh yeah, forgot about zlib support. :wink:

By the way, JD, what’s up with the “hidden” .shtml files??


Sean S. <?$s=“moc.seiticoeg@osomynus”;$s=ereg_replace(
“osom”,“noom”,$s);$s=strrev($s);echo"mailto:$s";?> Hex(RGB) ->
http://thedoh.dyndns.org/hexrgb/index.php

> By the way, JD, what’s up with the “hidden” .shtml files??

independence: {/home/a-e/coinman/public_html} % mkdir test independence:
{/home/a-e/coinman/public_html} % cd test independence:
{/home/a-e/coinman/public_html/test} % ls -l total 0 independence:
{/home/a-e/coinman/public_html/test} % touch z.shtml independence:
{/home/a-e/coinman/public_html/test} % ls -l total 0 independence:
{/home/a-e/coinman/public_html/test} %

>
> –
> Sean S. <?$s=“moc.seiticoeg@osomynus”;$s=ereg_replace(
> “osom”,“noom”,$s);$s=strrev($s);echo"mailto:$s";?> Hex(RGB) ->
> http://thedoh.dyndns.org/hexrgb/index.php

“Sean S.” <noemail@here.blargh> wrote in message
news:9i8afe$fjp$1@constitution.worldwebserver.com
>
> > By the way, JD, what’s up with the “hidden” .shtml files??
>
> independence: {/home/a-e/coinman/public_html} % mkdir test independence:
> {/home/a-e/coinman/public_html} % cd test independence:
> {/home/a-e/coinman/public_html/test} % ls -l total 0 independence:
> {/home/a-e/coinman/public_html/test} % touch z.shtml independence:
> {/home/a-e/coinman/public_html/test} % ls -l total 0 independence:
> {/home/a-e/coinman/public_html/test} %

That is usually a hacked computer.

Sorry.

Leonid S. Knyshov

On Sat, 7 Jul 2001 20:42:24 -0400 Sean S. said…

> “John R. Marshall” <john@jrmstudios.com> wrote in message
> news:3B4707DA.6070209@jrmstudios.com
> > Sean S. wrote:
> >
> > >Okie. I need TWO more things for my father’s new site to go online!
> > >
> > >1) What permissions are necessary to accept file uploads? Is the path
> > > relative to the website or its physical spot on the file system?
> > >
> > Use the full path, and the directory your copying to has to be
> > writeable by the user nobody.
>
> So that’d be what…? chmod ???

Well you can chmod to 666, or grab one of those scripts that run as nobody
and do a 644 on it.

> Ohh yeah, forgot about zlib support.

Oh and enable xml:)
>
> By the way, JD, what’s up with the “hidden” .shtml files??

Are you on independence? Everything with a file extension that starts with
an s is hidden like .sql or .shtml or .shit :wink:


John R. Marshall JRM Studios.com - http://www.jrmstudios.com The
Hotrodding Network - http://www.hotrodding.net

On Sat, 7 Jul 2001 22:22:17 -0400, John R. Marshall wrote (in message
<MPG.15b18de1bcab42ed9897c0@news.worldwebserver.com>):

> Are you on independence? Everything with a file extension that starts
> with an s is hidden like .sql or .shtml or .shit

As well as .SWF. Grrrrrr! :frowning:


Scott

Dohmation - Clay Animation and Flash Fun http://www.dohmation.com/

We are working on this situation, I will keep you all advised . . .


JD

“Of course that’s just my opinion, I could be wrong . . .” Dennis Miller


Scott S wrote in message
<01HW.B76E05460007A6090DC50770@news.worldwebserver.com>…
>On Sat, 7 Jul 2001 22:22:17 -0400, John R. Marshall wrote (in message
><MPG.15b18de1bcab42ed9897c0@news.worldwebserver.com>):
>
>> Are you on independence? Everything with a file extension that starts
with
>> an s is hidden like .sql or .shtml or .shit
>
> As well as .SWF. Grrrrrr!
>
>–
>Scott
>
>Dohmation - Clay Animation and Flash Fun http://www.dohmation.com/

“JD” <jd@alegate.com> wrote in message
news:9ia8uv$t6i$1@constitution.worldwebserver.com
> We are working on this situation, I will keep you all advised . . .

Thanks, JD.


Sean S. <?$s=“moc.seiticoeg@osomynus”;$s=ereg_replace(
“osom”,“noom”,$s);$s=strrev($s);echo"mailto:$s";?> Hex(RGB) ->
http://thedoh.dyndns.org/hexrgb/index.php