When trying to use example file "read_db_with_helper.php" got and error message. #1
Replies: 4 comments 1 reply
-
I have no experience with macos... But my first thought: You did not modify the IP in the code or the PLC's IP Please tell me more about your setup. like:
|
Beta Was this translation helpful? Give feedback.
-
- [ ] So first of all about the goal you've asked ;)
- [ ] I want to rewrite one of my Delphi (Sydney) old application that communicates with simatic PLC. This app our company using in more than 10 objects and it does the dynamic recipes load and write from plc to SCADA systems and panels.
- [ ] Recently one company asked us to have more than one pc to configure and manage those recipes, and in this case I need server side application to do the job. So i've decided to do the web app using php (as a backend language, cause this is my favorite language of web programming;) So i found your phosphor7 repo and decided to try it.
- [ ] I'm considering make my own Delphi communication app using snap7 that is already implamented in my app, but decided to search in google for faster and maybe more stable way and use something already made and debugged :) and found your repo!
- [ ] So .... I will try to make a different IP, as you told me, but i think the problem is somewhere else, cause i use xdebug plugin in vscode and i see that this exeption ocoures on loading require_once libraries, but not on the connecting to given IP function, therefor i think the problem is somewhere else :) but meanwhile did not get where ;)
- [ ] Anyway i will try to send you my configuration and some print screens in vscode so you could aee some red notted warnings in some of the php files of your repo, maybe you will get some ideas what i'm doing wrong;)
- [ ] Anyway i'm really thankfull for your support and answers!
|
Beta Was this translation helpful? Give feedback.
-
I was able to reproduse your error in a bare php docker container. after installing the php try this
clone the repo in the same directory and it give me this output:
EDIT: mistake in docker-compose |
Beta Was this translation helpful? Give feedback.
-
Thank You very much for finding the cause of error. I will try to install the sockets and then see how everything
is going on. Anyway thanks a lot of finding the problem.
Audrius Piragis / Programuotojas +37065645449 / ***@***.*** ***@***.***>
Office: +370 5 2169231 / Fax: +370 5 2169231
LT-07100 Vilnius, Lietuva / Lithuania, Kaimelio g.13
www.telemetrija.lt <applewebdata://CC1F9F5B-C9BC-47D9-842E-5363A75BB76D/www.telemetrija.lt>
… On 2024-01-06, at 11:04, Martijn ***@***.***> wrote:
I was able to reproduse your error in a bare php docker container. after installing the php sockets it ran.
try this docker-compose.yaml
version: '3.1'
services:
php-fpm:
image: php:8.3-fpm
working_dir: /application
volumes:
- '.:/application'
command: docker-php-ext-install sockets
—
Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AUSNXZ3JYIDE7USMLMOICLLYNEHR5AVCNFSM6AAAAABBOKM2NGVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4DAMRZGQ2DG>.
You are receiving this because you authored the thread.
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Maybe i'm using somthing wrong, but i use PHP8.2 and VSCode and on loading and example "read_db_with_helper.php" i got this error message :
Maybe it's becouse of macosx system or there is some other problem, could you "get me on the correct road" on how to use this library?`
Beta Was this translation helpful? Give feedback.
All reactions