RE: INCLUDE ASP does Not Work! for PHP - 4.3.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The problem is that the web server looks at the file type and determines
what to do with it before it sends anything to the web browser.

Your .PHP file is being sent to a PHP interpreter which outputs certain
things that get sent to the browser.  What's going to happen in this
case is that ASP code is going to be inserted, sent to the PHP
interpreter and nothing's going to happen....  Or if you have your PHP
set up to see <% %> as PHP, then you'll probably get some kind of
unknown function error.

The reason the .HTM file works ok is that HTML is passed straight
through the PHP interpreter to the browser.


What you'd have to do is maybe use an IFRAME (HTML) and put the poll.asp
in that so the web server is pulling a .ASP file without anything else,
therefore interpreting it as an ASP file.

Does any of that make sense?

-TG

> -----Original Message-----
> From: Raj Gopal [mailto:GopalR1@xxxxxxxxx] 
> Sent: Thursday, September 16, 2004 5:19 PM
> To: php-windows@xxxxxxxxxxxxx
> Subject:  INCLUDE ASP does Not Work! for PHP - 4.3.4
> 
> 
> Hi All,
> 
>  I have included a ASP file in a PHP script as follows
> 
>  <? include 'poll.asp' ?>
> 
> and it does not work! 
> 
> whereas <? include 'AA.htm' ?> works fine
> 
> Appreciate your help for any workarounds or Syntax issues
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux