Re: [請益] 一個ASP轉PHP的問題

看板PHP作者 (守護神)時間16年前 (2009/10/12 16:45), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串2/2 (看更多)
※ 引述《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
文章代碼(AID): #1Aqkp52I (PHP)
討論串 (同標題文章)
文章代碼(AID): #1Aqkp52I (PHP)