Skip to content

Instantly share code, notes, and snippets.

@siathalysedI
Forked from Tynael/index.php
Created December 19, 2024 10:31
Show Gist options
  • Save siathalysedI/1e68a8d8c933e34ad19926adfd2be7dd to your computer and use it in GitHub Desktop.
Save siathalysedI/1e68a8d8c933e34ad19926adfd2be7dd to your computer and use it in GitHub Desktop.

Revisions

  1. @Tynael Tynael revised this gist Oct 9, 2023. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions index.php
    Original file line number Diff line number Diff line change
    @@ -10,4 +10,6 @@
    ")
    );

    // Returns the PgSQL\Connection object if the connection is successful.
    // Otherwise, returns false
    ?>
  2. @Tynael Tynael created this gist Oct 9, 2023.
    13 changes: 13 additions & 0 deletions index.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    <?php

    var_dump(
    pg_connect("
    host=localhost
    port=5432
    dbname=postgres
    user=postgres
    password=root
    ")
    );

    ?>