<?php
class Tools extends CI_Controller {

	public function message($to = 'World')
	{
		// url decode		
		$to = urldecode($to);
		echo "Hello " . $to;
	}

上記を application/controllers に tools.php にて保存

cd ci_top_folder
php index.php tools message `echo "worl * @world" |  nkf -wMQ | tr = %`

こんだけ、超簡単!

文字列の内容によってはエンコードが必要になります。
`echo “world * @world” | nkf -wMQ | tr = %` が urlencode

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)

© 2024 Falco Tech Blog Suffusion theme by Sayontan Sinha