作者: admin

  • 解决:DeDeAMPZ环境中不能上传图片方法

    最近在机器上测试PHP网站,一般偷懒都用DeDeAMPZ这个集成系统,搭配各种后台都还挺方便。
    最近使用Destoon打算做一个网站,结果发现无论怎么样,就是在后台不能上传图片,缩略图也是,但是网络地址图片可以。
    后来上网查找资料,发现也有好多人有这样的问题。
    最后在一篇文章里发现有解决办法,但是太乱,自己摸索了一下,结果成功解决。
    其实就是更改PHP.INI的设置就行
    upload_tmp_dir = “D:/DedeAMPZ/tmp/uploads”
    session.save_path = “D:/DedeAMPZ/tmp/sessions”
    我是把这两个文件夹都设置到我的网站根目录下了,并且设置user权限可写。
    upload_tmp_dir = “D:/DedeAMPZ/WebRoot/xxx.com/tmp/uploads”
    session.save_path = “D:/DedeAMPZ/WebRoot/xxx.com/tmp/sessions”
    设置完成后,重新启动Apache即可。

  • wordpress在IIS8.0伪静态设置(httpd.ini转成web.config伪静态)

    很多站长都在IIS6.0发布网站要让网站支持伪静态只需要修改httpd.ini就可以简单实现:

    [code]RegistrationName= wlqcwin
    RegistrationCode= 2EAD-35GH-66NN-ZYBA

    [ISAPI_Rewrite]
    # 3600 = 1 hour
    CacheClockRate 3600
    RepeatLimit 32

    #默认包含了301设置,此设置情况下cctv.com/aa.htm 会301跳至www.cctv.com/aa.htm,将cctv.com替换为您自己的域名就能实现自己的域名的301
    RewriteCond %{HTTP:Host} ^xgllseo.com$
    RewriteRule (.*) https://sdeno.com$1 [NC,R=301]

     

    #Discuz ! x和discuz x1.5伪静态规则,若不需要或与您的网站程序有冲突可以删除。
    #如果你的网站是discuz!x就把以下几行前面的#号删除,然后把duoduo 淘宝客 以下的规则全部删除,二者有冲途!
    #RewriteRule ^(.*)/topic-(.+)\.html\?*(.*)$ $1/portal\.php\?mod=topic&topic=$2&$3
    #RewriteRule ^(.*)/article-([0-9]+)\.html\?*(.*)$ $1/portal\.php\?mod=article&articleid=$2&$3
    #RewriteRule ^(.*)/forum-(\w+)-([0-9]+)\.html\?*(.*)$ $1/forum\.php\?mod=forumdisplay&fid=$2&page=$3&$4
    #RewriteRule ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forum\.php\?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$5
    #RewriteRule ^(.*)/group-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/forum\.php\?mod=group&fid=$2&page=$3&$4
    #RewriteRule ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$ $1/home\.php\?mod=space&$2=$3&$4
    #RewriteRule ^(.*)/([a-z]+)-(.+)\.html\?*(.*)$ $1/$2\.php\?rewrite=$3&$4

    # duoduo 淘宝客 Rewrite规则
    RewriteRule ^/index\.html$ /index\.php
    RewriteRule /sitemap_baidu.xml /sitemap_baidu.xml [L]
    RewriteRule /sitemap.html /sitemap.html [L]
    RewriteRule ^/malllist\.html$ /malllist\.php
    RewriteRule ^/shoplist\.html$ /shoplist\.php
    RewriteRule ^/article\.html$ /article\.php
    RewriteRule ^/user/center\.html$ /user/center\.php
    RewriteRule ^/mall-(.*)-(.*)-(.*)\.html$ /mall\.php\?id=$1&act=$2&page=$3
    RewriteRule ^/mall-(.*)-(.*)\.html$ /mall\.php\?id=$1&act=$2
    RewriteRule ^/mall-(.*)\.html$ /mall\.php\?id=$1
    RewriteRule ^/view-(.*)-(.*)\.html$ /view\.php\?iid=$1&page=$2
    RewriteRule ^/view-(.*)\.html$ /view\.php\?iid=$1
    RewriteRule ^/malllist-(.*)-(.*)-(.*)\.html$ /malllist\.php\?catid=$1&mall=$2&page=$3
    RewriteRule ^/article_list-(.*)-(.*)\.html$ /article_list\.php\?cid=$1&page=$2
    RewriteRule ^/article_list-(.*)\.html$ /article_list\.php\?cid=$1
    RewriteRule ^/read-(.*)\.html$ /read\.php\?id=$1
    RewriteRule ^/list-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /list\.php\?cid=$1&start_price=$2&end_price=$3&sort=$4&area=$5&guarantee=$6&list=$7&q=$8&page=$9
    RewriteRule ^/shop-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /shop\.php\?nick=$1&start_price=$2&end_price=$3&sort=$4&area=$5&guarantee=$6&list=$7&q=$8&page=$9 [NU]
    RewriteRule ^/shoplist-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /shoplist\.php\?cid=$1&keyword=$2&start_level=$3&end_level=$4&area=$5&px=$6&cpr=$7&type=$8&page=$9 [NU]
    RewriteRule ^/shoplist-(.*)\.html$ /shoplist\.php\?cid=$1
    RewriteRule ^/shop-(.*)\.html$ /shop\.php\?nick=$1 [NU]
    RewriteRule ^/list-(.*)\.html$ /list\.php\?cid=$1
    RewriteRule ^/list\.html$ /list\.php
    RewriteRule ^/huangou-(.*)\.html$ /huangou\.php\?id=$1
    RewriteRule ^/huan-(.*)-(.*)\.html$ /huan\.php\?keyword=$1&page=$2 [NU]
    RewriteRule ^/huan\.html$ /huan\.php
    RewriteRule ^/coupons-(.*)-(.*)\.html$ /coupons\.php\?cid=$1&page=$2
    RewriteRule ^/coupons\.html$ /coupons\.php
    RewriteRule ^/cuxiao-(.*)\.html$ /cuxiao\.php\?id=$1
    RewriteRule ^/tg-(.*)-(.*)-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3&keyword=$4&page=$5 [NU]
    RewriteRule ^/tg-(.*)-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3&page=$4
    RewriteRule ^/tg-(.*)-(.*)-(.*)\.html$ /tg\.php\?city_id=$1&catid=$2&mallid=$3
    RewriteRule ^/tg-(.*)\.html$ /tg\.php\?city_id=$1
    RewriteRule ^/tg\.html$ /tg\.php
    RewriteRule ^/tgview-(.*)\.html$ /tgview\.php\?id=$1
    RewriteRule /news/(.*) /news/$1 [L][/code]
    以上是小编现有的博客httpd.ini规则,通常情况下都是:

    [code][ISAPI_Rewrite]
    # 3600 = 1 hour
    CacheClockRate 3600
    RepeatLimit 32
    RewriteRule ^/index\.html$ /index\.php [N,I]
    RewriteRule ^(.*)/index\.html $1/index\.php [I]
    RewriteRule ^(.*)/page([0-9]+)\.html $1/index\.php\?gid=$2 [I]
    RewriteRule ^(.*)/list-([0-9]+)\.html $1/index\.php\?PageNo=$2 [I]
    RewriteRule ^(.*)/show-aid([0-9]+)\.html $1/show\.php\?uid=$2 [I][/code]
    现在由于IIS8.0只支持web.config所以我们将以上的代码转化为:

    [code]<?xml version=”1.0″ encoding=”UTF-8″?>
    <configuration>
    <system.webServer>
    <staticContent>
    <mimeMap fileExtension=”.bat” mimeType=”text/bath” />
    </staticContent>
    <rewrite>
    <rules>
    <rule name=”home Index”>
    <match url=”^index.html$” ignoreCase=”false” />
    <action type=”Rewrite” url=”index.php” appendQueryString=”false” />
    </rule>
    <rule name=”page Index”>
    <match url=”^(.*)/index.html$” ignoreCase=”false” />
    <action type=”Rewrite” url=”{R:1}/index.php” appendQueryString=”false” />
    </rule>
    <rule name=”page List”>
    <match url=”^(.*)page([0-9]+).html$” ignoreCase=”false” />
    <action type=”Rewrite” url=”{R:1}/index.php?gid={R:2}” appendQueryString=”false” />
    </rule>
    <rule name=”list Page”>
    <match url=”^(.*)list-([0-9]+).html$” ignoreCase=”false” />
    <action type=”Rewrite” url=”{R:1}/.php?PageNo={R:2}” appendQueryString=”false” />
    </rule>
    <rule name=”show Page”>
    <match url=”^(.*)show-aid([0-9]+).html$” ignoreCase=”false” />
    <action type=”Rewrite” url=”{R:1}/show.php?uid={R:2}” appendQueryString=”false” />
    </rule>
    </rules>
    </rewrite>
    </system.webServer>
    </configuration>[/code]

  • 《WordPress 3.1页面设计培训视频教程》(VTC.COM WORDPRESS 3.1 FOR DESIGNERS)[光盘镜像]

    IPB Image

    语言:英语
    网址:http://www.vtc.com/products/Wordpress-3.1-for-Designers-Tutorials.htm
    类别:教程

    (xuehui@TLF)
    VTC.com 出品的由George Plumley讲解长达9小时的Wordpress 3.1页面设计培训视频教程。WordPress是一个网络信息发布平台,也可当作一个内容管理系统,主要为网页设计人员提供WordPress服务。本教程帮助你了解软件是如何的工作,特别是如何制作主题。 WordPress主题控件主要是网站的许多功能与外观,George对你演示了设计一个主题或改变一个网站的主题。每个客户定制的主题功能也同样很重要,你将学习创建页面模板。内容还包括利用插件给客户提供一些特殊功能,比如表单,社交媒体(social media)、照片管理和电子商务。

    [VTC.com出品Wordpress.3.1页面设计培训视频教程].TLF-SOFT-VTC.COM.WORDPRESS.3.1.FOR.DESIGNERS-JGTiSO.iso

    730.8MB
    [VTC.com出品Wordpress.3.1页面设计培训视频教程].TLF-SOFT-VTC.COM.WORDPRESS.3.1.FOR.DESIGNERS-JGTiSO.nfo

    7.8KB
    730.8MB
  • 《深入浅出 WordPress》(Head First WordPress)(Jeff Siarto)1st edition[PDF]

    IPB Image
    O’Reilly – Head First WordPress Aug 2010

    Head First WordPress: A Brain-Friendly Guide to Creating Your Own Custom WordPress Blog

    368 pages
    Publisher: O’Reilly Media; 1 edition (August 3, 2010)
    Language: English
    ISBN-10: 0596806280
    ISBN-13: 978-0596806286

    什么是WordPress:

    Whether you’re promoting your business or writing about your travel adventures, Head First WordPress will teach you not only how to make your blog look unique and attention-grabbing, but also how to take advantage of WordPress platform’s more complex features to make your website work well, too.

    You’ll learn how to move beyond the standard WordPress look and feel by customizing your blog with your own URL, templates, plugin functionality, and more. As you learn, you’ll be working with real WordPress files: The book’s website provides pre-fab WordPress themes to download and work with as you follow along with the text.

    Get your site up and running by setting up a MySQL database and creating configuration files
    Work with the WordPress platform to create posts and pages, learn the difference between tags and categories, edit content, moderate comments, and manage spam
    Explore how to extend WordPress with plugins and templates
    Convert custom designs (in HTML and CSS) into functional themes and use them in WordPress
    We think your time is too valuable to waste struggling with new concepts. Using the latest research in cognitive science and learning theory to craft a multi-sensory learning experience, Head First WordPress uses a visually rich format designed for the way your brain works, not a text-heavy approach that puts you to sleep.

    IPB Image
    IPB Image

    [深入浅出.WordPress].Head.First.WordPress.(Jeff.Siarto).pdf

    20.2MB
    20.2MB
  • 什么是高质量的外部链接?

    什么是高质量的外部链接?

    外链是支持关键词排名的重要因素,从百度CEO李彦宏的“超链分析专利”就可看见链接对排名的作用。“内容为王,外链为皇”也导出了外链在SEO优化排名过程中的作用。那么,高质量的外部链接是什么样子呢?什么又是高质量的外部链接呢?

    我爱优化网指出:高质量的外部链接要符合广泛性、相关性和权威性。下面就来详细链接下高质量外链的3个特性

    1、外链的广泛性

    外链的广泛性是指外链的来源分布不单一,外链的含金量也应该高低有别。

    来源分布不单一,是说我们所发布的链接源要多元化。不能集中在某一个社区或者某一类社区,应该遵循多撒网广捕鱼的策略。除了论坛外链,博客,分类信息、分享站等都是我们外链的优质发布区。只所以这样也是避免外链被搜索引擎认为是有人为操作之嫌。外链的含金量也应该高低有别,也是基于此,不能因为百度百科、百度经验、百度文库的权重高,我们就一股脑的做百度的,这样也是不好的,一个再好的站点,网上的口碑肯定是褒贬不一的,所以外链的含金量有高有低也是正常的。笔者的特罗凯建站之初为了能够更快的收录,就给他做了一个百度百科,现在已经正常运行,链接当然也不会集中在百度身上,其他的一些地方权重也是不错的。

    2、外链的相关性

    所谓的相关性是指在合适的版块出现与之合适的内容及链接。搜索引擎蜘蛛没有人的大脑那么智能,能够分辨出具体的内容。搜索引擎的判断逻辑就是根据所在网站的主题属性,还有所在栏目或者频道的属性以及终端页的内容来进行判断。

    如果你给一个再生资源利用的站点进行连接建设,却在关于3D预测站点上发布,试问他们之间又有什么相关性呢?这样的外链又何谈质量呢?

    3、外链的权威性

    外链的权威性是指行业的领导者站点能够给予你网站一个投票,也就是链接。关于外链的权威性也可以这么理解:一个办理驾驶证的站点,如果能在交管部门的网站上博得一个链接,效果可想而知。

    我们在进行链接建设的过程中,首先要确定本行业有哪些权威站点,有了这些信息,我们可以有针对的组织内容进行链接建设。

    什么是高质量的外部链接?高质量的外链应该是集广泛性、相关性和权威性于一身的链接元素。只要在日常的链接建设过程中始终以这3点为依据,相信建设的链接质量想低都难。