<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1034546" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1034546</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/html-css-and-javascript/including-php-files-without-using-php#comment-1200863</link>
    <description> &lt;p&gt;Lets analize what you have done here.&lt;/p&gt;
&lt;p&gt;The client&#039;s website is telling the browser to include javascript from the location:&lt;br /&gt;
&lt;a href=&quot;http://mysitw/showad.php?user=tester%28you&quot; class=&quot;bb-url&quot;&gt;http://mysitw/showad.php?user=tester&lt;/a&gt; (you should wrap that with quotes by the way)&lt;/p&gt;
&lt;p&gt;The client&#039;s browser calles that URL. Your served executes the code and sets the variable &lt;strong&gt;$user&lt;/strong&gt; to be whatever you have after &lt;strong&gt;user=&lt;/strong&gt;. Inside the PHP tags, it does not output anything to the browser. All the browser gets from the call is the single line containing the word &lt;strong&gt;test &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In the end, it is the same as having the original code in the client&#039;s webpage being:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&amp;amp;lt;script language=&amp;quot;JavaScript&amp;quot;&amp;amp;gt;&lt;br /&gt;&amp;nbsp; test&lt;br /&gt;&amp;amp;lt;/script&amp;amp;gt;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
As you can see, does nothing effective.&lt;/p&gt;
&lt;p&gt;Now, if you want something effective, you could do something such as the following for the php file:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;&lt;span style=&quot;color: #000000&quot;&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;&amp;lt;?php&lt;br /&gt;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;color: #FF8000&quot;&gt;// NOTE: probably should put code here to set the &lt;br /&gt;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; content type to whatever a javascript file would&lt;br /&gt;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; normally give to a browser, I don&#039;t know it&lt;br /&gt;&amp;nbsp; //&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ofhand.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;var &lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;userName&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;;&lt;br /&gt;&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;userName &lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;= \&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;&quot;= @&lt;/span&gt;&lt;span style=&quot;color: #0000BB&quot;&gt;$HTTP_GET_VARS&lt;/span&gt;&lt;span style=&quot;color: #007700&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;color: #DD0000&quot;&gt;\&quot;user\&quot;] \&quot;;&lt;br /&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;(continue regular javascript here...)&lt;/p&gt;
&lt;p&gt;-Greg&lt;/p&gt;
 </description>
     <pubDate>Sat, 27 May 2006 18:40:02 +0000</pubDate>
 <dc:creator>Greg K</dc:creator>
 <guid isPermaLink="false">comment 1200863 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
