View Full Version : PHP syntax nightmare
Hello all!
I've been involved with PHP over 6 months now, and the hardest part for me is the language's syntax. I find myself debugging the code for that missed semicolon more than I am writing the fresh code!
And since I am on virtual hosting it takes forever to upload, check, change, upload, check, ch...
I use Edit+ as my editor.
Does anyone know a PHP editor that would parse the code for any syntax mistakes and/or insert the semicolons on every line, etc.?
Thank you!
z01d
redcircle
01-18-2004, 09:16 PM
I would look into zend studio www.zend.com and nusphere phped www.nusphere.com both have a trial version and allow for debugging within the applications.
Thank you, redcircle.
I'm going to give a try to PhpED from www.nusphere.com.
I have a copy of Zend Studio, but its too slow (I believe it was written in Java).
computergenius
01-20-2004, 05:16 PM
If you installed PHP on your own computer, then you could make as many mistakes as I do, and it would take seconds to fix.
The Apache software runs on top of Windows, so all your Win programs will be available as ever. You just run Apache when you want your computer to think that it is a web server running PHP.
godzilla
01-20-2004, 09:29 PM
I agree with computergenius. If you want to develop serious app. test it on your computer before uploading.
PHP triade( PHP,SQL,APACHE) package is a good choice for testing debugging etc. fast to run and will offer most probably the same things that you have on your remote server.
redcircle
01-21-2004, 01:03 AM
Zend Studio also has a code analyzer that will give reccomendations on better coding practices..
Thanks for your input, guys.
What I am going to do is install Apache on my PC and then ask my host to copy the server's .ini files.
computergenius
01-22-2004, 10:27 AM
What I am going to do is install Apache on my PC and then ask my host to copy the server's .ini files.
The copying the files sounds complicated - the paths will be different, there are probably more users than yourself using the one server...
I would suggest that you install Apache, then try it. Expect it to work. But try to get the SAME VERSION offline as you use online if you can.
voodooboy
01-22-2004, 10:49 AM
Go get the Magazine "Web Builder - Practical Web Pages" It is a UK magazine, you know the ones; Really big, CD on the front, costs like $13.00US)
I picked this one up in December so I assume it is the latest release. But it has PHP, Apache, and MySQL on the CD, with full tutorials on install and set-up for each in the mag. The mag also has tutorials on site make-overs and a complete PHP project.
Well worth the investment.
mikmik
01-22-2004, 12:11 PM
ghstdrgns wrote:
I picked this one up in December so I assume it is the latest release. But it has PHP, Apache, and MySQL on the CD, with full tutorials on install and set-up for each in the mag. The mag also has tutorials on site make-overs and a complete PHP project.
Is the install/CD version free? The TRIAD download is only a 30 day trial - but that mag sounds good.
voodooboy
01-22-2004, 12:34 PM
ghstdrgns wrote:
I picked this one up in December so I assume it is the latest release. But it has PHP, Apache, and MySQL on the CD, with full tutorials on install and set-up for each in the mag. The mag also has tutorials on site make-overs and a complete PHP project.
Is the install/CD version free? The TRIAD download is only a 30 day trial - but that mag sounds good.
Full version for all. That is what I like about these magazines. They come with CD's full of free stuff. Some of the software is the last version. (Example, I got one with Maya 3D 2.6 or something like that; they just came out with version 3, but it came with an upgrade option to v3 for like half the price of the full version) These mags are worth the $13US dollar investment. Well worth it. They even have them for Digital video with software, 3D animation, Hardcore programming, you name it.
I can't recommend these enough.
mikmik
01-22-2004, 12:50 PM
Hey thanks, ghstdrgns.
I cut my teeth on mags, like pcworld, pcmag, etc., but I haven't seen this one around - I haven't really looked, either. Thanks for the tip. That maya is not usually cheap software!
voodooboy
01-22-2004, 01:41 PM
Hey thanks, ghstdrgns.
I cut my teeth on mags, like pcworld, pcmag, etc., but I haven't seen this one around - I haven't really looked, either. Thanks for the tip. That maya is not usually cheap software!
I usually find it a B&N and Borders. I don't find it much anywhere else.
jdyndale
01-23-2004, 10:32 PM
Now for a tip that you're really going to love. It's extremely useful:
Practise until you remember that you need to have the semi-colons there.
;o) Kidding...
A good editor which is free can be found here (http://www.phpedit.com/).
I think it can debug the code...
pete61uk
01-24-2004, 05:48 AM
You can download PHP Triad here:
http://downloads.zdnet.co.uk/downloads/detail/1002-2165-6474268.html
Hope it helps?
Thank you all for your input!
Hi all.
Just wanted to share some of my impressions of using trial version of PHPEd 3.2. It's great!
It has a nifty colde completion, code highlighting, and code templates features. Debuggin is great, you can even change the variable values on the fly. You can debug using PHPEd integrated web server, locally, or on a remote server (requires Apache mod installation). Overall the program is very user friendly and intuitive. You can also view the one-hour web-presentation to jump-start your coding.
The only thing that I'm still missing is pre-populated semicolon on every line.
z01d