Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 3148 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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

 

Posted

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();

  • Like 1
Posted

 

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 :)

Posted (edited)

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
Posted
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

 

Posted (edited)

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

Which URL did you use?

Edited by ggt667
Posted

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>
Posted (edited)

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
Posted

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

 

Posted (edited)
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
Posted

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!

Posted

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.

This topic is 3148 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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