SAFE MODE Restriction in effect
Previous  Top  Next

When sending mail using mailcustomer.php. Instead of sending the message, the following error appears.

Warning: Cannot set time limit in safe mode in /home/virtual/usr/html/ashop/admin/mailcustomer.php on line 11

set_time_limit() lines and the PayFlow Pro modules are affected by safe-mode. set_time_limit() can be commented out and the program will still run and send mail. To use the PayFlow Pro payment option, safe-mode must be off.

-----------------
The following only affected early versions of AShop.

When safe mode is activated in php the scripts aren't allowed to manipulate files that aren't owned by the user that owns the script. When uploading with a form the uploaded file is temporarily stored in /tmp and isn't owned by the owner of the script. Because of this the script isn't allowed to use file manipulation functions on that file.

Early versions of AShop used the copy function. As of version 2.3 AShop uses the move_uploaded_file function instead of the copy function. The move_uploaded _file functions should not be affected by the safe_mode setting.