milosev.com
  • Home
    • List all categories
    • Sitemap
  • Downloads
    • WebSphere
    • Hitachi902
    • Hospital
    • Kryptonite
    • OCR
    • APK
  • About me
    • Gallery
      • Italy2022
      • Côte d'Azur 2024
    • Curriculum vitae
      • Resume
      • Lebenslauf
    • Social networks
      • Facebook
      • Twitter
      • LinkedIn
      • Xing
      • GitHub
      • Google Maps
      • Sports tracker
    • Adventures planning
  1. You are here:  
  2. Home

Instalation PHP 5.2.6 on Windows XP IIS

Details
Written by: Stanko Milosev
Category: PHP
Published: 27 August 2008
Last Updated: 30 November -0001
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

Parametrized query

Details
Written by: Stanko Milosev
Category: PHP
Published: 27 August 2008
Last Updated: 30 November -0001
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) .

 

 

Saving file.

Details
Written by: Stanko Milosev
Category: PHP
Published: 18 August 2008
Last Updated: 18 July 2011
Hits: 5253

There is no such thing as TStringList 

So, note to my self, for saving files in PHP (good for geting and analyzing queries) :

 

$fp = fopen('c:data.txt', 'w');
fwrite($fp, $MySQL);
fclose($fp);

Taken from here.

Check if anything is assigned to $_GET

Details
Written by: Stanko Milosev
Category: PHP
Published: 06 August 2008
Last Updated: 18 July 2011
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.

  1. TestComplete
  2. List of Windows application which I like
  3. Word: Stop Ruler from "Snapping"
  4. Tor: anonymity online

Subcategories

C#

Azure

ASP.NET

JavaScript

Software Development Philosophy

MS SQL

IBM WebSphere MQ

MySQL

Joomla

Delphi

PHP

Windows

Life

Lazarus

Downloads

Android

CSS

Chrome

HTML

Linux

Eclipse

Page 104 of 164

  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108