{"id":1583,"date":"2011-11-10T09:42:45","date_gmt":"2011-11-10T07:42:45","guid":{"rendered":"http:\/\/www.karadere.com\/blog\/?p=1583"},"modified":"2011-11-10T09:42:45","modified_gmt":"2011-11-10T07:42:45","slug":"frontpage-2003-ile-php-kullanimi-using-php-with-frontpage-2003","status":"publish","type":"post","link":"https:\/\/www.karadere.com\/blog\/frontpage-2003-ile-php-kullanimi-using-php-with-frontpage-2003.html","title":{"rendered":"Frontpage 2003 ile Php kullan\u0131m\u0131. Using PHP with FrontPage 2003"},"content":{"rendered":"<p>Merhaba arkada\u015flar hala frontpage kullanyorsan\u0131z benim gibi vazge\u00e7emiyorsan\u0131z 2003 frontpage ile php yazman\u0131n yolu a\u015fa\u011f\u0131daki gibidir.<\/p>\n<p>koay gelsin .<\/p>\n<p>Microsoft kaynak \/ source : <a href=\"http:\/\/office.microsoft.com\/en-au\/frontpage-help\/using-php-with-frontpage-2003-HA001109299.aspx\">http:\/\/office.microsoft.com\/en-au\/frontpage-help\/using-php-with-frontpage-2003-HA001109299.aspx<\/a><\/p>\n<p>This article was adapted from <em>Microsoft Office FrontPage 2003 Inside Out <\/em>by Jim Buyens. Visit Microsoft Learning to learn more about this book.<\/p>\n<p>You can use PHP to build sophisticated and complex Web applications and external and internal business channels, such as e-commerce sites, corporate portals, and intranets. Microsoft offers an alternative to scripting with PHP \u2014 ASP.NET \u2014 which is described in more detail later in this article. As might be expected, FrontPage supports the Active Server Pages (ASP) and ASP.NET technologies more completely than it does PHP. However, if you reconfigure certain settings, FrontPage and PHP can work together.<\/p>\n<h2>What is PHP?<\/h2>\n<p>PHP is a server-side scripting language (scripting language: A simple programming language designed to perform special or limited tasks, sometimes associated with a particular application or function.) that you can embed into HTML when you create dynamic Web pages. PHP is an open-source product that you can use, alter, and redistribute without charge. Originally PHP stood for <em>Personal Home Page<\/em> tool, but over time it has evolved to stand for <em>PHP: Hypertext Preprocessor<\/em>.<\/p>\n<p>In general, dynamic Web pages are pages that interact with users, so that each site visitor sees customized information. In the case of PHP, dynamic also means that data is pulled from a database. Dynamic Web applications are prevalent in commercial (e-commerce) sites, where the content displayed is generated from information that is accessed from a database or other external source.<\/p>\n<p>PHP&#8217;s syntax is similar to that of C and Perl, making it easy to learn for anyone with basic programming skills. PHP supports only partial encapsulation (such as support for declaring methods and fields in the class) and partial polymorphism (no overloading, no abstraction). With PHP, there is no concept of private, public, or protected functions in classes as well as in the overloading.<\/p>\n<h2>Create pages that contain PHP scripts<\/h2>\n<p>When you use PHP with FrontPage 2003, you create the overall Web page design and insert any fixed elements by using <strong>Design<\/strong> view in FrontPage. You can then write the HTML code that contains the variable portion of each PHP response in <strong>Code<\/strong> view. Of course, when you are laying out the Web page design, you may want to create placeholders to indicate where the variable output should appear, so that you can easily locate where you want to add the PHP script.<\/p>\n<p>PHP scripts must reside in an executable directory. For reasons of security and resource consumption, many server administrators tightly control access to such directories. If you do not administer your own Web server, you need permission from the server administrator to run server-side scripts.<\/p>\n<h2>Change settings in FrontPage 2003<\/h2>\n<p>Before you can use PHP with FrontPage 2003, you must make the following changes to settings in FrontPage:<\/p>\n<p><img decoding=\"async\" id=\"divExpCollAsst_842386058_img\" title=\"Hide\" src=\"http:\/\/officeimg.vo.msecnd.net\/en-au\/files\/218\/224\/ZA079005001.gif\" alt=\"Hide\" border=\"0\" \/>Disable features that require the FrontPage Server Extensions<\/p>\n<div id=\"divExpCollAsst_842386058\">\n<p>If the Web server that runs your PHP pages has the FrontPage Server Extensions from Microsoft installed, do the following:<\/p>\n<ol type=\"1\">\n<li>On the <strong>Tools<\/strong> menu, click <strong>Page Options<\/strong>, and then click the <strong>Authoring<\/strong> tab.<\/li>\n<li>Under <strong>FrontPage and SharePoint technologies<\/strong>, clear the <strong>SharePoint Services<\/strong> and <strong>Browse-time Web Components<\/strong> check boxes.<\/li>\n<\/ol>\n<\/div>\n<p><img decoding=\"async\" id=\"divExpCollAsst_387715001_img\" title=\"Hide\" src=\"http:\/\/officeimg.vo.msecnd.net\/en-au\/files\/218\/224\/ZA079005001.gif\" alt=\"Hide\" border=\"0\" \/>Disable features that create ASP or ASP.NET code<\/p>\n<div id=\"divExpCollAsst_387715001\">\n<p>If the Web server that runs your PHP pages can also run ASP, do the following:<\/p>\n<ol type=\"1\">\n<li>On the <strong>Tools<\/strong> menu, click <strong>Page Options<\/strong>, and then click the <strong>Authoring<\/strong> tab.<\/li>\n<li>Under <strong>Browsers<\/strong>, clear the <strong>Active Server Pages<\/strong> check box.<\/li>\n<\/ol>\n<\/div>\n<p><img decoding=\"async\" id=\"divExpCollAsst_400278025_img\" title=\"Hide\" src=\"http:\/\/officeimg.vo.msecnd.net\/en-au\/files\/218\/224\/ZA079005001.gif\" alt=\"Hide\" border=\"0\" \/>Enable and use ASP-style <code>&lt;% %&gt;<\/code> code delimiters<\/p>\n<div id=\"divExpCollAsst_400278025\">\n<p>Do the following:<\/p>\n<ol type=\"1\">\n<li>Open the php.ini (php.ini: The master configuration file for PHP that you can customize to help you control the way PHP works on your site.) file on the Web server, and set <code>asp_tags=\"1\"<\/code>.<\/li>\n<li>Use ASP-like &lt;% and %&gt; tags instead of the &lt;? php?&gt; tags. This stops FrontPage from reformatting your PHP code.<\/li>\n<\/ol>\n<p><strong>\u00a0Note\u00a0<\/strong>\u00a0\u00a0As an alternative, you can use &lt;script language=&#8221;php&#8221;&gt; and &lt;\/script&gt; tags instead of &lt;? php?&gt; tags.<\/p>\n<\/div>\n<p><img decoding=\"async\" id=\"divExpCollAsst_55285853_img\" title=\"Hide\" src=\"http:\/\/officeimg.vo.msecnd.net\/en-au\/files\/218\/224\/ZA079005001.gif\" alt=\"Hide\" border=\"0\" \/>Configure PHP file extensions to open in Design view<\/p>\n<div id=\"divExpCollAsst_55285853\">\n<ol type=\"1\">\n<li>On the <strong>Tools<\/strong> menu, click <strong>Options<\/strong>, and then click the <strong>Configure Editors<\/strong> tab.<\/li>\n<li>In the <strong>Extensions<\/strong> list, locate and select the file extension that you want to use.<\/li>\n<li>In the<strong> Editors<\/strong> list, select <strong>FrontPage (Open as HTML)<\/strong>.<\/li>\n<li>Click <strong>Make Default<\/strong>.<\/li>\n<\/ol>\n<p>If the extension that you want does not appear, you must add it.<\/p>\n<p><img decoding=\"async\" id=\"divExpCollAsst_407456711_img\" title=\"Hide\" src=\"http:\/\/officeimg.vo.msecnd.net\/en-au\/files\/218\/224\/ZA079005001.gif\" alt=\"Hide\" border=\"0\" \/>How?<\/p>\n<div id=\"divExpCollAsst_407456711\">\n<ol type=\"1\">\n<li>Click the <strong>New Extension<\/strong> button (or press ALT+N), located above the <strong>Extensions<\/strong> list.<\/li>\n<li>In the <strong>Open With<\/strong> dialog box, type the file extension that you want in the <strong>Extension<\/strong> box.<\/li>\n<li>Select <strong>FrontPage (Open as HTML)<\/strong>, and then click <strong>OK<\/strong>.<\/li>\n<\/ol>\n<\/div>\n<\/div>\n<h2>ASP.NET \u2014 an alternative to PHP<\/h2>\n<p>If you are using PHP with FrontPage and find that it prevents you from accomplishing what you want in your Web site, you might consider using ASP.NET instead.<\/p>\n<p>ASP.NET is part of the Microsoft .NET Framework, which is a feature of Microsoft Windows\u00ae. Unlike PHP, ASP.NET is not a language or a parser but rather a set of technologies in the Microsoft .NET Framework for building Web applications and XML Web services.<\/p>\n<p>Microsoft ASP.NET pages run on the server like PHP and generate markup, such as HTML, WML, or XML, which is sent to a desktop or to mobile applications. ASP.NET provides a robust, object-oriented, event-driven programming model for developing Web pages, while still maintaining the simplicity that PHP developers are accustomed to.<\/p>\n<p>ASP.NET applications are based on a robust Object Oriented Programming (OOP) paradigm rather than a scripting paradigm. This allows for more advanced OOP features, such as inheritance, encapsulation, and reflection.<\/p>\n<p>If you are considering migrating to ASP.NET, in most cases it is not very complex for simple to small applications. Due to underlying architectural differences as well as the ASP.NET OOP paradigm, more sophisticated and complex applications must be well planned to take advantage of the more rigorous separation of display from logic and data in ASP.NET, as well as its time-saving, built-in functionality that significantly reduces the amount of code necessary to perform comparable tasks.<\/p>\n<p>For more information about ASP.NET, see the following:<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is PHP?<br \/>\nPHP is a server-side scripting language (scripting language: A simple programming language designed to perform special or limited tasks, sometimes associated with a particular application or function.) that you can embed into HTML when you create dynamic Web pages. PHP is an open-source product that you can use, alter, and redistribute without charge. Originally PHP stood for Personal Home Page tool, but over time it has evolved to stand for PHP: Hypertext Preprocessor.<\/p>\n<p>In general, dynamic Web pages are pages that interact with users, so that each site visitor sees customized information. In the case of PHP, dynamic also means that data is pulled from a database. Dynamic Web applications are prevalent in commercial (e-commerce) sites, where the content displayed is generated from information that is accessed from a database or other external source.<\/p>\n<p>PHP&#8217;s syntax is similar to that of C and Perl, making it easy to learn for anyone with basic programming skills. PHP supports only partial encapsulation (such as support for declaring methods and fields in the class) and partial polymorphism (no overloading, no abstraction). With PHP, there is no concept of private, public, or protected functions in classes as well as in the overloading.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":"","_links_to":"","_links_to_target":""},"categories":[83,84,41],"tags":[235,984,2371],"class_list":["post-1583","post","type-post","status-publish","format-standard","hentry","category-php","category-asp","category-programlama-software","tag-php","tag-frontpage-2003","tag-yazmak","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"aioseo_notices":[],"views":2547,"_links":{"self":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/1583","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/comments?post=1583"}],"version-history":[{"count":0,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/posts\/1583\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/media?parent=1583"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/categories?post=1583"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.karadere.com\/blog\/wp-json\/wp\/v2\/tags?post=1583"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}