Php Execute fixed in 4D v17.2

2019-08-05 Thread David Ringsmuth via 4D_Tech
If you get PHP Execute error using 4D v17.0, while not connected to the 
internet, your solution may be to a very recent 4D v17.2.

That’s all it took to fix the PHP Execute error I was getting.

Hth.

David Ringsmuth

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: $success_f:=PHP Execute($file_path_t;"";$result_t) intermittentfailure

2019-07-12 Thread David Ringsmuth via 4D_Tech
Paul,

It’s not possible in this application for two calls to PHP Execute to run at 
the same time.

But the default port 8002 may have some other conflict, and I had not 
considered that….

Now I will create a batch file that runs as administrator and displays port 
8002:

Netstat -aon | find “:8002 “
Pause

That should allow me to see if it is a port conflict.

Thanks!

David Ringsmuth

From: Paul Dennis via 4D_Tech
Sent: Friday, July 12, 2019 2:45 AM
To: 4d_tech@lists.4d.com
Cc: Paul Dennis
Subject: Re: $success_f:=PHP Execute($file_path_t;"";$result_t) 
intermittentfailure

Hello David,

We had a similar problem and there are a number of posts on the form about
it. The most common cause is you have another application using the same
port defined in the database settings PHP. If you got two copies afford the
running there will be conflict using the same php port at the same time
which is why it is intermittent. I think you can only have one PHP call 
running simultaneously.

Paul



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: $success_f:=PHP Execute($file_path_t;"";$result_t) intermittent failure

2019-07-12 Thread Paul Dennis via 4D_Tech
Hello David,

We had a similar problem and there are a number of posts on the form about
it. The most common cause is you have another application using the same
port defined in the database settings PHP. If you got two copies afford the
running there will be conflict using the same php port at the same time
which is why it is intermittent. I think you can only have one PHP call 
running simultaneously.

Paul



--
Sent from: http://4d.1045681.n5.nabble.com/4D-Tech-f1376241.html
**
4D Internet Users Group (4D iNUG)
Archive:  http://lists.4d.com/archives.html
Options: https://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

RE: PHP Execute

2017-07-17 Thread Epperlein, Lutz (agendo) via 4D_Tech
> (please say yes)

Yes!

What's the reason of the question? Or, why do you think PHP and 4D don't work 
in a compiled environment?

Regards
Lutz

--  
Lutz Epperlein  
--
Agendo Gesellschaft für politische Planung mbH
Köpenicker Str. 9
10997 Berlin
http://www.agendo.de/
--


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PHP Execute

2017-07-15 Thread Ronald Rosell via 4D_Tech
Works for me in a 15.4 compiled Mac app;  haven’t tried it on Windows.

__

Ron Rosell
President
StreamLMS


> On Jul 14, 2017, at 5:02 PM, David Ringsmuth via 4D_Tech 
> <4d_tech@lists.4d.com> wrote:
> 
> Does PHP Execute work in 4D v15.4 (windows) compiled built app?
> 
> (please say yes)
> 
> David Ringsmuth
> 
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PHP Execute

2017-07-14 Thread Paul Dennis via 4D_Tech
It works uncompiled what makes you think it wont ? I will check.
Paul



--
View this message in context: 
http://4d.1045681.n5.nabble.com/PHP-Execute-tp5753151p5753153.html
Sent from the 4D Tech mailing list archive at Nabble.com.
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

PHP Execute

2017-07-14 Thread David Ringsmuth via 4D_Tech
Does PHP Execute work in 4D v15.4 (windows) compiled built app?

(please say yes)

David Ringsmuth

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PHP EXECUTE in a loop

2017-03-13 Thread Balinder Walia via 4D_Tech
Call ON ERR CALL and if PHP cgi error just call PHP Exec again...basically
wait for a bit until you stop getting error and try again.

I miss the Try command in 4D :)

On Mon, 13 Mar 2017 at 16:30, Patrick Emanuel via 4D_Tech <
4d_tech@lists.4d.com> wrote:

> Before call any 'PHP EXECUTE', I used these 2 code lines first:
>
>     $isOK:=PHP Execute("";"relaunch_4d_php")
> PHP SET OPTION(2;True;*)
>
> Since, I have few PHP error like you describe.
>
>
>
> -
> Patrick EMANUEL
> 
> Administrator
> www.association-qualisoft.eu
> (Soft1002, Simply Asso & QS_Toolbox)
> --
> View this message in context:
> http://4d.1045681.n5.nabble.com/PHP-EXECUTE-in-a-loop-tp5750722p5750724.html
> Sent from the 4D Tech mailing list archive at Nabble.com.
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: PHP EXECUTE in a loop

2017-03-12 Thread Keisuke Miyako via 4D_Tech
PHP Execute restarts after a set number of calls.

PHP max requests
http://doc.4d.com/4Dv15/4D/15.4/SET-DATABASE-PARAMETER.301-3274410.en.html

if you always call PHP from the same process,
and you can keep track of the number of calls,
perhaps you could restart it every now and then:

relaunch_4d_php
http://doc.4d.com/4Dv15/4D/15/PHP-Execute.301-2006299.en.html

maybe there should be a feature request to get the amount of "credits" left to 
call PHP...

2017/03/13 12:46、John Baughman via 4D_Tech 
<4d_tech@lists.4D.com<mailto:4d_tech@lists.4d.com>> のメール:
I am wondering, has anything changed or provided since 2011 that would preclude 
having to use what I would consider to be somewhat of a hack of a work around?


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

PHP EXECUTE in a loop

2017-03-12 Thread John Baughman via 4D_Tech
I am running the following PHP EXECUTE in a loop...

$ok:=PHP Execute("";"urldecode";$unescapedText;$escaptedText) //unescape the 
text

Getting the following error...
--
FastCGI client error in context "{context}".
Environment info: UseExternalServer = {use_ext}, ip = {ip}, port = {port}, 
ExecutablePath = {path}.

Error code: 500
FastCGI client error in context "{context}".
Environment info: UseExternalServer = {use_ext}, ip = {ip}, port = {port}, 
ExecutablePath = {path}.
component: 'FCGI'
task -1, name: 'Application process'

Error code: 500
FastCGI client error in context "{context}".
Environment info: UseExternalServer = {use_ext}, ip = {ip}, port = {port}, 
ExecutablePath = {path}.
component: 'FCGI'
task -1, name: 'Application process’


Found a discussion about this on the french forums from 2011…

http://forums.4d.fr/Post/EN/6086023/1/16817358

The problem appears to be that the starting or restarting of the interpreter 
takes a while and repeated calls may find the interpreter not ready to answer. 
The solution was to call the PHP EXECUTE again until it works. The number of 
times needed was not fully resolved in the discussion. In any event I did 
resolve my problem in exactly this manner. I found I only needed to call it  a 
second time with a 1 second delay before making the second call.

I am wondering, has anything changed or provided since 2011 that would preclude 
having to use what I would consider to be somewhat of a hack of a work around?

Thanks,

John
 


**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**