今天应老板的需求,需要将不是我们的页面修改一个链接,用js+iframe应该也能实现,但是我想尝试一下php实现方法。
首先你得先把别人的页面download到你的php中,实现方法可以用curl,
file,这里有一篇文章写的不错http://www.11jn.com/phpbb/viewt...
分类:
Web程序 时间:
2014-05-23 07:15:41
阅读次数:
354
假设这三个目录三个文件放在rs_path=d:/gmz目录里面。那么要获取所有的文件路径,可以用如下方式for
parentpath, dirnames, filenames in os.walk(rs_path): for filename in filenames:
print "fileP.....
分类:
编程语言 时间:
2014-05-23 06:35:00
阅读次数:
875
Ubuntu Linux系统环境变量配置文件:/etc/profile :
在登录时,操作系统定制用户环境时使用的第一个文件 ,此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行。/etc /environment :
在登录时操作系统使用的第二个文件, 系统在读取你自己的prof...
分类:
系统相关 时间:
2014-05-23 06:24:10
阅读次数:
323
file:///C|/Documentsand
Settings/Administrator/桌面/clip_image006.gif f...
分类:
其他好文 时间:
2014-05-23 04:15:24
阅读次数:
578
Given a binary tree, find its maximum depth.The
maximum depth is the number of nodes along the longest path from the root node
down to the farthest le...
分类:
其他好文 时间:
2014-05-22 16:05:56
阅读次数:
239
We added a system call to modify idt table,
then programed it inmodify_idt.c1. Put our modify_idt.c file
in/usr/src/linux-3.10.15/arch/x86/kernel2./us...
分类:
其他好文 时间:
2014-05-22 15:51:03
阅读次数:
269
1、NSProcessInfo常用方法:
+(NSProcessInfo*)processInfo //返回当前进程的信息
-(NSArray*)arguments //以NSString对象数组的形式返回当前进程的参数
-(NSDictionary *)environment //返回变量/值对词典,以描述当前的环境变量(比如PATH和HOME)及其值
-(int)processI...
分类:
其他好文 时间:
2014-05-21 17:16:15
阅读次数:
229
最近闲来无事写了一个统计C或者C++代码行数的程序,主要用到了python以及正则表达式
#-*-coding:utf-8
#!/usr/bin/python
import re
import os
import sys
'''get the file or dir in one path'''
def getfilename(path):
if os.path.exi...
分类:
编程语言 时间:
2014-05-21 15:06:30
阅读次数:
379
package com.orgcent.util;
import java.io.File;
import android.os.Environment;
import android.os.StatFs;
public class MemoryStatus {
static final int ERROR = -1;
/**
* 外部存储是否可用
* ...
分类:
移动开发 时间:
2014-05-21 14:34:23
阅读次数:
362
1.要求以管理员身份运行
在vs工程属性中,Linker ---> Manifest File---> UAC Execution Level,选择requireAdministrator (/level='requireAdministrator')选项
2.在main函数开始时运行以下函数代码:
BOOL WINAPI EnablePriv...