phpÿԶԤ

Ҫ;
1.ȡԤ
2.߸ѻԼͷ
3.÷apiӿ
4.ʱԤ[Ⱥ]
汾:http://xiaogg.ctdisk.com/u/349707/437278
ٷҳ:http://3.ibtf.sinaapp.com/

SAEphpռַ:http://sae.sina.com.cn/activity/invite/101149/weibo
SAEphpռעṦ:http://hbwanghai.blog.163.com/blog/static/199297147201222310226519/

ŵ
1.ùռ/,ù ֱsina_SAEռ伴
2.д뿪Դ.,޸ú,ϴֱӿ.ٿ
3.粻sina_SAEҲͨð[з֧]
4.ɷapiӿ,ʵߵ.ڿӦ
5.߷.ֱ߸ѷ,õ¼.



1.f.phpͶ,յ,޸f.phpļ
޸ķ:
13
if($u==""){
޸Ϊ
if($u=="1"){


Ҫļ
index.php    ȡԤ
f.php        apiӿڼ߷
weather.php  ÿִļ
data.txt     
config.yaml  sina_SAEļ
lib/PHPFetion.php       php
lib/function.php        
lib/config.php          ļ

Ҫļ˵

index.php
[ҪĿ϶ʱԤ,ǷܹȡʱԤ]

˵
1.ڲѯıҪѯĳ[Ҫ/ص][֧ʡ]
2.ѯԻȡ.[ջ]
3.ȡµ [ȡԤ]
4.ͨķŽӿڷ͵ֻ

f.php
ֱдӦѡ㷢ҲAPI
API:f.php?phone=xxxxxx&pwd=xxx&to=xxxx&msg=xxxx
Ͻӿڲϸ˵
phone 	ֻ
pwd 	
to 	͸˭(ֻŻź)
msg 	
u 	ò:Ϊʱ &u=1


weather.php / config.php--------------------------------------------- [ÿ]
Ҫ
÷
1.Dreamweaver༭weather.phpļ
2.ҵ12
$phone="150********|ɽ;134********|ɽ;151********|ʯׯ;150********|ʯׯ";
Ϲ.˫йΪ:ֻ|;ֻ| ⲻܴȫΪӢ״̬±
3.inc/config.php
޸ĵ8к͵9
define("PHONE_NUMBER","150********");˫еֻŸĳֻ
define("PHONE_PWD","******");˫е*ĳķ
4.޸ʲôʱԤ
޸config.yamlļ
:http://sae.sina.com.cn/?m=devcenter&catId=195