What is the difference between this and self in PHP OOP? PHP classes can have static functions and static variables.Declaring class methods or properties as static make them accessible without needing an instance of the class or an object. Static functions and variables in classes are not associated with any object, but associated…
PHP cURL functions with example cURL is stand for client URL It is a library (libcurl) which allows you to connect and communicate to many different types of servers with many different types of protocols. libcurl supports http, https, ftp, gopher, telnet, dict, file, and ldap protocols. libcurl also supports HTTPS certificates, HTTP POST, HTTP…
HTML form enctype Attribute The HTML form enctype attribute’s main purpose is to indicate how the form data/values should be encoded prior to it being sent to the location defined in the action attribute on the form. for e.g. <form action=”scriptarticle/post_page.php” method=”post” enctype=”multipart/form-data”> By default, form data is encoded to “application/x-www-form-urlencoded” so that…
If you need to show weather in your website. A very simple way to extracting weather information of any location is via Google weather API. The API will return weather in a very simple XML format that you can easily parse and integrate on any page. The API need not required any key, you just…
How to use Google with .com instead of country extension or force your browser to open google.com? You have observed that whenever you open http://www.google.com, in your browser’s address bar, you are redirected to the local Google domain of your country (http://www.google.co.in for India, .pk for Pakistan, .lk for Sri Lanka etc). Google…
How to force apache to parse html files as php? Below are some reasons why people like to parse HTML file as PHP. Search engines seem to more favor web pages that have .html extension instead of dynamic .php extensions. Converting an old static website into a dynamic website and worry about losing page…