tatoosa Posted April 7, 2016 Posted April 7, 2016 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
ggt667 Posted April 7, 2016 Posted April 7, 2016 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(); 1
tatoosa Posted April 8, 2016 Author Posted April 8, 2016 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
ggt667 Posted April 9, 2016 Posted April 9, 2016 (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 April 9, 2016 by ggt667
tatoosa Posted April 11, 2016 Author Posted April 11, 2016 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
ggt667 Posted April 11, 2016 Posted April 11, 2016 (edited) WPE is on, as you receive a message like this ERRORCODE 4 is returned. Which URL did you use? Edited April 11, 2016 by ggt667
tatoosa Posted April 11, 2016 Author Posted April 11, 2016 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>
ggt667 Posted April 11, 2016 Posted April 11, 2016 (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 April 11, 2016 by ggt667
tatoosa Posted April 11, 2016 Author Posted April 11, 2016 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
ggt667 Posted April 11, 2016 Posted April 11, 2016 (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 April 11, 2016 by ggt667
tatoosa Posted April 11, 2016 Author Posted April 11, 2016 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!
ggt667 Posted April 11, 2016 Posted April 11, 2016 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.
Recommended Posts
This topic is 3404 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 accountSign in
Already have an account? Sign in here.
Sign In Now