
Search In
Helpers that are used in CakePHP are associated with the Presentation layers of application. Helpers basically contain presentational logic that are available to share between many views, elements, or layouts. We have different helpe
I have PHP MySQL functions and I need to pass the id number from one function to another and each function are called in different page. I'm using the URL to pass the variable. I don't know if that is possible but can I use session to pass th
The LIMIT clause in MySQL helps to get multi pages results or pagination through SQL Databases. This LIMIT clause is very useful on large tables its because returning the large numbers of records through MYSQL will be difficult to read and analyze..
One of the fastest growing programming languages, PHP, has had a strong foundation and is unshakeable today. The fandom behind PHP is huge and the language deserves it. Numbers say it easily that a majority of websites today are built on PHP.
Write a file Using Php
In PHP, there are many functions available which is used to write a file.
The functions are...
fwrite(), fputs(), file_put_contents
Syntax:
fputs-
fputs($file,$string,$length);
fwrite-
fwrite($file,$string,$length);
T
This blog depicts basic commands that will help a user to learn different cat command options.Here we will learn about different options of the “cat” command in Linux, “cat” is an acronym for concatenate. We use this command m
Hello readers, today I guide you "How to get category and their post via ajax".
Suppose we have 5 category in Wordpress and we want to display it in tab base and also display their post. In first when our page is loaded, 2 post are shown f
In Odoo-9 you have to create module and xmlrpc folder in server and install the apache2 in your system.
After this follow the step given below:
Step1- First create apache2 for our system using the command show below
sudo apt-get install apache2
String Functions
String functions are the part of core PHP. These are used to manipulate string data. Following are some commonly used string functions used in PHP. These are:
addslashes : Adds slashes to specified characters (
To fetch a data from database by using simple PHP code, firstly create a connection to the database by using simple query and create a login form using HTML code for entering values through user. on clickinng submit button, This form will be lo
