====== Web development ====== * Apache [[https://namu.wiki/w/아파치%20HTTP%20서버|Apache HTTP Server]], 나무위키 or [[wp>Apache_HTTP_Server|Apache HTTP Server]], Wikipedia * PHP [[https://namu.wiki/w/PHP|PHP]], 나무위키 * mysql [[https://namu.wiki/w/MySQL|MySQL]], 나무위키 * WAMP -> http://www.wampserver.com/en/ * Installation * D:/Wamp64 * 브라우저에서 localhost 로 접속 (http://localhost 혹은 http://127.0.0.1) * vhost option 켜기 * ''# Include conf/extra/httpd-vhosts.conf'' * --> '' Include conf/extra/httpd-vhosts.conf'' * httpd-vhosts.conf 수정 ServerName localhost DocumentRoot D:/Wamp64/www Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted ServerName nmp-project DocumentRoot d:/www/nmp-project Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted ====== HTML ====== * [[http://www.w3schools.com/html|html, w3school]] * put index.php file in nmp-project directory Page Title

This is a Heading

This is a paragraph.

This is php part.

"; ?>
Page Title

This is a heading

This is a heading

This is a heading

This is a paragraph.

This is another paragraph.

This is a link W3Schools.com
* [[http://www.w3schools.com/html/|html tutorial at w3school]] * 특히 스타일 (style)

This is a heading

This is a paragraph.

body { background-color: lightgrey; } h1 { color: blue; } p { color:green; } ====== PHP ====== * http://www.w3schools.com/php/default.asp ====== Open API ====== * [[http://www.yes24.com/24/goods/3495701?scode=032&OzSrank=9|오픈 API를 활용한 매쉬업 가이드]] * [[http://www.yes24.com/24/goods/7485386?scode=032&OzSrank=5|NHN 오픈 API를 활용한 매시업]] "; echo "Requested URL: " . $url ."\n\n
\n\n"; $xml = simplexml_load_file($url); // output raw starts /* print "
";
    print_r($xml->channel);
    print "
"; echo "

"; */ // output raw ends foreach ($xml->channel->item as $movie) { // since exact query is not possible $title=strip_tags($movie->title); $subtitle=strip_tags($movie->subtitle); $year = $movie->pubDate; $dire = $movie->director; $dire = "\"".str_replace("|", "\" \"", $dire)."\""; $dire = str_replace("\"\"", "", $dire); $actor = trim($movie->actor); $actor = "\"".str_replace("|", "\" \"", $actor)."\""; $actor = str_replace("\"\"", "", $actor); $nRating = $movie->userRating; $txt = $title."\t".$subtitle."\t".$year."\t".$dire."\t".$actor."\t".$nRating."\n"; $webtxt = "
*****
". $txt . "
*****
"; echo $webtxt; fwrite($myfile, $txt); $txt=''; // } else { } } } fclose($myfile); ?>
Interstellar Citizen Kane The Sixth Sense Predestination 결과값: http://my-site/naver.php