René's URL Explorer Experiment


Title: PHP: pg_connect - Manual

X Title: PHP: pg_connect - Manual

Open Graph Description: Open a PostgreSQL connection

X Description: Open a PostgreSQL connection

X: @official_php

direct link

Domain: php.net

DescriptionOpen a PostgreSQL connection
twitter:cardsummary_large_image
twitter:creator@official_php
twitter:image:srchttps://www.php.net/images/meta-image.png
Nonehttps://www.php.net/images/meta-image.png
og:imagehttps://www.php.net/images/meta-image.png

Links:

update page nowhttps://php.net/x-myracloud-5958a2bbbed300a9b9ac631223924e0b/1768226544.463
https://php.net/
Downloads https://php.net/downloads.php
Documentation https://php.net/docs.php
Get Involved https://php.net/get-involved.php
Help https://php.net/support.php
https://php.net/releases/8.5/index.php
https://php.net/lookup-form.php
https://php.net/menu.php
Getting Startedhttps://php.net/manual/en/getting-started.php
Introductionhttps://php.net/manual/en/introduction.php
A simple tutorialhttps://php.net/manual/en/tutorial.php
Language Referencehttps://php.net/manual/en/langref.php
Basic syntaxhttps://php.net/manual/en/language.basic-syntax.php
Typeshttps://php.net/manual/en/language.types.php
Variableshttps://php.net/manual/en/language.variables.php
Constantshttps://php.net/manual/en/language.constants.php
Expressionshttps://php.net/manual/en/language.expressions.php
Operatorshttps://php.net/manual/en/language.operators.php
Control Structureshttps://php.net/manual/en/language.control-structures.php
Functionshttps://php.net/manual/en/language.functions.php
Classes and Objectshttps://php.net/manual/en/language.oop5.php
Namespaceshttps://php.net/manual/en/language.namespaces.php
Enumerationshttps://php.net/manual/en/language.enumerations.php
Errorshttps://php.net/manual/en/language.errors.php
Exceptionshttps://php.net/manual/en/language.exceptions.php
Fibershttps://php.net/manual/en/language.fibers.php
Generatorshttps://php.net/manual/en/language.generators.php
Attributeshttps://php.net/manual/en/language.attributes.php
References Explainedhttps://php.net/manual/en/language.references.php
Predefined Variableshttps://php.net/manual/en/reserved.variables.php
Predefined Exceptionshttps://php.net/manual/en/reserved.exceptions.php
Predefined Interfaces and Classeshttps://php.net/manual/en/reserved.interfaces.php
Predefined Attributeshttps://php.net/manual/en/reserved.attributes.php
Context options and parametershttps://php.net/manual/en/context.php
Supported Protocols and Wrappershttps://php.net/manual/en/wrappers.php
Securityhttps://php.net/manual/en/security.php
Introductionhttps://php.net/manual/en/security.intro.php
General considerationshttps://php.net/manual/en/security.general.php
Installed as CGI binaryhttps://php.net/manual/en/security.cgi-bin.php
Installed as an Apache modulehttps://php.net/manual/en/security.apache.php
Session Securityhttps://php.net/manual/en/security.sessions.php
Filesystem Securityhttps://php.net/manual/en/security.filesystem.php
Database Securityhttps://php.net/manual/en/security.database.php
Error Reportinghttps://php.net/manual/en/security.errors.php
User Submitted Datahttps://php.net/manual/en/security.variables.php
Hiding PHPhttps://php.net/manual/en/security.hiding.php
Keeping Currenthttps://php.net/manual/en/security.current.php
Featureshttps://php.net/manual/en/features.php
HTTP authentication with PHPhttps://php.net/manual/en/features.http-auth.php
Cookieshttps://php.net/manual/en/features.cookies.php
Sessionshttps://php.net/manual/en/features.sessions.php
Handling file uploadshttps://php.net/manual/en/features.file-upload.php
Using remote fileshttps://php.net/manual/en/features.remote-files.php
Connection handlinghttps://php.net/manual/en/features.connection-handling.php
Persistent Database Connectionshttps://php.net/manual/en/features.persistent-connections.php
Command line usagehttps://php.net/manual/en/features.commandline.php
Garbage Collectionhttps://php.net/manual/en/features.gc.php
DTrace Dynamic Tracinghttps://php.net/manual/en/features.dtrace.php
Function Referencehttps://php.net/manual/en/funcref.php
Affecting PHP's Behaviourhttps://php.net/manual/en/refs.basic.php.php
Audio Formats Manipulationhttps://php.net/manual/en/refs.utilspec.audio.php
Authentication Serviceshttps://php.net/manual/en/refs.remote.auth.php
Command Line Specific Extensionshttps://php.net/manual/en/refs.utilspec.cmdline.php
Compression and Archive Extensionshttps://php.net/manual/en/refs.compression.php
Cryptography Extensionshttps://php.net/manual/en/refs.crypto.php
Database Extensionshttps://php.net/manual/en/refs.database.php
Date and Time Related Extensionshttps://php.net/manual/en/refs.calendar.php
File System Related Extensionshttps://php.net/manual/en/refs.fileprocess.file.php
Human Language and Character Encoding Supporthttps://php.net/manual/en/refs.international.php
Image Processing and Generationhttps://php.net/manual/en/refs.utilspec.image.php
Mail Related Extensionshttps://php.net/manual/en/refs.remote.mail.php
Mathematical Extensionshttps://php.net/manual/en/refs.math.php
Non-Text MIME Outputhttps://php.net/manual/en/refs.utilspec.nontext.php
Process Control Extensionshttps://php.net/manual/en/refs.fileprocess.process.php
Other Basic Extensionshttps://php.net/manual/en/refs.basic.other.php
Other Serviceshttps://php.net/manual/en/refs.remote.other.php
Search Engine Extensionshttps://php.net/manual/en/refs.search.php
Server Specific Extensionshttps://php.net/manual/en/refs.utilspec.server.php
Session Extensionshttps://php.net/manual/en/refs.basic.session.php
Text Processinghttps://php.net/manual/en/refs.basic.text.php
Variable and Type Related Extensionshttps://php.net/manual/en/refs.basic.vartype.php
Web Serviceshttps://php.net/manual/en/refs.webservice.php
Windows Only Extensionshttps://php.net/manual/en/refs.utilspec.windows.php
XML Manipulationhttps://php.net/manual/en/refs.xml.php
GUI Extensionshttps://php.net/manual/en/refs.ui.php
pg_connect_poll » https://php.net/function.pg-connect-poll.php
« pg_close https://php.net/function.pg-close.php
PHP Manualhttps://php.net/index.php
Function Referencehttps://php.net/funcref.php
Database Extensionshttps://php.net/refs.database.php
Vendor Specific Database Extensionshttps://php.net/refs.database.vendors.php
PostgreSQLhttps://php.net/book.pgsql.php
PostgreSQL Functionshttps://php.net/ref.pgsql.php
stringhttps://php.net/language.types.string.php
inthttps://php.net/language.types.integer.php
PgSql\Connectionhttps://php.net/class.pgsql-connection.php
falsehttps://php.net/language.types.singleton.php
PGSQL_CONNECT_FORCE_NEWhttps://php.net/pgsql.constants.php#constant.pgsql-connect-force-new
PGSQL_CONNECT_FORCE_NEWhttps://php.net/pgsql.constants.php#constant.pgsql-connect-force-new
PGSQL_CONNECT_ASYNChttps://php.net/pgsql.constants.php#constant.pgsql-connect-async
pg_connect_poll()https://php.net/function.pg-connect-poll.php
pg_connection_status()https://php.net/function.pg-connection-status.php
PgSql\Connectionhttps://php.net/class.pgsql-connection.php
falsehttps://php.net/reserved.constants.php#constant.false
PgSql\Connectionhttps://php.net/class.pgsql-connection.php
resourcehttps://php.net/language.types.resource.php
pg_pconnect()https://php.net/function.pg-pconnect.php
pg_close()https://php.net/function.pg-close.php
pg_host()https://php.net/function.pg-host.php
pg_port()https://php.net/function.pg-port.php
pg_tty()https://php.net/function.pg-tty.php
pg_options()https://php.net/function.pg-options.php
pg_dbname()https://php.net/function.pg-dbname.php
Learn How To Improve This Pagehttps://github.com/php/doc-base/blob/master/README.md
Submit a Pull Requesthttps://github.com/php/doc-en/blob/master/reference/pgsql/functions/pg-connect.xml
Report a Bughttps://github.com/php/doc-en/issues/new?body=From%20manual%20page:%20https:%2F%2Fphp.net%2Ffunction.pg-connect%0A%0A---
+add a notehttps://php.net/manual/add-note.php?sect=function.pg-connect&repo=en&redirect=https://www.php.net/manual/en/function.pg-connect.php
uphttps://php.net/manual/vote-note.php?id=119642&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=119642&page=function.pg-connect&vote=down
lukasz dot wolczak at gmail dot comhttps://php.net/function.pg-connect.php#119642
https://php.net/function.pg-connect.php#119642
uphttps://php.net/manual/vote-note.php?id=112340&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=112340&page=function.pg-connect&vote=down
Davehttps://php.net/function.pg-connect.php#112340
https://php.net/function.pg-connect.php#112340
uphttps://php.net/manual/vote-note.php?id=115817&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=115817&page=function.pg-connect&vote=down
Anonymoushttps://php.net/function.pg-connect.php#115817
https://php.net/function.pg-connect.php#115817
uphttps://php.net/manual/vote-note.php?id=82117&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=82117&page=function.pg-connect&vote=down
bgalloway at citycarshare dot orghttps://php.net/function.pg-connect.php#82117
https://php.net/function.pg-connect.php#82117
uphttps://php.net/manual/vote-note.php?id=80093&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=80093&page=function.pg-connect&vote=down
tim at buttersideup dot comhttps://php.net/function.pg-connect.php#80093
https://php.net/function.pg-connect.php#80093
http://www.postgresql.org/docs/8.3/static/libpq-connect.htmlhttp://www.postgresql.org/docs/8.3/static/libpq-connect.html
uphttps://php.net/manual/vote-note.php?id=18984&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=18984&page=function.pg-connect&vote=down
matias at nospam dot projectcast dot comhttps://php.net/function.pg-connect.php#18984
https://php.net/function.pg-connect.php#18984
uphttps://php.net/manual/vote-note.php?id=100641&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=100641&page=function.pg-connect&vote=down
thakur at corexprts dot comhttps://php.net/function.pg-connect.php#100641
https://php.net/function.pg-connect.php#100641
uphttps://php.net/manual/vote-note.php?id=123569&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=123569&page=function.pg-connect&vote=down
VLroyrennhttps://php.net/function.pg-connect.php#123569
https://php.net/function.pg-connect.php#123569
uphttps://php.net/manual/vote-note.php?id=93837&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=93837&page=function.pg-connect&vote=down
gutostraube at gmail dot comhttps://php.net/function.pg-connect.php#93837
https://php.net/function.pg-connect.php#93837
uphttps://php.net/manual/vote-note.php?id=51767&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=51767&page=function.pg-connect&vote=down
Anonymoushttps://php.net/function.pg-connect.php#51767
https://php.net/function.pg-connect.php#51767
uphttps://php.net/manual/vote-note.php?id=6892&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=6892&page=function.pg-connect&vote=down
leace at post dot czhttps://php.net/function.pg-connect.php#6892
https://php.net/function.pg-connect.php#6892
uphttps://php.net/manual/vote-note.php?id=76870&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=76870&page=function.pg-connect&vote=down
Sohel Taslimhttps://php.net/function.pg-connect.php#76870
https://php.net/function.pg-connect.php#76870
uphttps://php.net/manual/vote-note.php?id=119586&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=119586&page=function.pg-connect&vote=down
floriparob at gmail dot comhttps://php.net/function.pg-connect.php#119586
https://php.net/function.pg-connect.php#119586
https://www.postgresql.org/docs/9.6/static/libpq-pgservice.htmlhttps://www.postgresql.org/docs/9.6/static/libpq-pgservice.html
uphttps://php.net/manual/vote-note.php?id=38125&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=38125&page=function.pg-connect&vote=down
xzilla at users dot sourceforge dot nethttps://php.net/function.pg-connect.php#38125
https://php.net/function.pg-connect.php#38125
http://www.postgresql.org/docs/7.4/static/client-authentication.htmlhttp://www.postgresql.org/docs/7.4/static/client-authentication.html
uphttps://php.net/manual/vote-note.php?id=28069&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=28069&page=function.pg-connect&vote=down
jtate at php dot nethttps://php.net/function.pg-connect.php#28069
https://php.net/function.pg-connect.php#28069
http://www.postgresql.org/idocs/index.php?client-authentication.htmlhttp://www.postgresql.org/idocs/index.php?client-authentication.html
uphttps://php.net/manual/vote-note.php?id=45293&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=45293&page=function.pg-connect&vote=down
phpnet at benjamin dot schulz dot namehttps://php.net/function.pg-connect.php#45293
https://php.net/function.pg-connect.php#45293
uphttps://php.net/manual/vote-note.php?id=8527&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=8527&page=function.pg-connect&vote=down
kayotix at yahoo dot comhttps://php.net/function.pg-connect.php#8527
https://php.net/function.pg-connect.php#8527
uphttps://php.net/manual/vote-note.php?id=16024&page=function.pg-connect&vote=up
downhttps://php.net/manual/vote-note.php?id=16024&page=function.pg-connect&vote=down
rolf at sir-wum dot dehttps://php.net/function.pg-connect.php#16024
https://php.net/function.pg-connect.php#16024
+add a notehttps://php.net/manual/add-note.php?sect=function.pg-connect&repo=en&redirect=https://www.php.net/manual/en/function.pg-connect.php
PostgreSQL Functionshttps://php.net/ref.pgsql.php
pg_​affected_​rowshttps://php.net/function.pg-affected-rows.php
pg_​cancel_​queryhttps://php.net/function.pg-cancel-query.php
pg_​client_​encodinghttps://php.net/function.pg-client-encoding.php
pg_​closehttps://php.net/function.pg-close.php
pg_​connecthttps://php.net/function.pg-connect.php
pg_​connect_​pollhttps://php.net/function.pg-connect-poll.php
pg_​connection_​busyhttps://php.net/function.pg-connection-busy.php
pg_​connection_​resethttps://php.net/function.pg-connection-reset.php
pg_​connection_​statushttps://php.net/function.pg-connection-status.php
pg_​consume_​inputhttps://php.net/function.pg-consume-input.php
pg_​converthttps://php.net/function.pg-convert.php
pg_​copy_​fromhttps://php.net/function.pg-copy-from.php
pg_​copy_​tohttps://php.net/function.pg-copy-to.php
pg_​dbnamehttps://php.net/function.pg-dbname.php
pg_​deletehttps://php.net/function.pg-delete.php
pg_​end_​copyhttps://php.net/function.pg-end-copy.php
pg_​escape_​byteahttps://php.net/function.pg-escape-bytea.php
pg_​escape_​identifierhttps://php.net/function.pg-escape-identifier.php
pg_​escape_​literalhttps://php.net/function.pg-escape-literal.php
pg_​escape_​stringhttps://php.net/function.pg-escape-string.php
pg_​executehttps://php.net/function.pg-execute.php
pg_​fetch_​allhttps://php.net/function.pg-fetch-all.php
pg_​fetch_​all_​columnshttps://php.net/function.pg-fetch-all-columns.php
pg_​fetch_​arrayhttps://php.net/function.pg-fetch-array.php
pg_​fetch_​assochttps://php.net/function.pg-fetch-assoc.php
pg_​fetch_​objecthttps://php.net/function.pg-fetch-object.php
pg_​fetch_​resulthttps://php.net/function.pg-fetch-result.php
pg_​fetch_​rowhttps://php.net/function.pg-fetch-row.php
pg_​field_​is_​nullhttps://php.net/function.pg-field-is-null.php
pg_​field_​namehttps://php.net/function.pg-field-name.php
pg_​field_​numhttps://php.net/function.pg-field-num.php
pg_​field_​prtlenhttps://php.net/function.pg-field-prtlen.php
pg_​field_​sizehttps://php.net/function.pg-field-size.php
pg_​field_​tablehttps://php.net/function.pg-field-table.php
pg_​field_​typehttps://php.net/function.pg-field-type.php
pg_​field_​type_​oidhttps://php.net/function.pg-field-type-oid.php
pg_​flushhttps://php.net/function.pg-flush.php
pg_​free_​resulthttps://php.net/function.pg-free-result.php
pg_​get_​notifyhttps://php.net/function.pg-get-notify.php
pg_​get_​pidhttps://php.net/function.pg-get-pid.php
pg_​get_​resulthttps://php.net/function.pg-get-result.php
pg_​hosthttps://php.net/function.pg-host.php
pg_​inserthttps://php.net/function.pg-insert.php
pg_​last_​errorhttps://php.net/function.pg-last-error.php
pg_​last_​noticehttps://php.net/function.pg-last-notice.php
pg_​last_​oidhttps://php.net/function.pg-last-oid.php
pg_​lo_​closehttps://php.net/function.pg-lo-close.php
pg_​lo_​createhttps://php.net/function.pg-lo-create.php
pg_​lo_​exporthttps://php.net/function.pg-lo-export.php
pg_​lo_​importhttps://php.net/function.pg-lo-import.php
pg_​lo_​openhttps://php.net/function.pg-lo-open.php
pg_​lo_​readhttps://php.net/function.pg-lo-read.php
pg_​lo_​read_​allhttps://php.net/function.pg-lo-read-all.php
pg_​lo_​seekhttps://php.net/function.pg-lo-seek.php
pg_​lo_​tellhttps://php.net/function.pg-lo-tell.php
pg_​lo_​truncatehttps://php.net/function.pg-lo-truncate.php
pg_​lo_​unlinkhttps://php.net/function.pg-lo-unlink.php
pg_​lo_​writehttps://php.net/function.pg-lo-write.php
pg_​meta_​datahttps://php.net/function.pg-meta-data.php
pg_​num_​fieldshttps://php.net/function.pg-num-fields.php
pg_​num_​rowshttps://php.net/function.pg-num-rows.php
pg_​optionshttps://php.net/function.pg-options.php
pg_​parameter_​statushttps://php.net/function.pg-parameter-status.php
pg_​pconnecthttps://php.net/function.pg-pconnect.php
pg_​pinghttps://php.net/function.pg-ping.php
pg_​porthttps://php.net/function.pg-port.php
pg_​preparehttps://php.net/function.pg-prepare.php
pg_​put_​linehttps://php.net/function.pg-put-line.php
pg_​queryhttps://php.net/function.pg-query.php
pg_​query_​paramshttps://php.net/function.pg-query-params.php
pg_​result_​errorhttps://php.net/function.pg-result-error.php
pg_​result_​error_​fieldhttps://php.net/function.pg-result-error-field.php
pg_​result_​memory_​sizehttps://php.net/function.pg-result-memory-size.php
pg_​result_​seekhttps://php.net/function.pg-result-seek.php
pg_​result_​statushttps://php.net/function.pg-result-status.php
pg_​selecthttps://php.net/function.pg-select.php
pg_​send_​executehttps://php.net/function.pg-send-execute.php
pg_​send_​preparehttps://php.net/function.pg-send-prepare.php
pg_​send_​queryhttps://php.net/function.pg-send-query.php
pg_​send_​query_​paramshttps://php.net/function.pg-send-query-params.php
pg_​set_​chunked_​rows_​sizehttps://php.net/function.pg-set-chunked-rows-size.php
pg_​set_​client_​encodinghttps://php.net/function.pg-set-client-encoding.php
pg_​set_​error_​context_​visibilityhttps://php.net/function.pg-set-error-context-visibility.php
pg_​set_​error_​verbosityhttps://php.net/function.pg-set-error-verbosity.php
pg_​sockethttps://php.net/function.pg-socket.php
pg_​tracehttps://php.net/function.pg-trace.php
pg_​transaction_​statushttps://php.net/function.pg-transaction-status.php
pg_​ttyhttps://php.net/function.pg-tty.php
pg_​unescape_​byteahttps://php.net/function.pg-unescape-bytea.php
pg_​untracehttps://php.net/function.pg-untrace.php
pg_​updatehttps://php.net/function.pg-update.php
pg_​versionhttps://php.net/function.pg-version.php
Copyright © 2001-2026 The PHP Documentation Grouphttps://php.net/manual/en/copyright.php
My PHP.nethttps://php.net/my.php
Contacthttps://php.net/contact.php
Other PHP.net siteshttps://php.net/sites.php
Privacy policyhttps://php.net/privacy.php
javascript:;

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.