iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-18-2004, 09:05 PM
WebProWorld New Member
 
Join Date: Aug 2003
Posts: 22
z01d RepRank 0
Default 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
Reply With Quote
  #2 (permalink)  
Old 01-18-2004, 10:16 PM
redcircle's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Grand Rapids, MI USA
Posts: 425
redcircle RepRank 0
Default

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.
__________________
www.squitosoft.com - PHP development site. featuring Squito Gallery. a php driven photo gallery.
www.rgfx.net - Specializing in Internet solutions, including Html authoring, Interactive Web sites, 3D/2D Graphics and animation.
Reply With Quote
  #3 (permalink)  
Old 01-19-2004, 12:04 PM
WebProWorld New Member
 
Join Date: Aug 2003
Posts: 22
z01d RepRank 0
Default

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).
Reply With Quote
  #4 (permalink)  
Old 01-20-2004, 06:16 PM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Spain
Posts: 343
computergenius RepRank 1
Default PHP on your own computer

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.
__________________
Pete Clark
Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com
Reply With Quote
  #5 (permalink)  
Old 01-20-2004, 10:29 PM
godzilla's Avatar
WebProWorld Member
 
Join Date: Aug 2003
Location: Montreal, CA
Posts: 52
godzilla RepRank 0
Default

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.
__________________
Everything has its reason.
Your greatest glory doesn't consist in falling, but rising every time you fall and this is what defines a perfect human.
Godzilla's pass-time
Reply With Quote
  #6 (permalink)  
Old 01-21-2004, 02:03 AM
redcircle's Avatar
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Grand Rapids, MI USA
Posts: 425
redcircle RepRank 0
Default

Zend Studio also has a code analyzer that will give reccomendations on better coding practices..
__________________
www.squitosoft.com - PHP development site. featuring Squito Gallery. a php driven photo gallery.
www.rgfx.net - Specializing in Internet solutions, including Html authoring, Interactive Web sites, 3D/2D Graphics and animation.
Reply With Quote
  #7 (permalink)  
Old 01-22-2004, 08:41 AM
WebProWorld New Member
 
Join Date: Aug 2003
Posts: 22
z01d RepRank 0
Default

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.
Reply With Quote
  #8 (permalink)  
Old 01-22-2004, 11:27 AM
WebProWorld Veteran
 
Join Date: Jul 2003
Location: Spain
Posts: 343
computergenius RepRank 1
Default

Quote:
Originally Posted by z01d
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.
__________________
Pete Clark
Got any spare time? Anything you need? Barter in Spain at http://BarterWithBart.com
Reply With Quote
  #9 (permalink)  
Old 01-22-2004, 11:49 AM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Seattle, WA USA
Posts: 766
voodooboy RepRank 0
Default All the apps you'll need

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.
__________________
Scott Brinkerhoff - Art of Zen Studios
Web Design I Design Monk
© 2000-forever - All rights reserved by me - SO THERE!!
Reply With Quote
  #10 (permalink)  
Old 01-22-2004, 01:11 PM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default

ghstdrgns wrote:
Quote:
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.
Reply With Quote
  #11 (permalink)  
Old 01-22-2004, 01:34 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Seattle, WA USA
Posts: 766
voodooboy RepRank 0
Default

Quote:
Originally Posted by mikmik
ghstdrgns wrote:
Quote:
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.
__________________
Scott Brinkerhoff - Art of Zen Studios
Web Design I Design Monk
© 2000-forever - All rights reserved by me - SO THERE!!
Reply With Quote
  #12 (permalink)  
Old 01-22-2004, 01:50 PM
WebProWorld 1,000+ Club
 
Join Date: Aug 2003
Location: Edmonton, AB, Canada
Posts: 1,527
mikmik RepRank 2mikmik RepRank 2
Default

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!
Reply With Quote
  #13 (permalink)  
Old 01-22-2004, 02:41 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Seattle, WA USA
Posts: 766
voodooboy RepRank 0
Default

Quote:
Originally Posted by mikmik
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.
__________________
Scott Brinkerhoff - Art of Zen Studios
Web Design I Design Monk
© 2000-forever - All rights reserved by me - SO THERE!!
Reply With Quote
  #14 (permalink)  
Old 01-23-2004, 11:32 PM
WebProWorld Member
 
Join Date: Jul 2003
Location: Oslo, Norway
Posts: 40
jdyndale RepRank 0
Default

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.

I think it can debug the code...
__________________
Regards,
Joachim Dyndale
Reply With Quote
  #15 (permalink)  
Old 01-24-2004, 06:48 AM
pete61uk's Avatar
WebProWorld Member
 
Join Date: Jul 2003
Location: United Kingdom - Wales
Posts: 71
pete61uk RepRank 0
Default

You can download PHP Triad here:

http://downloads.zdnet.co.uk/downloa...5-6474268.html

Hope it helps?
__________________
Pete

www.celna.co.uk

Nothing ever changes - Still stuck in the same damned corner!
Reply With Quote
  #16 (permalink)  
Old 01-24-2004, 02:43 PM
WebProWorld New Member
 
Join Date: Aug 2003
Posts: 22
z01d RepRank 0
Default

Thank you all for your input!
Reply With Quote
  #17 (permalink)  
Old 02-02-2004, 10:34 PM
WebProWorld New Member
 
Join Date: Aug 2003
Posts: 22
z01d RepRank 0
Default

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
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:42 PM.



Search Engine Optimization by vBSEO 3.3.0