Go Back   Web Server Hosting Forum by BODHost > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 01-24-09, 22:58
BOD Member
 
Join Date: Jan 2009
Posts: 98
Default Pay attention to the errors!

I'll admit that I'm NOT a php expert, however I have learned a thing or two after messing around with several php scripts.

One of the things I've learned is that when I get an error msg. I should take note of what line it is referring to, and try to see if I have made any recent modifications to either that line or another file that might be associated with it.

If you're new to php I recommend you keep this in mind as it will save you some headaches as sometimes the error can go away if you simply remove the offending issue in the line given, and minor errors often occur when you add in an extra character or don't escape the line properly.

I hope this helps someone as it sure helped me
Reply With Quote
  #2 (permalink)  
Old 01-26-09, 02:18
BOD Member
 
Join Date: Jan 2009
Posts: 172
Default

That is right, a beginner should watch out for errors when checking the coded page script of the site, otherwise it would not look good in a remote browser. I used to train myself with a "trial-and-error" method on handling the php script in my site so basically it will show me the outcome of the page that I've created.
Reply With Quote
  #3 (permalink)  
Old 02-04-09, 18:35
BOD Member
 
Join Date: Jan 2009
Posts: 98
Default

Yeah I learned like that as well, however it's best to do that in a demo site as I've often messed around with the code on a live site, and it resulted in some users temporarily getting some error messages which was obviously not good. Plus if you really mess up, your site will have those errors until you fix them. But if it's a demo site, you can play around with it all you want as it doesn't affect your real traffic.
Reply With Quote
  #4 (permalink)  
Old 02-05-09, 05:50
BOD Member
 
Join Date: Jan 2009
Posts: 73
Default

Quote:
Originally Posted by Lazlo90 View Post
Yeah I learned like that as well, however it's best to do that in a demo site as I've often messed around with the code on a live site, and it resulted in some users temporarily getting some error messages which was obviously not good. Plus if you really mess up, your site will have those errors until you fix them. But if it's a demo site, you can play around with it all you want as it doesn't affect your real traffic.
Agreed - I have an old computer (nothing much - its an old pentium 2 laptop with 128mb ram) that I use as a development box - I have setup linux on it with the same setup as my real host (same version of apache, php, etc) and have a couple of scrpts that I made to pull down my current code and put it in a directory on the development box once I have done all the testing and editing I run another script that makes a backup of the live website and then uploads the new one in its place (databases and all) - but YOU MUST REMEMBER TO KEEP BACKUPS OF ALL YOUR SITES this has saved my skin a good few times.
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 23:42.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.