aboutsummaryrefslogtreecommitdiffstats
path: root/extras/fap/httpd/httpd_root/pg_connect.php
diff options
context:
space:
mode:
Diffstat (limited to 'extras/fap/httpd/httpd_root/pg_connect.php')
-rw-r--r--extras/fap/httpd/httpd_root/pg_connect.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/extras/fap/httpd/httpd_root/pg_connect.php b/extras/fap/httpd/httpd_root/pg_connect.php
new file mode 100644
index 0000000..6808cb0
--- /dev/null
+++ b/extras/fap/httpd/httpd_root/pg_connect.php
@@ -0,0 +1,6 @@
+<?php
+ if(!$dbconn = pg_connect("host=localhost dbname=fap user=fap password=<sensored>")){
+ echo 'Could not connect:' . pg_last_error();
+ exit();
+ }
+?>