more error messages

Swift Mailer is a fantastic library for sending email with php. Discuss this library or ask any questions about it here.

Moderators: Chris Corbyn, General Moderators

Post Reply
roscoe
Forum Commoner
Posts: 85
Joined: Tue Aug 05, 2003 10:24 am
Location: essex uk

more error messages

Post by roscoe »

Warning: require_once() [function.require-once]: open_basedir restriction in effect. File(/mylib/Swift.php) is not within the allowed path(s): (/home/arsenal:/usr/lib/php:/usr/local/lib/php:/tmp) in /home/arsenal/public_html/myweb/mailoutattach/mail_handler.php on line 48

Warning: require_once(/mylib/Swift.php) [function.require-once]: failed to open stream: Operation not permitted in /home/arsenal/public_html/myweb/mailoutattach/mail_handler.php on line 48

Fatal error: require_once() [function.require]: Failed opening required '/mylib/Swift.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/arsenal/public_html/myweb/mailoutattach/mail_handler.php on line 48

line 48 is

Code: Select all

require_once "/home/arsenal/public_html/myweb/mailoutattach/mylib/Swift.php";
this folder and directory does exist

Is this the bleedin host again?
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

The open_basedir refers to you starting the inclusion with a slash, as it look as though your host prevents how far into your file structure you are allowed to go. Try relative paths.
Post Reply