|
|||||||
| Forums | Search Forums | Register | Forum Rules | Man Pages | Albums | FAQ | Members | Calendar | Search | Today's Posts | Mark Forums Read |
| Web Programming Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, HTML, SEO, and other Web APIs and topics. |
|
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
SQL db check
Ive debated this for awhile after I ran into a crap load of issues with my hosting's SQL server. I was curious to know if there is a way to write a db check into my .htaccess file that would verify if a connection is present and if not transfer to another domain?? I know it can be done manually in Cpanel (domain fowarding) but I would like a way for this to be into play instead of SQL errors. Ideas??
|
| Sponsored Links | ||
|
|
#2
|
|||
|
|||
|
Which SQL?
But probably no. That's the sort of thing you'd do in PHP. If you can check before PHP actually outputs anything, you can dump a header() to redirect then quit if the SQL doesn't work. |
| Sponsored Links | ||
|
|
#3
|
|||
|
|||
|
Quote:
It was here |
|
#4
|
|||
|
|||
|
Yes, that one would be.
Hardcode your own simple one with fixed connection details and it won't be vulnerable to injection. |
| Sponsored Links | ||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Perl code to check date and check files in particular dir | ajaypatil_am | Shell Programming and Scripting | 1 | 07-05-2012 08:29 AM |
| check in and check out comments | saku | Shell Programming and Scripting | 0 | 02-08-2012 02:00 AM |
| Check EOF char in Unix. OR To check file has been received completely from a remote system | alexalex1 | UNIX for Advanced & Expert Users | 5 | 07-22-2010 07:48 PM |
| script to check if another script is running and if so, then sleep for sometime and check again | mathews | Shell Programming and Scripting | 2 | 07-21-2010 11:25 PM |
| Script to check for a file, check for 2hrs. then quit | mmarsh | UNIX for Dummies Questions & Answers | 2 | 09-16-2005 02:46 PM |
|
|