
Search In
Hi,
Here is a code for loading current logged-in user using Bootstrap full in external PHP file.
function user_load_from_bootstrap($uid = NULL) {
define('DRUPAL_ROOT', $_SERVER['DOCUMENT_ROOT']);
$base_url = 'https://'.$_SERVER['HTTP_HOST']; // thi
Hello readres today we will discuss about "How to Rename files during upload within Wordpress backend".
There are many hook function to remane file in uploading time in wordpress. We will use the sanitize_file_name hopok function.
Suppose user want
prototype property in JavaScript: The prototype property gives us freedom to add the new property and method into the object at any time. This is the global property in JavaScript which can be called through any JavaScript object at any time.
Examp
HTML5 Provides new feature of geolocation API which can help user to find his current location and share the location to the web site.
It works with the javascript which capture the latitude and longitude of the user. It works with the global naviga
In this post, I will be discussing about how to send SMS through PHP using Nexmo SMS API. To send SMS, we will be using Nexmo SMS API. There are a number of SMS Gateways like Clickatell, Twilio, and so on available in the market. However, I found Nex
Router is an inter-networking device which is used to connect two or more networks.
Cisco Hierarchy Design Model:
Access layer Router
(Low cost/ Low processing/ Less
port)
Routers which are used by small
organization and also known as
Static functions in C
The static keyword with a function in C makes it Static function. The function without static keyword in C are global by default. The difference between them is static function are only accessible in the file in which it is def
Namespace
In C++ two variables with the same name are not possible in the same scope i.e a name given to specific type or function represent one entity in a particluar scope but with namespaces, there is a possibility to create two variables or memb
An exception is an instance of the class Exception or a descendant. In ruby to rescue exceptions we do something like this:
def process_request!
#some code here
rescue
Rails.logger.error { "#{e.message} #{e.backtrace.join("\n")}" }
In magento sometimes we need to add fields to the existing table or create a new table for our module, for this purpose we are required to write the installer script instead or performing the operation directly on database.
Lets see how we c
