<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[TNF : Tatter Network Foundation forum - 절대경로 알아오기]]></title>
	<link rel="self" href="http://forum.tattersite.com/ko/extern.php?action=feed&amp;tid=460&amp;type=atom"/>
	<updated>2006-05-29T08:18:45Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.tattersite.com/ko/viewtopic.php?id=460</id>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 절대경로 알아오기]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=2996#p2996"/>
			<content type="html"><![CDATA[<p>간혹 사용하는 홈페이지 서비스에 따라 절대경로가 다를수도 있습니다.<br />천리안의 경우 juno님께서 말씀하신대로 적용하여 가져온 절대값과 천리안 홈페이지 관리페이지에서<br />확인하는 절대경로값이 틀립니다. Peris님 말씀처럼 서버설정에 따라 다를수도 있습니다.</p>]]></content>
			<author>
				<name><![CDATA[jparker]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=10</uri>
			</author>
			<updated>2006-05-29T08:18:45Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=2996#p2996</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 절대경로 알아오기]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=2523#p2523"/>
			<content type="html"><![CDATA[<p>음...이게 먹힐런진 잘 모르겠습니다만ㆀ</p><p>태터의 스크립트 내에는 해당 스크립트의 위치를 기준으로 최상위 경로를 가리키는 ROOT 가 define 되어 있습니다.<br />예를 들어, blog/owner/entry/add/index.php 에서는 ROOT 가 ../../../.. 으로 설정되어 있지요.<br />이것이 태터 내에서 $_SERVER[&#039;DOCUMENT_ROOT&#039;] 를 대신하고 있다고 보면 되겠습니다.<br />특별한 경우가 아니라면 이런식으로 ROOT 를 이용한 상대경로를 사용하는 것으로 대체할 수 있지 않을까요.</p>]]></content>
			<author>
				<name><![CDATA[laziel]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=21</uri>
			</author>
			<updated>2006-05-24T12:44:36Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=2523#p2523</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 절대경로 알아오기]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=2522#p2522"/>
			<content type="html"><![CDATA[<p>태터 소스에 저렇게 사용한 부분이 있나요?<br />제가 알기로는 없는걸로 알고 있는데요.;;</p>]]></content>
			<author>
				<name><![CDATA[Peris]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=40</uri>
			</author>
			<updated>2006-05-24T11:41:16Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=2522#p2522</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 절대경로 알아오기]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=2519#p2519"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>Peris 작성:</cite><blockquote><div class="quotebox"><cite>서툰걸음 작성:</cite><blockquote><p>저도 필요했는데..<br />테스소스를 뒤지다가<br />$_SERVER[&#039;DOCUMENT_ROOT&#039;].$pluginURL<br />이렇게 쓴다는.. ^^</p></blockquote></div><p>$_SERVER[&#039;DOCUMENT_ROOT&#039;] 는 서버설정에 따라 정확한 root를 가리키지 않을 수도 있습니다. <img src="http://forum.tattersite.com/ko/img/smilies/smile.png" width="15" height="15" alt="smile" /></p></blockquote></div><p>그래서 가끔 안 되신다고 하시는 분들이 계심.. ㅠㅠ<br />그럴때는 직접 패스 지정하라고 한다는..</p><p>근데.. 그게 안되면 태터는 어떤가요..<br />태터 소스 보다가 절대패스를 저런식으로 가져오길래 쓴거거든요.. ^^</p>]]></content>
			<author>
				<name><![CDATA[서툰걸음]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=126</uri>
			</author>
			<updated>2006-05-24T10:45:33Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=2519#p2519</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 절대경로 알아오기]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=2502#p2502"/>
			<content type="html"><![CDATA[<div class="quotebox"><cite>서툰걸음 작성:</cite><blockquote><p>저도 필요했는데..<br />테스소스를 뒤지다가<br />$_SERVER[&#039;DOCUMENT_ROOT&#039;].$pluginURL<br />이렇게 쓴다는.. ^^</p></blockquote></div><p>$_SERVER[&#039;DOCUMENT_ROOT&#039;] 는 서버설정에 따라 정확한 root를 가리키지 않을 수도 있습니다. <img src="http://forum.tattersite.com/ko/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[Peris]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=40</uri>
			</author>
			<updated>2006-05-24T04:52:12Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=2502#p2502</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 절대경로 알아오기]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=2495#p2495"/>
			<content type="html"><![CDATA[<p>저도 필요했는데..<br />테스소스를 뒤지다가<br />$_SERVER[&#039;DOCUMENT_ROOT&#039;].$pluginURL<br />이렇게 쓴다는.. ^^</p>]]></content>
			<author>
				<name><![CDATA[서툰걸음]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=126</uri>
			</author>
			<updated>2006-05-24T04:20:06Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=2495#p2495</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RSS 답글: 절대경로 알아오기]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=2427#p2427"/>
			<content type="html"><![CDATA[<p>테터툴즈 자체에서 절대경로를 변수로 지원해 주면 좋을 듯 합니다.</p>]]></content>
			<author>
				<name><![CDATA[Juno]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=207</uri>
			</author>
			<updated>2006-05-23T02:38:46Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=2427#p2427</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[절대경로 알아오기]]></title>
			<link rel="alternate" href="http://forum.tattersite.com/ko/viewtopic.php?pid=2424#p2424"/>
			<content type="html"><![CDATA[<p>//절대 경로가 공백일 경우 자동으로 체크하기<br />&nbsp; &nbsp; if($home_path == &quot;&quot;){&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br />&nbsp; &nbsp; &nbsp; &nbsp; //현재 플러그인의 절대 경로 알아 오기<br />&nbsp; &nbsp; &nbsp; &nbsp; $thisfilename=basename(__FILE__); <br />&nbsp; &nbsp; &nbsp; &nbsp; $temp_filename=realpath(__FILE__); <br />&nbsp; &nbsp; &nbsp; &nbsp; if(!$temp_filename) $temp_filename=__FILE__; <br />&nbsp; &nbsp; &nbsp; &nbsp; $osdir=eregi_replace($thisfilename,&quot;&quot;,$temp_filename); <br />&nbsp; &nbsp; &nbsp; &nbsp; //최상위 경로 알아 오기<br />&nbsp; &nbsp; &nbsp; &nbsp; $home_path= substr($osdir,0,strlen($osdir)-strlen($pluginURL)-1);<br />&nbsp; &nbsp; }</p><p>플러그인중에 절대 경로를 필요로 하는 경우가 있는데..<br />전 이제 부터 위의 소스를 이용하여서 절대경로를 입력하지 않아도 되도록 할려구요.<br />설치중에 절대 경로 때문에 실패하는 경우가 많더라구요.<br />참고로 위에는..<br />/home/lovebe/public_html<br />의 결과값을<br />$home_path<br />에 넣어준답니다.<br />스킨이나 플러그인 주소까지 표시하고 싶으시면..<br />관련 변수를 뒤에 이어 주면 될 듯 합니다.</p>]]></content>
			<author>
				<name><![CDATA[Juno]]></name>
				<uri>http://forum.tattersite.com/ko/profile.php?id=207</uri>
			</author>
			<updated>2006-05-23T01:19:08Z</updated>
			<id>http://forum.tattersite.com/ko/viewtopic.php?pid=2424#p2424</id>
		</entry>
</feed>
