Page 1 of 1

PHP and ASP together

Posted: Wed May 03, 2006 10:41 am
by navinj
Hi,
Our intranet site is all coded in ASP. Though i plan to convert it to PHP in the long run, I need a quick fix solution to my current problem.

Problem Discription:
As the whole site is coded in ASP (was so since i joined my organisation..), for small changes, i used to edit the already present code (which was easier than coding the whole thing at that time!!!). But now I need to add a new page to the intranet. Could i make the page in PHP, so that both ASP and PHP pages work in tandem? Are there any more factors i need to consider?

Please consider a total noob. I plan to take up detailed PHP tutorials (in immediate future) depending upon what is decided/possible for the current problem.

Thanks in advance,
Navin.

Posted: Wed May 03, 2006 11:52 am
by feyd
so long as they are basic pages, they can work in tandem. If you're using sessions or anything else more than the literal basic level of php, you will likely run into issues of synchronization problems across the environments.

Posted: Thu May 04, 2006 5:13 am
by navinj
Well it does go beyond basic..
I would have to authenticate users through the Active Directory and also pull some data relating to respective logins from a MSSQL server. Now... what say? Should i go ahead with PHP?

Thanks,
Navin.

Posted: Thu May 04, 2006 7:14 am
by s.dot
Pulling data from a database shouldn't be a problem. Passing data back and forth from php to asp could be a potential problem. It depends on how you plan on doing it.

Will you be passing data? Will people have to be logged in to reach this area? If so, does the session require server variables (like $_SESSION)?

Posted: Thu May 04, 2006 9:24 am
by feyd
It may be best to have a separate setup just for PHP in this instance. Keep it a development server so "normal" users aren't on it until you are ready to switch the entire site over to PHP.