How to Detect it is public_html or httpdocs?


Posted on 16th Feb 2014 07:03 pm by admin

How to check whether it is cPanel or Plesk?

If it found public_html perform <?php include("callcPanel.php"); ?>
Else if found httpdocs perform <?php include("callPlesk.php"); ?>
Else exit;

*cPanel is using public_html while Plesk is using httpdocs

Anyone knows

No comments posted yet

Your Answer:

Login to answer
128 Like 53 Dislike
Previous forums Next forums
Other forums

PHP & Java
Hello,

can PHP code be used inside java code?

Code: <SCRIPT LANGUAGE="Java

SESSION question
I am building an application , a directory for auctions.
For SEO i made a script which copies a p

Had a simple form script that suddenly stopped working
It was made about a year ago and had been working fine. Last time it was known to work for sure was

mysql_real_escape_string making variable equal nothing
i post a form and i post the variable:
Code: $var = $_POST[variable];then i echo $var its what i

Code clarification
Hi

In the following code what could be the "search_print()" and where it could be

FPDF Help
I've been playing with the FPDF module. I was building a form and rolling right along and then sudde

Losing 'page' data
I have this code that allows me to update my database. But after updating, I lose the $_GET['page']

Adding to the next element in a multidimensional array
Hi, I'm trying to add a value to $node->field_spaces['nid'] where x is the next available spo

Trouble verifying database password
Thankyou to everyone who responded to my last post (I can't find the posting, it has been buried). <

If a record matches an existing record do nothing
So I don't know if I should put this here or in mysql, but what my script is for is for people to ad

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash