 |
Ramya Level: Trainee
 Registered: 08-04-2005 Posts: 2
|
Newbie To PHP
hai
Basically i was working with vb and mysql and planned to migrate to php and mysql.Can anybody suggest me whats necessary for a begginner of php.I have dzsoft editor and i am struggling a bit to work with php
|
|
18-04-2005 at 11:08 AM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 16
|
Re: Newbie To PHP
Normally I just use notepad with php.... although I think (think mind you) that if you have Visual Studio installed... that either VC or the Integrated development thing "somewhat" colorizes the commands for php documents, but can't remember.
Apache and mySQL installed on your local machine would allow you to edit stuff before it's live. OR if you have a web host that allows you to use php and mySQL, you could setup a test domain, or just test folder (ie: www.yoursite.com/phptesting or phptesting.yoursite.com), so that you can debug stuff there -- and it'd make it easier in a way, but not in others.
____________________________
Everywhere's Local (pre-release), My company's website
|
|
19-04-2005 at 04:11 PM |
|
|
~Bean~ Level: Big Cheese

 Registered: 07-04-2003 Posts: 22
|
Re: Newbie To PHP
quote:
Which one will be the best
Why choose one?
lol...no actually your choice will depend on your platform and your reasons for coding. But you can run both in tandem - I at one time had setup IIS and Apache on the same server, now I have on different servers....but it works fine (with a little port tweaking).
If you've already got Apache running then PHP is the obvious choice,ASP not so easy to setup. Conversely, if you're using IIS then PHP isn't so easy to setup, but ASP IS.
If you're a VB programmer then ASP will seem familiar to you. Heck you could pick up ASP 3.0 without learning anything new. I recommend skipping ASP 3.0 and moving right to .NET...I didnt and I am paying now by having to un-learn some things.
If you choose to go with PHP here's some advice:
-PHP, like ASP 3.0, is easy to be lazy in. You can plop code down in the middle of your HTML anywhere you want and there's a hundred different ways to program any given page. Doing this you can program PHP "top-down" without any real structure. As opposed to .NET (which I am just learning) which practically demands that you keep code separate from content. This is a good practice. Keep your code separate from your HTML is my advice...if you start out putting all of your PHP code for a particular page in an include file, an NO code in the HTML at all, you'll be on the right track. (Disclaimer: I am in no way saying that I practice what I preach...lol)
To give you an idea, about a year ago before they put out PHP v.5 there was a HUGE debate on whether to include the "GOTO" statement in PHP...AAAAAAAAAAEIIIIIIIIIIIII!!!!
Of course, most programmers have feelings about GOTO like its religion or something (myself included) but it gives you an idea of how PHP can be "structureless" and they actually were considering enhancing its structurelessness (is that a word?) The debate was very heated and came down to (IMO) that there was no good reason to include it, but many reasons not to. Hence, you wont find it in PHP but I have heard that some fool has developed a PHP add-on that lets you use GOTO...like I said...religion...
[Edited by ~Bean~ on 21-04-2005 at 12:51 PM GMT]
____________________________
Eggheads unite! You have nothing to lose but your yolks.
|
|
21-04-2005 at 05:47 PM |
|
|
|
|
 |
 |