Recent content by Neilis

  1. N

    Postgres, PHP and Windows!?

    By default PHP doesn't display errors in web pages because they might contain sensitive information that hackers could use. During development you probably want them on though so you know what's going wrong (which could be lots of things). Fine your php.ini on your system. Open it up and look...
  2. N

    Execute a .sql file using a php script?

    you need to read the file into memory first. so more like this: $queryFileName = "c:\myquery.sql"; $queryFileHandle = fopen($queryFileName, "r"); $query = ''; // that's two single quotes not a double-quote while ($newLine = fgets($queryFileHandle)) { $query .= $newLine; }...
Back
Top