
Control Panel Back-End Servlet Engine


For doing formatting with the printf(), there is need to wrap output in <pre> tags. Is this the best way of showing formatted plain text on a browser?
Header (“Content-Type: Text/Plain”);
JServ configuration directory is
/hsphere/local/home/cpanel/apache/etc/jserv
In this directory:
JServ configuration – jserv.conf
JServ properties – jserv.properties
JServ zone file – zone.properties
Control Panel runs on Tomcat Apache servlet engine.
If I do a header(“Location: http://xyz.com”) does that get sent to the browser immediately? In other words, can I then do other stuff after the header command without worrying about delaying the redirect to the browser?
use htaccess to redirect
You have to do what you have to do before the header Location thing or, you can use meta refresh with a small delay.
I wants to redirect and some code executed. How do you do that with .htaccess?
htaccess is not always the best choice. In forums like phpBB the header function is used because they first need to check if for example a user is logged in or not. Then it’s so much easier to use the header function.
code 2 be executed…..
header(“Location: somepage.php”);
exit
Contains resellers’ SSL and virtual host configuration
/hsphere/local/home/cpanel/apache/etc/sites/
/hsphere/local/home/cpanel/apache/etc/{reseller_main_account_name}.conf – reseller Apache virtual host configuration file
* /hsphere/local/home/cpanel/apache/etc/{reseller_main_account_name}/ – reseller SSL directory.
If SSL is enabled for reseller, the following files are placed into the reseller SSL directory:
reseller SSL – certificateserver.crt
reseller SSL private key – server.key
How can I send that variable from one file to the other?I have a variable called $url that is defined in the first file. now i want to use that variable in the second file.
Any advice
you could save the variables as Session variables
You could put your variables in vars.php, and then
include(“vars.php”);
At the top of every page you want the variables in.
CP Apache home directory is:
/hsphere/local/home/cpanel/apache
file with server SSL certificates. – etc/ssl.crt/server.crt
file with SSL signing request – etc/ssl.csr/server.csr
file with SSL/RSA private key – etc/ssl.key/server.key
Control Panel Log files are located in the
/hsphere/local/home/cpanel/apache/logs
You must be logged in to post a comment.