![]() |
Can an ASP site have PHP codes?
I am looking to add some PHP codes to an asp site. Is this possible? What would the extension be? .asp? .php? .aspphp?
Hope someone can help |
hmmm. Good question. If your server parses php it should be able to have both, but the .php or .asp I dont know.
|
I might have to connect to an external database on a different server since one server supports just asp and one server supports just php. I am pretty new to php and haven't yet learned asp so any help would help.
|
You can't have PHP code in ASP or vice versa. The other interpreter won't know what to do with the code and output it as text. However, you can have PHP reside on the same server as ASP, the code just can't be imbedded with the others files. Basically it is ill advised.
|
Ok maybe I will just learn ASP :)
Microsoft access acts as the database file. Is this good or bad for SEO or does it not make a difference? |
I know you can set this in php.ini
; Allow ASP-style <% %> tags. asp_tags = Off however I've never tested if you could then embed ASP code in php pages (I really doubt it) |
As for extensions, with Apache you can configure it to read any extension you want, say for example you can have .html read as php
|
the short answer is no...
|
Quote:
Most windows servers nowdays have PHP as well as ASP. Check with your host. If your server doesn't have it, ask them to install it. If you want to use both in a single site, for whatever reason, just have your ASP post or link to a PHP file, or vice versa. You can't mix the two in the same file.. |
Quote:
|
Ok thanks guys. I think it might be easier for me to just learn asp. Going to try w3schools.com any other good sites?
|
You could try to use the Server.Execute method in asp to run a php file...
|
All times are GMT -7. The time now is 10:56 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123