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

Writing to the middle of a file
Hi I have a bit of a problem. Is there any way i can write some text to a middle of a text file. For

Xml parsing
I need a suggestion about parsing xml with multiply parts like pervious...
i.e. different device

Multi image upload
I have a gallery to build and want to build a dynamic upload form to allow for $var number of fields

how can i display php source code snippets ?
I am outputting some pho code .. and I want to display the source code so people can copy and paste

Problem with coding MySQL query
I'm having heaps of trouble getting one of my PHP/MySQL queries to work for some reason (and the fun

Using insert variable
need a way to inert variable data to mysql database

$acc = "212121212";
$nok =

Calling strings from other php class
I have test1.php{
$string1;
$string2;
....
... //10 strings in this class <

remove innitial

and

tags
i am using tiny_mce as a text editor for my CMS.
buy now the problem is it add <p>

insert quotes
Hi,

I have an output like this:
Code: john,18,Cancer
How can I change this to
Code:

Accessing Infotype data in dialog program
Hi All
In Dialog programs attributes I didn't see any logical database field. How can I access

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