<?xml version="1.0" encoding="utf-8" ?><rss version="2.0" xml:base="https://www.webmaster-forums.net/crss/node/1018342" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title></title>
    <link>https://www.webmaster-forums.net/crss/node/1018342</link>
    <description></description>
    <language>en</language>
          <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/include-php-file-inside-perl-file#comment-1109015</link>
    <description> &lt;p&gt;Hi, if you can wait for apache 2 &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;... with filters you `should` be able to achieve exaclty what you want to do, i.e. parse PHP from within PERL &amp;amp; vv , I know you can for instance use SSI in PHP with apache2 but the inputfilter &amp;amp; output filter docs are still a little sketchy &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/wink.png&quot; title=&quot;Wink&quot; alt=&quot;Wink&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;can you go the other way around though ? i.e. write a PHP file and use &lt;a href=&quot;http://www.php.net/virtual&quot; class=&quot;bb-url&quot;&gt;virtual()&lt;/a&gt; to run the PERL script ??&lt;/p&gt;
 </description>
     <pubDate>Fri, 17 May 2002 03:48:18 +0000</pubDate>
 <dc:creator />
 <guid isPermaLink="false">comment 1109015 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/include-php-file-inside-perl-file#comment-1108589</link>
    <description> &lt;p&gt;joyce&lt;/p&gt;
&lt;p&gt;That code is a bit sketchy. I would first load the page into memory by doing:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt; use LWP::Simple;&lt;br /&gt; $content = get(&amp;quot;http://www.abc.com/test/adcycle/cookie.php&amp;quot;)&lt;br /&gt;&lt;br /&gt; print $content;&lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 May 2002 08:43:36 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1108589 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/include-php-file-inside-perl-file#comment-1108572</link>
    <description> &lt;p&gt;Those are what I would have recommended.&lt;br /&gt;
It didn&#039;t even work on a simple &quot;Hello World&quot; script?&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 May 2002 06:33:27 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1108572 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/include-php-file-inside-perl-file#comment-1108560</link>
    <description> &lt;p&gt;oh...i get all these code from another forum. they told me i can include my php page through this way. hmm..so wat should i do now...~sigh~&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 May 2002 05:29:05 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1108560 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/include-php-file-inside-perl-file#comment-1108550</link>
    <description> &lt;p&gt;If you need to parse the contents of cookie.php, you can&#039;t do that while in the middle of parsing a perl page.&lt;/p&gt;
&lt;p&gt;The problem isn&#039;t that it&#039;s not including (not entirely), it&#039;s that it can&#039;t do anything with it.  Perl doesn&#039;t understand PHP.&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 May 2002 03:42:55 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1108550 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/include-php-file-inside-perl-file#comment-1108549</link>
    <description> &lt;p&gt;i do know that when there&#039;s something not right in the script, the whole page won&#039;t load, but it won&#039;t tell any errors. that&#039;s wat i have when i used:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;use LWP::Simple; &lt;br /&gt;&amp;amp;getprint(&amp;#039;http://www.abc.com/test/adcycle/cookie.php&amp;#039;); &lt;/code&gt;&lt;/div&gt;&#039;&lt;/p&gt;
&lt;p&gt;i did try to use this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;my $php_output = `lynx -source &amp;lt;a href=&amp;quot;http://www.abc.com/test/adcycle/cookie.php&amp;quot; class=&amp;quot;bb-url&amp;quot;&amp;gt;http://www.abc.com/test/adcycle/cookie.php&amp;lt;/a&amp;gt;`;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
also can&#039;t load the page.&lt;/p&gt;
&lt;p&gt;and i used this:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;my $php_output = get(&amp;quot;http://www.abc.com/test/adcycle/cookie.php&amp;quot;) ;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
no errors found but in my cookie.php i print a word&quot;hello&quot; but when i load my page, that word is not found. so i assume it didn&#039;t include my php page either...&lt;/p&gt;
 </description>
     <pubDate>Thu, 09 May 2002 03:22:47 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1108549 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/include-php-file-inside-perl-file#comment-1108189</link>
    <description> &lt;p&gt;Well, you can execute it... sort of (run it as a shell command).  I&#039;m not sure that it will have access to the environmental variables though.&lt;/p&gt;
 </description>
     <pubDate>Fri, 03 May 2002 21:30:15 +0000</pubDate>
 <dc:creator>Mark Hensler</dc:creator>
 <guid isPermaLink="false">comment 1108189 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/include-php-file-inside-perl-file#comment-1108185</link>
    <description> &lt;p&gt;You can&#039;t because there is no way to get the server to parse two languages in the same file. The extension of the file tells the server how to understand it. You cannot include a php file in any file other than a php file. You can only, like with perl/cgi, link to a php script that would run when clicked, or as the source of an image.&lt;/p&gt;
&lt;p&gt;Unless you are just quoting the source (don&#039;t need to parse anything) you cannot do it.&lt;/p&gt;
 </description>
     <pubDate>Fri, 03 May 2002 20:33:26 +0000</pubDate>
 <dc:creator>Suzanne</dc:creator>
 <guid isPermaLink="false">comment 1108185 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/include-php-file-inside-perl-file#comment-1108151</link>
    <description> &lt;p&gt;actually i want to include the php file in the perl script.&lt;/p&gt;
&lt;p&gt;include &quot;abc.php&quot;;&lt;/p&gt;
 </description>
     <pubDate>Fri, 03 May 2002 08:15:35 +0000</pubDate>
 <dc:creator>joyce</dc:creator>
 <guid isPermaLink="false">comment 1108151 at https://www.webmaster-forums.net</guid>
  </item>
  <item>
    <title></title>
    <link>https://www.webmaster-forums.net/server-side-scripting/include-php-file-inside-perl-file#comment-1107618</link>
    <description> &lt;p&gt;What are you trying to do? Print a PHP page to the browser from within a Perl script? Hm, you really ought to stick to one programming language, you know &lt;img src=&quot;https://www.webmaster-forums.net/misc/smileys/smile.png&quot; title=&quot;Smiling&quot; alt=&quot;Smiling&quot; class=&quot;smiley-content&quot; /&gt;&lt;/p&gt;
&lt;p&gt;To include HTML, PHP, XML or whatever else you want, just slurp it all into a variable (see below). In my example I&#039;ve also added a print statement to print it to the brwoser, but you can choose to do whatever you want with it after this stage.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;my $php_code = &amp;lt;&amp;lt;__PHP__;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; .. put your PHP code in here ..&lt;br /&gt;&lt;br /&gt;__PHP__;&lt;br /&gt;&lt;br /&gt;print $php_code;&lt;/code&gt;&lt;/div&gt;&#039;&lt;br /&gt;
Hope this helps.&lt;/p&gt;
 </description>
     <pubDate>Wed, 24 Apr 2002 09:26:58 +0000</pubDate>
 <dc:creator>Wil</dc:creator>
 <guid isPermaLink="false">comment 1107618 at https://www.webmaster-forums.net</guid>
  </item>
  </channel>
</rss>
