대문자 변환 문의 드립니다. 정보
대문자 변환 문의 드립니다.본문
http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=27135&page=3
위 링크에 올려주신 소스로 컨텐츠를 만들어 잘사용했는데...어느날부턴가 링크가 깨졌다고 합니다.
확인을 해보니 위소스는 아래와 같이 fileName이 소문자로 포시가 되면서 링크가 깨졌다고 합니다.
http://torrage.com/torrent/f00ce33211cea8d7fd8c932325b28abea797e6cb.torrent
소스 공개하신 샷버디사이트는 아래와 같이 대문자로 링크가 걸리면 정상 다운 됩니다.
http://torrage.com/torrent/F00CE33211CEA8D7FD8C932325B28ABEA797E6CB.TORRENT
어디를 수정해야 할까요?
검색해보니 strtoupper 을 이용하면 될거도 같은데 어떻게 적용을 해야 fileName이 대문자로 변환이 될까요?
아무리 찾아봐도 모르겠습니다..혼자서 몇일 찾다가 질문올립니다..도움좀 주세요..
for($i=0; $i<$listct; $i++){
$wr_subject[$i] = $xml->channel->item[$i]->title;
$category[$i] = $xml->channel->item[$i]->category;
$link[$i] = $xml->channel->item[$i]->link;
$pubDate[$i] = $xml->channel->item[$i]->pubDate;
$numSeeders[$i] = $xml->channel->item[$i]->numSeeders;
$numLeechers[$i] = $xml->channel->item[$i]->numLeechers;
$numFiles[$i] = $xml->channel->item[$i]->numFiles;
$numComments[$i] = $xml->channel->item[$i]->numComments;
$size[$i] = $xml->channel->item[$i]->size;
$fileName[$i] = $xml->channel->item[$i]->torrent->fileName;
$url_join[$i] = 'http://torrage.com/torrent/'.$fileName[$i];
$contentLength[$i] = $xml->channel->item[$i]->torrent->contentLength;
$infoHash[$i] = $xml->channel->item[$i]->torrent->infoHash;
$magnetURI[$i] = $xml->channel->item[$i]->torrent->magnetURI;
$wr_content[$i] = $xml->channel->item[$i]->description;
//echo "$wr_subject / $fileName / $url_join<br>";
위 링크에 올려주신 소스로 컨텐츠를 만들어 잘사용했는데...어느날부턴가 링크가 깨졌다고 합니다.
확인을 해보니 위소스는 아래와 같이 fileName이 소문자로 포시가 되면서 링크가 깨졌다고 합니다.
http://torrage.com/torrent/f00ce33211cea8d7fd8c932325b28abea797e6cb.torrent
소스 공개하신 샷버디사이트는 아래와 같이 대문자로 링크가 걸리면 정상 다운 됩니다.
http://torrage.com/torrent/F00CE33211CEA8D7FD8C932325B28ABEA797E6CB.TORRENT
어디를 수정해야 할까요?
검색해보니 strtoupper 을 이용하면 될거도 같은데 어떻게 적용을 해야 fileName이 대문자로 변환이 될까요?
아무리 찾아봐도 모르겠습니다..혼자서 몇일 찾다가 질문올립니다..도움좀 주세요..
for($i=0; $i<$listct; $i++){
$wr_subject[$i] = $xml->channel->item[$i]->title;
$category[$i] = $xml->channel->item[$i]->category;
$link[$i] = $xml->channel->item[$i]->link;
$pubDate[$i] = $xml->channel->item[$i]->pubDate;
$numSeeders[$i] = $xml->channel->item[$i]->numSeeders;
$numLeechers[$i] = $xml->channel->item[$i]->numLeechers;
$numFiles[$i] = $xml->channel->item[$i]->numFiles;
$numComments[$i] = $xml->channel->item[$i]->numComments;
$size[$i] = $xml->channel->item[$i]->size;
$fileName[$i] = $xml->channel->item[$i]->torrent->fileName;
$url_join[$i] = 'http://torrage.com/torrent/'.$fileName[$i];
$contentLength[$i] = $xml->channel->item[$i]->torrent->contentLength;
$infoHash[$i] = $xml->channel->item[$i]->torrent->infoHash;
$magnetURI[$i] = $xml->channel->item[$i]->torrent->magnetURI;
$wr_content[$i] = $xml->channel->item[$i]->description;
//echo "$wr_subject / $fileName / $url_join<br>";
댓글 전체
얼마전에도 같은 질문을 올리신분이 있는데 아래 링크 내용을 참고해보세요.^^
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=206469&sca=&sfl=mb_id%2C0&stx=rabbit129&sop=and
http://sir.co.kr/bbs/board.php?bo_table=g4_qa&wr_id=206469&sca=&sfl=mb_id%2C0&stx=rabbit129&sop=and
감사합니다...