<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум PHP-MyAdmin.RU &mdash; Вместо интерфейса в окне браузера отображается скрипт]]></title>
	<link rel="self" href="https://forum.php-myadmin.ru/extern.php?action=feed&amp;tid=589&amp;type=atom" />
	<updated>2009-04-09T08:38:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.php-myadmin.ru/viewtopic.php?id=589</id>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=7730#p7730" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p><strong>hozman</strong><br />.phps - для вывода исходного кода PHP скрипта. Иногда, при разработке, бывает удобно, но обязательной данная строка не является. А на рабочем сервере ей вообще делать нечего.</p></blockquote></div><p>В пояснении к порту php (файл vi /usr/ports/lang/php5/pkg-message.mod) находится запись:<br /></p><div class="codebox"><pre><code>Make sure index.php is part of your DirectoryIndex.

You should add the following to your Apache configuration file:

AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps</code></pre></div><p>Вот это и поспособствовало тому, чт оя прописал.</p>]]></content>
			<author>
				<name><![CDATA[hozman]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1916</uri>
			</author>
			<updated>2009-04-09T08:38:49Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=7730#p7730</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=7718#p7718" />
			<content type="html"><![CDATA[<p><strong>hozman</strong><br />.phps - для вывода исходного кода PHP скрипта. Иногда, при разработке, бывает удобно, но обязательной данная строка не является. А на рабочем сервере ей вообще делать нечего.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2009-04-07T16:14:57Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=7718#p7718</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=7716#p7716" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>Hanut сказал:</cite><blockquote><p><strong>Ars22</strong><br />Перво-наперво проверьте 7 и 11 пункты из установки Apache.<br />DirectoryIndex index.html index.htm index.shtml index.php<br />AddType application/x-httpd-php .php</p><p>Если здесь ошибок нет, то отошлите все конфигурационные файлы на hanut@php-myadmin.ru, со ссылкой на эту тему.</p></blockquote></div><p>А обязательно добавлять и зачем он нужен?<br /></p><div class="codebox"><pre><code> AddType application/x-httpd-php-source .phps</code></pre></div>]]></content>
			<author>
				<name><![CDATA[hozman]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1916</uri>
			</author>
			<updated>2009-04-07T14:05:12Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=7716#p7716</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6752#p6752" />
			<content type="html"><![CDATA[<p>Огромное спасибо все заработало как надо</p>]]></content>
			<author>
				<name><![CDATA[fantasma]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1729</uri>
			</author>
			<updated>2009-01-18T18:51:44Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6752#p6752</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6751#p6751" />
			<content type="html"><![CDATA[<p>В httpd.conf попробуйте добавить строку:<br />ServerName localhost:80</p><p>Корень попробуйте прописать так:<br />&lt;Directory /&gt;<br />&nbsp; &nbsp; Options Includes Indexes FollowSymLinks<br />&nbsp; &nbsp; AllowOverride All<br />&nbsp; &nbsp; Allow from all<br />&lt;/Directory&gt;</p><p>А остальные настройки &lt;Directory &quot;I:/server/apache-sborka/htdocs&quot;&gt; закомментируйте.</p><p>php.ini, измените:<br />short_open_tag = On<br />register_long_arrays = On<br />magic_quotes_gpc = Off<br />session.save_path поместите внутрь контейнера [Session]</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2009-01-18T15:19:21Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6751#p6751</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6750#p6750" />
			<content type="html"><![CDATA[<p>error.log Apache содержит после запуска<br /></p><div class="codebox"><pre><code>[Sun Jan 18 16:10:22 2009] [notice] Apache/2.2.11 (Win32) PHP/5.2.8 configured -- resuming normal operations
[Sun Jan 18 16:10:22 2009] [notice] Server built: Dec 10 2008 00:10:06
[Sun Jan 18 16:10:22 2009] [notice] Parent: Created child process 6132
[Sun Jan 18 16:10:23 2009] [notice] Child 6132: Child process is running
[Sun Jan 18 16:10:23 2009] [notice] Child 6132: Acquired the start mutex.
[Sun Jan 18 16:10:23 2009] [notice] Child 6132: Starting 64 worker threads.
[Sun Jan 18 16:10:23 2009] [notice] Child 6132: Starting thread to listen on port 80.</code></pre></div>]]></content>
			<author>
				<name><![CDATA[fantasma]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1729</uri>
			</author>
			<updated>2009-01-18T13:21:00Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6750#p6750</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6748#p6748" />
			<content type="html"><![CDATA[<p><strong>fantasma</strong><br />Пока нет идей. Посмотрите в логах Apache, может там будут какие-нибудь зацепки.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2009-01-17T21:53:44Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6748#p6748</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6747#p6747" />
			<content type="html"><![CDATA[<p>да MySQL 5.1 стоит простые скрипты работают нормально<br />WordPress, DLE, работают нормально</p>]]></content>
			<author>
				<name><![CDATA[fantasma]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1729</uri>
			</author>
			<updated>2009-01-17T18:55:37Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6747#p6747</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6739#p6739" />
			<content type="html"><![CDATA[<p><strong>fantasma</strong><br />И MySQL тоже у вас стоит?<br />Что с простыми скриптами? Как они работают?</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2009-01-16T23:20:13Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6739#p6739</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=6736#p6736" />
			<content type="html"><![CDATA[<p>У меня похожая проблема только то что писалось выше в конфиге есть стоит <br />- PHP 5.2.8<br />- Apache 2.2.11<br />при попытке загрузить php скрипт выводит часть кода скрипта и дальше негрузится<br /></p><div class="codebox"><pre><code>CURDATE() AND ip=&quot;&#039;.$GLOBALS[&quot;HTTP_SERVER_VARS&quot;][&quot;REMOTE_ADDR&quot;].&#039;&quot; AND pid=&#039;.intval($q[pid]).&#039;&#039;); if($r[cnt]==0){ mysqlquery(&#039;INSERT INTO &#039;.$DBPrefix.&#039;votation_hits SET item_id=&#039;.intval($_REQUEST[&#039;vid&#039;]).&#039;, pid=&#039;.intval($item[pid]).&#039;, date=NOW(), ip=&quot;&#039;.$GLOBALS[&quot;HTTP_SERVER_VARS&quot;][&quot;REMOTE_ADDR&quot;].&#039;&quot;&#039;); } } $q = query(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;votation WHERE id=&#039;.intval($id)); $ra = query(&#039;SELECT COUNT(*) as cnt FROM &#039;.$DBPrefix.&#039;votation_hits WHERE pid=&#039;.intval($id)); $r = mysqlquery(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;votation WHERE pid=&#039;.intval($id).&#039; ORDER BY sortby&#039;); $as = Array(); while($a = mysql_fetch_assoc($r)){ $rb = query(&#039;SELECT COUNT(*) as cnt FROM &#039;.$DBPrefix.&#039;votation_hits WHERE item_id=&#039;.intval($a[id])); $a[cnt] = $rb[cnt]; $a[p] = $ra[cnt]?intval($rb[cnt]*100/$ra[cnt]):0; $as[] = $a; } if($_REQUEST[&#039;vid&#039;]){ $content = ob_get_contents(); ob_end_clean(); echo ApplyTemplate(&#039;./tpl/votation.php&#039;, Array(&#039;q&#039;=&gt;$q, &#039;as&#039;=&gt;$as)); exit; }else{ return ApplyTemplate(&#039;./tpl/votation.php&#039;, Array(&#039;q&#039;=&gt;$q, &#039;as&#039;=&gt;$as)); } } function ShowBanner($id){ global $DBPrefix; global $banners_folder; global $site_link; $place = query(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;banner_places WHERE id=&#039;.intval($id).&#039;&#039;); if(!$place) return &#039;&#039;; $ban = query(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;banners WHERE place_id=&#039;.intval($id).&#039; ORDER BY RAND()&#039;); if(!$ban) return &#039;&#039;; $referer = $_SERVER[&#039;HTTP_REFERER&#039;]; $url = $_SERVER[&#039;PHP_SELF&#039;].($_SERVER[&#039;QUERY_STRING&#039;]?&#039;?&#039;.$_SERVER[&#039;QUERY_STRING&#039;]:&#039;&#039;); $r = query(&#039;SELECT COUNT(*) as cnt FROM &#039;.$DBPrefix.&#039;banner_logs WHERE firstvisit=&quot;1&quot; AND ip=&quot;&#039;.addslashes($_SERVER[&#039;REMOTE_ADDR&#039;]).&#039;&quot; AND date &gt;= CURDATE()&#039;); mysqlquery(&#039;INSERT INTO &#039;.$DBPrefix.&#039;banner_logs SET firstvisit=&quot;&#039;.($r[cnt]==0?&#039;1&#039;:&#039;0&#039;).&#039;&quot;, referer=&quot;&#039;.addslashes($_SERVER[&#039;HTTP_REFERER&#039;]).&#039;&quot;, ip=&quot;&#039;.addslashes($_SERVER[&#039;REMOTE_ADDR&#039;]).&#039;&quot;, url=&quot;&#039;.addslashes($url).&#039;&quot;, date=NOW(), ban_id=&#039;.intval($ban[id]).&#039;, place_id=&#039;.intval($place[id]).&#039;&#039;); return ShowImageByType($banners_folder . &#039;/&#039; . $ban[&#039;file&#039;], $ban[place_id], $ban[id], $place[blank]); } function GetTids($tid){ global $DBPrefix; $tids = Array(); while($tid){ array_push($tids, $tid); $r = mysqlquery(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;topics WHERE id=&#039;.intval($tid).&#039; LIMIT 1&#039;); $topic = mysql_fetch_array($r); if($topic[pid]==0){ break; } $tid = $topic[pid]; } $ts = Array(&#039;first&#039;=&gt;array_pop($tids), &#039;second&#039;=&gt;array_pop($tids), &#039;third&#039;=&gt;array_pop($tids)); return $ts; } function HaveTopicSubs($topic_id){ global $DBPrefix; $cnt = query(&#039;SELECT COUNT(*) as cnt FROM &#039;.$DBPrefix.&#039;topics WHERE pid=&#039;.intval($topic_id)); return $cnt[cnt]?true:false; } function GenMainMenu(){ global $DBPrefix; $r = mysqlquery(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;topics WHERE pid=0 AND hidden=0 ORDER BY sortby ASC, id ASC&#039;); $topics = Array(); while($topic = mysql_fetch_array($r)){ //$topic[havesub] = HaveTopicSubs($topic[id]); $topics[] = $topic; } return ApplyTemplate(&#039;./tpl/menu_first.php&#039;, Array(&#039;topics&#039;=&gt;$topics, &#039;tids&#039;=&gt;$tids)); } function GenSecondLevelMenu($tids){ global $DBPrefix; if(!$tids[&#039;first&#039;]) return &#039;&#039;; $r = mysqlquery(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;topics WHERE pid=&#039;.intval($tids[&#039;first&#039;]).&#039; AND hidden=0 ORDER BY sortby ASC, id ASC&#039;); $topics = Array(); while($topic = mysql_fetch_array($r)){ if($topic[type]==&#039;link&#039;) $topic[id] = ReLink($topic[id]); $topic[havesub] = HaveTopicSubs($topic[id]); $topics[] = $topic; } return ApplyTemplate(&#039;./tpl/menu_second.php&#039;, Array(&#039;topics&#039;=&gt;$topics, &#039;tids&#039;=&gt;$tids)); } function GenMenu($pid, $tpl, $arr = Array()){ global $DBPrefix; $r = mysqlquery(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;topics WHERE pid=&#039;.intval($pid).&#039; AND hidden=0 ORDER BY sortby ASC, id ASC&#039;); $topics = Array(); while($topic = mysql_fetch_array($r)){ if($topic[type]==&#039;link&#039;) $topic[id] = ReLink($topic[id]); //$topic[havesub] = HaveTopicSubs($topic[id]); $topics[] = $topic; } $arr = array_merge(Array(&#039;topics&#039;=&gt;$topics, &#039;tids&#039;=&gt;$tids), $arr); return ApplyTemplate($tpl, $arr); } function GenThirdLevelMenu($tids){ global $DBPrefix; if(!$tids[&#039;second&#039;]) return &#039;&#039;; $r = mysqlquery(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;topics WHERE pid=&#039;.intval($tids[&#039;second&#039;]).&#039; AND hidden=0 ORDER BY sortby ASC, id ASC&#039;); $topics = Array(); while($topic = mysql_fetch_array($r)){ if($topic[type]==&#039;link&#039;) $topic[id] = ReLink($topic[id]); $topic[havesub] = HaveTopicSubs($topic[id]); $topics[] = $topic; } return ApplyTemplate(&#039;./tpl/menu_third.php&#039;, Array(&#039;topics&#039;=&gt;$topics, &#039;tids&#039;=&gt;$tids)); } function GenSearchForm($tpl){ return ApplyTemplate($tpl); } function GetConstants(){ global $DBPrefix; $r = mysqlquery(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;constants WHERE 1&#039;); $constants = Array(); while($const = mysql_fetch_assoc($r)){ $constants[$const[name]] = $const[value]; } return $constants; } function GetJavaScripts(){ global $DBPrefix; global $js_folder; $r = mysqlquery(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;js WHERE 1&#039;); $jss = Array(); while($js = mysql_fetch_assoc($r)){ $jss[] = $js_folder.$js[module].&#039;.js&#039;; } return $jss; } if($_REQUEST[&#039;action&#039;]==&#039;click_banner&#039;){ $place = query(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;banner_places WHERE id=&#039;.intval($_REQUEST[&#039;place_id&#039;]).&#039;&#039;); $ban = query(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;banners WHERE id=&#039;.intval($_REQUEST[&#039;ban_id&#039;])); $referer = $_SERVER[&#039;HTTP_REFERER&#039;]; $url = $_SERVER[&#039;PHP_SELF&#039;].($_SERVER[&#039;QUERY_STRING&#039;]?&#039;?&#039;.$_SERVER[&#039;QUERY_STRING&#039;]:&#039;&#039;); $r = query(&#039;SELECT COUNT(*) as cnt FROM &#039;.$DBPrefix.&#039;banner_click_logs WHERE firstvisit=&quot;1&quot; AND ip=&quot;&#039;.addslashes($_SERVER[&#039;REMOTE_ADDR&#039;]).&#039;&quot; AND date &gt;= CURDATE()&#039;); mysqlquery(&#039;INSERT INTO &#039;.$DBPrefix.&#039;banner_click_logs SET firstvisit=&quot;&#039;.($r[cnt]==0?&#039;1&#039;:&#039;0&#039;).&#039;&quot;, referer=&quot;&#039;.addslashes($_SERVER[&#039;HTTP_REFERER&#039;]).&#039;&quot;, ip=&quot;&#039;.addslashes($_SERVER[&#039;REMOTE_ADDR&#039;]).&#039;&quot;, url=&quot;&#039;.addslashes($url).&#039;&quot;, date=NOW(), ban_id=&#039;.intval($ban[id]).&#039;, place_id=&#039;.intval($place[id]).&#039;&#039;); header(&#039;Location: &#039;.$ban[url]); exit; } $topic = query(&#039;SELECT * FROM &#039;.$DBPrefix.&#039;topics WHERE id =&#039;.intval($tid).&#039;&#039;); $mod = GetModule($topic[&#039;type&#039;]); if(!$_REQUEST[&#039;search_text&#039;]){ eval(&#039;$class = new &#039;.$mod[&#039;cname&#039;].&#039;;&#039;); } $tids = GetTids($tid); $menu_first = GenMainMenu($tids); //$menu_second = GenSecondLevelMenu($tids); //$menu_third = GenThirdLevelMenu($tids); $constants = GetConstants(); $js = GetJavaScripts(); if(isset($_REQUEST[&#039;search_text&#039;])){ $page_title = &#039;яПНяПНяПНяПНяПН: &#039;.$_REQUEST[&#039;search_text&#039;]; $page_keywords = &#039;яПНяПНяПНяПНяПН: &#039;.$_REQUEST[&#039;search_text&#039;]; $page_description = &#039;яПНяПНяПНяПНяПН: &#039;.$_REQUEST[&#039;search_text&#039;]; $content = SearchResults(); }else{ $page_title = $class-&gt;GenPageTitle(); $page_keywords = $class-&gt;GenPageKeywords(); $page_description = $class-&gt;GenPageDescription(); $content = $class-&gt;GetContent(); } echo ApplyTemplate(&#039;./tpl/main.php&#039;, Array(&#039;tid&#039;=&gt;$tid, &#039;topic&#039;=&gt;$topic, &#039;menu_first&#039;=&gt;$menu_first, &#039;content&#039;=&gt;$content, &#039;constants&#039;=&gt;$constants, &#039;tids&#039;=&gt;$tids, &#039;page_title&#039;=&gt;$page_title, &#039;page_keywords&#039;=&gt;$page_keywords, &#039;page_description&#039;=&gt;$page_description, &#039;js&#039;=&gt;$js, &#039;class&#039;=&gt;$class)); disconnect(); ?&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[fantasma]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=1729</uri>
			</author>
			<updated>2009-01-16T15:39:09Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=6736#p6736</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=3823#p3823" />
			<content type="html"><![CDATA[<p><strong>Hanut</strong><br />Добрый день!<br />Стыдно признаться, но действительно не было строчки в httpd.conf, которую Вы мне указали в своем сообщении:<br />AddType application/x-httpd-php .php.&nbsp; И как я три раза подряд пропустил этот пункт? Сам не пойму...<br />Из-за этого был такой эффект. Сейчас все приконектилось замечательно!!!<br />Спасибо!</p>]]></content>
			<author>
				<name><![CDATA[Ars22]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=820</uri>
			</author>
			<updated>2007-11-05T09:05:09Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=3823#p3823</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=3819#p3819" />
			<content type="html"><![CDATA[<p><strong>Ars22</strong><br />Перво-наперво проверьте 7 и 11 пункты из установки Apache.<br />DirectoryIndex index.html index.htm index.shtml index.php<br />AddType application/x-httpd-php .php</p><p>Если здесь ошибок нет, то отошлите все конфигурационные файлы на hanut@php-myadmin.ru, со ссылкой на эту тему.</p>]]></content>
			<author>
				<name><![CDATA[Hanut]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=181</uri>
			</author>
			<updated>2007-11-04T19:30:25Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=3819#p3819</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=3817#p3817" />
			<content type="html"><![CDATA[<p>Вот если это поможет, то выкидывает в окно браузера после входа на localhost/phpmyadmin<br />(браузер Opera9.24)</p><div class="codebox"><pre><code>&lt;?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * forms frameset
 *
 * @version $Id: index.php 10590 2007-09-02 19:59:59Z lem9 $
 * @uses    $GLOBALS[&#039;strNoFrames&#039;]
 * @uses    $GLOBALS[&#039;cfg&#039;][&#039;QueryHistoryDB&#039;]
 * @uses    $GLOBALS[&#039;cfg&#039;][&#039;Server&#039;][&#039;user&#039;]
 * @uses    $GLOBALS[&#039;cfg&#039;][&#039;DefaultTabServer&#039;]     as src for the mainframe
 * @uses    $GLOBALS[&#039;cfg&#039;][&#039;DefaultTabDatabase&#039;]   as src for the mainframe
 * @uses    $GLOBALS[&#039;cfg&#039;][&#039;NaviWidth&#039;]            for navi frame width
 * @uses    $GLOBALS[&#039;collation_connection&#039;]    from $_REQUEST (grab_globals.lib.php)
 *                                              or common.inc.php
 * @uses    $GLOBALS[&#039;available_languages&#039;] from common.inc.php (select_lang.lib.php)
 * @uses    $GLOBALS[&#039;db&#039;]
 * @uses    $GLOBALS[&#039;charset&#039;]
 * @uses    $GLOBALS[&#039;lang&#039;]
 * @uses    $GLOBALS[&#039;text_dir&#039;]
 * @uses    $_ENV[&#039;HTTP_HOST&#039;]
 * @uses    PMA_getRelationsParam()
 * @uses    PMA_purgeHistory()
 * @uses    PMA_generate_common_url()
 * @uses    PMA_VERSION
 * @uses    session_write_close()
 * @uses    time()
 * @uses    PMA_getenv()
 * @uses    header()                to send charset
 */

/**
 * Gets core libraries and defines some variables
 */
require_once &#039;./libraries/common.inc.php&#039;;

/**
 * Includes the ThemeManager if it hasn&#039;t been included yet
 */
require_once &#039;./libraries/relation.lib.php&#039;;

// free the session file, for the other frames to be loaded
session_write_close();

// Gets the host name
// loic1 - 2001/25/11: use the new globals arrays defined with php 4.1+
if (empty($HTTP_HOST)) {
    if (PMA_getenv(&#039;HTTP_HOST&#039;)) {
        $HTTP_HOST = PMA_getenv(&#039;HTTP_HOST&#039;);
    } else {
        $HTTP_HOST = &#039;&#039;;
    }
}


// purge querywindow history
$cfgRelation = PMA_getRelationsParam();
if ($GLOBALS[&#039;cfg&#039;][&#039;QueryHistoryDB&#039;] &amp;&amp; $cfgRelation[&#039;historywork&#039;]) {
    PMA_purgeHistory($GLOBALS[&#039;cfg&#039;][&#039;Server&#039;][&#039;user&#039;]);
}
unset($cfgRelation);


/**
 * pass variables to child pages
 */
$drops = array(&#039;lang&#039;, &#039;server&#039;, &#039;convcharset&#039;, &#039;collation_connection&#039;,
    &#039;db&#039;, &#039;table&#039;);

foreach ($drops as $each_drop) {
    if (! array_key_exists($each_drop, $_GET)) {
        unset($_GET[$each_drop]);
    }
}
unset($drops, $each_drop);

if (! strlen($GLOBALS[&#039;db&#039;])) {
    $main_target = $GLOBALS[&#039;cfg&#039;][&#039;DefaultTabServer&#039;];
} elseif (! strlen($GLOBALS[&#039;table&#039;])) {
    $_GET[&#039;db&#039;] = $GLOBALS[&#039;db&#039;];
    $main_target = $GLOBALS[&#039;cfg&#039;][&#039;DefaultTabDatabase&#039;];
} else {
    $_GET[&#039;db&#039;] = $GLOBALS[&#039;db&#039;];
    $_GET[&#039;table&#039;] = $GLOBALS[&#039;table&#039;];
    $main_target = $GLOBALS[&#039;cfg&#039;][&#039;DefaultTabTable&#039;];
}

$url_query = PMA_generate_common_url($_GET);

if (isset($GLOBALS[&#039;target&#039;]) &amp;&amp; is_string($GLOBALS[&#039;target&#039;]) &amp;&amp; !empty($GLOBALS[&#039;target&#039;]) &amp;&amp; in_array($GLOBALS[&#039;target&#039;], $goto_whitelist)) {
    $main_target = $GLOBALS[&#039;target&#039;];
}

$main_target .= $url_query;

$lang_iso_code = $GLOBALS[&#039;available_languages&#039;][$GLOBALS[&#039;lang&#039;]][2];


// start output
header(&#039;Content-Type: text/html; charset=&#039; . $GLOBALS[&#039;charset&#039;]);
?&gt;
&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Frameset//EN&quot;
    &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd&quot;&gt;
&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;
    xml:lang=&quot;&lt;?php echo $lang_iso_code; ?&gt;&quot;
    lang=&quot;&lt;?php echo $lang_iso_code; ?&gt;&quot;
    dir=&quot;&lt;?php echo $GLOBALS[&#039;text_dir&#039;]; ?&gt;&quot;&gt;
&lt;head&gt;
&lt;link rel=&quot;icon&quot; href=&quot;./favicon.ico&quot; type=&quot;image/x-icon&quot; /&gt;
&lt;link rel=&quot;shortcut icon&quot; href=&quot;./favicon.ico&quot; type=&quot;image/x-icon&quot; /&gt;
&lt;title&gt;phpMyAdmin &lt;?php echo PMA_VERSION; ?&gt; -
    &lt;?php echo htmlspecialchars($HTTP_HOST); ?&gt;&lt;/title&gt;
&lt;meta http-equiv=&quot;Content-Type&quot;
    content=&quot;text/html; charset=&lt;?php echo $GLOBALS[&#039;charset&#039;]; ?&gt;&quot; /&gt;
&lt;script type=&quot;text/javascript&quot;&gt;
// &lt;![CDATA[
    // definitions used in querywindow.js
    var common_query = &#039;&lt;?php echo PMA_escapeJsString(PMA_generate_common_url(&#039;&#039;, &#039;&#039;, &#039;&amp;&#039;));?&gt;&#039;;
    var opendb_url = &#039;&lt;?php echo PMA_escapeJsString($GLOBALS[&#039;cfg&#039;][&#039;DefaultTabDatabase&#039;]); ?&gt;&#039;;
    var safari_browser = &lt;?php echo PMA_USR_BROWSER_AGENT == &#039;SAFARI&#039; ? &#039;true&#039; : &#039;false&#039; ?&gt;;
    var querywindow_height = &lt;?php echo PMA_escapeJsString($GLOBALS[&#039;cfg&#039;][&#039;QueryWindowHeight&#039;]); ?&gt;;
    var querywindow_width = &lt;?php echo PMA_escapeJsString($GLOBALS[&#039;cfg&#039;][&#039;QueryWindowWidth&#039;]); ?&gt;;
    var collation_connection = &#039;&lt;?php echo PMA_escapeJsString($GLOBALS[&#039;collation_connection&#039;]); ?&gt;&#039;;
    var lang = &#039;&lt;?php echo PMA_escapeJsString($GLOBALS[&#039;lang&#039;]); ?&gt;&#039;;
    var server = &#039;&lt;?php echo PMA_escapeJsString($GLOBALS[&#039;server&#039;]); ?&gt;&#039;;
    var table = &#039;&lt;?php echo PMA_escapeJsString($GLOBALS[&#039;table&#039;]); ?&gt;&#039;;
    var db    = &#039;&lt;?php echo PMA_escapeJsString($GLOBALS[&#039;db&#039;]); ?&gt;&#039;;
    var text_dir = &#039;&lt;?php echo PMA_escapeJsString($GLOBALS[&#039;text_dir&#039;]); ?&gt;&#039;;
    var pma_absolute_uri = &#039;&lt;?php echo PMA_escapeJsString($GLOBALS[&#039;cfg&#039;][&#039;PmaAbsoluteUri&#039;]); ?&gt;&#039;;

    // for content and navigation frames

    var frame_content = 0;
    var frame_navigation = 0;
    function getFrames() {
&lt;?php if ($GLOBALS[&#039;text_dir&#039;] === &#039;ltr&#039;) { ?&gt;
        frame_content = window.frames[1];
        frame_navigation = window.frames[0];
&lt;?php } else { ?&gt;
        frame_content = window.frames[0];
        frame_navigation = window.frames[1];
&lt;?php } ?&gt;
    }
    var onloadCnt = 0; 
    var onLoadHandler = window.onload;
    window.onload = function() {
        if (onloadCnt == 0) {
            if (typeof(onLoadHandler) == &quot;function&quot;) { 
                onLoadHandler(); 
            }
            if (typeof(getFrames) != &#039;undefined&#039; &amp;&amp; typeof(getFrames) == &#039;function&#039;) { 
                getFrames(); 
            }
            onloadCnt++;
        }
    };
// ]]&gt;
&lt;/script&gt;
&lt;script src=&quot;./js/querywindow.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;frameset cols=&quot;&lt;?php
if ($GLOBALS[&#039;text_dir&#039;] === &#039;rtl&#039;) {
    echo &#039;*,&#039;;
}
echo $GLOBALS[&#039;cfg&#039;][&#039;NaviWidth&#039;];
if ($GLOBALS[&#039;text_dir&#039;] === &#039;ltr&#039;) {
    echo &#039;,*&#039;;
}
?&gt;&quot; rows=&quot;*&quot; id=&quot;mainFrameset&quot;&gt;
    &lt;?php if ($GLOBALS[&#039;text_dir&#039;] === &#039;ltr&#039;) { ?&gt;
    &lt;frame frameborder=&quot;0&quot; id=&quot;frame_navigation&quot;
        src=&quot;navigation.php&lt;?php echo $url_query; ?&gt;&quot;
        name=&quot;frame_navigation&quot; /&gt;
    &lt;?php } ?&gt;
    &lt;frame frameborder=&quot;0&quot; id=&quot;frame_content&quot;
        src=&quot;&lt;?php echo $main_target; ?&gt;&quot;
        name=&quot;frame_content&quot; /&gt;
    &lt;?php if ($GLOBALS[&#039;text_dir&#039;] === &#039;rtl&#039;) { ?&gt;
    &lt;frame frameborder=&quot;0&quot; id=&quot;frame_navigation&quot;
        src=&quot;navigation.php&lt;?php echo $url_query; ?&gt;&quot;
        name=&quot;frame_navigation&quot; /&gt;
    &lt;?php } ?&gt;
    &lt;noframes&gt;
        &lt;body&gt;
            &lt;p&gt;&lt;?php echo $GLOBALS[&#039;strNoFrames&#039;]; ?&gt;&lt;/p&gt;
        &lt;/body&gt;
    &lt;/noframes&gt;
&lt;/frameset&gt;
&lt;/html&gt;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Ars22]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=820</uri>
			</author>
			<updated>2007-11-04T14:25:09Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=3817#p3817</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=3816#p3816" />
			<content type="html"><![CDATA[<p>Может нужно какие конфиги сюда выложить или какие-то моменты прояснить?</p>]]></content>
			<author>
				<name><![CDATA[Ars22]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=820</uri>
			</author>
			<updated>2007-11-04T13:09:09Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=3816#p3816</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Вместо интерфейса в окне браузера отображается скрипт]]></title>
			<link rel="alternate" href="https://forum.php-myadmin.ru/viewtopic.php?pid=3815#p3815" />
			<content type="html"><![CDATA[<p>Добрый день!</p><p>Помогите пожалуйста разобраться в проблеме. Устанавливал себе инструмеентарий для веб разработки. Пользовался статьей &quot;Инструментарий веб-разработчика&quot;. Состав продуктов следующий:<br />- MySQL 5.0.45<br />- PHP 5.2.4<br />- Apache 2.2.6<br />- PHPMyAdmin 2.11.2<br />- ОС WINDOWS XP SP2</p><p>Сначала все вроде шло нормально, первые три продукта поставил без проблем следуя инструкциям. Проверил работу Apache с виртуальными хостами как описано в статье. Работает. Последний аккорд - ставлю phpmyadmin. Прописываю все везде как в статье. Набираю в адресной строке localhost/phpmyadmin и вижу вместо интерфейса отображение кода страницы. <br />Вроде все перепроверил, все конфиги правил в соответствии со статьей, все операции выполнил в такой же последовательности какая указана. Что еще можно сделать ума не приложу))<br />Буду признателен за любую предоставленную информацию по этому вопросу</p>]]></content>
			<author>
				<name><![CDATA[Ars22]]></name>
				<uri>https://forum.php-myadmin.ru/profile.php?id=820</uri>
			</author>
			<updated>2007-11-04T12:15:40Z</updated>
			<id>https://forum.php-myadmin.ru/viewtopic.php?pid=3815#p3815</id>
		</entry>
</feed>
