Solved

mix php in asp file

Posted on 2004-03-25
6
697 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
ID: 10681633
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
ID: 10707524
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
ID: 10761055
someone can help me out plz?
0
 
LVL 1

Accepted Solution

by:
viperweb earned 100 total points
ID: 10761097
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
"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,…
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
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…

911 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

21 Experts available now in Live!

Get 1:1 Help Now