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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-21-2004, 12:02 AM   #1
mkx
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
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 12:05 AM   #2
AMADude
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.
AMADude is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 12:10 AM   #3
mkx
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.
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 12:13 AM   #4
Warden
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.
__________________
AIM: ZeeRiddler
ICQ: 128160005
Warden's MS
Warden is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 12:15 AM   #5
mkx
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?

Last edited by raulph; 11-21-2004 at 12:17 AM..
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 02:24 AM   #6
Varius
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
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 02:25 AM   #7
Varius
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
Varius is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 02:30 AM   #8
Rantan
Confirmed User
 
Join Date: Aug 2004
Location: Portland ,OR
Posts: 714
the short answer is no...
__________________
www.jesusjohnson.com
Rantan is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 02:32 AM   #9
fusionx
Confirmed User
 
Industry Role:
Join Date: Nov 2003
Location: Olongapo City, Philippines
Posts: 4,618
Quote:
Originally posted by raulph
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?
Makes no difference for SEO, but MSAccess doesn't scale well - it won't handle much load.

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..
fusionx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 03:13 AM   #10
Calvinguy
Confirmed User
 
Join Date: Oct 2002
Location: European Union
Posts: 1,752
Quote:
Originally posted by raulph
.aspphp?
Calvinguy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 12:42 PM   #11
mkx
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?
mkx is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-21-2004, 01:16 PM   #12
bawdy
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...
bawdy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.