Solutionist's Blog

Tech | Health | Life | Travel

Display & Save Visitor’s Ip – PHP Code

found a blog post which tested and working very good PHP-Hypertext Preprocessor. PHP is a server side script language.Using php you can create a dynamic websites. This is the first lesson and on this lesson you will learn how to get visitors ip and save it on your server.(i wil learn you how add this […]

php script to show visitors IP

  Create a .php file   # vi  showip.php   <h1>My Ip Address</h1><hr> <br><br> Your Ip Address is: <strong><?php echo $_SERVER[‘REMOTE_ADDR’]; ?></strong><br><br>   Close the file and  done RESULT http://admin2.mweb.com.na/showip.php    

How Do I Parse HTML Pages As PHP?

You can tell apache to treat your .html pages as .php pages by adding the following line of code to your .htaccess file: AddHandler application/x-httpd-php5 .php .htm .html  The above code will parse your .html pages using php5, if you would like to use php4 instead, please use the line of code below: AddHandler application/x-httpd-php4 […]

update centos 5.7 to centos 5.9

Update centos 5.5, 5.6 , 5.7  or 5.8 to 5.9   STEP 1 :   BACKUP everything if something go wrong   Step 2: Update with YUM update   first clean all, second update glibc, yum, rpm and python packages and then update other packages like following: yum clean all yum update glibc* yum* rpm* python* yum update   Step […]

How to Install Zpanel in Centos 5

The following are the steps to install CentOS 5.5+ 1. Download the source from the following Url using the command: #wget https://xsdou.googlecode.com/files/zpanel-6.1.1.tar.gz 2. Create a directory as below: #mkdir /etc/zpanel 3. Extract the source to /etc/zpanel: #tar -zxvf zpanel-6.1.1.tar.gz -C /etc/zpanel/ 4. Change mod using the following command: #chmod +x /etc/zpanel/lib/dev/zpinstall_centos.sh 5. Finally, run the following […]

How to Install PHP mbstring extension

On my redhat based server, I installed the PHP mbstring extension as: Connect the repository: wget -q -O – http://www.atomicorp.com/installers/atomic.sh | sh   yum –enablerepo=webtatic install php-mbstring /etc/init.d/httpd restart Stopping httpd: [ OK ] Starting httpd: [ OK ]    

Secured By miniOrange