Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

mix php in asp file

Posted on 2004-03-25
6
Medium Priority
?
709 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 400 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Suggested Courses

972 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