Reply
running php on .aspx page
Old 09-10-2007, 03:40 PM running php on .aspx page
Experienced Talker

Posts: 36
hey all. trying to run a php script on an .aspx page and it isn't working. the page is http://www.eddiewalter.com/staging/calculator.aspx

here's the coding for the page:

Code:
<%@ Page aspcompat=true Language="VB" Debug="true" %>
<% 
Dim pageID, pageCategory
pageID = "calculators"
pageCategory = "buying"
%>
<!--#include file="/staging/assets/pre-content.inc"-->
<!--#include file="/staging/assets/menu.inc"-->
<div id="main-content">
<img src="/staging/images/mortgageu_logo.jpg" alt="MortgageU" class="float-right" />
<h1>Mortgage Calculators</h1>
<!--#include file="/staging/calculator.php"-->
<!-- end main-content -->
</div>
<div id="clear"></div>
<!--#include file="/staging/assets/post-content.inc"-->
from what i've read online, it seems you can just call the php page in an include statement, but it's not working.

any guidance?
edzdallas79 is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 09-10-2007, 06:13 PM Re: running php on .aspx page
chrishirst's Avatar
Super Moderator

Posts: 13,669
Location: Blackpool. UK
Quote:
hey all. trying to run a php script on an .aspx page and it isn't working
There's a reason for it not working. It's because you can't do that
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 09-10-2007, 06:20 PM Re: running php on .aspx page
chrishirst's Avatar
Super Moderator

Posts: 13,669
Location: Blackpool. UK
Quote:
from what i've read online, it seems you can just call the php page in an include statement
Don't believe everything you read online. You can include php code into php pages that are on the same server.
You can also include the output from a different site or remote server into .net pages, but you cannot run php code in a .aspx page as an include.

BTW is php installed on the server?
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Reply     « Reply to running php on .aspx page
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.32116 seconds with 12 queries