GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Can an ASP site have PHP codes? (https://gfy.com/showthread.php?t=391695)

mkx 11-21-2004 12:02 AM

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

AMADude 11-21-2004 12:05 AM

hmmm. Good question. If your server parses php it should be able to have both, but the .php or .asp I dont know.

mkx 11-21-2004 12:10 AM

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.

Warden 11-21-2004 12:13 AM

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.

mkx 11-21-2004 12:15 AM

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?

Varius 11-21-2004 02:24 AM

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)

Varius 11-21-2004 02:25 AM

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

Rantan 11-21-2004 02:30 AM

the short answer is no...

fusionx 11-21-2004 02:32 AM

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..

Calvinguy 11-21-2004 03:13 AM

Quote:

Originally posted by raulph
.aspphp?
:1orglaugh

mkx 11-21-2004 12:42 PM

Ok thanks guys. I think it might be easier for me to just learn asp. Going to try w3schools.com any other good sites?

bawdy 11-21-2004 01:16 PM

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