0

一つのことが私を悩ませています。アップロード時にファイルを自動的に編集するスクリプトをいくつか使用する予定です。

私は好きです。フォームがあります。誰かがhtmlをアップロードします。スクリプトはhtmlの一部のセクションを編集してから、編集した新しいhtmlをユーザーに提供します。

オンラインコンバーターで見られるように。どんな種類の助けも大歓迎です。

よろしくお願いします:)

4

2 に答える 2

0
  1. ファイルをアップロードします。
  2. ファイルの内容を読み取ります
  3. それらの内容を解釈して変更します
  4. 古いコンテンツを変更されたコンテンツに置き換えます
  5. ユーザーに新しいコンテンツを表示します。
于 2012-08-30T15:37:33.593 に答える
0

Of course this still depends on what kind of file and what kind of edit.

But the general idea is:

  1. Save a tmp file
  2. Parse the file with the right parser
  3. Output the new file
  4. remove the tmp file if needed
  5. notify user it's done

Without more info it is hard to provide more advise..

于 2012-08-30T15:38:09.817 に答える