ASP -> PHP 정보
ASP -> PHP본문
<%
if vod_flag=1 Then
if Not isnull(vpath) Then
if ucase(right(vname,4)) = ".ASF" or ucase(right(vname,4)) = ".WMV" Then
FilePathName = vpath & vname
Else
FilePathName = vpath & vname & ".wmv"
end if
%>
위소스를 PHP로 부탁드립니다.
이거 비슷한 소스찾는것도 일이네요 ㅠ.ㅠ
으엉ㅇㅇㅇㅇㅇㅇ
감사합니다.
if vod_flag=1 Then
if Not isnull(vpath) Then
if ucase(right(vname,4)) = ".ASF" or ucase(right(vname,4)) = ".WMV" Then
FilePathName = vpath & vname
Else
FilePathName = vpath & vname & ".wmv"
end if
%>
위소스를 PHP로 부탁드립니다.
이거 비슷한 소스찾는것도 일이네요 ㅠ.ㅠ
으엉ㅇㅇㅇㅇㅇㅇ
감사합니다.
댓글 전체

파일명의 끝 4자리를 읽어서 파일확장자를 알아내고 있네요..
php로 비슷하게 구현해봤습니다.
<?
if($void_flasg == 1) {
if($vpath != "") {
$file_ext=strtolower(substr($s_name,strrpos($s_name,".")+1));
if($file_ext == "asf" || $file_ext == "wmv") {
$FilePathname = $vpath.$vname;
} else {
$FilePathname = $vpath.$vname.".wmv";
}
}
}
?>
php로 비슷하게 구현해봤습니다.
<?
if($void_flasg == 1) {
if($vpath != "") {
$file_ext=strtolower(substr($s_name,strrpos($s_name,".")+1));
if($file_ext == "asf" || $file_ext == "wmv") {
$FilePathname = $vpath.$vname;
} else {
$FilePathname = $vpath.$vname.".wmv";
}
}
}
?>
감사합니다. 덕분에 해결하였습니다 ^^