Top 10 websites built with PHP technology !

There are 82% websites are developed using php. Php have many framework so different websites are using different -different framework.
Below are the top 10 websites which are built with php technology.

Facebook
Wikipedia
Yahoo
Flickr
Wordpress
Tumblr
Friendster
Istockphoto
sourceforge .net
PolicyMantra

It is a mix of popularity and traffic :)

WHY PHP cURL HTTP CODE return 0 (zero)

If you try to connect with the server, then you can get a return code from it, otherwise it will fail and you get ZERO.
So if you try to connect to “www.yahoo.com/zxcv” you will get a return code of 400, if you go directly to yahoo.com, you will get 302 (and then 200 if you forward to the next page… , and if you go to “yahoocom” you will get a 0 (host no found), so with the last one, there is nobody to send a code back.

Tested using the code below.

PHP CURL

What is the difference between $message and $$message?

$message is a variable and $$message is a variable of another variable.

Example
$Message = “A”;
$A= “B”;

echo $message //Output:- A
echo $$message //output :-B

That is, a variable name which can be set and used dynamically.

We can echo above strings like

echo $Message.$A;

This weill print we “AB”

Note : variable’s value can be act as variable

How many user type in wordpress

Summary of Roles

  • Super Admin – somebody with access to the site network administrationfeatures and all other features.
  • Administrator – somebody who has access to all the administration features within a single site.
  • Editor – somebody who can publish and manage posts including the posts of other users.
  • Author – somebody who can publish and manage their own posts.
  • Contributor – somebody who can write and manage their own posts but cannot publish them.
  • Subscriber – somebody who can only manage their profile.

WordPress: How to get page url by id in wordpress

Wp: Get first image attached to a post from wordpress