广告广告
  加入我的最爱 设为首页 风格修改
首页 首尾
 手机版   订阅   地图  繁体 
您是第 4412 个阅读者
 
发表文章 发表投票 回覆文章
  可列印版   加为IE收藏   收藏主题   上一主题 | 下一主题   
benjaminchch 手机
个人文章 个人相簿 个人日记 个人地图
初露锋芒
级别: 初露锋芒 该用户目前不上站
推文 x0 鲜花 x7
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片
推文 x0
文章表情[PHP][讨论] XP Publishing Wizard (XPPubWiz.php)
XP 已有内建的网页发布精灵 , 但这是 client 端

现在介绍一个Server 端的, 挺不错的。

稍微简介一下: XPPubWiz.php是一个单独的 PHP script,
                    用作Microsoft Windows XP Web Publishing Wizard
                    的服务器(一个优秀的HTTP上传前端)。它不需要安装,也几乎不需要配置。
                    它基于由Demian Johnston 和Bharat Mediratta 编写
                    的Gallery XP Publishing Wizard 实现,
                    旨在成为任何对编写用于发布精灵的服务器感兴趣的人的简单的启点。

用英文写一下: XPPubWiz.php is a standalone PHP script acting as a server for the Microsoft
                    Windows XP Web Publishing Wizard (a nice HTTP upload frontend).
                    It requires no installation and nearly no configuration. It is based on
                    the Gallery XP Publishing Wizard implementation written by Demian
                    Johnston and Bharat Mediratta, and is meant to be a simple starting
                    point for anyone interested in writing a server for the Publishing Wizard.


XPPubWiz.php

© 2003 by André Basse <andre.basse@hamburg.de> and Tim Strehle <tim@digicol.de>



XPPubWiz.php is a standalone PHP script acting as a server for the
Microsoft© Windows XP© Web Publishing Wizard. It requires
no installation and nearly no configuration.

Most code was taken from the Gallery XP Publishing Wizard implementation,
written by Demian Johnston and Bharat Mediratta. We just turned their
script into a standalone reference implementation
, as a simple starting point for
anyone interested in writing a server for the Publishing Wizard.

XPPubWiz.php is free and Open Source (view the colored source code).
Feel free to contact me at tim@digicol.de with questions/comments.

News: Version 1.0b fixes a bug preventing filenames beginning with "u" or "x"
            from being uploaded...


Disclaimer: Use this software at your own risk. I won't guarantee that it works,
and I won't be held liable for any damage caused by it! Please make sure to
protect this script with a .htaccess password or the like - never ever allow
public access to it!


Download

Simply download XPPubWiz.php.txt to your web server and rename it to
XPPubWiz.php (or whatever you like). Then follow the installation instructions
at the bottom of the page.


Requirements

You need a webserver running PHP 4 (version 4.1 or greater) with Session
support. XPPubWiz.php works fine with register_globals=off. The client
computer has to run Microsoft Windows XP, of course.


Features

The Microsoft Windows XP Web Publishing Wizard is a pretty front-end for HTTP
uploads to any webserver implementing a compatible backend. It allows HTML
pages (displayed by an inline Internet Explorer control) to gather information
before doing the actual upload. The Wizard can also scale images to a lower
resolution before upload.

Upload targets (servers) must be defined in the Windows registry: Under the
"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion" key,
they are listed in "\Explorer\PublishingWizard\PublishingWizard\Providers".
(XPPubWiz.php can create the appropriate .reg file so that you don't have to
edit the registry manually.)

Technical information regarding the Publishing Wizard can be found at
Microsoft's MSDN and on Sebastian Delmont's site.

XPPubWiz.php doesn't do much - it is meant to be a starting point for your own
developments - but it actually does something useful:

  ● Login dialog - user names and passwords are simply set up in the script itself
  ● You can choose the target directory to upload into
  ● The selected files are uploaded and stored in the target directory
  ● Works with register_globals=off


Installation

Server-side installation:

  ● Download XPPubWiz.php.txt to your web server and rename it to
      XPPubWiz.php (or whatever you like)
  ● Change the strings in the script's "General configuration" section (optional)
  ● Change the user account and directory information in the script (highly recommended)

Client-side installation:

  ● Point your web browser to your copy of XPPubWiz.php, and append ?step=reg to the URL
    (Example: Go to "http://my.server.com/XP...?step=reg")
  ● A file download (xppubwiz.reg) will start
  ● Save the file on your harddisk and double-click it to register your server with the
      Publishing Wizard

How to test

  ● In the Windows Explorer, select some files and click "Publish [...] on the web"
      in the task pane.
  ● After confirming your file selection, your server will show up in the list of services.
      Select it and click "Next".
  ● Enter a valid username and password and click "Next".
  ● Select a target directory from the directory list box and click "Next".
  ● If you selected image files, you will have to specify whether you want them
      to be scaled down or not.
  ● Now the upload will start. There's a status indicator, and a preview is displayed
      for the currently uploading file.
  ● Finally you can let the Wizard open your "finalurl" in the web browser.
  ● Now check whether the files really arrived at your server ...

表情


[ 此文章被benjaminchch在2005-01-29 23:51重新编辑 ]



沟沟坎坎使人长大
哭哭笑笑沐浴人生
献花 x0 回到顶端 [楼 主] From:未知地址 | Posted:2005-01-29 23:34 |

首页  发表文章 发表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.229311 second(s),query:15 Gzip disabled
本站由 瀛睿律师事务所 担任常年法律顾问 | 免责声明 | 本网站已依台湾网站内容分级规定处理 | 连络我们 | 访客留言