CodeVerge.Net Beta


   Explore    Item Entry   Register  Login  
Microsoft News
Asp.Net Forums
IBM Software
Borland Forums
Adobe Forums
Novell Forums

ASP.NET Web Hosting – 3 Months Free!



Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_php_to_asp.net Tags:
Item Type: NewsGroup Date Entered: 2/4/2004 10:10:35 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 4 Views: 71 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
5 Items, 1 Pages 1 |< << Go >> >|
nickicl
Asp.Net User
can I include PHP file?2/4/2004 10:10:35 PM

0/0

I have a mess of an intranet site I am trying to clean up and provide standard headers/menu etc for. Several of the old pages are in differe languages/formats some are ASP, some are HTML, and some are PHP.

We have a very important and extensively used message board which is currently running from a PHP file included into the homepage which is also a PHP file with the following code:
<? require "guestbook/index.php"; ?>

Is there a way I can simply include this perfectly working php message board inside my aspx page?

I have tried using SSI and this did not work. Nothing appeared. Using an IFrame causes issues of size, and scroll bars etc. in fact sometimes it wants to open the PHP as a text file from in IFrame. I want it to look as seemless as possible. So that the users will not notice a difference to their dear message board.


Any help or suggestions is appreciated! Thanks!!
pickyh3d
Asp.Net User
Re: can I include PHP file?2/6/2004 4:17:32 AM

0/0

Unless there have been recent changes that I am unaware of (but would be very happy to be corrected!), there is no way to execute PHP code within an ASP.NET page short of writing your own interpreter engine, which would be rediculous.

Also, if the PHP file is being sent as a text file, that means the server is misconfigured and is not performing the required pass-thru of the PHP code (obviously). As a result it does not know what to do with it other than regard it as any other text file, so it sends it that way. Make sure your server understands that any file with a *.php extension should be sent to the PHP interpreter and possibly if you are using *.inc files as well.

The best method would be to figure out what is making the server return the code to the PHP file, fix that, and then use an IFRAME while you work on getting an alternative forum. Working with two different languages in the same page, let alone the same project, is kind of hectic and I would whole-heartedly avoid it if at all possible.
Picky
nickicl
Asp.Net User
Re: can I include PHP file?2/6/2004 7:46:25 PM

0/0

I appreciate your response. Actually I have it working in an IFrame now. I'm not sure why it was showing text sometimes but it doesn't do that anymore so I was probably looking at it on the local computer or something? And it is looking pretty nice with size adjusted, no borders, scrollbar, etc. And you are right I would not intend to keep it like this except that I can not bring it down so it must stay put until I rebuild in asp.net. It would be better anyway. So many things on this site are free applications downloaded off the internet, which aren't necessarily the best solution.

The necessity of rebuilding this intranet site has been mostly overlooked, but I frequently listen to complaints from the users and they ask me to fix this or that etc. it got to the point where it is more efficient to redo mostly. I wish you could see this mess.
nickicl
Asp.Net User
Re: can I include PHP file?2/6/2004 8:42:15 PM

0/0

I don't really know too much about it but. . what about screen scraping? I can bring up the php file on it's own or in iframe but what if instead I was able to look at it get html and place it in panel of asp.net. Is this feasible?
pickyh3d
Asp.Net User
Re: can I include PHP file?2/8/2004 6:00:22 PM

0/0

It is feasible, all you would really have to do is send an HTTP Request to your forum and parse out between the <body.*></body> tags. Use RegEx for this.

