By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,905 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,905 IT Pros & Developers. It's quick & easy.

Passing variables between PHP and ASP on the same page

100+
P: 258
Hi everyone
I'm editing a CCTV website which is built with ASP. But unfortunately I have no experience in ASP.

My question is if it's possible to have both ASP and PHP on the same page and pass variables between them?

Thanks / Behzad
Nov 7 '11 #1
Share this Question
Share on Google+
5 Replies


100+
P: 1,059
First make sure your HTTP server can handle both php and asp, if so, it does not matter what page or server you are requesting
Nov 7 '11 #2

100+
P: 258
Thank you johny for the reply. How about passing variables between them?
Nov 7 '11 #3

P: 3
@bnashenas1984
If you need to pass GET variables, it can be done using a standard query string...
For example calling a "mypage.aspx?var=value" from php and on the mypage.aspx just proccess the response variable.
Nov 17 '11 #4

dlite922
Expert 100+
P: 1,584
@smoran

It is also true if you want to do it all on server side, with PHP you use curl().
Nov 17 '11 #5

P: 13
ASP and PHP on the SAME page??

Define "page" .. are you speaking about the file on the Server to be called by the browser?

As the Webserver will run the called file using the defined interpreter for the file extension (.php >> PHP etc.) you are not able to "mix" languages in one file.

If there is an .asp File to be edited you need to use the ASP Language, as vice versa for PHP
Nov 26 '11 #6

Post your reply

Sign in to post your reply or Sign up for a free account.