Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 include .php file.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

blackinwhite
Average Member

Turkey
657 Posts

Posted - 09 November 2001 :  15:29:31  Show Profile
is it possible to include a .php file to .asp pages.

____
"I am a legal alien"

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 09 November 2001 :  15:35:58  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
You could if the server supported both php and asp...

<!--#include virtual="whatever.php"-->

----------
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 09 November 2001 :  15:42:39  Show Profile
I don't know why but it din't work.
it igves me tis error.

Active Server Pages error 'ASP 0126' 

Include file not found

/ismailk/zoque.asp, line 1

The include file 'http://www.zoque.com/tr/forum/siteanalizi.php' was not found.


____
"I am a legal alien"
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 09 November 2001 :  15:47:37  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
was the file name correct?

----------
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 09 November 2001 :  15:52:19  Show Profile
normally it is working like this:
http://www.zoque.com/tr/forum/siteanalizi.php

____
"I am a legal alien"
Go to Top of Page

Da_Stimulator
DEV Team Forum Moderator

USA
3373 Posts

Posted - 09 November 2001 :  15:54:43  Show Profile  Send Da_Stimulator an AOL message  Send Da_Stimulator a Yahoo! Message
you dont have to include the full url when including files


<!--#include virtual="siteanalizi.php" --> Should be all you need if it is in the same directory

----------
-Eric (da_stimulator)
Stims Snitz Test area - Running 3.3.03, 4 beta, and Huw's modified code
Need a Mod? Check out the Mod Resource
Go to Top of Page

blackinwhite
Average Member

Turkey
657 Posts

Posted - 09 November 2001 :  16:01:27  Show Profile
unfortunately it is not in the same domain.

I want to grab the latest topis forun one of my firends' forum.

it seems that I won't be able to.

____
"I am a legal alien"
Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 09 November 2001 :  22:00:56  Show Profile
It isn't going to work anyway. The .asp extension directs the page to asp.dll, and it processes all the code for the page, including any code from include files. So the php code will never get processed by php.




======
Doug G
======
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.4 seconds. Powered By: Snitz Forums 2000 Version 3.4.07