- Details
- Written by: Stanko Milosev
- Category: PHP
- Hits: 4959
If you are receiving error "The specified module could not be found." then try to instead of "C:Program FilesPHPphp5isapi.dll" write C:Progra~1PHPphp5isapi.dll (without quotes) in Web Sites node, and in Default Web Site node, or any other. Right -> Properties -> Home Directory -> Cofiguration, find .php and click edit.
Also,extension are now in C:Program FilesPHPext, so if you are using MS SQL PHP extension for MS SQL then you will need manually to copy files php_sqlsrv_ts.dll and php_sqlsrv.dll to that folder.
 Taken from my brain :P
- Details
- Written by: Stanko Milosev
- Category: PHP
- Hits: 4990
Whenever is possible use parameterized queries in MS driver for PHP for MS SQL, to reduce risko of SQL injection attack.Taken from here.
Using of parametrized queries is simple, you can use example from here, for varchar types everything is same (you don't need quotes, as I thought) .
- Details
- Written by: Stanko Milosev
- Category: PHP
- Hits: 5760
So, this is my first postÂ
How to check is anything passed to $_GET or $_POST variables?
Easily:
if (!isset($_GET['download'])) {
Example:
<?php
if (!isset($_GET['download'])) {
echo ('Error download is not assigned');
} else {
echo ($_GET['download']);
}
?>
Taken from here.