Re: [PHP] ASP to PHP

2012-02-17 Thread Marc Guay
> 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 sim

Re: [PHP] ASP to PHP language problems

2004-03-11 Thread Stuart
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

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
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 language problems

2004-03-10 Thread Rodrigo Castro
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 h

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
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 be

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
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. Mayb

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Raditha Dissanayake
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 d

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
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

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Alistair Hayward
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 variab

Re: [PHP] ASP to PHP language problems

2004-03-10 Thread Richard Davey
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

RE: [PHP] ASP to PHP

2002-04-23 Thread Martin Towell
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 thro

RE: [PHP] ASP to PHP

2002-04-23 Thread Maxim Maletsky \(PHPBeginner.com\)
. 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

RE: [PHP] ASP to PHP

2002-04-23 Thread .ben
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 th

RE: [PHP] ASP to PHP

2002-04-23 Thread Cal Evans
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 * Journe

Re: [PHP] ASP to PHP ...

2001-12-04 Thread Jim
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 yo

Re: [PHP] asp to php

2001-07-27 Thread Willie Dresler Leiva
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

Re: [PHP] asp to php

2001-07-26 Thread mike cullerton
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 co

RE: [PHP] ASP to PHP

2001-01-17 Thread Michael Simcich
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 A