Kilho.net

Kategori: IT

IT

HTTP Access Information Log

For testing OpenAPI and checking whether the connection information is correct Method, host, and POST values on connection [PHP] <? $log = $_SERVER[‘REQUEST_METHOD’].’ ‘.$_SERVER[‘HTTP_HOST’].$_SERVER[‘REQUEST_URI’].”nn”; foreach($_SERVER as $k => $v) { if($k==’HTTP_HOST’) continue; if(substr($k, 0,5)!=’HTTP_’) continue; $log .= ‘$k: $v’.”n”; }…

Devamını oku — HTTP Access Information Log
IT

SSH Port Change (CentOS)

SSHD Configuration vi /etc/ssh/sshd_config Port {port number} service sshd restart Firewall Configuration vi /etc/sysconfig/iptables -A INPUT -m state –state NEW -m tcp -p tcp –dport {port} -j ACCEPT service iptables restart * After changing the SSH port, configure the firewall…

Devamını oku — SSH Port Change (CentOS)
IT

php.ini file settings

Check after server installation short_open_tag = On Allows you to use “<?php” and “<?”. display_errors = On Displays the error message when an error occurs while running a PHP script. (When set to off, an HTTP 500 Internal Server Error…

Devamını oku — php.ini file settings
IT

Using jQuery from Google

Because of traffic, I moved the images and Flash files to another server and linked to them. While surfing, I found the source code below and connected jQuery to Google. Modified file: theme/functions.php [PHP] //Making jQuery Google API function modify_jquery()…

Devamını oku — Using jQuery from Google