|
|
|
||||
|
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
See sig. Join Epic Cash.
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
|
Getting around PHP safe mode
I'm on a virtual hosting plan with PHP safe mode enabled.
I have a few scripts I need to run that need safe mode disbabled. How can I copy files and create new directories with something other than PHP? |
|
|
|
|
|
#2 |
|
♥♥♥ Likes Hugs ♥♥♥
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
|
Perl is your friend.
__________________
I like pie. |
|
|
|
|
|
#3 | |
|
See sig. Join Epic Cash.
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
|
Quote:
How easy would it be to integrate a few lines of Perl into a PHP page. I have certain aspects of my PHP script that do work (like inserting info into a database) so I don't want to re-write the whole script in Perl. Just need to mkdir, chmod and copy. |
|
|
|
|
|
|
#4 |
|
Confirmed User
Join Date: Jun 2002
Posts: 871
|
im thinking you are on a plesk server, its using safemode too and it sucks, you need to ask your provider to disable it with placing a file vhost.conf in the conf directory with the follow info:
Code:
<Directory "/usr/local/psa/home/vhosts/DOMAIN/httpdocs"> php_admin_value safe_mode off php_admin_value open_basedir "/usr/local/psa/home/vhosts:/tmp" </Directory> |
|
|
|
|
|
#5 |
|
See sig. Join Epic Cash.
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
|
yes, i am on a plesk server.
i used to have safe mode disabled, but then they switched my box and now it's enabled. i've emailed them to disable it, so we'll see what they say... |
|
|
|
|
|
#6 |
|
Confirmed User
Join Date: Jun 2002
Posts: 871
|
i hate vbb i cant post the whole code, yes maybe its in the source
its not accepting directory options in code. add me to icq 17947284 or msn [email protected] thx. |
|
|
|