※ 引述《lizard0619 (lizard)》之銘言:
: 我要把asp轉成php
: Dim type = Request.Params("type")
$type=isset($_REQUEST['type'])?$_REQUEST['type']:null;
: Dim ForAppending = 8
define('ForAppending','a+');
: Dim objFSO = CreateObject("Scripting.FileSystemObject")
# php 可以不需要特別宣告 file system 物件
: If (type Is Nothing)
if(!isset($type) || is_null($type))
: If (type.Equals("0"))
if(!strcmp($type,'0'))
: Dim f1 = objFSO.OpenTextFile("c:\serverVariables\" + filename, ForAppending,
: True)
$f1=fopen('c:/serverVariables/".$filename,ForAppending);
: f1.WriteLine(ap + " " + url)
fputs($f1, $ap.' '.$url."\r\n");
: 這幾行我不會翻,可不可以幫我一下,謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.113.158.15