Hence the suggestions I made in this response Re: Re: Re: code problem. See items 1 & 3.

In the code I gave you add:
to see what userid your script is running as. This will give you some idea of how to permission your files.

Most hosting sites run their httpd as "nobody" for security reasons. A handful of cluefull hosting providers will run the virtual httpd as the userid of the account owning the hosted site. Since this is harder to do a lot of sites (and you said this was a free site so they may fall into this category) opt not to provide the level of service.

If this is the case (they are running httpd as nobody) then you will need to have the files you want your script to read set to a minimum of 0444.

Be aware that you have to make sure you do not put sensitive information into that file as anybody can read it now.


Peter L. BergholdBrewer of Belgian Ales
Peter@Berghold.Netwww.berghold.net
Unix Professional

In reply to Re: Re: Re: Re: Re: Re: Re: code problem by blue_cowdawg
in thread code problem by sandal

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.