since you have very broad question and just considering that you need to get information from ERP
system on your PHP portal. and i also considering you are the administrator of ERP
as well.
ERP
(Enterprise Resource Planning) is being provided by different vendors and Major includes Epicor
,Infor
,Oracle
and SAP
. All vendors are using Different databases. So for integration you must need to know what database is being used. For Such applications mostly used databases are SQL
and Oracle
.
After you get the type of database , next step is to know the schema or specific table
to get the information. Now Suppose you are getting information from oracle. you can use below connection string.
$dbc = new PDO('oci:dbname=Serveraddress/orcl;charset=CL8MSWIN1251', 'username', 'password');
you can also use the web services like SOAP
or REST
which ever supported by your ERP to fetch information.
For Specially SAP
below link can help you
Intgration of PHP & SAP