Re: [PHP] ASP to PHP
But has anybody had any experience of translating the asp code over? I've gone the other way and translated some PHP to ASP, which felt pretty dirty. Are you dealing with simple includes and small bits of logic? That's all that I had (also fairly static sites) and I found the process quite simple. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP 2 PHP
On Wed, December 26, 2007 10:26 am, tedd wrote: I have a client who has an entire site done in asp and wants me to convert it to php -- is there an easy way to do this or do I have to do it line by line? There once was an asp2php script that would convert the brain-dead code-by-click-wizard type ASP scripts to PHP with about 90% of it working right... If they coded ASP intelligently by hand, then it failed pretty miserably... I have no idea how well maintained it is, but Google for it and give it a whirl. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP 2 PHP
On Dec 26, 2007 11:26 AM, tedd [EMAIL PROTECTED] wrote: Hi gang: I have a client who has an entire site done in asp and wants me to convert it to php -- is there an easy way to do this or do I have to do it line by line? Line-by-line translation is going to be your best bet. I've done a lot of ASP-to-PHP site conversions (for record labels, etc), and the ASP to PHP conversion tools don't work well enough. -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP to PHP language problems
Richard Davey wrote: unset($type); $type = $_GET['action']; (Please note - you don't HAVE to unset each variable, but if you are working in a Register Globals ON environment, it's a good safety measure). I've seen a few people recommending this type of thing. Please explain how this is any safer than just setting $type to $_GET['action']. As far as I can tell it makes absolutely no difference. Basically you unset the variable and then assign something to it. If you weren't to unset it first it would still have the same effect. Seems like nothing more than a waste of cycles to me. Or am I missing something weird about how PHP works? -- Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP to PHP language problems
Hello Alistair, Wednesday, March 10, 2004, 10:26:03 PM, you wrote: AH dim Type AH Type = CStr(Request.QueryString(action)) (getting parameter from URL) unset($type); $type = $_GET['action']; (Please note - you don't HAVE to unset each variable, but if you are working in a Register Globals ON environment, it's a good safety measure). AH strDBPath = Server.MapPath(/_database/database.mdb) MySQL doesn't work the same way as MDB files (thank goodness), so you need to create a connection to the MySQL database: $link = mysql_connect('localhost', 'username', 'password'); AH Set cnn = Server.CreateObject(ADODB.Connection) AH cnn.Open Provider=Microsoft.Jet.OLEDB.4.0;Data Source= strDBPath ; mysql_select_db('database_name', $link); AH Set rst = cnn.Execute(SELECT * FROM table WHERE Type =' type ' AH order by style) $sql= SELECT * FROM table WHERE type='$type' ORDER BY style; $result = mysql_query($sql); You now have the entire record set in $result. To obtain the first row of data, do this: AH %Do While Not rstSimple.EOF% AH do something AH % AH rstSimple.MoveNext AH Loop A few ways to do this: $total_records = mysql_num_rows($result); for ($i=0; $i $total_records; $i++) { $data = mysql_fetch_assoc($result); print_r($data); } $data will now be an array holding the first set of information. The print_r line just displays it so you can see it easily. Instead of a FOR loop you could do a while loop checking to see the end of the $result set, i.e.: while ($row = mysql_fetch_array($result, MYSQL_NUM)) { // do stuff print_r($row); } AH %=rst.fields(whatever).value% ?=$data['whatever']? -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP to PHP language problems
Richard: Thank you so much! Richard Davey wrote: Hello Alistair, Wednesday, March 10, 2004, 10:26:03 PM, you wrote: AH dim Type AH Type = CStr(Request.QueryString(action)) (getting parameter from URL) unset($type); $type = $_GET['action']; (Please note - you don't HAVE to unset each variable, but if you are working in a Register Globals ON environment, it's a good safety measure). AH strDBPath = Server.MapPath(/_database/database.mdb) MySQL doesn't work the same way as MDB files (thank goodness), so you need to create a connection to the MySQL database: $link = mysql_connect('localhost', 'username', 'password'); AH Set cnn = Server.CreateObject(ADODB.Connection) AH cnn.Open Provider=Microsoft.Jet.OLEDB.4.0;Data Source= strDBPath ; mysql_select_db('database_name', $link); AH Set rst = cnn.Execute(SELECT * FROM table WHERE Type =' type ' AH order by style) $sql= SELECT * FROM table WHERE type='$type' ORDER BY style; $result = mysql_query($sql); You now have the entire record set in $result. To obtain the first row of data, do this: AH %Do While Not rstSimple.EOF% AH do something AH % AH rstSimple.MoveNext AH Loop A few ways to do this: $total_records = mysql_num_rows($result); for ($i=0; $i $total_records; $i++) { $data = mysql_fetch_assoc($result); print_r($data); } $data will now be an array holding the first set of information. The print_r line just displays it so you can see it easily. Instead of a FOR loop you could do a while loop checking to see the end of the $result set, i.e.: while ($row = mysql_fetch_array($result, MYSQL_NUM)) { // do stuff print_r($row); } AH %=rst.fields(whatever).value% ?=$data['whatever']? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP to PHP language problems
Richard Davey wrote: A few ways to do this: $total_records = mysql_num_rows($result); for ($i=0; $i $total_records; $i++) { $data = mysql_fetch_assoc($result); print_r($data); } $data will now be an array holding the first set of information. The print_r line just displays it so you can see it easily. Instead of a FOR loop you could do a while loop checking to see the end of the $result set, i.e.: while ($row = mysql_fetch_array($result, MYSQL_NUM)) { // do stuff print_r($row); } AH %=rst.fields(whatever).value% ?=$data['whatever']? I get this error: mysql_num_rows(): supplied argument is not a valid MySQL result resource Question: Where you have the //do stuff comment, I assume this is where my HTML code will go. But can I put it between the open brackets? I.E: { html code } ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP to PHP language problems
Hi. There is an ADO simulator for PHP (i think it's called ADODB PHP but i can't remember the link). There is also a asp to php converter called (can you guess? ) asp2php. Alistair Hayward wrote: Hi , What is the equavilant in PHP to creating a recordset in ASP using a query? This is what I do in PHP: .. dim Type Type = CStr(Request.QueryString(action)) (getting parameter from URL) Dim cnn ' ADO connection Dim rst ' ADO recordset Dim strDBPath ' path to my Access database (*.mdb) file strDBPath = Server.MapPath(/_database/database.mdb) Set cnn = Server.CreateObject(ADODB.Connection) cnn.Open Provider=Microsoft.Jet.OLEDB.4.0;Data Source= strDBPath ; Set rst = cnn.Execute(SELECT * FROM table WHERE Type =' type ' order by style) .. I can then call any field and display it in the html by using : %=rst.fields(whatever).value% .. I can also create a loop: %Do While Not rstSimple.EOF% do something % rstSimple.MoveNext Loop % Please can someone show me how to do the same thing in PHP? Alistair -- Raditha Dissanayake. --- http://www.radinks.com/upload/ Drag and Drop Upload thousands of files and folders in a single transfer. (HTTP or FTP) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP to PHP language problems
Richard Davey wrote: Hello Alistair, Wednesday, March 10, 2004, 11:26:53 PM, you wrote: AH I get this error: mysql_num_rows(): supplied argument is not a valid AH MySQL result resource Then your database connection failed OR the SQL query did. Check those steps over before anything else. Maybe post that part of your code so we can see? AH Question: Where you have the //do stuff comment, I assume this is where AH my HTML code will go. But can I put it between the open brackets? I.E: AH { AH html code AH } Yes like so: { ? html here ? } Just like in ASP :) ?php unset($type); $type = $_GET['type']; $link = mysql_connect('localhost', 'user', 'password'); if (!$link) { echo Couldn't make a connection!; exit; } $db = mysql_select_db(sealhouse, $link); if (!$db) { echo Couldn't select database!; exit; } $sql= SELECT * FROM table WHERE type=$type ORDER BY style; $result = mysql_query($sql); $total_records = mysql_num_rows($result); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP to PHP language problems
Sorry, was the query! Richard Davey wrote: Hello Alistair, Wednesday, March 10, 2004, 11:26:53 PM, you wrote: AH I get this error: mysql_num_rows(): supplied argument is not a valid AH MySQL result resource Then your database connection failed OR the SQL query did. Check those steps over before anything else. Maybe post that part of your code so we can see? AH Question: Where you have the //do stuff comment, I assume this is where AH my HTML code will go. But can I put it between the open brackets? I.E: AH { AH html code AH } Yes like so: { ? html here ? } Just like in ASP :) ?php unset($type); $type = $_GET['type']; $link = mysql_connect('localhost', 'user', 'password'); if (!$link) { echo Couldn't make a connection!; exit; } $db = mysql_select_db(sealhouse, $link); if (!$db) { echo Couldn't select database!; exit; } $sql= SELECT * FROM table WHERE type=$type ORDER BY style; $result = mysql_query($sql); $total_records = mysql_num_rows($result); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP to PHP language problems
On Wednesday 10 March 2004 18:54, Raditha Dissanayake wrote: Hi. There is an ADO simulator for PHP (i think it's called ADODB PHP but i can't remember the link). There is also a asp to php converter called (can you guess? ) asp2php. http://php.weblogs.com/ And Pear::DB must work too :P http://pear.php.net/package/DB http://www.onlamp.com/pub/a/php/2001/11/29/peardb.html -- roche -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP to PHP language problems
To everyone, especially Richard, Thanks a lot for the help. I have accomplished everything I needed to do with your help, and I have never used PHP before. Thanks again! alistair -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] ASP to PHP
Having moved a moderately sized website last year from ASP to PHP I can say from experience that if you can re-write it, the move will go smoother and you will have fewer lines of code. I ended up with about 1/2 as many lines of code to maintain after the port was done. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 6:38 AM To: [EMAIL PROTECTED] Subject: [PHP] ASP to PHP I got a strange request from a client. He wants to be able to take his ASP pages and move them over to PHP so that he can run them on apache on his linux server. I saw a tool yesterday ASP2PHP, but I am wanting to know does it work, how much is lost, is it easy to use? Is there another way to change ASP file to PHP with out a lot of re-writes? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] ASP to PHP
I am in the process of porting an ASP site to PHP and am really chuffed with how easy it is so far. I am slightly worried that doing a straight conversion may not be the best idea, but I plan to go through the site again when i'm done, and optimise for PHP where possible. .b -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: 23 April 2002 12:53 To: Chuck PUP Payne; [EMAIL PROTECTED] Subject: RE: [PHP] ASP to PHP Having moved a moderately sized website last year from ASP to PHP I can say from experience that if you can re-write it, the move will go smoother and you will have fewer lines of code. I ended up with about 1/2 as many lines of code to maintain after the port was done. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 6:38 AM To: [EMAIL PROTECTED] Subject: [PHP] ASP to PHP I got a strange request from a client. He wants to be able to take his ASP pages and move them over to PHP so that he can run them on apache on his linux server. I saw a tool yesterday ASP2PHP, but I am wanting to know does it work, how much is lost, is it easy to use? Is there another way to change ASP file to PHP with out a lot of re-writes? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] ASP to PHP
Just try it on. I heard some good reviews about it. And, if the site is not too complex, try estimating the time it would take you to re-create the functionality and compare it to the time you think you would take for debugging. I once had to do this and have choosen rewriting the code ourselves. Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginner.com // where PHP Begins -Original Message- From: .ben [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 2:00 PM To: PHP Subject: RE: [PHP] ASP to PHP I am in the process of porting an ASP site to PHP and am really chuffed with how easy it is so far. I am slightly worried that doing a straight conversion may not be the best idea, but I plan to go through the site again when i'm done, and optimise for PHP where possible. .b -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: 23 April 2002 12:53 To: Chuck PUP Payne; [EMAIL PROTECTED] Subject: RE: [PHP] ASP to PHP Having moved a moderately sized website last year from ASP to PHP I can say from experience that if you can re-write it, the move will go smoother and you will have fewer lines of code. I ended up with about 1/2 as many lines of code to maintain after the port was done. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 6:38 AM To: [EMAIL PROTECTED] Subject: [PHP] ASP to PHP I got a strange request from a client. He wants to be able to take his ASP pages and move them over to PHP so that he can run them on apache on his linux server. I saw a tool yesterday ASP2PHP, but I am wanting to know does it work, how much is lost, is it easy to use? Is there another way to change ASP file to PHP with out a lot of re-writes? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] ASP to PHP
I used it for a site I did. The code wasn't doing anything too funky. Just simple accesses to adodb and also simple form manipulation - worked like a treat. Although, the database stuff, it converts it the standard PHP functions, but I had some classes for that, so I still had to manually go through and change the code -Original Message- From: Chuck PUP Payne [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 9:38 PM To: [EMAIL PROTECTED] Subject: [PHP] ASP to PHP I got a strange request from a client. He wants to be able to take his ASP pages and move them over to PHP so that he can run them on apache on his linux server. I saw a tool yesterday ASP2PHP, but I am wanting to know does it work, how much is lost, is it easy to use? Is there another way to change ASP file to PHP with out a lot of re-writes? Chuck Payne -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] ASP vs PHP
I've seen a tool called Code Charge which claims to do that. http://www.codecharge.com/index2.html And, I think that the new Zend tools make this easier (but I really haven't started evaluation yet). www.zend.com Scott * * * * * * * * * * * * * * * * * * * * * * * * * * J. Scott Johnson PHP Consulting and Design Work * * * * * * * * * * * * * * * * * * * * * * * * * * Virtual: * * * * * * * * * * * * * * * * * * * * * * * * * * [EMAIL PROTECTED] http://www.fuzzygroup.com/ Yahoo IM: fuzzygroup -Original Message- From: Ciro Martins [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 7:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP] ASP vs PHP Hi! I've been programming in PHP for long. But one question that always is coming to my mind is to know if there exists some kind of tools (like for SP. It exists a tool called ASPWebTools for wich it is possible to develop applications written in ASP and connecting with DB like SQL Server in an automatic way) that can help in the development of applications using PHP and databases. For instance, that could allow to develop automatically forms to connect to databases using PHP. Does anyone know any related application or tools. Because in ASP with that tool is more easy to develop code. Thanks in advance Ciro Martins -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] ASP to PHP ...
This really depends how complicated your ASP system is. Presumably, your current system has many components that make it work correctly with the server and MS Access. The hardest part will be getting PHP to function as expected in that environment. The actual code is easy to translate, but you'll probably end up rewriting everything from scratch to take advantage of PHP's strengths. Just don't forget your semicolons! PHP can link up well with MS Access, but there aren't a lot of example scripts out there to work with. Little things can drive you nuts -- like trying to find the unique id of your last db insert. I have been asked to convert an ASP/MS Access system to PHP. I would be interested in hearing the thoughts of anyone with exp. of this. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Jim Musil - Multimedia Programmer Nettmedia - 212-629-0004 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ASP and PHP
Hello, Please make searchs in the archives of this newsgroup as this was discussed many many times before. The bottom line is always that both language are valuable and will do the job. But PHP will do the job on both MS and Linux, Unix, *BSD... That in itself is the biggest Yippers for PHP ;) py - Original Message - From: Luis Espinosa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 11:43 AM Subject: [PHP] ASP and PHP Hi! I have been using ASP for some time, and now I am beginning with PHP. I would like to know which are the main differences between both languages. I'd appreciate if you can give the advantages and disadvantages of both languages. Thanks Luis Espinosa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ASP and PHP
Sorry for the duplicate post. I didn't know that. I'll search for other similar posts. Thank you Py [EMAIL PROTECTED] wrote in message 035e01c17825$ac820610$0100a8c0@py">news:035e01c17825$ac820610$0100a8c0@py... Hello, Please make searchs in the archives of this newsgroup as this was discussed many many times before. The bottom line is always that both language are valuable and will do the job. But PHP will do the job on both MS and Linux, Unix, *BSD... That in itself is the biggest Yippers for PHP ;) py - Original Message - From: Luis Espinosa [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 28, 2001 11:43 AM Subject: [PHP] ASP and PHP Hi! I have been using ASP for some time, and now I am beginning with PHP. I would like to know which are the main differences between both languages. I'd appreciate if you can give the advantages and disadvantages of both languages. Thanks Luis Espinosa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] asp to php
RedHat 7.1 (Linux) has a package that converts from ASP to PHP pages. I didn't use it, so I don't know if it is useful neither if it is available for Windows. Kind regards, Willie _ Seja avisado de novas mensagens do Hotmail e use o comunique-se com seus amigos com o MSN Messenger em http://messenger.msn.com.br -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] asp to php
on 7/26/01 9:52 AM, kaab kaoutar at [EMAIL PROTECTED] wrote: Does anyone of u has alreday tried successfully converting asp file to php file ? Is it worth doing so or restarting from scratch? Thanks i've only tried this once, but i'd do it again. you will definitely have to edit the code it produces, but you'll find patterns and you can search and replace some. it's a great way to get some of your typing done if nothing else. -- mike cullerton -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ASP 2 PHP?
I don't have any direct experience using it, but colleagues I know have given it great reviews. ASP2PHP script (nice name ;o) ) http://asp2php.naken.cc/ Tom Carter Web Architect roundcorners ltd. On Wed, 9 May 2001, Brandon Orther wrote: Hello, I am looking at a complete database with it interface written in ASP. All of our company programs are written in PHP and that is what I want to use. I believe I remember seeing ASP 2 PHP converts before. Does anyone know of any. They don't have to work perfect just convert it with some bugs and I will fixes those. Thanks Brandon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ASP 2 PHP
On Wed, 9 May 2001, Brandon Orther wrote: Hello, I am looking at a complete database with it interface written in ASP. All of our company programs are written in PHP and that is what I want to use. I believe I remember seeing ASP 2 PHP converts before. Does anyone know of any. They don't have to work perfect just convert it with some bugs and I will fixes those. I've never tried it (though I have the rpms installed in the event one of my sites needs to use it), but I just saw on freshmeat.net that a new release of asp2php was released - http://asp2php.naken.cc/ is the link. Also it is using a MSSQL database if that helps at all. Thanks Brandon Max Pyziur BRAMA - Gateway Ukraine [EMAIL PROTECTED] http://www.brama.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] ASP 2 PHP
I wouldn't really rely on ASP2PHP for any serious things, but if you care only that the script works and have some extra time fixing the bugs then go ahead. When I was in a similar from you situation (rewriting an entire 1.5MB ASP/MSSQL website into PHP/PostgreSQL) I looked into ASP2PHP, asked here and though it was easier for me rewrite the entire site from scratch copying (basing on) the site's functionality, having a more advanced PHP code (I believe ASP2PHP creates a PHP3 compatible code which leaks many features of PHP4). It all depends on your needs. Thanks god things like ASP2PHP exists, and god forbid Billy making any kind of PHP2damnASP warez:-) Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Max Pyziur [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 10, 2001 9:13 AM To: Brandon Orther Cc: PHP User Group Subject: Re: [PHP] ASP 2 PHP On Wed, 9 May 2001, Brandon Orther wrote: Hello, I am looking at a complete database with it interface written in ASP. All of our company programs are written in PHP and that is what I want to use. I believe I remember seeing ASP 2 PHP converts before. Does anyone know of any. They don't have to work perfect just convert it with some bugs and I will fixes those. I've never tried it (though I have the rpms installed in the event one of my sites needs to use it), but I just saw on freshmeat.net that a new release of asp2php was released - http://asp2php.naken.cc/ is the link. Also it is using a MSSQL database if that helps at all. Thanks Brandon Max Pyziur BRAMA - Gateway Ukraine [EMAIL PROTECTED] http://www.brama.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ASP vs PHP
From: "Chris Anderson" [EMAIL PROTECTED] This is going to sound like heresy, but is there any way to use ASP and PHP in the same fle/page? Seperated of course. What if you put: !--#include virtual="path/to/file.php"-- in your ASP page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ASP vs PHP
Carsten Gehling wrote: Are you sure? The #include is an SSI directive, not ASP. It should create a separate internal HTTP request for the included file. I know for sure that for example you can include a JScript ASP page inside a VBScript ASP page like this - although I realise that's not the same difference as ASP/PHP. You're right about that, but AFAIK ASP will simply not allow two different serverside script languages on the same page (which it becomes once the inclusion is complete). You must state your @language=... directive as the first ASP statement after which it cannot be changed. Unless of course you use: script runat=server language=vbscript ... your code here /script script runat=server language=jscript ... your code here /script Don't know if that will work though. - Carsten Yes it will work. we've used it in the past to do millisecond timing - had to use jscript for that because vbscript internals don't have any timer mechanism that accurate, but jscript did. it's the same computer, same OS, but each language had different capabilities. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ASP vs PHP
You're comparing a framework to a language. ASP is a technology which allows code for different languages to be embedded in a file parsed by a webserver (IIS). To accomplish this, different languages need to be written as modules for that webserver. MS has VBScript (default language), JScript and PerlScript (anyone know of any more?). If someone was to write PHP to be an ASP/IIS module that could be executed under the ASP framework, then yes. Until then, no. I also don't think it's a likely scenario, but I've been wrong many times before in my life. :) Chris Anderson wrote: This is going to sound like heresy, but is there any way to use ASP and PHP in the same fle/page? Seperated of course. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] ASP vs PHP
At 11:48 PM -0500 3/11/01, Rick St Jean wrote: I was told by someone that it is possible with apache. You can have something parse the page once then be parsed by something else. I don't know how and I have never seen it but I have been told that it is possible. Rick That would be 'stacked request handlers'...not possible, AFAIK, with any of the 1.x versions, but supposedly Apache 2.0 can do it. Check out httpd.apache.org; v2.0 is still alpha. - steve At 11:28 PM 3/11/01 -0500, Michael Kimsal wrote: You're comparing a framework to a language. ASP is a technology which allows code for different languages to be embedded in a file parsed by a webserver (IIS). To accomplish this, different languages need to be written as modules for that webserver. MS has VBScript (default language), JScript and PerlScript (anyone know of any more?). If someone was to write PHP to be an ASP/IIS module that could be executed under the ASP framework, then yes. Until then, no. I also don't think it's a likely scenario, but I've been wrong many times before in my life. :) Chris Anderson wrote: This is going to sound like heresy, but is there any way to use ASP and PHP in the same fle/page? Seperated of course. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] ## # Rick St Jean, # [EMAIL PROTECTED] # President of Design Shark, # http://www.designshark.com/ # Quick Contact: http://www.designshark.com/messaging.ihtml # Tel: 905-684-2952 ## -- +--- "They've got a cherry pie there, that'll kill ya" --+ | Steve Edberg University of California, Davis | | [EMAIL PROTECTED] Computer Consultant | | http://aesric.ucdavis.edu/ http://pgfsun.ucdavis.edu/ | +-- FBI Special Agent Dale Cooper ---+ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] ASP to PHP
Try asp2php: http://asp2php.naken.cc/home.php Michael Simcich AccessTools -Original Message- From: Karl J. Stubsjoen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 17, 2001 8:48 AM To: PHP Mailing List Subject: [PHP] ASP to PHP Is there such thing as program that will convert ASP code to PHP code? I have built some nice libraries with ASP and am interested in converting those over to PHP, rather than rewriting them! Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]