[FX.php List] Newbie Question

Stephen Knight 1-800-353-7950 stephen at fmwebschool.com
Mon Sep 26 07:46:58 MDT 2005

Hi Ahmad,

Check the name of the database on the following line:

    $instanceName-> SetDBData(' Contacts.fp7','Contacts');

Your database name has a space before it.  Remove this and try the page again.

In Kindness
Stephen K. Knight
Professional FileMaker Web Services
  ----- Original Message ----- 
  From: Greg Lane 
  To: FX.php Discussion List 
  Cc: Ahmad Kaifi 
  Sent: Sunday, September 25, 2005 2:25 PM
  Subject: Re: [FX.php List] Newbie Question


  It looks like you have an unnecessary foreach statement on line 10 of your code. Try removing that line and see what you get.


  On Sep 25, 2005, at 12:51 PM, Ahmad Kaifi wrote:

    Hello everyone,

    I can't come up with a solution to this at all..

    I typed up the very first example in the "FX.php in 8 Hours" offered by FMWebSchools and tried to run it but I keep getting this mistake:

    Fatal error: Maximum execution time of 30 seconds exceeded in c:\Inetpub\wwwroot\php8\FX\FX.php on line 610

    No matter what I try to do, I get this.

    Its happening right when the FX class is building the 'data' array.

    Line 609:                while (!feof($fp)) {
    Line 610:                    $data .= fgets($fp, 128);
    Line 611:                }

    I'm running both FMSA and my webserver (IIS) on my local WinXP machine. They are both using port 80.

    When I create a regular XML url like this it works fine:

    Here is the code:

        include ('FX/FX.php');
        include ('FX/server_data.php');
        $instanceName = new FX($serverIP, $webCompanionPort);
        $instanceName-> SetDBData('Contacts.fp7','Contacts');
        $instanceName-> SetDBPassword('','Admin');
        $instanceResult = $instanceName->FMFindAll();
        foreach($instanceResult['data'] as $key=>$instanceData)

    <title>The Developer Connection</title>

    Error Code: <?php echo $instanceResult['errorCode']; ?> <br>
    Found Count: <?php echo $instanceResult['foundCount']; ?> <br>

        foreach($instanceResult['data'] as $key=>$instanceData){
            echo $instanceData['name_first'][0];


    Thanks in advance!!!

    Ahmad Kaifi

    FX.php_List mailing list
    FX.php_List at mail.iviking.org


  FX.php_List mailing list
  FX.php_List at mail.iviking.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20050926/cd9ab66f/attachment-0001.html

More information about the FX.php_List mailing list