PHP and ASP together

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
navinj
Forum Newbie
Posts: 2
Joined: Wed May 03, 2006 10:27 am

PHP and ASP together

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
navinj
Forum Newbie
Posts: 2
Joined: Wed May 03, 2006 10:27 am

Post 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.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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)?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
Post Reply