![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Apr 2004
Posts: 3,875
|
hmmm. Good question. If your server parses php it should be able to have both, but the .php or .asp I dont know.
__________________
No sig, just here to fuck around. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Nov 2002
Location: Valencia, CA
Posts: 2,906
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
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? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
|
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)
__________________
Skype variuscr - Email varius AT gmail |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jun 2004
Location: New York, NY
Posts: 6,890
|
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
__________________
Skype variuscr - Email varius AT gmail |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Aug 2004
Location: Portland ,OR
Posts: 714
|
the short answer is no...
__________________
www.jesusjohnson.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 | |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
|
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.. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 | |
Confirmed User
Join Date: Oct 2002
Location: European Union
Posts: 1,752
|
Quote:
![]() |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Industry Role:
Join Date: Nov 2003
Location: Toronto
Posts: 4,001
|
Ok thanks guys. I think it might be easier for me to just learn asp. Going to try w3schools.com any other good sites?
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Feb 2002
Posts: 1,424
|
You could try to use the Server.Execute method in asp to run a php file...
|
![]() |
![]() ![]() ![]() ![]() ![]() |