[PHP]基于curl的get和post实现

类似于dreamhost这类主机服务商,是显示fopen的使用的。使用php的curl可以实现支持FTP、FTPS、HTTP HTPPS SCP SFTP TFTP TELNET DICT FILE和LDAP。curl 支持SSL证书、HTTP POST、HTTP PUT 、FTP 上传,kerberos、基于HTT格式的上传、代理、cookie、用户+口令证明、文件传送恢复、http代理通道就最常用的来说,是基于http的get和post方法。
代码实现:

Read the rest of this entry »

Comments

Amazon AWS开发(第一部分):Amazon Associates

一、简介
        Amazon.com的Associates program(合作者项目)是指,合作者可以免费在自己的站点上销售Amazon.com的商品,并获得最高为4-8.5%的介绍费收入。
二、规则要求
     Amazon AWS License
三、参考
1、相关论坛
     a2sdeveloper
     Amazon Affiliate Programs(digitalpoint)
     Amazon Associates Web Service (formerly Amazon ECS,官方论坛)
2、参考代码(类库)
     amazonlib(PHP)
     apf4(Perl)
     Freekrai’s Amazon Shop Manager(PHP),ASM2不需要数据库支持,但需要服务器支持allow_url_fopen功能,故在安全性要求较为严格的hosting上(如Dreamhost)无法使用。此外,ASM2似乎没有使用cache技术。
3、商业程序
     associate-o-matic,销量比较好的搭建软件,基于php,实用phplockcode加密。程序使用了cache技术,故加密对程序的运行效率影响不大。提供免费版本(收取10%销售额度)。   
     GhostScipter,不提供使用版本,仅仅提供demo。    
4、搭建教程
Exploiting Amazon Web Services via PHP and SQLite

Comments

[Links]PHP开发

Comments

[Perl&PHP]GB2312->UTF8

PERL
use Encode ;
$subject = Encode::encode_utf8(decode(gb2312=>$subject));
print $subject ;

PHP
$subject=iconv(”GB2312“,”UTF-8“,$subject);

Comments

It’s My Life © 2008     Powered by WordPress     22 queries. 0.417 seconds.