I can not do the backup because windows throws error and I do not know how to solve it I need to backup postgres using php and windows. This is the command used.
**exec('pg_dump --dbname=postgresql://username:root@localhost:5432/sicanar > dbbackup.sql',$output);
print_r($output);**
But windows throws this error
The entry point for the icon_open procedure is not found in the C: \ WINDOWS \ System32 \ libintl.dll library
I guess you copied the pg_dump.exe from an installation folder to some other location but did not copy all the dll's it needs. Now windows is trying to find them but find's a wrong version that is missing a function.
You will very likely need to copy the following dll's from the folder pg_dump was originally in
postgresql 9.4: intl.dll, libeay32.dll, libintl.dll, libpq.dll, ssleay32.dll and zlib1.dll.
postgresql 9.5 and 9.6: libeay32.dll, libiconv-2.dll, libintl-8.dll, libpq.dll, ssleay32.dll and zlib1.dll.