Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Gonzalo Ayuso:
PHP application in SAP Cloud Platform. With PostgreSQL, Redis and Cloud Foundry
Sep 25, 2017 @ 14:25:01

Gonzalo Ayuso has a tutorial posted to his site showing you how to create a PHP application on a SAP platform that includes PostgreSQL and Redis via Cloud Foundry.

Keeping on with my study of SAP’s cloud platform (SCP) and Cloud Foundry today I’m going to build a simple PHP application. This application serves a simple Bootstrap landing page. The application uses a HTTP basic authentication. The credentials are validated against a PostgreSQL database. It also has a API to retrieve the localtimestamp from database server (just for play with a database server). I also want to play with Redis in the cloud too, so the API request will have a Time To Live (ttl) of 5 seconds. I will use a Redis service to do it.

He then walks you through the process of setting up both the platform and the application:

  • creating the services in cloud foundry
  • create our application (with either Silex or Lumen)
  • built out the features
  • running the application locally for testing
  • connecting to the cloud servers for PostgreSQL and Redis
  • set up logging
  • set up basic authorization

Full code and configuration is included for each step of the way (with Lumen examples included because Silex is "dead").

tagged: application tutorial development sap cloud platform postgresql redis

Link: https://gonzalo123.com/2017/09/25/php-application-in-sap-cloud-platform-with-postgresql-redis-and-cloud-foundry/

Ant Phillips' Blog:
Integrating SAP NetWeaver in Zero PHP
Mar 20, 2009 @ 14:02:25

In a recent post to his blog Ant Phillips looks at how you can integrate the SAP Netweaver softare into Zero PHP (a Java PHP clone).

I thought it would be interesting to hook up a Zero PHP application with a SAP NetWeaver system. So last weekend I summoned up the courage and, armed with a bottle of red wine, set about the task. Surprisingly enough it wasn't too difficult (setting aside finding 20GB of disk space needed by the installer).

He talks about making the connection via SAP's JCo middleware component and the PHP/Java bridge that comes with the standard Zero installation. Code is included showing how to make the connection and grab information from the SAP data store.

tagged: zerophp java port sap netweaver integrate bridge jco

Link:

PHPied.com:
SAP container for PEAR::Auth
Sep 07, 2006 @ 12:04:09

If you've ever wanted to quickly and easily connect your PHP script over to a SAP server to authenticate a user but weren't sure quite how, you'll be happy to see that you can use the PEAR::Auth package to make the request - with a little help.

PEAR::Auth is a package that allows you to abstract the user authentication from the main part of your application and not worry about it. What is good about the package is that it comes with different "containers" that allows you to authenticate users against different storages.

So I played around with creating an SAP container that allows you to check users against your company's SAP system and for example build a section of your Internet (or Extranet) page that is only accessible for people and partners that exist as users in the SAP system.

There's an extension to PHP you'll need to get and install, but with that in place, it's as simple as setting the authentication type to "SAP" and giving it the hostname to connect to. He also includes some sample scripts to get you started, including the Auth_Container_SAP class that makes the magic happen.

tagged: sap container pear package auth extension class saprfc sap container pear package auth extension class saprfc

Link:

PHPied.com:
SAP container for PEAR::Auth
Sep 07, 2006 @ 12:04:09

If you've ever wanted to quickly and easily connect your PHP script over to a SAP server to authenticate a user but weren't sure quite how, you'll be happy to see that you can use the PEAR::Auth package to make the request - with a little help.

PEAR::Auth is a package that allows you to abstract the user authentication from the main part of your application and not worry about it. What is good about the package is that it comes with different "containers" that allows you to authenticate users against different storages.

So I played around with creating an SAP container that allows you to check users against your company's SAP system and for example build a section of your Internet (or Extranet) page that is only accessible for people and partners that exist as users in the SAP system.

There's an extension to PHP you'll need to get and install, but with that in place, it's as simple as setting the authentication type to "SAP" and giving it the hostname to connect to. He also includes some sample scripts to get you started, including the Auth_Container_SAP class that makes the magic happen.

tagged: sap container pear package auth extension class saprfc sap container pear package auth extension class saprfc

Link:

ITtoolbox.com:
So I'm a PHP developer and my company runs SAP now what?
Apr 25, 2006 @ 11:50:56

SAP keeps popping up on the PHPradar more and more these days, and this new article from the ITtoolbox site blog explains the situation from a PHP developer's point of view in a SAP-using company (and a few tips to get you started).

So you're a PHP developer and your company is running SAP, the problem though is you have no clue about SAP or what it does - you are curious though. The following are a few tips on making the cross over from building web applications to building SAP based web applications using PHP.

They start with the obvious, finding out what version you're working with, before moving on to the actual development. They link to a few resources for tools to help you make the connections and functionality inside the SAP systems. The simple script they give to test things out just logs you into the system and displays a status for your connection - nice and easy.

tagged: developer company run sap database connection sample hint developer company run sap database connection sample hint

Link:

ITtoolbox.com:
So I'm a PHP developer and my company runs SAP now what?
Apr 25, 2006 @ 11:50:56

SAP keeps popping up on the PHPradar more and more these days, and this new article from the ITtoolbox site blog explains the situation from a PHP developer's point of view in a SAP-using company (and a few tips to get you started).

So you're a PHP developer and your company is running SAP, the problem though is you have no clue about SAP or what it does - you are curious though. The following are a few tips on making the cross over from building web applications to building SAP based web applications using PHP.

They start with the obvious, finding out what version you're working with, before moving on to the actual development. They link to a few resources for tools to help you make the connections and functionality inside the SAP systems. The simple script they give to test things out just logs you into the system and displays a status for your connection - nice and easy.

tagged: developer company run sap database connection sample hint developer company run sap database connection sample hint

Link:

ThinkPHP Blog:
Who wants to connect PHP to SAP?
Apr 21, 2006 @ 12:03:59

According to This post on the ThinkPHP Blog today, they're looking for any and all developers out there that are working with SAP in their business and want to bridge the connection between it and PHP.

Please tell me about your needs and if you successfully could access SAP and which kind of connection (SAP XI, saprfc etc.) you used. I'll post a summary of those experiences later.

In the meantime, checkout the blog "PHP: A new twist to SAP development" (not much content there yet, but I hope it will grow in the future). It's the weblog of Craig Cmehil, a SAP employee who's the author of the book "The SAP developer's guide to PHP".

You don't seen much on this kind of connection, but there has to be a need for it in companies out there (espeically with the widespread usage of SAP).

tagged: sap connection business systems blog developer\'s guide sap connection business systems blog developer\'s guide

Link:

ThinkPHP Blog:
Who wants to connect PHP to SAP?
Apr 21, 2006 @ 12:03:59

According to This post on the ThinkPHP Blog today, they're looking for any and all developers out there that are working with SAP in their business and want to bridge the connection between it and PHP.

Please tell me about your needs and if you successfully could access SAP and which kind of connection (SAP XI, saprfc etc.) you used. I'll post a summary of those experiences later.

In the meantime, checkout the blog "PHP: A new twist to SAP development" (not much content there yet, but I hope it will grow in the future). It's the weblog of Craig Cmehil, a SAP employee who's the author of the book "The SAP developer's guide to PHP".

You don't seen much on this kind of connection, but there has to be a need for it in companies out there (espeically with the widespread usage of SAP).

tagged: sap connection business systems blog developer\'s guide sap connection business systems blog developer\'s guide

Link:


Trending Topics: