Current location: Hot Scripts Forums » Programming Languages » PHP » wanting advice / custom mysql error page


wanting advice / custom mysql error page

Reply
  #1 (permalink)  
Old 05-07-04, 12:12 PM
tylerc tylerc is offline
Newbie Coder
 
Join Date: May 2004
Location: Canada
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Question wanting advice / custom mysql error page

Im making billing software and its going to be encrypted with zend, i was wondering for the certificates if they should have to replace a certificate file every year or have the script contact my server seeing if their license is still active.

Also I was wondering how I can make a custom mysql connection error page so instead of showing Cannot Connect to Local host '10061' but instead make my own custom mysql connect error page.
__________________
-Tyler
RuneGuide Owner/Manager

Runescape Stats:
http://www.rsbandb.com/sig/sigs/n/nexon89.png
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 05-07-04, 01:28 PM
NeverMind's Avatar
NeverMind NeverMind is offline
Community VIP
 
Join Date: Aug 2003
Location: K.S.A
Posts: 2,257
Thanks: 0
Thanked 2 Times in 1 Post
Quote:
or have the script contact my server seeing if their license is still active.
if customers knew that there is a spyware in your product, they will complain! beside it's not a good idea since it will slow down your script because it will connect to your server and wait for reply and then start executing the script if the license is valid !! so what will happen if your server went down!? the script wont work .. also it will be a load on your server to do that ..
so it's not recommended..

about MySQL errors, you can avoid the warrnings by setting error_reporting lever to 0 or 1 ..

when ever you want to use a MySQL function do it like this:
PHP Code:

//no errors shall pop..

error_reporting(0);

mysql_query($sql)or
die(
'ERROR MESSAGE HERE');

mysql_connect()or
die(
'ANOTHER ERROR MESSAGE HERE'); 
so it will show the error message you write if anything goes wrong ..
__________________
PHPSimplicity
We don't need a reason to help people - Zidane [FF9]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 05-07-04, 01:41 PM
tylerc tylerc is offline
Newbie Coder
 
Join Date: May 2004
Location: Canada
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
thanks for the help
__________________
-Tyler
RuneGuide Owner/Manager

Runescape Stats:
http://www.rsbandb.com/sig/sigs/n/nexon89.png
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP and MySQL ? rob2132 Hot Scripts Forum Questions, Suggestions and Feedback 4 08-29-08 03:22 AM
mysql crash IMPORTANT comby PHP 0 03-02-04 11:27 AM
great product for dumping/recovering MySQL databases Dave Brown General Advertisements 1 10-03-03 08:40 AM


All times are GMT -5. The time now is 09:09 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.