Solved

mix php in asp file

Posted on 2004-03-25
6
699 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

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

792 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