June 17, 200421 yr Hi, I am not sure if it's the right place for this problem... I have FileMaker Pro 6 and FileMaker Server 5.5. I am trying to add new records to the database from the web using php. I noticed a very strange thing - my script works when the layout used in the script is open. If the other layout is open in the database - the record is not inserted. I have no clue what might be the reason. I am using FX class and my connection looks like that: <?php include_once ("FX.php"); $serverIP = "10.10.10.10"; $webCompanionPort = "471"; $recordData = new FX($serverIP, $webCompanionPort); $recordData->SetDBData("example.fp5", "web_details"); ... ?> So when on the server layout "web_details" is open - it is working. If any othe rlayout is open - it is not. I appreciate any ideas on this issue. Thanks a lot Jul
June 17, 200421 yr Hi, Jul! I'm not familiar with FX, but the Filemaker Web Companion actually draws data from your FileMaker Pro layouts. In CDML, we can specify what layout we want the WC to use, and if no layout is specified, it uses an internal.0 kind of layout or something. See if FX allows you to specify a -lay kind of thing.... I thought I saw a reference in the multi-level array description I had read once, but I could be wrong. That's all I can think of... --ST
June 17, 200421 yr Try this: <?php $result = file_get_contents("http://10.10.10.10:471/FMPro?-db=example.fp5&-format=-fmp_xml&-new"); echo $result ; ?> Good Luck. Garry
Create an account or sign in to comment