Syntax highlighting for Drupal module files in Notepad++

Code Caravan

Notepad++ does not recognize Drupal module code files (.module) as php source code files, so php syntax highlighting is absent for these files. In this post I will show you how to configure Notepad++ to recognize .module files as php source code files.

Open Notepad++ with root / administrator privileges. This is because the configuration changes will involve indirectly editing Notepad++’s core system files, which require root privileges to edit.

Go to Settings -> Style Configurator.

configuration

From the top portion, of the dialog box, select the theme for which you want to apply your style.

Select php from the language selection pane.

In the lower part of the dialog box is a list of the extensions that this theme recognizes as php source code files. Go ahead and add module as another extension. Save. If any module file is already open in Notepad++, close and reopen it.

Happy coding!

View original post

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.

Note:

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?

drupaljoomlahosting.com

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:
http://drupaljoomlahosting.com/content/what-does-provided-host-name-not-valid-server-mean Company: http://texasintegratedservices.com
LinkedIn: https://www.linkedin.com/in/texasintegratedservices

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 http://windows.azure.com , 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 :

image

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 http://manage.windowsazure.com

EDIT (for people who need the old…

View original post 102 more words