Current location: Hot Scripts Forums » Programming Languages » ASP » ASP within PHP?


ASP within PHP?

Reply
  #1 (permalink)  
Old 10-21-08, 04:59 PM
jmh1988 jmh1988 is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
ASP within PHP?

Hi all,

I have the following code:

Code:
<?PHP
define ('TITLE', 'Page Title Goes Here'); 
?>
I would like to know what I need to do to have this:

Code:
<% $picture[title] %>
Inside 'Page Title goes here'

Anybody?

Thanks in advance for your responses!
Reply With Quote
  #2 (permalink)  
Old 10-22-08, 09:31 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
You can either give the file a ".asp" extension or a ".php" extension. Which one is it?

Pete
__________________
Reply With Quote
  #3 (permalink)  
Old 10-22-08, 10:49 AM
jmh1988 jmh1988 is offline
Newbie Coder
 
Join Date: Oct 2008
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
the file extension is asp
Reply With Quote
  #4 (permalink)  
Old 10-25-08, 09:29 AM
digioz's Avatar
digioz digioz is offline
Community VIP
 
Join Date: Oct 2003
Location: Chicago, IL
Posts: 2,171
Thanks: 3
Thanked 9 Times in 9 Posts
Then how is the PHP engine suppose to know to interpret the PHP code you are putting inside the ASP file! Unless you create a seperate ".php" extension file and then do a Server Side Include.

Pete
__________________
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP equivalent function in ASP Hunta ASP 1 04-12-06 05:09 PM
Programmers,Why You choose PHP but not ASP? inso PHP 36 11-19-04 04:30 PM
can we embed php in asp files phper3 PHP 1 11-05-04 12:43 PM
Require ASP coder to convert some PHP BosDev Job Offers & Assistance 2 10-30-04 04:12 PM
converting php date picker to asp AshleyQuick ASP 3 05-24-04 11:52 PM


All times are GMT -5. The time now is 04:04 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.