GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Getting around PHP safe mode (https://gfy.com/showthread.php?t=99422)

psyko514 01-12-2003 01:26 PM

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?

Babaganoosh 01-12-2003 01:27 PM

Perl is your friend.

psyko514 01-12-2003 01:31 PM

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.

Hansm 01-12-2003 02:03 PM

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>


psyko514 01-12-2003 02:04 PM

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...

Hansm 01-12-2003 02:05 PM

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.


All times are GMT -7. The time now is 07:11 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123