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"); ?>
Did you know?Explore Trending and Topic pages for more stories like this.
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

Not adding to db
Hi, I can't figure out why it won't add the record to the database. It's just a simple form to get

Form submissing with PHP and JQuery/Ajax
I have searched everywhere, but cannot find a solution for this... I have worked all day trying to g

Need to write a cookie with a url var
Not sure if its possible, but I need to write a cookie with a url.

So this would write 2232 a

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

Multi Level Array Problem
hi all,

For example I have array like below:

$temp = array(array('north america', 'us'

How to pass parameter to tag query?
Hi,
I want to get the value of a tag at a specific time (like 10/27/09 15:29:59), I need to giv

Adding Different Numbers From MySQL
Basically I have a mysql database with a couple prices as the following:

9.99
9.99
9.99

IS this code correct
The reason i ask is everything underneath it appears to be alink as well, tis blimmin annoying

How to get variable value on next page
Hello friends
i am working on payentry page ..there i have this code.........

JSON SORT WITH PHP
I have two products that I want to sort by say "Id:17, value: xxx" using php
The page w

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