> 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
I think I've already decided how to handle this, but I thought it's worth
asking.
I've inherited some fairly static .asp sites which are being hosted on a windows
server and to tidy things up I'm looking to 'move' them to one of the linux boxes.
My Initial thought is simply to clone the working
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
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
Hello Alistair,
Thursday, March 11, 2004, 1:25:47 AM, you wrote:
AH> unset($type);
AH> $type = $_GET['type'];
AH> $link = mysql_connect('localhost', 'user', 'password');
AH> if (!$link) {
AH> echo "Couldn't make a connection!";
AH> exit;
AH> }
AH> $db = mysql_sele
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
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
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
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
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 y
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
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
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
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
ly 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 P
.
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
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
* 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
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 chan
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
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 con
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
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
Does anyone of u has alreday tried successfully converting aso file to php
file ?
Is it worth doing so or restarting from scratch?
Thanks
_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
--
PHP Genera
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
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]
F
26 matches
Mail list logo