The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

running Php in cpanel skin

Discussion in 'User Experience' started by simplybe, Jan 16, 2003.

  1. simplybe

    simplybe Well-Known Member

    Joined:
    Nov 29, 2002
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    Hi
    I am trying to add a few things to my cpanel skin. i have a link in the skin to /folder/file.php ,this works fine but the php script need to write to a dat file when i submit the data from the script to the .dat file i get the following error

    Warning: fopen(&ticket.dat&, &r+&) - No such file or directory in /tmp/cpanel.skincom.1042735573.19839 on line 153

    Thanks
     
  2. rbmatt

    rbmatt Well-Known Member

    Joined:
    Oct 21, 2002
    Messages:
    212
    Likes Received:
    0
    Trophy Points:
    16
    I had problems with this, and I'nnot sure totally why. But I just chown'ed all the files and directories to nobody and double checked the paths. It worked then.
     
  3. chrisuk

    chrisuk Registered

    Joined:
    Dec 7, 2002
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    how about fully qualifying the filename - ie /home/fred/data/data.dat
     
  4. simplybe

    simplybe Well-Known Member

    Joined:
    Nov 29, 2002
    Messages:
    153
    Likes Received:
    0
    Trophy Points:
    16
    yes once i added the absolute path it worked fine, i now have a custom skin with a built in ticket system :)
     
  5. lammadog

    lammadog Member

    Joined:
    Dec 21, 2002
    Messages:
    17
    Likes Received:
    0
    Trophy Points:
    1
    I'm not sure about fopen() but a php include() will default to to /user/local/cpanel/3rdparty/lib/php
    I kinda like that, I can put my scripts in there, and then call them from different skins.
     
Loading...
Similar Threads - running Php cpanel
  1. Krydos
    Replies:
    4
    Views:
    171

Share This Page