simplybe

Well-Known Member
Nov 29, 2002
153
0
166
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
 

rbmatt

Well-Known Member
Oct 21, 2002
211
0
166
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.
 

simplybe

Well-Known Member
Nov 29, 2002
153
0
166
yes once i added the absolute path it worked fine, i now have a custom skin with a built in ticket system :)
 

lammadog

Member
Dec 21, 2002
17
0
151
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.