PHP, MySql Experienced Interview Questions and Answers.

LD Opensource

Q. What are magic functions or methods in php?

The function names __construct(), __destruct(), __call(), __callStatic(), __get(), __set(), __isset(), __unset(), __sleep(), __wakeup(), __toString(), __invoke(), __set_state() and __clone() are magical in PHP classes. You cannot have functions with these names in any of your classes unless you want the magic functionality associated with them.

__sleep()   and __wakeup()

serialize() checks if your class has a function with the magic name __sleep(). If so, that function is executed prior to any serialization. It can clean up the object and is supposed to return an array with the names of all variables of that object that should be serialized. If the method doesn’t return anything then NULL is serialized and E_NOTICE is issued.


It is not possible for __sleep() to return names of private properties in parent classes…

View original post 28,072 more words

What does “The provided host name is not valid for this server” mean?

I am running a Drupal 8 website, and when I browse to any page, I am getting a plain white page with just

The provided host name is not valid for this server.

on it.

What does this mean? How do I fix this?

Link: Company:

View original post

How-to : Access new Azure Management Portal (and go back to the old ;))

Jérémie - an other BizTalker

Today, I’ve show to my colleagues the new Management portal on my phone device (because the new UI is in HTML 5 !!!!)

They answers me : “Ho, It’s been released? but when I go to the portal, I see the old management portal!!!!”.

And that’s true, if you go to , you will find the old portal. But you always need to use this portal for some features as DataSync, User Management, Service Bus etc…

If you look at the old portal, you could notice a new button at the bottom of the screen :


This button : image will launch the new Portal and ask you to re-log on.

If it’s your first log-on on the Preview Portal, you will take a tour as explain in a previous post

Have fun.

For information, the url of the Preview Portal is

EDIT (for people who need the old…

View original post 102 more words

Deploy a WordPress Azure Web App with an Alternative MySQL Database

Michael S. Collier's Blog

I was recently presented with an interesting question about Azure Web Apps, WordPress, and MySQL. While not necessarily a “hard” question, the answer wasn’t as readily available as I first anticipated. I thought I would share my experience here in hopes of helping others.

The Question

How can you deploy a WordPress site using Azure Web Apps that uses a MySQL database instance that is not a ClearDB database available in the Azure subscription?


Normally when you create a WordPress site using Azure Web Apps you are presented with an option to select an existing ClearDB MySQL database, or create a new one. But what if you don’t want to use an existing instance or create a new one? What if you want to use a MySQL database instance deployed to an Azure VM or you have a ClearDB MySQL database that doesn’t…

View original post 711 more words

Deploying Joomla on Windows Azure Web Sites


Today we have released the preview of Windows Azure Web Sites to –

Quickly and easily deploy sites to a highly scalable cloud environment that allows you to start small and scale as traffic grows.

Use the languages and open source apps of your choice then deploy with FTP, Git and TFS. Easily integrate Windows Azure services like SQL Database, Caching, CDN and Storage.

Using Web Sites it is very easy to deploy many different OSS based platforms such as Drupal, Joomla!, DNN or WordPress

This simple post will show the steps required to get a Joomla site up and running and with Web Sites this is a wizard driven process that takes around 10 minutes end-to-end. how easy is that?!

To start the process, in the new, HTML5 based, management portal you click the ‘NEW’ button on the bottom left


In the menu that opens you select ‘WEB SITES’…

View original post 174 more words