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 & MS Access - Line Break
Hey Guys!

I'm pulling records from an MS Access database and listing them using PHP and I'm r

how to export excel file in same server
My first post - php newbie, so appreciate your support.

I'm currently using headers to save w

How to display value in drop down list after form has been reloaded
Please bear with me as I am very new to php and html.

I have a form with several drop down me

foreach result into a single variable
Hi,

I have this code...

Code: [Select]foreach ($_POST['Interests'] as $interest =&

Secure FTP
Hi experts,
There is no SFTP action in MII workbench.
This means it needs developing custo

Array to string conversion
Can anyone help me with this?

Notice: Array to string conversion in /home/..../index.php on l

Remore client postprocessing phase getting dump SAPSQL_ARRAY_INSERT_DUPREC
Hello Expects,I have started remore client copy. Data was copied successfully. but while running pos

Send current URL in URL with a $_GET variable problem.
Hello community,

I have created a function that gets the current variable of a page, example:

a multi dimensional array with for each
hi, I have been asked to write an array, I have Zone 2,3,4,5,6,7,8 each zone has 3 sections of weigh

A Few Questions
Hi, I want to ask a few questions that I can't seem to find..

1) I'm creating a "shortcu

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