Difference between include() , require() , include_once(), require_once() in php

The include statement includes and evaluates the specified file. We can include a file using “include() ” or “require()” function with file path as its parameter. Files are included based on the file path given. Include() function : Include function is used to include the file in php. If the file not found, include function emit warning and continue the execution of programme. require() function : require function is used to include the file in…

Read More

How to include a file to a php page?

The include statement includes and evaluates the specified file. We can include a file using “include() ” or “require()” function with file path as its parameter. Files are included based on the file path given or, if none is given, the include_path specified. If the file isn’t found in the include_path, include will finally check in the calling script’s own directory and the current working directory before failing. The include construct will emit a warning…

Read More

What is the use of “echo” in php?

“Echo” is used to print a data in the web page. Echo is not actually a function (it is a language construct), so you are not required to use parentheses with it. echo (unlike some other language) does not behave like a function, so it cannot always be used in the context of a function. Example: The following code print the text in the web page

Read More

Point domains or subdomains to Tumblr blogs

You can establish a more professional identity for your Tumblr blog by mapping it to one of the domains or subdomains. Instead of entering your Tumblr URL to view your blog, visitors enter your domain name’s URL. For example, visitors could go to www.thetechdiary.com instead of thetechdiary.tumblr.com. How you configure your domain with Tumblr will depend on the view of your account. Please follow these steps to point a domain registered to your Tumblr account…

Read More

what is XML? And what is advantage of XML

XML stands for EXtensible Markup Language. Xml was designed to describe data. XML tags are not predefined in XML, You must define your own tags. XML is self describing and xml uses a DTD (Document Type Definition) to formally describe the data. It is a Standard ways of expressing the structure of the document such as XML schema, DTD, etc. Advantages of XML: • Simplicity Information coded in XML is easy to read and understand,…

Read More

call a php function using ajax with json datatype

To call a php function or page, you can use jquery or javascript. It’s very simple to call a php page or function without refreshing the page. Use $.ajax to call a server context (URL, function or whatever) to invoke a particular ‘action’. Advantages of JSON -Can easily distinguish between single items and collections of size one (using JSON arrays). -Easier to represent a null value -Easily consumed by JavaScript

Read More

what does async true or async false do in jquery ajax

Async true or async false do very important role in jquery ajax call. Async False: Async false prevent other code or events to call before completing the fist one. async false is good to use when the functions or events are dependent to other one, means one event or statement needs the response of another. Example: suppose you are checking the email address existence in database on registration from and then need to submit the…

Read More
1 2 3