分类文章: 网络开发

WordPress 调用文章中的外部链接图片

发表于 2010-09-06 06:16
网络开发

在 functions.php 添加下面的函数:
function getImage($num) {
global $more;
$more = 1;
$link = get_permalink();
$c[......]

阅读全文

Fetch & Save / Cache an image from a remote server using PHP

发表于 2010-09-05 21:00
网络开发

function cache_image($image_url){
//replace with your cache directory
$image_path = ‘path/to/cache/dir/’;[......]

阅读全文

按关键词过滤的 PHP 代码示例

发表于 2010-09-02 01:18
网络开发

You could scan the title, description and/or category tags for keywords you’re interested in.

Let’s say you[......]

阅读全文

How to check if string contains substring PHP

发表于 2010-09-01 23:34
网络开发

Check for string inside a string
Assumptions:

Let’s have one string called $haystack which holds the value[......]

阅读全文

WordPress 添加上传图片更换网站背景功能

WordPress 添加上传图片更换网站背景功能

发表于 2010-08-31 02:57
网络开发

为了使网站更加个性化,根据需要方便快捷的更换网站的背景图片,对模板进行了进一步的修改,在后台“外观”菜单下添加一个新的菜单”Background”,实现图片上传、选择设定图片为网站背景的功能。

有图有真相:[......]

阅读全文

获得文件大小的 PHP 函数

发表于 2010-08-30 15:28
网络开发

下面的函数可以轻松快速的获取文件的大小,基于 KB, MB 或 GB 单位。

函数:
function formatbytes($file, $type)
{
switch($type){
case “KB”:[......]

阅读全文

链接交换

发表于 2010-08-27 19:18
网络开发

如果有兴趣与本站交换链接,请在这里回复留言。
(也可先做好链接,便于快速给您加上。本贴长期有效!)

第一篇文章

发表于 2010-08-25 10:36
网络开发

Wordpress 打造的微博客网站。

c
写新文章
j
下一篇文章/评论
k
上一篇文章/评论
r
回复
e
编辑
o
显示/隐藏评论
t
页顶
l
登录
h
显示/隐藏帮助
esc
取消