Closed Thread
Results 1 to 7 of 7

Thread: Permissions for execution folders and files

  1. #1
    hrvat's Avatar
    hrvat is offline x10Hosting Member hrvat is an unknown quantity at this point
    Join Date
    Dec 2010
    Location
    Zagreb
    Posts
    66

    Permissions for execution folders and files

    Hello !
    I have installed PHP mail application and see that my files have new restriction for executing
    php files.
    Do you have some serious reason for lowering user permissions or this is only commercial matter ?

    http://www.programingplanet.elementf...11.0/index.php

    Last edited by hrvat; 09-06-2011 at 02:59 PM.

  2. #2
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,152

    Re: Permissions for execution folders and files

    Permissions on folders should be at 755, on files at 644 (those are the only sane settings in a shared server environment). If permissions on anything in your public_html (or www) directory are lower than those values, you should be able to set them to the correct values.

    That said, the page you've linked to returns nothing, so it's difficult to tell if there are issues with the script. There are restrictions on what you can use (some PHP functions have been disabled for security reasons, some have been restricted due to abuse), but if your script is encountering problems and exiting without throwing an error, there's no way to diagnose it remotely. Is your script logging errors?
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  3. #3
    hrvat's Avatar
    hrvat is offline x10Hosting Member hrvat is an unknown quantity at this point
    Join Date
    Dec 2010
    Location
    Zagreb
    Posts
    66

    Re: Permissions for execution folders and files

    My script are clearly..

    <?php

    /************************************************** ***
    ** Title........: Form Mail Script
    ** Filename.....: index.php
    ** Author.......: GentleSource
    ** Homepage.....: http://www.gentlesource.com/
    ** Notes........: This file contains the configuration
    ** Last changed.:
    ** Last change..:
    ************************************************** ***/

    /************************************************** ***
    **
    ** THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY
    ** OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
    ** LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    ** FITNESS FOR A PARTICULAR PURPOSE AND
    ** NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
    ** COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES
    ** OR OTHER LIABILITY, WHETHER IN AN ACTION OF
    ** CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
    ** OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
    ** OTHER DEALINGS IN THE SOFTWARE.
    **
    ************************************************** ***/




    /************************************************** ***
    ** Script configuration - for a documentation of the
    ** following variables please take a look at the
    ** documentation file in the 'docu' directory.
    ************************************************** ***/
    $script_root = './';

    $referring_server = 'www.programingplanet.elementfx.com, programingplanet.elementfx.com';

    $language = 'en'; // see folder /languages/

    $ip_banlist = '';

    $ip_address_count = '0';
    $ip_address_duration = '48';

    $show_limit_errors = 'yes'; // (yes, no)

    $log_messages = 'yes'; // (yes, no) -- make folder "logfile" writable with: chmod 777 logfile

    $text_wrap = '72';

    $show_error_messages = 'yes';

    $attachment = 'no'; // (yes, no) -- make folder "temp" writable with: chmod 777 temp
    $attachment_files = 'jpg, gif, png, zip, txt, pdf, doc, ppt, tif, bmp, mdb, xls, txt, vcf, csv';
    $attachment_size = 9000000;

    $captcha = 'no'; // (yes, no) -- make folder "temp" writable with: chmod 777 temp

    $filepath['logfile'] = $script_root . 'logfile/';
    $filepath['templates'] = $script_root . 'templates/';

    $file['default_html'] = 'contactMe.html';
    $file['default_mail'] = 'mail.tpl.txt';




    /************************************************** ***
    ** Add further words, text, variables and stuff
    ** that you want to appear in the templates here.
    ** The values are displayed in the HTML output and
    ** the e-mail.
    ************************************************** ***/
    $add_text = array(
    'txt_additional' => 'Additional', // {txt_additional}

    );




    /************************************************** ***
    ** Do not edit below this line - Ende der Einstellungen
    ************************************************** ***/














    /************************************************** ***
    ** Send safety signal to included files
    ************************************************** ***/
    define('IN_SCRIPT', 'true');




    /************************************************** ***
    ** Load formmail script code
    ************************************************** ***/
    include($script_root . 'inc/formmail.inc.php');

    echo $f6l_output;




    ?>

  4. #4
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,152

    Re: Permissions for execution folders and files

    There's nothing there that could throw an error (well, except if you've actually created the logfile directory below the level of public_html with 777 permissions). Most of the work is done by formmail.inc.php, which you haven't included. I can tell you this, though -- HTML mail isn't going to work. (It's used too much for spamming and phishing, so text/plain is the only acceptable mail MIME type here. For the same reason, you aren't allowed to "spoof" the From header -- the mail has to come from an email account associated with your hosting account.) That may mean that your script cannot be used on a Free Hosting server.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  5. #5
    hrvat's Avatar
    hrvat is offline x10Hosting Member hrvat is an unknown quantity at this point
    Join Date
    Dec 2010
    Location
    Zagreb
    Posts
    66

    Re: Permissions for execution folders and files

    On other words my HTML doesnt work through PHP file !

  6. #6
    essellar's Avatar
    essellar is offline Community Advocate essellar has a spectacular aura about
    Join Date
    Feb 2010
    Location
    Toronto, Ontario, CA
    Posts
    1,152

    Re: Permissions for execution folders and files

    No, you can't send HTML-formatted mail from a script on a Free Hosting account. Thank the many people before you who've abused the feature to break the law. x10Hosting has had to do a lot of work to get their domains off of the spam lists (and, occasionally, off of the malware/phishing blacklists kept by antivirus houses), so they've had to kill the features that make it too easy for the bad guys to do what they do.
    “Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
    "It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)

  7. #7
    hrvat's Avatar
    hrvat is offline x10Hosting Member hrvat is an unknown quantity at this point
    Join Date
    Dec 2010
    Location
    Zagreb
    Posts
    66

    Re: Permissions for execution folders and files

    This bad boys always doing wrong.

Closed Thread

Similar Threads

  1. i cant deleete folders or files
    By sanjananb55 in forum Free Hosting
    Replies: 5
    Last Post: 04-06-2011, 12:50 PM
  2. Website folders and files
    By edghardest1 in forum Free Hosting
    Replies: 0
    Last Post: 10-01-2010, 08:03 AM
  3. Replies: 2
    Last Post: 09-10-2007, 05:15 PM
  4. Viewing files in folders
    By jackaroo in forum Free Hosting
    Replies: 2
    Last Post: 10-14-2005, 12:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers