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.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-12-2003, 01:26 PM   #1
psyko514
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?
psyko514 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2003, 01:27 PM   #2
Babaganoosh
♥♥♥ Likes Hugs ♥♥♥
 
Babaganoosh's Avatar
 
Industry Role:
Join Date: Nov 2001
Location: /home
Posts: 15,841
Perl is your friend.
__________________
I like pie.
Babaganoosh is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2003, 01:31 PM   #3
psyko514
See sig. Join Epic Cash.
 
Join Date: Oct 2002
Location: Montreal, Quebec. ICQ: 214702014
Posts: 22,366
Quote:
Originally posted by Armed & Hammered
Perl is your friend.
Ugh... I suppose I could attempt to learn some Perl.
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.
psyko514 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2003, 02:03 PM   #4
Hansm
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>

Last edited by Hansm; 01-12-2003 at 02:04 PM..
Hansm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2003, 02:04 PM   #5
psyko514
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...
psyko514 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-12-2003, 02:05 PM   #6
Hansm
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.
Hansm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.