Current location: Hot Scripts Forums » Programming Languages » PHP » PHP integrated with ASP


PHP integrated with ASP

Reply
  #1 (permalink)  
Old 05-24-04, 04:35 PM
Mikeirv Mikeirv is offline
Newbie Coder
 
Join Date: May 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
PHP integrated with ASP

I am just curious about the use of PHP and ASP together. I have huge web apps that are created in ASP. I am starting to become familiar with the strengths of PHP. I was thinking that I may use PHP to add some capabilities that ASP does not have. I don't want to convert my entire app to PHP because it would take months! Does anyone know of any problems doing this? Please avoid the obvious like "You need both PHP and ASP on the same server." I understand that. Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-24-04, 05:09 PM
nekeno12 nekeno12 is offline
Wannabe Coder
 
Join Date: May 2004
Location: CO
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
I have a system right now that uses both asp and php. But it's just a database system. All we're doing is making scripts that pass variables back and forth through method get or post. Obviously there's no way to merge the two languages, so we found a primitive way of just passing information.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-24-04, 07:23 PM
Mikeirv Mikeirv is offline
Newbie Coder
 
Join Date: May 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah, this is essentially what I want to do. I just want to tap into PHP's capabilities that are not available in ASP. At least not without installing or purchasing 3rd party components.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 05-24-04, 07:50 PM
nekeno12 nekeno12 is offline
Wannabe Coder
 
Join Date: May 2004
Location: CO
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
Then pass information that you need PHP to complete using get or post.

Have PHP wait for the information using $_GET[] or $_POST[] and complete the function in PHP using the information that was passed to it.

I'm a little unsure what you're trying to do, so I don't know if this is a solution you can use.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 05-24-04, 08:47 PM
Mikeirv Mikeirv is offline
Newbie Coder
 
Join Date: May 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Yes, this is one method of doing what I want to do. I guess I may have phrased my question incorrectly. What I am really trying to find out is if there are any major issues with using PHP and ASP together. I know how to do it, I am just worried that I am going to run into a problem down the line.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #6 (permalink)  
Old 05-24-04, 08:59 PM
nekeno12 nekeno12 is offline
Wannabe Coder
 
Join Date: May 2004
Location: CO
Posts: 214
Thanks: 0
Thanked 0 Times in 0 Posts
How can you have them work together? You either name your file .php or .asp

Each works in accordance with their parent programming language. I don't think there is a way to merge the languages.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #7 (permalink)  
Old 05-24-04, 09:31 PM
Mikeirv Mikeirv is offline
Newbie Coder
 
Join Date: May 2004
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Ok, Let me explain.

For example, Let's say that I have a bunch of images on a site. Users can pick images and use them in their profile. They can also choose to crop their image.

Image and crop information is saved in the database. X and Y are coordinates of the top left of crop area. Width and Height are width and height of the crop area.

image = test.jpg
X = 0
Y = 20
Width = 150
Height = 300

Now, I want to display the cropped image on the page for this user, but I don't want to save the cropped image due to server space issues. PHP can do this perfectly. So, here is how I do it.

In my asp page I have a simple HTML img tag as follows.

<img src="CropImage.php?X=0&Y=20&Width=150&Height=300">

When my asp page loads, it tries to load the php page and that page returns an image, so it displays it.

No post, and no info on the URL.

I understand that there is no way to use PHP and ASP together in one page(Other than above). There is however ways of using PHP and ASP in the same site. What I want to know is. Are there any problems with doing this????
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #8 (permalink)  
Old 05-25-04, 06:00 AM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
well, virtual() is used to run executable files like CGI and SHTML,
but to make this work with ASP, ASP must a module of Apache..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
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 and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 03:22 AM
converting php date picker to asp AshleyQuick ASP 3 05-25-04 12:52 AM
Reliable Windows 2003 Hosting amzhost General Advertisements 0 04-12-04 10:32 PM
100 Web Templates & 10 PHP Scripts for sale! HostersUK.co.uk General Advertisements 0 01-10-04 01:31 AM
Realtime PHP Code Obfuscation barrywien General Advertisements 1 11-16-03 07:50 PM


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