Permissions for execution folders and files

Status
Not open for further replies.

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
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?
 

hrvat

Member
Messages
71
Reaction score
1
Points
8
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;




?>
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
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.
 

hrvat

Member
Messages
71
Reaction score
1
Points
8
On other words my HTML doesnt work through PHP file !
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
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.
 
Status
Not open for further replies.
Top