To Get Full URL in PHP: In this post, We are discussing about How to get the full URL in PHP. SOLUTION 1: Have a look at: [ad type=”banner”] Note:…
PHP
PHP – Hypertext Preprocessor is a widely used, server-side scripting language but also a general-purpose scripting language that is most suited for web development. The original PHP project, as invented by Rasmus Lerdorf, stood for Personal Home Page. Nowadays, it stands for the recursive acronym PHP: Hypertext Preprocessor.
Single Quoted Strings: Single quoted strings are the easiest way to specify string. Single quote is used to specify string when we want the string to be exactly as it…
SERVER_NAME: The name of the server host under which the current script is executing. If the script is running on a virtual host, this will be the value defined for…
What is var_dump? The var_dump manual page [ http://php.net/var_dump ] states that var_dump displays structured information about one or more expressions that includes its type and value. Arrays and objects are explored…
PROBLEM You have a GCM class which includes a send_notification function. In a different class, Demand.php, we trying to use the send_notification function. So we have a constructor in Demand.php which points to GCM class: This…
htmlentities(PHP 4, PHP 5, PHP 7) htmlentities — Convert all applicable characters to HTML entities Description : [ad type=”banner”] This function is identical to htmlspecialchars() in all ways, except with…
PROBLEM: ubuntu-11.04 When we try http://localhost/phpmyadmin/ We get this error on my browser SOLUTION 1: You will need to configure your apache2.conf You can add the following line to the…
PHP define() Function Definition and Usage: The define() function defines a constant. Constants are much like variables, except for the following differences: A constant’s value cannot be changed after it…
require The require statement is used to include a file into the PHP code. require is identical to include except upon failure it will also produce a fatal E_COMPILE_ERROR level…
PROBLEM we have an HTML (not XHTML) document that renders fine in Firefox 3 and IE 7. It uses fairly basic CSS to style it and renders fine in HTML….