2009-09-01から1ヶ月間の記事一覧

Count up and multiplied by 2

c

#include <stdio.h> int main(void){ int i; int data1[10],data2[10]; for(i = 0;i<10;i++){ data1[i] = i; printf("\n"); data2[i] = data1[i] * 2; printf("%d",data2[i]); } return 0; } #include <stdio.h> int main(void){ char a[] = "a[]="; printf("%s",a); int i = 0</stdio.h></stdio.h>…

How to open file of lzh on ubuntu

If you want to open file what it was preserved by lzh. You have to use lha. It is decompression software. First, start shell and enter apt command, apt-get install lha It will begin install automatically. If you are not root be change root…

Mystery action of php

php

I found what is mystery action of php. look this program, a = "a"; return $this->a; } function b() { $b = $this->a; var_dump($b); } } $w = new Test(); $w->b(); ?>

Mod_rewrite is able to rewrite url easily

I am examining now about to change dynamic url to static url.example,http://www.example.php?lunch=chinese&area=riverside ↓ http://www.example.php/chinese/riversideIt is called URL Regularization.If you wanna change url that and then you ha…

Session Technique of PHP programs

php

Session is useful to build web applications what needs login.example SNS,Shopping cart and Closed applications is used by a few users. It gives unique id for users, They use that. Usually effective things is repetition login and protect fr…