How to find ip address using perl

Last updated on February 16th, 2022 at 01:49 pmClick to rate this tutorial! [Total: 0 Average: 0]Script that will find out your ip address. I have written 2 methods of finding ip address. 1] Using remote_addr() function 2] Using the environmental variable $ENV{REMOTE_ADDR} in perl. Let us take a look at how the script looks. […]

Find the string and then the line number using php from text file

Click to rate this tutorial! [Total: 1 Average: 5]Find the string and then the line number using php from text file or a text data base. In this we are searching a string named alan inside one of our log files. Click to rate this tutorial! [Total: 1 Average: 5]

PHP Code To Set And Retrieve Cookie

Last updated on May 11th, 2016 at 02:07 pmClick to rate this tutorial! [Total: 0 Average: 0]PHP Code To Set And Retrieve Cookie I am going to create a cookie named userSetting a cookie using PHP In the code below cookie is set to after expire 30 days [60*60*24*30] from the day it got created. […]

How to store and retrieve session value in php

Last updated on November 17th, 2015 at 05:42 amClick to rate this tutorial! [Total: 0 Average: 0]A PHP session variable is used to store information about, or change settings for a user session. Session variables hold information about one single user, and are available to all pages in one application. Below script will help you […]