Eagleson's Law: "Any code of your own that you haven't looked
at for six
or more months might as well have been written by someone
else."
;-)
"darrel" <notreal@nowhere.com> wrote in message
news:fflq5m$35d$1@forums.macromedia.com...
> My knowledge of code and best practices changes so much
that code I wrote
> 6 months ago can be embarassingly bad when I go back to
update it.
> by the way, I heard the asp2php software is almost worse
then not using,
> because it only gets about 80% of it right. If that's
the case, I'd
> rather build from scratch then debug for hours.
I think you're absolutely correct with that assumption.
In general and IMHO, any 'software-written' code is iffy at
best. In the
end, if you write it yourself, it may still be incorrect, but
at least
you'll have some knowledge of its intention and behavior.
Even when I'm updating a page using the same language, I tend
to start from
scratch. I find 'remodelling' to be much messier than just
doing a tear down
and starting over. My knowledge of code and best practices
changes so much
that code I wrote 6 months ago can be embarassingly bad when
I go back to
update it.
-Darrel
A
Anonymous
October 23, 2007
by the way, I heard the asp2php software is almost worse then
not using, because it only gets about 80% of it right. If that's
the case, I'd rather build from scratch then debug for
hours.
A
Anonymous
October 23, 2007
Actually, that's handcoded, sending users from the login page
to the page with the code shown I need to translate above... the
code checks against a few variables, redirects again in some
circumstances to another page that checks their information again
(depending which billing system they used at the time), then
creates sessions, updates their records to the database, and then
redirects appropriately to the restricted area (a lot going on in a
short amount of code in an instant during login).
I work on a MAC, so I have to handcode all my ASP...
unfortunately.... So I'm looking how easy it is to convert sites
from ASP to PHP. So far I found it to be pretty easy to do, maybe
10 minutes per page in a lot of cases, but sometimes the handcoded
items need more knowledge of PHP than dreamweaver can't assist me
through. Thanks in advance for any help....
On 21 Oct 2007 in macromedia.dreamweaver.appdev, jsteinmann
wrote:
> Any recommendations to convert this asp to php/mysql?
>
> <%@LANGUAGE="VBSCRIPT"%>
> <!--#include file="Connections/cnConn.asp" -->
> <%
> if request.form <> "" then
>
> dim username, password, DateExpire
That looks like it's a stock DW login user behavior? If so,
just create
a PHP/MySQL site, and use the same behavior to create the
page.