String matching with regular expression in PHP A sequence of characters describing a special search pattern in the text string. Basically used in programming algorithms for matching some loosely defined patterns (not define as specific manner). Helps in fetching the required strings based on a pattern definition. Perform specific operations on the string as…
Read moreWorking with Sessions in PHP Session Basics cookies are not secure because they stored on the client, it’s possible for any user to open the cookie file and read or modify the information stored within it, sometimes to malicious ends. Sessions work as cookies, except that the information maintains and store the state on the server. A session is a method for…
Read moreCookies in PHP · A text file saved on the user’s system by a Web site. · Contains information that the site can retrieve on the user’s next visit and allowing the site to “recognize” to the user and provide an improved / update set of features customized to that specific user. · Cookies are usually set in an HTTP header but JavaScript …
Read moreUsing Hidden Fields to Save State in PHP Use a hidden field to keep track of this value. A hidden field behaves the same as a text field, except that the user cannot see it unless he views the HTML source of the document that contains it. Saving State with a Hidden Field Math1.php <body> <h1> First Number</h1> <form action="math2.p…
Read more
Social Plugin