Solved

mix php in asp file

Posted on 2004-03-25
6
696 Views
Last Modified: 2008-03-06
hi,

i have an existing asp page,
and i need to execute some php code in it (select latest topics from my mysql forum_db)
how can i do it?

Thanks.
0
Comment
Question by:cleaverX
  • 2
  • 2
6 Comments
 
LVL 1

Expert Comment

by:viperweb
Comment Utility
Since you are running a windows server (obviously) unless your running a linux chiliasp or something. If you server has PHP installed also, I would change your apache or IIS Mine types so .asp or .php are both php and asp documents. Then use the <?php ?> for php and then <% %> I think it is for asp. I am not an asp coder so this is just a shot in the dark, but it might work.
0
 

Author Comment

by:cleaverX
Comment Utility
hi viperweb,

thx for your hint, i tried it out, but it does not seem to work.  The php works, but the asp stuff stops working when i do this.  
Any other help is greatly appreciated.
Can i use an include or something?

0
 

Author Comment

by:cleaverX
Comment Utility
someone can help me out plz?
0
 
LVL 1

Accepted Solution

by:
viperweb earned 100 total points
Comment Utility
Try addign a mime type for php to .asp files and see if that works. In theory it seems like it would work. Ill keep trying to figure out something. Uusally most don't do a php/asp hybrid as they are kinda contridictory. You usually use one or the other. ahah. ill keep looking. good luck.
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Read about why website design really matters in today's demanding market.
"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now