I'm not sure about the performance penalty, but since you're going to be looking for a localhost address, it should be next to nothing, unless the forum is inefficient. Of course, you will undoubtedly test it, so just keep a copy of the one where you use the IFrame.
Picky
5 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Beginning PHP5, Apache, and MySQL Web Development Authors: Elizabeth Naramore, Michael K. Glass, Jason Gerner, Yann Le Scouarnec, Jeremy Stolz, Pages: 798, Published: 2005
How to Do Everything: Facebook Applications Authors: Jesse Feiler, Pages: 330, Published: 2008
The Book of JavaScript: A Practical Guide to Interactive Web Pages Authors: Thau, Pages: 490, Published: 2007
Sams Teach Yourself Web Publishing with HTML and CSS in One Hour a Day: In One Hour A Day Authors: Laura Lemay, Rafe Colburn, Pages: 816, Published: 2006
PHP and MySQL Web Development Authors: Luke Welling, Laura Thomson, Pages: 871, Published: 2003
Learning PHP and MySQL: A Step-by-Step Guide to Creating Dynamic, Database-Driven Web Sites Authors: Michele E. Davis, Jon Phillips, Pages: 411, Published: 2007
PHP Solutions, Dynamic Web Design Made Easy: Dynamic Web Design Made Easy Authors: David Powers, SpringerLink (Online service, Pages: 0, Published: 2006
Web Database Applications with PHP and MySQL: Building Effective Database-Driven Web Sites Authors: Hugh E. Williams, David Lane, David John Lane, Pages: 796, Published: 2004
Wicked Cool PHP: Real-World Scripts That Solve Difficult Problems Authors: William Steinmetz, Brian Ward, Pages: 197, Published: 2008
The Essential Guide to Dreamweaver CS3 with CSS, Ajax, and PHP Authors: David Powers, Pages: 784, Published: 2007

Web:
PHP Tutorial - Include File Learn how to include multiple files into one PHP file and learn why this is ... you can save yourself a great deal of time with the use of the PHP include ...
how can we include php file within css file [Archive] - Dynamic ... style.php behaves like a css file now. Define variable $color; and you can use it in the style.php ...
can I include PHP file? - ASP.NET Forums can I include PHP file? Last post 02-08-2004 1:00 PM by pickyh3d. 4 replies. Sort Posts:. Oldest to newest, Newest to oldest ...
FAQTs - Knowledge Base - View Entry - How can I include a php file ... PHP include('path/file.php');?> If you really want to call the page .html you can try to include the table script with Server Side Includes or tell your ...
Which file extensions can I use for my PHP scripts? - Yahoo! Small ... PHP include files can use the .inc extension; however these files will not be read by the PHP interpreter. Because include directories may contain sensitive ...
how can i use php in .htm file - PHP how can i use php in .htm file. Get answers to your questions in our PHP forum.
PHP::Include - Include PHP files in Perl - search.cpan.org You can use this from your Perl program like so: use PHP::Include; include_php_vars( 'file.php' );. Behind the scenes the PHP is rewritten as this Perl: ...
How You Can Use WordPress Functions to Run a Smarter Blog ... Your new functions file, user-functions.php , is just a normal PHP file that can be as simple or as complex as you like. Since we’re going to be working ...
Can I include a php file as my header/logo? | Gallery I've poked around in the global.tpl file, but don't know enough about how to go about doing this. Can I insert a php include call somewhere, ...
CSS can I use PHP? - CodingForums.com Oct 28, 2008 ... 2) Can I put php in the CSS file. On my old site I use to have a 2 columns one ... Is there a way I can add my php code to the css file? ...

Videos:
Enable Php processing of every HTML file on your webhost! This tool is only used if you are updating your own web pages to show the ads. If your web pages are not Php files (i.e. do not end in ".php") then ...
Gta San Andreas goez crazy !!!!!READ THIS BEFORE ASKING ANYTHING!!!!! THIS IS PC VERSION OF THE GAME. SUPER SPEED CANT BE DONE WITH TRAINER. GRAVITY CAN BE DONE WITH TRAINER. I...
WordPress Tutorial - Make a "Back to Top" Link (Advanced) This Advanced-level WordPress Tutorial shows how to insert a "Back to Top" link in a WordPress Page or Post. The tutorial is advanced because it requ...
Send Emails with a Web Form - PHP Scripting in Dreamweaver! In the following tutorial we will start with a few html files - which are available for download at http://www.tutvid.com/downloads.html - and we wil...
Sooper Mario 64 - Part 1 Yes, I'm still alive. :P What's been taking me so long is this awesome masterpiece... Sooper Mario 64!! It's a nice little hack I made featuring rand...
WordPress Tutorial - Edit a Sidebar File Using a Text Editor This Advanced-level WordPress tutorial shows how to download, edit and upload a WordPress theme sidebar file (sidebar.php) using FTP software and a t...
How to use PHP scripts In this video I demonstrate how to go about using a PHP script. There is more than this way to use these scripts, they can also be used from the com...
Oblivion - Deadly Reflex with Unfitting Music WARNING: Before watching be warned, this movie contains a lot of violence and gore! Thank you :) This just popped into my head while I was watching ...
Killer instinct Arcade -MAME32 This is a short video tutorial of how to get Killer Instinct (kinst) Arcade using Mame32. I KNOW! IT'S BEEN A WHILE SINCE I MADE THIS VIDEO. WEBSIT...
semantics of PHP This is comment on what I found from using PHP two years ago. Cannot run the php directly from Windows Explorer or Firefox. We can have a small HTM...




Search This Site:










some javascript functions to translate

mixing php and asp.net

convert php image generation to asp.net

is it possible in asp.net with ms-sql database ?

where to start...

asp controls not working

phpinfo for asp.net

password hashing php vs. vb.net (sha1() vs. hashpasswordforstoringinconfigfile)

php class vs. asp.net/c# class

php > asp

getting data from users

array of submitted form values

php compiler for .net - easy migration

the equivilant of $_session()

associated arrays => hashtable ?

getting started - fsockopen equivalents

how can i use arrays like $_post[] or $_get[] in asp.net ?

repeat string

php gurus - help me translate this to .net

coming from a php + java background.

conditional include - php to asp?

asp.net is too expensive to deploy

php -> asp transfer

migrate php to asp.net

from php to asp ,

retriving data from db and parsing

future of asp.net

include file?

asp.net info

cron job or timer in iis / asp.net?

  Privacy | Contact Us
All Times Are GMT