Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

execute block my php script

Featured Replies

hello,

i'm a beginner, i have problem with a php script, i run it (1/2  minutes), reaches the command execute() and then it stop with no error message.

this is the script:

 

$fm_a = new FileMaker($file, $host, $username, $password);
$a_table = $fm_a ->newFindCommand('layout_name');

$a_table->addFindCriterion('online', '1');
$a_result = $a_table->execute();
if (FileMaker::isError($iconografia_result)) {

.......

where i'm a wrong? 

thanx for your time and collaboration

Simone

 

How do you know that the script reaches execute()?

I would have to do a print_r( $a_result ); on a new line immediately after the line that ends with execute();

  • Author

 

thanx for your collaboration !

I put the echo to figure out where it stops.

I think about a FM timeout but  I did extend the time.

the problem continue :)

To check that you have connection just paste this in your browser: http://<<username>>:<<password>>@<<IP-address-of-your WPE>>/fmi/xml/FMPXMLRESULT.xml?-dbnames

Example:  http://wpeuser:[email protected]/fmi/xml/FMPXMLRESULT.xml?-dbnames

Edited by ggt667

  • Author
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<FMPXMLRESULT xmlns="http://www.filemaker.com/fmpxmlresult">
<ERRORCODE>4</ERRORCODE>
<PRODUCT BUILD="11/02/2015" NAME="FileMaker Web Publishing Engine" VERSION="14.0.4.412"/>
<DATABASE DATEFORMAT="" LAYOUT="" NAME="" RECORDS="" TIMEFORMAT=""/>
<METADATA/>
<RESULTSET FOUND=""/>
</FMPXMLRESULT>
 
 
 
Quote

 

WPE is on, as you receive a message like this ERRORCODE 4 is returned.

Which URL did you use?

Edited by ggt667

  • Author

http://wpeuser:[email protected]/fmi/xml/FMPXMLRESULT.xml?-dbnames

with the correct data

sorry the upper case

This XML file does not appear to have any style information associated with it. The document tree is shown below.
<fmresultset xmlns="http://www.filemaker.com/xml/fmresultset" version="1.0">
<error code="954"/>
<product build="11/02/2015" name="FileMaker Web Publishing Engine" version="14.0.4.412"/>
<datasource database="" date-format="" layout="" table="" time-format="" timestamp-format="" total-count=""/>
<metadata/>
<resultset count="" fetch-size=""/>
</fmresultset>

The one above from: https://fmhelp.filemaker.com/docs/14/en/fms14_cwp_guide.pdf page 46

You can also try this one: http://192.168.123.101/fmi/xml/fmresultset.xml?-db=employees&-layoutnames remember to change to a database you know is there.

Did you create a new account, for example web with a custom privilege set that has the checkbox fmxml and/or fmphp checked?

Edited by ggt667

  • Author

ok with no pass and user?

  • Author

ok

now it works... but i think that fm goes in timeout..... can you advise a config for the fm .... i export about 20000 records with 40 field each

thanx for your collaboration

 

6 hours ago, tatoosa said:

now it works... but i think that fm goes in timeout..... can you advise a config for the fm .... i export about 20000 records with 40 field each

Each month? pr minute?

 

Make sure you create a new layout with only the fields you need for that one query: make sure you have no calculation or summary fields on the query layout.

Edited by ggt667

  • Author

i'll check thanx

 

do you think, thet there's a way to put on fm layout only records that have that condition online = 1 ?

thanx!

Narrowing down the amount of data you work with is always good; but the part you are writing about is in the query, not in the layout.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.