Google SiteMap Generator - Enabling remote access

Generate Sitemap with Google Sitemap Generator

Enabling remote access
Linux: /usr/local/google-sitemap-generator/bin/sitemap-daemon remote_admin enable

Protect your PHP Code with PhpShield

Protect your PHP Code with PhpShield !

Replace string in all files with linux - Centos sed -i 's/old-word/new-word/g'

sed replace word / string syntax

The syntax is as follows:
sed -i 's/old-word/new-word/g' *.txt

Replace string in all files with linux - Centos

sed replace word / string syntax

The syntax is as follows:
sed -i 's/old-word/new-word/g' *.txt

Get Web User Country for your Web Analyst Work

Execute the follwing command in your centos (linux) server:
pecl install geoip

Add this to your PHP.INI
extension=geoip.so

and then In your PHP CODE
function get_ip_address() {
foreach (array('HTTP_CLIENT_IP', 'HTTP_X_FORWARDED_FOR', 'HTTP_X_FORWARDED', 'HTTP_X_CLUSTER_CLIENT_IP', 'HTTP_FORWARDED_FOR', 'HTTP_FORWARDED', 'REMOTE_ADDR') as $key) {
if (array_key_exists($key, $_SERVER) === true) {
foreach (explode(',', $_SERVER[$key]) as $ip) {
if (filter_var($ip, FILTER_VALIDATE_IP) !== false) {

Linux Version & CPU 32/64 bits

Linux Version

Type : $ uname -a

Pages

Latest Post

Popular Post

Our Skills

Author

Project Director Information Architect Database Administrator Unix Administrator Senior Developer Project Manager Product Manager Web Marketer Cloud Engineer

Contact Us

For any questions or project ideas please contact me at the following.

I'm here