jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
I am reading the document of WHM and Cpanel ,I notice one line:
&You can use PHP code in cPanel themes. Example:

$varible = '&cpanel print=&$CPDATA{'DNS'}&&';

What is this means ? There is no php code in this example.
Cpanel can use php code in theme ?
If I want to let my clients submit a trouble ticket while they in the control panel, I want to pass some verible like domain,username,email to my ticketing system which is written by php, how should I do ?
 

masood

Well-Known Member
Jun 14, 2002
78
0
156
The answer to your question is in your post :p

before php code is run, your cpanel code above will be evaluated. thats a little un-documented secret ;)
 

ehsan

Well-Known Member
Dec 11, 2001
185
0
316
see,

Handler will first replace all variables in your php code ...
then .php will run like what it is supposed to....
 

ehsan

Well-Known Member
Dec 11, 2001
185
0
316
you can run php under that port and with your cpanel theme
give it a shot

cd /usr/local/cpanel/base/frontend/default
edit testphp.php

&?PHP
echo $REMOTE_ADDR;
echo & TEST&;
?&


you will see :)
 

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
Anyone using any dedicated server service in the cpanel.net list ?
We are looking for a dedicated server with Cpanel solution, and don't know which one is provide good service.
 

itf

Well-Known Member
May 9, 2002
620
0
316
[quote:9e3d0ca937][i:9e3d0ca937]Originally posted by jameshsi[/i:9e3d0ca937]

Anyone using any dedicated server service in the cpanel.net list ?
We are looking for a dedicated server with Cpanel solution, and don't know which one is provide good service. [/quote:9e3d0ca937]
this is not ads forum
 

jameshsi

Well-Known Member
Oct 22, 2001
347
0
316
What do you mean ? You mean I can't ask people this kind of questions ?
I just need some advice from people who has experience.