Getting around PHP safe mode

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • psyko514
    See sig. Join Epic Cash.
    • Oct 2002
    • 22366

    #1

    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?

    Bad Girl Bucks
    - 50% Revshare through CCBill.
    Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

    Phoenix Forum Pics | Webmaster Access Montreal pics
    email: psyko514(a)gmail.com | icq: 214-702-014
  • Babaganoosh
    ♥♥♥ Likes Hugs ♥♥♥
    • Nov 2001
    • 15841

    #2
    Perl is your friend.
    I like pie.

    Comment

    • psyko514
      See sig. Join Epic Cash.
      • Oct 2002
      • 22366

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

      Bad Girl Bucks
      - 50% Revshare through CCBill.
      Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

      Phoenix Forum Pics | Webmaster Access Montreal pics
      email: psyko514(a)gmail.com | icq: 214-702-014

      Comment

      • Hansm
        Confirmed User
        • Jun 2002
        • 871

        #4
        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, 12:04 PM.

        Comment

        • psyko514
          See sig. Join Epic Cash.
          • Oct 2002
          • 22366

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

          Bad Girl Bucks
          - 50% Revshare through CCBill.
          Promote BrandyDDD, Pixie's Pillows, Action Allie and more!

          Phoenix Forum Pics | Webmaster Access Montreal pics
          email: psyko514(a)gmail.com | icq: 214-702-014

          Comment

          • Hansm
            Confirmed User
            • Jun 2002
            • 871

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

            Comment

            Working...