By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,278 Members | 1,342 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,278 IT Pros & Developers. It's quick & easy.

Can You run asp in php

P: 2
hi

i am new to php and i know that the asp tags in php are <% %> but if i had a complex bit of asp can i just paste the asp in to a php document as long as the asp is in between the asp tags???
May 13 '07 #1
Share this Question
Share on Google+
2 Replies


Atli
Expert 5K+
P: 5,058
hi

i am new to php and i know that the asp tags in php are <% %> but if i had a complex bit of asp can i just paste the asp in to a php document as long as the asp is in between the asp tags???
PHP can not run ASP code. Although they serve the same purpose, they are two very different things.
If you paste the ASP code into a .php document and try to run it, one of two things will happen.
Either PHP is configured to accept ASP markup, in which case it will try to execute your ASP code as PHP, obviously causing errors.
Or it will ignore them all together and send them as HTML to the browser, where it will most likely be displayed as a part of the page.

I'm sure this is possible with some trickery, but even then I would reccoment against it.
May 13 '07 #2

P: 2
ok thanks

its just my m8 made some nice asp but wants to host it but my server is not supporting the asp so i thought about it in php

i will give it a go and see what happens and report back my findings
May 13 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.