From dale.bengston at gmail.com Thu Apr 4 09:19:14 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Thu Apr 4 08:22:01 2013 Subject: [FX.php List] SSL and FileMaker Server 11 Message-ID: <2DE9B46B-140B-4B3A-9AC3-E427D4AD9283@gmail.com> Hi everyone, I hope all is well with you and yours. I have a two-machine setup, where FMS11 and the WPE are on the same machine (OSX 10.6.8), and the web server (Apache) is on a second machine. I would like to encrypt the traffic between Apache (using PHP/FX.php) and FMS11. I understand that I can put the *site* under https and use port 443 instead of port 80, but my recollection of what happens to the data traffic to FMS11 is fuzzy. I'm assuming it's still unencrypted, right? Nothing magical about using FX.php and port 443 on the overall site will make the FMS traffic encrypted... right? Sorry, thick on the mechanics... been a few years since I set up a FileMaker/web system. What are my options for encrypting the FileMaker data traffic? Thanks, Dale PS This has nothing to do with the check-box in the Admin console for encrypting client-server traffic. Client-server usage has no bearing on my project. -- Dale Bengston Streamline Studio, LLC www.streamline-studio.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130404/92b2c316/attachment.html From adenman at tmea.org Thu Apr 4 11:33:09 2013 From: adenman at tmea.org (Andrew Denman) Date: Thu Apr 4 10:35:53 2013 Subject: [FX.php List] SSL and FileMaker Server 11 In-Reply-To: <2DE9B46B-140B-4B3A-9AC3-E427D4AD9283@gmail.com> References: <2DE9B46B-140B-4B3A-9AC3-E427D4AD9283@gmail.com> Message-ID: I have not used it, but one of the options when setting up the FX.php object is 'dataURLType': FX ($dataServer, $dataPort=591, $dataType='', $dataURLType='') ... The final parameter is $dataURLType. This parameter is new as of version 4.x of FX.php, and is only relevant when connecting to a FileMaker 7 data source. $dataURLType is an optional parameter with two possible values (case insensitive): HTTP or HTTPS. When HTTPS isn't specified (or when not connecting to FileMaker 7), HTTP is assumed. This parameter is used when connecting to FileMaker 7 Server Advanced via SSL. Andrew Denman From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Thursday, April 04, 2013 10:19 AM To: FX.php Discussion List Subject: [FX.php List] SSL and FileMaker Server 11 Hi everyone, I hope all is well with you and yours. I have a two-machine setup, where FMS11 and the WPE are on the same machine (OSX 10.6.8), and the web server (Apache) is on a second machine. I would like to encrypt the traffic between Apache (using PHP/FX.php) and FMS11. I understand that I can put the *site* under https and use port 443 instead of port 80, but my recollection of what happens to the data traffic to FMS11 is fuzzy. I'm assuming it's still unencrypted, right? Nothing magical about using FX.php and port 443 on the overall site will make the FMS traffic encrypted... right? Sorry, thick on the mechanics... been a few years since I set up a FileMaker/web system. What are my options for encrypting the FileMaker data traffic? Thanks, Dale PS This has nothing to do with the check-box in the Admin console for encrypting client-server traffic. Client-server usage has no bearing on my project. -- Dale Bengston Streamline Studio, LLC www.streamline-studio.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130404/1ed5f7c1/attachment-0001.html From dale.bengston at gmail.com Thu Apr 4 12:05:09 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Thu Apr 4 11:07:56 2013 Subject: [FX.php List] SSL and FileMaker Server 11 In-Reply-To: References: <2DE9B46B-140B-4B3A-9AC3-E427D4AD9283@gmail.com> Message-ID: <269F4BDD-36D6-4357-9B8B-11AC0112414C@gmail.com> Hi Andrew, Hah, yeah, I did rtfm before I posted, but one thing I overlooked there was the mention of Server Advanced. Since much of the FX doc seems to be stuck on FileMaker v7, I'm wondering if FMSA is still required for SSL. I'm recalling that back in the FM7 days, FMSA was required for merely doing Custom Web Publishing, but not any more. My question remains, if I just change the FX parameter $dataURLType from HTTP to HTTPS, does just magically work? Without an ssl cert? Seems like there should be more to it than that.... Thanks, Dale On Apr 4, 2013, at 12:33 PM, Andrew Denman wrote: > I have not used it, but one of the options when setting up the FX.php object is ?dataURLType?: > > FX ($dataServer, $dataPort=591, $dataType='', $dataURLType='') > ... > The final parameter is $dataURLType. This parameter is new as of version 4.x of FX.php, and is only relevant when connecting to a FileMaker 7 data source. $dataURLType is an optional parameter with two possible values (case insensitive): HTTP or HTTPS. When HTTPS isn't specified (or when not connecting to FileMaker 7), HTTP is assumed. This parameter is used when connecting to FileMaker 7 Server Advanced via SSL. > > > Andrew Denman > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston > Sent: Thursday, April 04, 2013 10:19 AM > To: FX.php Discussion List > Subject: [FX.php List] SSL and FileMaker Server 11 > > Hi everyone, > > I hope all is well with you and yours. > > I have a two-machine setup, where FMS11 and the WPE are on the same machine (OSX 10.6.8), and the web server (Apache) is on a second machine. I would like to encrypt the traffic between Apache (using PHP/FX.php) and FMS11. I understand that I can put the *site* under https and use port 443 instead of port 80, but my recollection of what happens to the data traffic to FMS11 is fuzzy. > > I'm assuming it's still unencrypted, right? Nothing magical about using FX.php and port 443 on the overall site will make the FMS traffic encrypted... right? > > Sorry, thick on the mechanics... been a few years since I set up a FileMaker/web system. What are my options for encrypting the FileMaker data traffic? > > Thanks, > Dale > > PS This has nothing to do with the check-box in the Admin console for encrypting client-server traffic. Client-server usage has no bearing on my project. > > > -- > Dale Bengston > Streamline Studio, LLC > www.streamline-studio.com > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From adenman at tmea.org Thu Apr 4 13:51:36 2013 From: adenman at tmea.org (Andrew Denman) Date: Thu Apr 4 12:54:20 2013 Subject: [FX.php List] SSL and FileMaker Server 11 In-Reply-To: <269F4BDD-36D6-4357-9B8B-11AC0112414C@gmail.com> References: <2DE9B46B-140B-4B3A-9AC3-E427D4AD9283@gmail.com> <269F4BDD-36D6-4357-9B8B-11AC0112414C@gmail.com> Message-ID: I haven't set this up before and I don't have access to my test server at the moment, but since data from the WPE is using Apache/IIS on the FileMaker server, you'll probably need to set up an SSL cert there. If you will be the only one hitting the WPE, a self-signed cert should be sufficient, though you may have to get the client (your public web server) to accept it. (For *NIX: http://www.madboa.com/geek/openssl/#verify-system) Andrew Denman -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston Sent: Thursday, April 04, 2013 1:05 PM To: FX.php Discussion List Subject: Re: [FX.php List] SSL and FileMaker Server 11 Hi Andrew, Hah, yeah, I did rtfm before I posted, but one thing I overlooked there was the mention of Server Advanced. Since much of the FX doc seems to be stuck on FileMaker v7, I'm wondering if FMSA is still required for SSL. I'm recalling that back in the FM7 days, FMSA was required for merely doing Custom Web Publishing, but not any more. My question remains, if I just change the FX parameter $dataURLType from HTTP to HTTPS, does just magically work? Without an ssl cert? Seems like there should be more to it than that.... Thanks, Dale On Apr 4, 2013, at 12:33 PM, Andrew Denman wrote: > I have not used it, but one of the options when setting up the FX.php object is 'dataURLType': > > FX ($dataServer, $dataPort=591, $dataType='', $dataURLType='') ... > The final parameter is $dataURLType. This parameter is new as of version 4.x of FX.php, and is only relevant when connecting to a FileMaker 7 data source. $dataURLType is an optional parameter with two possible values (case insensitive): HTTP or HTTPS. When HTTPS isn't specified (or when not connecting to FileMaker 7), HTTP is assumed. This parameter is used when connecting to FileMaker 7 Server Advanced via SSL. > > > Andrew Denman > > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale > Bengston > Sent: Thursday, April 04, 2013 10:19 AM > To: FX.php Discussion List > Subject: [FX.php List] SSL and FileMaker Server 11 > > Hi everyone, > > I hope all is well with you and yours. > > I have a two-machine setup, where FMS11 and the WPE are on the same machine (OSX 10.6.8), and the web server (Apache) is on a second machine. I would like to encrypt the traffic between Apache (using PHP/FX.php) and FMS11. I understand that I can put the *site* under https and use port 443 instead of port 80, but my recollection of what happens to the data traffic to FMS11 is fuzzy. > > I'm assuming it's still unencrypted, right? Nothing magical about using FX.php and port 443 on the overall site will make the FMS traffic encrypted... right? > > Sorry, thick on the mechanics... been a few years since I set up a FileMaker/web system. What are my options for encrypting the FileMaker data traffic? > > Thanks, > Dale > > PS This has nothing to do with the check-box in the Admin console for encrypting client-server traffic. Client-server usage has no bearing on my project. > > > -- > Dale Bengston > Streamline Studio, LLC > www.streamline-studio.com > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list From dale.bengston at gmail.com Thu Apr 4 16:56:32 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Thu Apr 4 15:59:20 2013 Subject: [FX.php List] SSL and FileMaker Server 11 In-Reply-To: References: <2DE9B46B-140B-4B3A-9AC3-E427D4AD9283@gmail.com> <269F4BDD-36D6-4357-9B8B-11AC0112414C@gmail.com> Message-ID: <866BD48F-6EB7-47D1-BDD8-43E921BA3923@gmail.com> Hi Andrew, I set up a self-signed cert on my testing server and reconfigured Apache to use the cert and listen on port 443. FX.php calls to https still failed until I shut off cURL: $InstanceName-> FMUseCURL(false); Using sockets instead of cURL works great. Thanks for helping me work through this. Dale On Apr 4, 2013, at 2:51 PM, Andrew Denman wrote: > I haven't set this up before and I don't have access to my test server at the moment, but since data from the WPE is using Apache/IIS on the FileMaker server, you'll probably need to set up an SSL cert there. > > If you will be the only one hitting the WPE, a self-signed cert should be sufficient, though you may have to get the client (your public web server) to accept it. (For *NIX: http://www.madboa.com/geek/openssl/#verify-system) > > Andrew Denman > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston > Sent: Thursday, April 04, 2013 1:05 PM > To: FX.php Discussion List > Subject: Re: [FX.php List] SSL and FileMaker Server 11 > > Hi Andrew, > > Hah, yeah, I did rtfm before I posted, but one thing I overlooked there was the mention of Server Advanced. Since much of the FX doc seems to be stuck on FileMaker v7, I'm wondering if FMSA is still required for SSL. I'm recalling that back in the FM7 days, FMSA was required for merely doing Custom Web Publishing, but not any more. > > My question remains, if I just change the FX parameter $dataURLType from HTTP to HTTPS, does just magically work? Without an ssl cert? Seems like there should be more to it than that.... > > Thanks, > Dale > > On Apr 4, 2013, at 12:33 PM, Andrew Denman wrote: > >> I have not used it, but one of the options when setting up the FX.php object is 'dataURLType': >> >> FX ($dataServer, $dataPort=591, $dataType='', $dataURLType='') ... >> The final parameter is $dataURLType. This parameter is new as of version 4.x of FX.php, and is only relevant when connecting to a FileMaker 7 data source. $dataURLType is an optional parameter with two possible values (case insensitive): HTTP or HTTPS. When HTTPS isn't specified (or when not connecting to FileMaker 7), HTTP is assumed. This parameter is used when connecting to FileMaker 7 Server Advanced via SSL. >> >> >> Andrew Denman >> >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale >> Bengston >> Sent: Thursday, April 04, 2013 10:19 AM >> To: FX.php Discussion List >> Subject: [FX.php List] SSL and FileMaker Server 11 >> >> Hi everyone, >> >> I hope all is well with you and yours. >> >> I have a two-machine setup, where FMS11 and the WPE are on the same machine (OSX 10.6.8), and the web server (Apache) is on a second machine. I would like to encrypt the traffic between Apache (using PHP/FX.php) and FMS11. I understand that I can put the *site* under https and use port 443 instead of port 80, but my recollection of what happens to the data traffic to FMS11 is fuzzy. >> >> I'm assuming it's still unencrypted, right? Nothing magical about using FX.php and port 443 on the overall site will make the FMS traffic encrypted... right? >> >> Sorry, thick on the mechanics... been a few years since I set up a FileMaker/web system. What are my options for encrypting the FileMaker data traffic? >> >> Thanks, >> Dale >> >> PS This has nothing to do with the check-box in the Admin console for encrypting client-server traffic. Client-server usage has no bearing on my project. >> >> >> -- >> Dale Bengston >> Streamline Studio, LLC >> www.streamline-studio.com >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From whatdoyouwant at gmail.com Fri Apr 5 09:00:04 2013 From: whatdoyouwant at gmail.com (Nick) Date: Fri Apr 5 08:02:45 2013 Subject: [FX.php List] SSL and FileMaker Server 11 In-Reply-To: <866BD48F-6EB7-47D1-BDD8-43E921BA3923@gmail.com> References: <2DE9B46B-140B-4B3A-9AC3-E427D4AD9283@gmail.com> <269F4BDD-36D6-4357-9B8B-11AC0112414C@gmail.com> <866BD48F-6EB7-47D1-BDD8-43E921BA3923@gmail.com> Message-ID: there is a setting on the FX called verifyPeer. you can set it to false instead of turning off curl On Thu, Apr 4, 2013 at 5:56 PM, Dale Bengston wrote: > Hi Andrew, > > I set up a self-signed cert on my testing server and reconfigured Apache > to use the cert and listen on port 443. FX.php calls to https still failed > until I shut off cURL: > > $InstanceName-> FMUseCURL(false); > > Using sockets instead of cURL works great. Thanks for helping me work > through this. > > Dale > > > On Apr 4, 2013, at 2:51 PM, Andrew Denman wrote: > > > I haven't set this up before and I don't have access to my test server > at the moment, but since data from the WPE is using Apache/IIS on the > FileMaker server, you'll probably need to set up an SSL cert there. > > > > If you will be the only one hitting the WPE, a self-signed cert should > be sufficient, though you may have to get the client (your public web > server) to accept it. (For *NIX: > http://www.madboa.com/geek/openssl/#verify-system) > > > > Andrew Denman > > > > -----Original Message----- > > From: fx.php_list-bounces@mail.iviking.org [mailto: > fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston > > Sent: Thursday, April 04, 2013 1:05 PM > > To: FX.php Discussion List > > Subject: Re: [FX.php List] SSL and FileMaker Server 11 > > > > Hi Andrew, > > > > Hah, yeah, I did rtfm before I posted, but one thing I overlooked there > was the mention of Server Advanced. Since much of the FX doc seems to be > stuck on FileMaker v7, I'm wondering if FMSA is still required for SSL. I'm > recalling that back in the FM7 days, FMSA was required for merely doing > Custom Web Publishing, but not any more. > > > > My question remains, if I just change the FX parameter $dataURLType from > HTTP to HTTPS, does just magically work? Without an ssl cert? Seems like > there should be more to it than that.... > > > > Thanks, > > Dale > > > > On Apr 4, 2013, at 12:33 PM, Andrew Denman wrote: > > > >> I have not used it, but one of the options when setting up the FX.php > object is 'dataURLType': > >> > >> FX ($dataServer, $dataPort=591, $dataType='', $dataURLType='') ... > >> The final parameter is $dataURLType. This parameter is new as of > version 4.x of FX.php, and is only relevant when connecting to a FileMaker > 7 data source. $dataURLType is an optional parameter with two possible > values (case insensitive): HTTP or HTTPS. When HTTPS isn't specified (or > when not connecting to FileMaker 7), HTTP is assumed. This parameter is > used when connecting to FileMaker 7 Server Advanced via SSL. > >> > >> > >> Andrew Denman > >> > >> From: fx.php_list-bounces@mail.iviking.org > >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale > >> Bengston > >> Sent: Thursday, April 04, 2013 10:19 AM > >> To: FX.php Discussion List > >> Subject: [FX.php List] SSL and FileMaker Server 11 > >> > >> Hi everyone, > >> > >> I hope all is well with you and yours. > >> > >> I have a two-machine setup, where FMS11 and the WPE are on the same > machine (OSX 10.6.8), and the web server (Apache) is on a second machine. I > would like to encrypt the traffic between Apache (using PHP/FX.php) and > FMS11. I understand that I can put the *site* under https and use port 443 > instead of port 80, but my recollection of what happens to the data traffic > to FMS11 is fuzzy. > >> > >> I'm assuming it's still unencrypted, right? Nothing magical about using > FX.php and port 443 on the overall site will make the FMS traffic > encrypted... right? > >> > >> Sorry, thick on the mechanics... been a few years since I set up a > FileMaker/web system. What are my options for encrypting the FileMaker data > traffic? > >> > >> Thanks, > >> Dale > >> > >> PS This has nothing to do with the check-box in the Admin console for > encrypting client-server traffic. Client-server usage has no bearing on my > project. > >> > >> > >> -- > >> Dale Bengston > >> Streamline Studio, LLC > >> www.streamline-studio.com > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130405/dc589581/attachment-0001.html From dale.bengston at gmail.com Fri Apr 5 09:23:47 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Fri Apr 5 08:26:31 2013 Subject: [FX.php List] SSL and FileMaker Server 11 In-Reply-To: References: <2DE9B46B-140B-4B3A-9AC3-E427D4AD9283@gmail.com> <269F4BDD-36D6-4357-9B8B-11AC0112414C@gmail.com> <866BD48F-6EB7-47D1-BDD8-43E921BA3923@gmail.com> Message-ID: <2060E09F-CC09-4BF1-9997-07366858D925@gmail.com> Interesting, Nick. I didn't see that in the doc. How long has that been in FX? Dale On Apr 5, 2013, at 10:00 AM, Nick wrote: > there is a setting on the FX called verifyPeer. you can set it to false instead of turning off curl > > > On Thu, Apr 4, 2013 at 5:56 PM, Dale Bengston wrote: > Hi Andrew, > > I set up a self-signed cert on my testing server and reconfigured Apache to use the cert and listen on port 443. FX.php calls to https still failed until I shut off cURL: > > $InstanceName-> FMUseCURL(false); > > Using sockets instead of cURL works great. Thanks for helping me work through this. > > Dale > > > On Apr 4, 2013, at 2:51 PM, Andrew Denman wrote: > > > I haven't set this up before and I don't have access to my test server at the moment, but since data from the WPE is using Apache/IIS on the FileMaker server, you'll probably need to set up an SSL cert there. > > > > If you will be the only one hitting the WPE, a self-signed cert should be sufficient, though you may have to get the client (your public web server) to accept it. (For *NIX: http://www.madboa.com/geek/openssl/#verify-system) > > > > Andrew Denman > > > > -----Original Message----- > > From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston > > Sent: Thursday, April 04, 2013 1:05 PM > > To: FX.php Discussion List > > Subject: Re: [FX.php List] SSL and FileMaker Server 11 > > > > Hi Andrew, > > > > Hah, yeah, I did rtfm before I posted, but one thing I overlooked there was the mention of Server Advanced. Since much of the FX doc seems to be stuck on FileMaker v7, I'm wondering if FMSA is still required for SSL. I'm recalling that back in the FM7 days, FMSA was required for merely doing Custom Web Publishing, but not any more. > > > > My question remains, if I just change the FX parameter $dataURLType from HTTP to HTTPS, does just magically work? Without an ssl cert? Seems like there should be more to it than that.... > > > > Thanks, > > Dale > > > > On Apr 4, 2013, at 12:33 PM, Andrew Denman wrote: > > > >> I have not used it, but one of the options when setting up the FX.php object is 'dataURLType': > >> > >> FX ($dataServer, $dataPort=591, $dataType='', $dataURLType='') ... > >> The final parameter is $dataURLType. This parameter is new as of version 4.x of FX.php, and is only relevant when connecting to a FileMaker 7 data source. $dataURLType is an optional parameter with two possible values (case insensitive): HTTP or HTTPS. When HTTPS isn't specified (or when not connecting to FileMaker 7), HTTP is assumed. This parameter is used when connecting to FileMaker 7 Server Advanced via SSL. > >> > >> > >> Andrew Denman > >> > >> From: fx.php_list-bounces@mail.iviking.org > >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale > >> Bengston > >> Sent: Thursday, April 04, 2013 10:19 AM > >> To: FX.php Discussion List > >> Subject: [FX.php List] SSL and FileMaker Server 11 > >> > >> Hi everyone, > >> > >> I hope all is well with you and yours. > >> > >> I have a two-machine setup, where FMS11 and the WPE are on the same machine (OSX 10.6.8), and the web server (Apache) is on a second machine. I would like to encrypt the traffic between Apache (using PHP/FX.php) and FMS11. I understand that I can put the *site* under https and use port 443 instead of port 80, but my recollection of what happens to the data traffic to FMS11 is fuzzy. > >> > >> I'm assuming it's still unencrypted, right? Nothing magical about using FX.php and port 443 on the overall site will make the FMS traffic encrypted... right? > >> > >> Sorry, thick on the mechanics... been a few years since I set up a FileMaker/web system. What are my options for encrypting the FileMaker data traffic? > >> > >> Thanks, > >> Dale > >> > >> PS This has nothing to do with the check-box in the Admin console for encrypting client-server traffic. Client-server usage has no bearing on my project. > >> > >> > >> -- > >> Dale Bengston > >> Streamline Studio, LLC > >> www.streamline-studio.com > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130405/92421fe7/attachment.html From tstein at innerfile.com Tue Apr 9 15:40:35 2013 From: tstein at innerfile.com (Ted Stein) Date: Tue Apr 9 14:43:00 2013 Subject: [FX.php List] Get field names for a layout? Message-ID: I am switching to FX.php from the FIleMaker API. I can't seem to figure out how to get the field names that are on a layout. In the FileMaker API you can do this: $fm = new FileMaker($database, $hostname, $username, $password); $layout = $fm->getLayout($layout); $fields = $layout->getFields(); And you would get an array of field names for that layout. How is this done in FX? Thanks in advance, Ted -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130409/084887c8/attachment.html From dale.bengston at gmail.com Tue Apr 9 15:54:59 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Tue Apr 9 14:57:24 2013 Subject: [FX.php List] Get field names for a layout? In-Reply-To: References: Message-ID: Hi Ted, Welcome to FX.php. FX.php does not let you specify which fields to return; it gives you all the fields on a layout. It's great practice to develop specific layouts for specific purposes for use by FX.php in order to clamp down on the amount of data being returned. Disciplined layouts make a huge difference in performance. Hope this helps, Dale -- Dale Bengston Streamline Studio, LLC www.streamline-studio.com On Apr 9, 2013, at 4:40 PM, Ted Stein wrote: > I am switching to FX.php from the FIleMaker API. I can't seem to figure out how to get the field names that are on a layout. > > In the FileMaker API you can do this: > > $fm = new FileMaker($database, $hostname, $username, $password); > $layout = $fm->getLayout($layout); > $fields = $layout->getFields(); > > And you would get an array of field names for that layout. > > How is this done in FX? > > Thanks in advance, > Ted > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130409/f4cb351e/attachment.html From adenman at tmea.org Tue Apr 9 16:06:40 2013 From: adenman at tmea.org (Andrew Denman) Date: Tue Apr 9 15:09:03 2013 Subject: [FX.php List] RE: Get field names for a layout? In-Reply-To: References: Message-ID: Ted, The function you want is FMView() The field data will then be in the 'fields' key of the returned array. You can check out the FXDataFormat and DatasetDiagram docs for how the data is formatted within that array: https://github.com/yodarunamok/fxphp/tree/master/Documentation Andrew Denman From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Ted Stein Sent: Tuesday, April 09, 2013 4:41 PM To: FX.php Discussion List Subject: [FX.php List] Get field names for a layout? I am switching to FX.php from the FIleMaker API. I can't seem to figure out how to get the field names that are on a layout. In the FileMaker API you can do this: $fm = new FileMaker($database, $hostname, $username, $password); $layout = $fm->getLayout($layout); $fields = $layout->getFields(); And you would get an array of field names for that layout. How is this done in FX? Thanks in advance, Ted -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130409/70593078/attachment-0001.html From tstein at innerfile.com Tue Apr 9 16:12:34 2013 From: tstein at innerfile.com (Ted Stein) Date: Tue Apr 9 15:14:59 2013 Subject: [FX.php List] RE: Get field names for a layout? In-Reply-To: Message-ID: Thank you! From: Andrew Denman > Reply-To: "FX.php Discussion List" > Date: Tue, 9 Apr 2013 15:06:40 -0700 To: "FX.php Discussion List" > Subject: [FX.php List] RE: Get field names for a layout? Ted, The function you want is FMView() The field data will then be in the ?fields? key of the returned array. You can check out the FXDataFormat and DatasetDiagram docs for how the data is formatted within that array: https://github.com/yodarunamok/fxphp/tree/master/Documentation Andrew Denman From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Ted Stein Sent: Tuesday, April 09, 2013 4:41 PM To: FX.php Discussion List Subject: [FX.php List] Get field names for a layout? I am switching to FX.php from the FIleMaker API. I can't seem to figure out how to get the field names that are on a layout. In the FileMaker API you can do this: $fm = new FileMaker($database, $hostname, $username, $password); $layout = $fm->getLayout($layout); $fields = $layout->getFields(); And you would get an array of field names for that layout. How is this done in FX? Thanks in advance, Ted -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130409/ee6232c8/attachment.html From dale.bengston at gmail.com Tue Apr 9 16:21:18 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Tue Apr 9 15:23:40 2013 Subject: [FX.php List] Get field names for a layout? In-Reply-To: References: Message-ID: Whoops! Andrew did a better job of reading your post. Sorry for the pollution. Dale On Apr 9, 2013, at 4:54 PM, Dale Bengston wrote: > Hi Ted, > > Welcome to FX.php. > > FX.php does not let you specify which fields to return; it gives you all the fields on a layout. It's great practice to develop specific layouts for specific purposes for use by FX.php in order to clamp down on the amount of data being returned. Disciplined layouts make a huge difference in performance. > > Hope this helps, > Dale > > > -- > Dale Bengston > Streamline Studio, LLC > www.streamline-studio.com > > On Apr 9, 2013, at 4:40 PM, Ted Stein wrote: > >> I am switching to FX.php from the FIleMaker API. I can't seem to figure out how to get the field names that are on a layout. >> >> In the FileMaker API you can do this: >> >> $fm = new FileMaker($database, $hostname, $username, $password); >> $layout = $fm->getLayout($layout); >> $fields = $layout->getFields(); >> >> And you would get an array of field names for that layout. >> >> How is this done in FX? >> >> Thanks in advance, >> Ted >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130409/742eaab7/attachment.html From jsfmp at earthlink.net Tue Apr 9 16:36:17 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Tue Apr 9 15:38:40 2013 Subject: [FX.php List] Get field names for a layout? In-Reply-To: References: Message-ID: <38A5462A-6D3C-4DBC-9C00-C4CAFDA392D1@earthlink.net> Hi Ted Out of curiosity, can I ask what prompted your switch? -Joel On Apr 9, 2013, at 2:40 PM, Ted Stein wrote: > I am switching to FX.php from the FIleMaker API. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130409/7a8a37dc/attachment.html From tstein at innerfile.com Wed Apr 10 08:47:32 2013 From: tstein at innerfile.com (Ted Stein) Date: Wed Apr 10 07:49:56 2013 Subject: [FX.php List] Get field names for a layout? In-Reply-To: <38A5462A-6D3C-4DBC-9C00-C4CAFDA392D1@earthlink.net> Message-ID: Joel, We are switching to FX due to the combination of FileMaker discontinuing the standalone version of the API and FX being open source, with the license allowing us to distribute it. Our source code is GPL and that made FX a better fit. Ted From: Joel Shapiro > Reply-To: "FX.php Discussion List" > Date: Tue, 9 Apr 2013 15:36:17 -0700 To: "FX.php Discussion List" > Subject: Re: [FX.php List] Get field names for a layout? Hi Ted Out of curiosity, can I ask what prompted your switch? -Joel On Apr 9, 2013, at 2:40 PM, Ted Stein wrote: I am switching to FX.php from the FIleMaker API. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130410/9889c2ee/attachment.html From jsfmp at earthlink.net Wed Apr 10 09:21:16 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Wed Apr 10 08:23:38 2013 Subject: [FX.php List] Get field names for a layout? In-Reply-To: References: Message-ID: <0B60C6B4-0747-490E-A262-9DCDD116764C@earthlink.net> Makes sense. Thanks Ted. -Joel On Apr 10, 2013, at 7:47 AM, Ted Stein wrote: > Joel, > > We are switching to FX due to the combination of FileMaker discontinuing the standalone version of the API and FX being open source, with the license allowing us to distribute it. > > Our source code is GPL and that made FX a better fit. > > Ted > > > > From: Joel Shapiro > Reply-To: "FX.php Discussion List" > Date: Tue, 9 Apr 2013 15:36:17 -0700 > To: "FX.php Discussion List" > Subject: Re: [FX.php List] Get field names for a layout? > > Hi Ted > > Out of curiosity, can I ask what prompted your switch? > > -Joel > > > On Apr 9, 2013, at 2:40 PM, Ted Stein wrote: > >> I am switching to FX.php from the FIleMaker API. > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130410/182f756a/attachment-0001.html From tstein at innerfile.com Wed Apr 10 09:26:26 2013 From: tstein at innerfile.com (Ted Stein) Date: Wed Apr 10 08:28:57 2013 Subject: [FX.php List] Script parameter in FX? Message-ID: Hi, Is is possible to pass a script parameter using FX.php? With the FileMaker API, you can do this: $fm = new FileMaker($database, $hostname, $username, $password); $script = $fm->newPerformScriptCommand($layout, $name, $parameter); $script->execute(); Is there a way to pass a parameter to a script in FX? Thanks in advance, Ted -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130410/70a1c8f2/attachment.html From chris at iViking.org Wed Apr 10 10:14:56 2013 From: chris at iViking.org (Chris Hansen) Date: Wed Apr 10 09:17:14 2013 Subject: [FX.php List] Script parameter in FX? In-Reply-To: References: Message-ID: <4C8FC3BA-6E51-4163-89F3-17CD9D70638A@iViking.org> Ted, Sorry, there isn't a function specifically for this yet, but it can be easily done with what's already in place. You just need to do a call to AddDBParam() with one of the following (depending on whether your script is prefind, presort, or default): -script.prefind.param -script.presort.param -script.param So, the call would look something like this: $myFXInstance->AddDBParam('-script.param', 'huzzah'); HTH --Chris On Apr 10, 2013, at 9:26 AM, Ted Stein wrote: > Hi, > > Is is possible to pass a script parameter using FX.php? > > With the FileMaker API, you can do this: > > $fm = new FileMaker($database, $hostname, $username, $password); > $script = $fm->newPerformScriptCommand($layout, $name, $parameter); > $script->execute(); > > Is there a way to pass a parameter to a script in FX? > > Thanks in advance, > Ted > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From tstein at innerfile.com Wed Apr 10 11:45:10 2013 From: tstein at innerfile.com (Ted Stein) Date: Wed Apr 10 10:47:34 2013 Subject: [FX.php List] One more script question... In-Reply-To: <4C8FC3BA-6E51-4163-89F3-17CD9D70638A@iViking.org> Message-ID: Thanks Chris! Another scripts issue: $fx->FMScriptNames(); And there is one script record in the returned $data array: SCRIPT_NAME[0] = '--' The script names in the database are all alpha/underscores. The permissions allow all executable. Any thoughts? Thanks again! On 4/10/13 12:14 PM, "Chris Hansen" wrote: >Ted, > >Sorry, there isn't a function specifically for this yet, but it can be >easily done with what's already in place. You just need to do a call to >AddDBParam() with one of the following (depending on whether your script >is prefind, presort, or default): > >-script.prefind.param >-script.presort.param >-script.param > >So, the call would look something like this: > >$myFXInstance->AddDBParam('-script.param', 'huzzah'); > >HTH > >--Chris > >On Apr 10, 2013, at 9:26 AM, Ted Stein wrote: > >> Hi, >> >> Is is possible to pass a script parameter using FX.php? >> >> With the FileMaker API, you can do this: >> >> $fm = new FileMaker($database, $hostname, $username, $password); >> $script = $fm->newPerformScriptCommand($layout, $name, $parameter); >> $script->execute(); >> >> Is there a way to pass a parameter to a script in FX? >> >> Thanks in advance, >> Ted >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list From chris at iViking.org Fri Apr 12 07:52:53 2013 From: chris at iViking.org (Chris Hansen) Date: Fri Apr 12 06:55:02 2013 Subject: [FX.php List] One more script question... In-Reply-To: References: Message-ID: <8F78A499-6F03-479E-AB60-0FDB923EB9AF@iViking.org> Ted, Sorry for the delay. I'm not sure what might cause that. You might try a test with a full access account and see what's visible there. Has anyone else seen this? --Chris On Apr 10, 2013, at 11:45 AM, Ted Stein wrote: > Thanks Chris! > > Another scripts issue: > > $fx->FMScriptNames(); > > And there is one script record in the returned $data array: > > SCRIPT_NAME[0] = '--' > > The script names in the database are all alpha/underscores. The > permissions allow all executable. > > Any thoughts? > > Thanks again! > > On 4/10/13 12:14 PM, "Chris Hansen" wrote: > >> Ted, >> >> Sorry, there isn't a function specifically for this yet, but it can be >> easily done with what's already in place. You just need to do a call to >> AddDBParam() with one of the following (depending on whether your script >> is prefind, presort, or default): >> >> -script.prefind.param >> -script.presort.param >> -script.param >> >> So, the call would look something like this: >> >> $myFXInstance->AddDBParam('-script.param', 'huzzah'); >> >> HTH >> >> --Chris >> >> On Apr 10, 2013, at 9:26 AM, Ted Stein wrote: >> >>> Hi, >>> >>> Is is possible to pass a script parameter using FX.php? >>> >>> With the FileMaker API, you can do this: >>> >>> $fm = new FileMaker($database, $hostname, $username, $password); >>> $script = $fm->newPerformScriptCommand($layout, $name, $parameter); >>> $script->execute(); >>> >>> Is there a way to pass a parameter to a script in FX? >>> >>> Thanks in advance, >>> Ted >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From bob at patin.com Mon Apr 15 11:07:39 2013 From: bob at patin.com (Bob Patin) Date: Mon Apr 15 10:09:38 2013 Subject: [FX.php List] Setting a global... Message-ID: <41076BD3-614D-46D6-B126-89F849E83CD7@patin.com> I'm trying this, and am getting an errorCode of 0, but my global's not getting set: $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); $q->SetDBData( $dbmain , 'web_search'); $q->SetDBPassword($webpw,$webun); $q->SetFMGlobal ('g_param', $recid); $qResult=$q->FMFindAll(); echo $qResult['errorCode']; What am I missing here? Thanks, Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10 & 11 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker From bob at patin.com Mon Apr 15 11:08:38 2013 From: bob at patin.com (Bob Patin) Date: Mon Apr 15 10:10:35 2013 Subject: [FX.php List] Setting a global... In-Reply-To: <41076BD3-614D-46D6-B126-89F849E83CD7@patin.com> References: <41076BD3-614D-46D6-B126-89F849E83CD7@patin.com> Message-ID: Yes, $recid does contain a value; it fails when I try to put a number in directly as well... On Apr 15, 2013, at 12:07 PM, Bob Patin wrote: > I'm trying this, and am getting an errorCode of 0, but my global's not getting set: > > $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); > $q->SetDBData( $dbmain , 'web_search'); > $q->SetDBPassword($webpw,$webun); > $q->SetFMGlobal ('g_param', $recid); > $qResult=$q->FMFindAll(); > > echo $qResult['errorCode']; > > What am I missing here? > > Thanks, > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10 & 11 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Mon Apr 15 11:11:27 2013 From: bob at patin.com (Bob Patin) Date: Mon Apr 15 10:13:26 2013 Subject: [FX.php List] Setting a global... In-Reply-To: References: <41076BD3-614D-46D6-B126-89F849E83CD7@patin.com> Message-ID: I also tried using this action instead FMFindAny same results... global not getting set... BP On Apr 15, 2013, at 12:08 PM, Bob Patin wrote: > Yes, $recid does contain a value; it fails when I try to put a number in directly as well... > > > On Apr 15, 2013, at 12:07 PM, Bob Patin wrote: > >> I'm trying this, and am getting an errorCode of 0, but my global's not getting set: >> >> $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); >> $q->SetDBData( $dbmain , 'web_search'); >> $q->SetDBPassword($webpw,$webun); >> $q->SetFMGlobal ('g_param', $recid); >> $qResult=$q->FMFindAll(); >> >> echo $qResult['errorCode']; >> >> What am I missing here? >> >> Thanks, >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> FileMaker 9, 10 & 11 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -- >> Twitter: bobpatin >> AIM: longterm1954 >> iChat: bobpatin >> -- >> Expert FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dsomar at gmail.com Mon Apr 15 11:44:54 2013 From: dsomar at gmail.com (Denis Somar) Date: Mon Apr 15 10:47:13 2013 Subject: [FX.php List] Setting a global... In-Reply-To: References: <41076BD3-614D-46D6-B126-89F849E83CD7@patin.com> Message-ID: Shouldn't it be FMEdit and not Find? You can't perform a search on a global On Mon, Apr 15, 2013 at 1:11 PM, Bob Patin wrote: > I also tried using this action instead > > FMFindAny > > same results... global not getting set... > > BP > > On Apr 15, 2013, at 12:08 PM, Bob Patin wrote: > > > Yes, $recid does contain a value; it fails when I try to put a number in > directly as well... > > > > > > On Apr 15, 2013, at 12:07 PM, Bob Patin wrote: > > > >> I'm trying this, and am getting an errorCode of 0, but my global's not > getting set: > >> > >> $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); > >> $q->SetDBData( $dbmain , 'web_search'); > >> $q->SetDBPassword($webpw,$webun); > >> $q->SetFMGlobal ('g_param', $recid); > >> $qResult=$q->FMFindAll(); > >> > >> echo $qResult['errorCode']; > >> > >> What am I missing here? > >> > >> Thanks, > >> > >> Bob Patin > >> Longterm Solutions LLC > >> bob@longtermsolutions.com > >> 615-333-6858 > >> http://www.longtermsolutions.com > >> FileMaker 9, 10 & 11 Certified Developer > >> Member of FileMaker Business Alliance and FileMaker TechNet > >> -- > >> Twitter: bobpatin > >> AIM: longterm1954 > >> iChat: bobpatin > >> -- > >> Expert FileMaker Consulting > >> FileMaker Hosting for all versions of FileMaker > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130415/d4597862/attachment.html From bob at patin.com Mon Apr 15 12:18:03 2013 From: bob at patin.com (Bob Patin) Date: Mon Apr 15 11:20:04 2013 Subject: [FX.php List] Setting a global... In-Reply-To: References: <41076BD3-614D-46D6-B126-89F849E83CD7@patin.com> Message-ID: <277A3D6C-AE10-4D54-A039-C2D9712133C0@patin.com> I'm not setting the global to be searched; FMFindAny is what Chris Hansen recommends that we use for this (in an earlier thread)... Bob Patin bob@patin.com Sent from my iPhone On Apr 15, 2013, at 12:44 PM, Denis Somar wrote: > Shouldn't it be FMEdit and not Find? > > You can't perform a search on a global > > > On Mon, Apr 15, 2013 at 1:11 PM, Bob Patin wrote: >> I also tried using this action instead >> >> FMFindAny >> >> same results... global not getting set... >> >> BP >> >> On Apr 15, 2013, at 12:08 PM, Bob Patin wrote: >> >> > Yes, $recid does contain a value; it fails when I try to put a number in directly as well... >> > >> > >> > On Apr 15, 2013, at 12:07 PM, Bob Patin wrote: >> > >> >> I'm trying this, and am getting an errorCode of 0, but my global's not getting set: >> >> >> >> $q =new FX($serverIP,$webCompanionPort, $dataType, $scheme); >> >> $q->SetDBData( $dbmain , 'web_search'); >> >> $q->SetDBPassword($webpw,$webun); >> >> $q->SetFMGlobal ('g_param', $recid); >> >> $qResult=$q->FMFindAll(); >> >> >> >> echo $qResult['errorCode']; >> >> >> >> What am I missing here? >> >> >> >> Thanks, >> >> >> >> Bob Patin >> >> Longterm Solutions LLC >> >> bob@longtermsolutions.com >> >> 615-333-6858 >> >> http://www.longtermsolutions.com >> >> FileMaker 9, 10 & 11 Certified Developer >> >> Member of FileMaker Business Alliance and FileMaker TechNet >> >> -- >> >> Twitter: bobpatin >> >> AIM: longterm1954 >> >> iChat: bobpatin >> >> -- >> >> Expert FileMaker Consulting >> >> FileMaker Hosting for all versions of FileMaker >> >> >> >> _______________________________________________ >> >> FX.php_List mailing list >> >> FX.php_List@mail.iviking.org >> >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > >> > _______________________________________________ >> > FX.php_List mailing list >> > FX.php_List@mail.iviking.org >> > http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130415/de953b67/attachment-0001.html From tcmeyers at troymeyers.com Mon Apr 15 14:39:09 2013 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Mon Apr 15 13:41:08 2013 Subject: [FX.php List] Setting a global... Message-ID: Bob, I may have missed something here. What's the purpose of setting the global? How do you know that it isn't getting set? Remember (unless I'm all wet) FileMaker globals from web queries only persist during the QUERY. With EACH query, it's as if the web user logs into filemaker (and gets the default global values), makes the query and get results, and logs off. Even if there are multiple queries in the PHP for the page. Am I pointing out the wrong thing? -Troy From bob at patin.com Mon Apr 15 14:42:37 2013 From: bob at patin.com (Bob Patin) Date: Mon Apr 15 13:44:36 2013 Subject: [FX.php List] Setting a global... In-Reply-To: References: Message-ID: <5CBE07D7-1093-4E4E-BF7F-AE524DF8D107@patin.com> On Apr 15, 2013, at 3:39 PM, Troy Meyers wrote: > Bob, > > I may have missed something here. What's the purpose of setting the global? How do you know that it isn't getting set? > > Remember (unless I'm all wet) FileMaker globals from web queries only persist during the QUERY. With EACH query, it's as if the web user logs into filemaker (and gets the default global values), makes the query and get results, and logs off. Even if there are multiple queries in the PHP for the page. > > Am I pointing out the wrong thing? Good point! I was thinking that I'd see it... didn't think it through. I'm trying to write something for a client who has a rather complex set of scripts, to see if we can fire it from the web and return all the data. In order to do it I have to pass a value... I think I'll create a TEMP table and write to a field so that I can see it all happening... Thanks for opening my eyes; I wasn't thinking about the fact that the webuser and I are 2 different users... duh. BP From tcmeyers at troymeyers.com Mon Apr 15 14:53:56 2013 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Mon Apr 15 13:55:54 2013 Subject: [FX.php List] Setting a global... Message-ID: <90D59077.0D49.46D0.9DC6.030028CD372B@111.1168985> Bob, If you mean FileMaker scripts, you can pass in a Script Parameter using FX to be used by the specified script. Would that work for you? -Troy > Good point! I was thinking that I'd see it... didn't think it through. > I'm trying to write something for a client who has a rather complex set > of scripts, to see if we can fire it from the web and return all the > data. In order to do it I have to pass a value... > > I think I'll create a TEMP table and write to a field so that I can see > it all happening... > > Thanks for opening my eyes; I wasn't thinking about the fact that the > webuser and I are 2 different users... duh. > > BP From bob at patin.com Mon Apr 15 15:07:00 2013 From: bob at patin.com (Bob Patin) Date: Mon Apr 15 14:08:59 2013 Subject: [FX.php List] Setting a global... In-Reply-To: <90D59077.0D49.46D0.9DC6.030028CD372B@111.1168985> References: <90D59077.0D49.46D0.9DC6.030028CD372B@111.1168985> Message-ID: That would; I looked for it in the docs but couldn't find it... What's that command? I use the old-style FX, never got around to learning the new syntax. BP On Apr 15, 2013, at 3:53 PM, Troy Meyers wrote: > Bob, > > If you mean FileMaker scripts, you can pass in a Script Parameter using FX to be used by the specified script. Would that work for you? > > -Troy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130415/2146a078/attachment.html From tcmeyers at troymeyers.com Mon Apr 15 15:23:08 2013 From: tcmeyers at troymeyers.com (Troy Meyers) Date: Mon Apr 15 14:25:06 2013 Subject: [FX.php List] Setting a global... Message-ID: Bob, I have a feeling I use old-style too. Here's an actual snippet of how I've used it in a PayPal IPN handler, omitting all the normal stuff which leads up to it: // Post-command script $ppw_add->PerformFMScript('IPN post-command'); $ppw_add->AddDBParam('-script.param', $_POST['txn_id']); // Just pass the transaction ID // Make the record $ppw_result = $ppw_add->FMNew(); -Troy > That would; I looked for it in the docs but couldn't find it... > > What's that command? I use the old-style FX, never got around to > learning the new syntax. > > BP From whatdoyouwant at gmail.com Fri Apr 19 10:51:51 2013 From: whatdoyouwant at gmail.com (Nick) Date: Fri Apr 19 09:53:33 2013 Subject: [FX.php List] SSL and FileMaker Server 11 In-Reply-To: <2060E09F-CC09-4BF1-9997-07366858D925@gmail.com> References: <2DE9B46B-140B-4B3A-9AC3-E427D4AD9283@gmail.com> <269F4BDD-36D6-4357-9B8B-11AC0112414C@gmail.com> <866BD48F-6EB7-47D1-BDD8-43E921BA3923@gmail.com> <2060E09F-CC09-4BF1-9997-07366858D925@gmail.com> Message-ID: almost a year - https://github.com/yodarunamok/fxphp On Fri, Apr 5, 2013 at 10:23 AM, Dale Bengston wrote: > Interesting, Nick. I didn't see that in the doc. How long has that been in > FX? > Dale > > > On Apr 5, 2013, at 10:00 AM, Nick wrote: > > there is a setting on the FX called verifyPeer. you can set it to false > instead of turning off curl > > > On Thu, Apr 4, 2013 at 5:56 PM, Dale Bengston wrote: > >> Hi Andrew, >> >> I set up a self-signed cert on my testing server and reconfigured Apache >> to use the cert and listen on port 443. FX.php calls to https still failed >> until I shut off cURL: >> >> $InstanceName-> FMUseCURL(false); >> >> Using sockets instead of cURL works great. Thanks for helping me work >> through this. >> >> Dale >> >> >> On Apr 4, 2013, at 2:51 PM, Andrew Denman wrote: >> >> > I haven't set this up before and I don't have access to my test server >> at the moment, but since data from the WPE is using Apache/IIS on the >> FileMaker server, you'll probably need to set up an SSL cert there. >> > >> > If you will be the only one hitting the WPE, a self-signed cert should >> be sufficient, though you may have to get the client (your public web >> server) to accept it. (For *NIX: >> http://www.madboa.com/geek/openssl/#verify-system) >> > >> > Andrew Denman >> > >> > -----Original Message----- >> > From: fx.php_list-bounces@mail.iviking.org [mailto: >> fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale Bengston >> > Sent: Thursday, April 04, 2013 1:05 PM >> > To: FX.php Discussion List >> > Subject: Re: [FX.php List] SSL and FileMaker Server 11 >> > >> > Hi Andrew, >> > >> > Hah, yeah, I did rtfm before I posted, but one thing I overlooked there >> was the mention of Server Advanced. Since much of the FX doc seems to be >> stuck on FileMaker v7, I'm wondering if FMSA is still required for SSL. I'm >> recalling that back in the FM7 days, FMSA was required for merely doing >> Custom Web Publishing, but not any more. >> > >> > My question remains, if I just change the FX parameter $dataURLType >> from HTTP to HTTPS, does just magically work? Without an ssl cert? Seems >> like there should be more to it than that.... >> > >> > Thanks, >> > Dale >> > >> > On Apr 4, 2013, at 12:33 PM, Andrew Denman wrote: >> > >> >> I have not used it, but one of the options when setting up the FX.php >> object is 'dataURLType': >> >> >> >> FX ($dataServer, $dataPort=591, $dataType='', $dataURLType='') ... >> >> The final parameter is $dataURLType. This parameter is new as of >> version 4.x of FX.php, and is only relevant when connecting to a FileMaker >> 7 data source. $dataURLType is an optional parameter with two possible >> values (case insensitive): HTTP or HTTPS. When HTTPS isn't specified (or >> when not connecting to FileMaker 7), HTTP is assumed. This parameter is >> used when connecting to FileMaker 7 Server Advanced via SSL. >> >> >> >> >> >> Andrew Denman >> >> >> >> From: fx.php_list-bounces@mail.iviking.org >> >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of Dale >> >> Bengston >> >> Sent: Thursday, April 04, 2013 10:19 AM >> >> To: FX.php Discussion List >> >> Subject: [FX.php List] SSL and FileMaker Server 11 >> >> >> >> Hi everyone, >> >> >> >> I hope all is well with you and yours. >> >> >> >> I have a two-machine setup, where FMS11 and the WPE are on the same >> machine (OSX 10.6.8), and the web server (Apache) is on a second machine. I >> would like to encrypt the traffic between Apache (using PHP/FX.php) and >> FMS11. I understand that I can put the *site* under https and use port 443 >> instead of port 80, but my recollection of what happens to the data traffic >> to FMS11 is fuzzy. >> >> >> >> I'm assuming it's still unencrypted, right? Nothing magical about >> using FX.php and port 443 on the overall site will make the FMS traffic >> encrypted... right? >> >> >> >> Sorry, thick on the mechanics... been a few years since I set up a >> FileMaker/web system. What are my options for encrypting the FileMaker data >> traffic? >> >> >> >> Thanks, >> >> Dale >> >> >> >> PS This has nothing to do with the check-box in the Admin console for >> encrypting client-server traffic. Client-server usage has no bearing on my >> project. >> >> >> >> >> >> -- >> >> Dale Bengston >> >> Streamline Studio, LLC >> >> www.streamline-studio.com >> >> >> >> _______________________________________________ >> >> FX.php_List mailing list >> >> FX.php_List@mail.iviking.org >> >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > >> > _______________________________________________ >> > FX.php_List mailing list >> > FX.php_List@mail.iviking.org >> > http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ >> > FX.php_List mailing list >> > FX.php_List@mail.iviking.org >> > http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130419/e888a785/attachment-0001.html From jschwartz at exit445.com Mon Apr 22 11:31:10 2013 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Mon Apr 22 10:32:38 2013 Subject: [FX.php List] Approach to replacing a large set of records from one FMP file to another Message-ID: Hi folks, I currently have a FMP API web publishing system the pulls records from a master FMP db. Up until now, I have used native scripted FileMaker imports (FMP to FMP) to move records between the dbs. For a variety of reasons, I would like to use php to perform the imports. My first attempt at the task was to execute the following steps. In this case, the task is to replace all the web publishing records in the remote system with records from the master (master --> remote). In this case, the data set is 800 records but I have other files which contains 30,000 records. 1) Find all current records in remote via PHP 2) Create a PHP array containing all RecIDs (for later deletion) 3) Perform PHP find on master 4) Execute PHP loop to add records one at a time to remote (remote now contains both old and new records) 5) Loop through RecID array and delete old remote records one at a time, using PHP. When complete, the remote db would theoretically contain only the new records. In reality, the process is failing during the Delete loop, producing an HTTP 500 error with message: The FastCGI process exceeded configured activity timeout after about 60 seconds. Apparently, this is different than the regular PHP max_execution_time, which is already set for 300 seconds. Environment is Windows Server 2008 R2. My questions: Is this the right way to deal with mass addition and deletion of records between db's using PHP? I can already see that failure creates a mess...which is now exposed to production. Perhaps a different method would ensure transactional integrity. Does anyone know how to solve this FastCGI error? Thanks! Jonathan Schwartz Exit 445 Group jonathan@exit445.com www.exit445.com cell: 415-370-5011 Jonathan Schwartz jschwartz@exit445.com From steve at bluecrocodile.co.nz Mon Apr 22 11:53:08 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Mon Apr 22 10:54:41 2013 Subject: [FX.php List] Approach to replacing a large set of records from one FMP file to another In-Reply-To: References: Message-ID: Howdy I'll tackle what should be the easy part > Does anyone know how to solve this FastCGI error? You've got two options that spring to mind here run your script from the command line - if FastCGI is involved I presume that you're running this through a browser - if you run the same script form the command line you will avoid this issue add set_time_limit(10) to any loops you have running. This should reset any PHP-related timeouts to 0 every time it's called, and allow (another) 10 secs (insert any number you wish) for the script to run after it's been called. As to if this is a good way to do it, perhaps to understand that better, what was wrong with FM - FM import?? and have you considered any of the proliferation of FM sync tools which are (mostly) designed for iOS, but could be applied to this issue?? Cheers Steve > Hi folks, > > I currently have a FMP API web publishing system the pulls records from a master FMP db. Up until now, I have used native scripted FileMaker imports (FMP to FMP) to move records between the dbs. For a variety of reasons, I would like to use php to perform the imports. My first attempt at the task was to execute the following steps. In this case, the task is to replace all the web publishing records in the remote system with records from the master (master --> remote). In this case, the data set is 800 records but I have other files which contains 30,000 records. > > 1) Find all current records in remote via PHP > 2) Create a PHP array containing all RecIDs (for later deletion) > 3) Perform PHP find on master > 4) Execute PHP loop to add records one at a time to remote (remote now contains both old and new records) > 5) Loop through RecID array and delete old remote records one at a time, using PHP. > > When complete, the remote db would theoretically contain only the new records. > > In reality, the process is failing during the Delete loop, producing an HTTP 500 error with message: The FastCGI process exceeded configured activity timeout after about 60 seconds. Apparently, this is different than the regular PHP max_execution_time, which is already set for 300 seconds. Environment is Windows Server 2008 R2. > > My questions: > > Is this the right way to deal with mass addition and deletion of records between db's using PHP? I can already see that failure creates a mess...which is now exposed to production. Perhaps a different method would ensure transactional integrity. > > Does anyone know how to solve this FastCGI error? > > > Thanks! > > > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > www.exit445.com > cell: 415-370-5011 > > Jonathan Schwartz > jschwartz@exit445.com > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130422/b6df9619/attachment.html From bob at patin.com Mon Apr 22 14:48:20 2013 From: bob at patin.com (Bob Patin) Date: Mon Apr 22 13:49:50 2013 Subject: [FX.php List] Approach to replacing a large set of records from one FMP file to another In-Reply-To: References: Message-ID: <4117EFD6-785D-4F7B-91EE-B941A96B7670@patin.com> Steve touched on what I was thinking; rather than try to re-invent what other guys have sweated over, I would probably advise my client to look at something like SyncDeK or the 360 sync solution, which is perfect for certain situations. However, SyncDeK is a sync tool, not so much an import tool... not sure how I'd use it for what you're needing... if you delete in one DB it's going to do the same delete in the other, so it's probably not going to do what you need--although I bet it'd do it if I knew how to configure it for htat sort of thing. It's a pretty powerful system. BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10 & 11 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Apr 22, 2013, at 12:31 PM, Jonathan Schwartz wrote: > Hi folks, > > I currently have a FMP API web publishing system the pulls records from a master FMP db. Up until now, I have used native scripted FileMaker imports (FMP to FMP) to move records between the dbs. For a variety of reasons, I would like to use php to perform the imports. My first attempt at the task was to execute the following steps. In this case, the task is to replace all the web publishing records in the remote system with records from the master (master --> remote). In this case, the data set is 800 records but I have other files which contains 30,000 records. > > 1) Find all current records in remote via PHP > 2) Create a PHP array containing all RecIDs (for later deletion) > 3) Perform PHP find on master > 4) Execute PHP loop to add records one at a time to remote (remote now contains both old and new records) > 5) Loop through RecID array and delete old remote records one at a time, using PHP. > > When complete, the remote db would theoretically contain only the new records. > > In reality, the process is failing during the Delete loop, producing an HTTP 500 error with message: The FastCGI process exceeded configured activity timeout after about 60 seconds. Apparently, this is different than the regular PHP max_execution_time, which is already set for 300 seconds. Environment is Windows Server 2008 R2. > > My questions: > > Is this the right way to deal with mass addition and deletion of records between db's using PHP? I can already see that failure creates a mess...which is now exposed to production. Perhaps a different method would ensure transactional integrity. > > Does anyone know how to solve this FastCGI error? > > > Thanks! > > > Jonathan Schwartz > Exit 445 Group > jonathan@exit445.com > www.exit445.com > cell: 415-370-5011 > > Jonathan Schwartz > jschwartz@exit445.com > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dealtek at gmail.com Thu Apr 25 09:47:37 2013 From: dealtek at gmail.com (dealTek) Date: Thu Apr 25 08:48:59 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC Message-ID: <35024536-735E-4E6E-86D6-3DDD06D3F795@gmail.com> Hi all, I am looking for a way to do CWP web pages with php and connect not with filemaker php api which seems to use XML which appears to be slower but maybe with ODBC which I hear might be a faster transfer rate.... 1 - Do you know if using ODBC is possibly faster than filemaker php api for faster web data transfers? 2 - Can I accomplish this with just the supplied client odbc code or would it be better to use fx.php? -- Thanks, Dave - DealTek dealtek@gmail.com [db-3] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130425/33d9627f/attachment.html From glyn.devine at quickseries.com Thu Apr 25 10:28:52 2013 From: glyn.devine at quickseries.com (Glyn Devine) Date: Thu Apr 25 09:30:13 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: <35024536-735E-4E6E-86D6-3DDD06D3F795@gmail.com> Message-ID: ODBC will definitely be faster than FX. FX is dead slow when writing records. You are generally talking multiple seconds per record created. To use ODBC to write to filemaker in PHP, you will need to install the FileMaker ODBC driver on the same machine PHP is running on. The driver that comes with FileMaker 11 will work fine. I do not recommend the FileMaker-created ODBC drivers from FileMaker discs prior to version 11 ? these also have some pretty terrible speed problems. Good luck! On 13-04-25 11:47 AM, "dealTek" wrote: > Hi all, > > I am looking for a way to do CWP web pages with php and connect not with > filemaker php api which seems to use XML which appears to be slower but maybe > with ODBC which I hear might be a faster transfer rate.... > > 1 - Do you know if using ODBC is possibly faster than filemaker php api for > faster web data transfers? > 2 - Can I accomplish this with just the supplied client odbc code or would it > be better to use fx.php? > > -- > Thanks, > Dave - DealTek > dealtek@gmail.com > [db-3] > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130425/ff8b29c6/attachment.html From csinfo at criticalsolution.com Thu Apr 25 10:55:17 2013 From: csinfo at criticalsolution.com (John Funk) Date: Thu Apr 25 09:58:56 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: Message-ID: When creating records with Fx you have to be sure and use an optimized layout created just for that purpose. Do not use fields that you do not need. With FX all information is inserted/extracted using the Fmresult xml file and that file is created by what fields are on the layout you are using in the query. I have created millions of records with a layout that has 3 of 34 fields and it was very fast. Another hint is to not have related or portals on the layout, if you need to create records in a related field of to a layout for that table using a key. The PHP code seems clunky but I found it to be fast. I also have seen ODBC queries take a long time especially when modifying a found set. The best thing about FX is NO DRIVERS are required so it is more flexible and you can actually use PHP command lines in DOS or MacOS bash commands. John From: Glyn Devine Reply-To: "FX.php Discussion List" Date: Thursday, April 25, 2013 11:28 AM To: "FX.php Discussion List" Subject: Re: [FX.php List] Connecting PHP Web Pages with ODBC Re: [FX.php List] Connecting PHP Web Pages with ODBC ODBC will definitely be faster than FX. FX is dead slow when writing records. You are generally talking multiple seconds per record created. To use ODBC to write to filemaker in PHP, you will need to install the FileMaker ODBC driver on the same machine PHP is running on. The driver that comes with FileMaker 11 will work fine. I do not recommend the FileMaker-created ODBC drivers from FileMaker discs prior to version 11 ? these also have some pretty terrible speed problems. Good luck! On 13-04-25 11:47 AM, "dealTek" wrote: > Hi all, > > I am looking for a way to do CWP web pages with php and connect not with > filemaker php api which seems to use XML which appears to be slower but maybe > with ODBC which I hear might be a faster transfer rate.... > > 1 - Do you know if using ODBC is possibly faster than filemaker php api for > faster web data transfers? > 2 - Can I accomplish this with just the supplied client odbc code or would it > be better to use fx.php? > > -- > Thanks, > Dave - DealTek > dealtek@gmail.com > [db-3] > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130425/49437b4b/attachment-0001.html From dale.bengston at gmail.com Thu Apr 25 11:51:55 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Thu Apr 25 10:53:22 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: References: Message-ID: <3B8355E3-0262-45A6-9780-1013DBB8D921@gmail.com> I second John here. Good layout discipline makes all the difference. Avoid calc fields, summary fields, related fields and portals where possible. And always design specific layouts for use by FX.php, separate from client-server layouts and distinct for each purpose of your web site. Forty layouts that do one thing well are better than five layouts that get used many instances. Dale On Apr 25, 2013, at 11:55 AM, John Funk wrote: > When creating records with Fx you have to be sure and use an optimized layout created just for that purpose. Do not use fields that you do not need. With FX all information is inserted/extracted using the Fmresult xml file and that file is created by what fields are on the layout you are using in the query. > I have created millions of records with a layout that has 3 of 34 fields and it was very fast. Another hint is to not have related or portals on the layout, if you need to create records in a related field of to a layout for that table using a key. The PHP code seems clunky but I found it to be fast. > I also have seen ODBC queries take a long time especially when modifying a found set. > > The best thing about FX is NO DRIVERS are required so it is more flexible and you can actually use PHP command lines in DOS or MacOS bash commands. > John > > From: Glyn Devine > Reply-To: "FX.php Discussion List" > Date: Thursday, April 25, 2013 11:28 AM > To: "FX.php Discussion List" > Subject: Re: [FX.php List] Connecting PHP Web Pages with ODBC > > ODBC will definitely be faster than FX. FX is dead slow when writing records. You are generally talking multiple seconds per record created. > > To use ODBC to write to filemaker in PHP, you will need to install the FileMaker ODBC driver on the same machine PHP is running on. The driver that comes with FileMaker 11 will work fine. I do not recommend the FileMaker-created ODBC drivers from FileMaker discs prior to version 11 ? these also have some pretty terrible speed problems. > > Good luck! > > > > On 13-04-25 11:47 AM, "dealTek" wrote: > >> Hi all, >> >> I am looking for a way to do CWP web pages with php and connect not with filemaker php api which seems to use XML which appears to be slower but maybe with ODBC which I hear might be a faster transfer rate.... >> >> 1 - Do you know if using ODBC is possibly faster than filemaker php api for faster web data transfers? >> 2 - Can I accomplish this with just the supplied client odbc code or would it be better to use fx.php? >> >> -- >> Thanks, >> Dave - DealTek >> dealtek@gmail.com >> [db-3] >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130425/632404b0/attachment.html From dealtek at gmail.com Thu Apr 25 12:14:45 2013 From: dealtek at gmail.com (dealTek) Date: Thu Apr 25 11:16:06 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: References: Message-ID: On Apr 25, 2013, at 9:55 AM, John Funk wrote: > When creating records with Fx you have to be sure and use an optimized layout created just for that purpose. Do not use fields that you do not need. With FX all information is inserted/extracted using the Fmresult xml file and that file is created by what fields are on the layout you are using in the query. > I have created millions of records with a layout that has 3 of 34 fields and it was very fast. Another hint is to not have related or portals on the layout, if you need to create records in a related field of to a layout for that table using a key. The PHP code seems clunky but I found it to be fast. > I also have seen ODBC queries take a long time especially when modifying a found set. > > The best thing about FX is NO DRIVERS are required so it is more flexible and you can actually use PHP command lines in DOS or MacOS bash commands. > John > > From: Glyn Devine > Reply-To: "FX.php Discussion List" > Date: Thursday, April 25, 2013 11:28 AM > To: "FX.php Discussion List" > Subject: Re: [FX.php List] Connecting PHP Web Pages with ODBC > > ODBC will definitely be faster than FX. FX is dead slow when writing records. You are generally talking multiple seconds per record created. > > To use ODBC to write to filemaker in PHP, you will need to install the FileMaker ODBC driver on the same machine PHP is running on. The driver that comes with FileMaker 11 will work fine. I do not recommend the FileMaker-created ODBC drivers from FileMaker discs prior to version 11 ? these also have some pretty terrible speed problems. > > Good luck! Hi John Glyn & Dale, Thanks for all the helpful tips. The thing I am still in the dark about is how to write the php to access the filemaker database with ODBC? So, as a test I have succesfully created an odbc connection to a (localhost) filemaker database (I also will use fmserver soon). Now I would like to know a way - using PHP to setup a connection to the filemaker database and perform queries from a local webpage. Here's some connection info... ip = xxx.xxx.xxx.??? - any special port USER DSN = test1 database = MyDB I just don't know how to write the ODBC connection code in PHP? Any ideas? -- Thanks, Dave - DealTek dealtek@gmail.com [db-3] From csinfo at criticalsolution.com Thu Apr 25 12:46:45 2013 From: csinfo at criticalsolution.com (John Funk) Date: Thu Apr 25 11:50:22 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: Message-ID: Try this for starters, I use this for reference. "; //set the sql statement $rs=odbc_exec($conn,$sql); //call the connection with the statement if (!$rs) {exit("Error in SQL");} //exit if thesql is bad // get the field data from the result while (odbc_fetch_row($rs)) { $field_one=odbc_result($rs,""); $field_two=odbc_result($rs,""); echo $field_one." ". $field_two ."\n"; // show the data on your web page } odbc_close($conn); ?> > > >Hi John Glyn & Dale, > >Thanks for all the helpful tips. > >The thing I am still in the dark about is how to write the php to access >the filemaker database with ODBC? > >So, as a test I have succesfully created an odbc connection to a >(localhost) filemaker database (I also will use fmserver soon). > >Now I would like to know a way - using PHP to setup a connection to the >filemaker database and perform queries from a local webpage. > >Here's some connection info... > >ip = xxx.xxx.xxx.??? - any special port >USER DSN = test1 >database = MyDB > >I just don't know how to write the ODBC connection code in PHP? > >Any ideas? > > > >-- >Thanks, >Dave - DealTek >dealtek@gmail.com >[db-3] > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list From dealtek at gmail.com Thu Apr 25 12:51:37 2013 From: dealtek at gmail.com (dealTek) Date: Thu Apr 25 11:52:56 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: References: Message-ID: <2B9ECC25-438C-4B06-90C1-F7A723BB2E72@gmail.com> On Apr 25, 2013, at 11:46 AM, John Funk wrote: > Try this for starters, I use this for reference. > Thanks so much John - MUCH APPRECIATED!!!!! > $conn=odbc_connect('dbname','username','pass'); //set the parameters for > the connection > if (!$conn) > {exit("Connection Failed: " . $conn);} //exit if the connection fails > > > $sql=""; //set the sql statement > > $rs=odbc_exec($conn,$sql); //call the connection with the statement > if (!$rs) > {exit("Error in SQL");} //exit if thesql is bad > > // get the field data from the result > while (odbc_fetch_row($rs)) > { > $field_one=odbc_result($rs,""); > $field_two=odbc_result($rs,""); > > echo $field_one." ". $field_two ."\n"; // show the data on your web page > } > > odbc_close($conn); > ?> > > > >> >> >> Hi John Glyn & Dale, >> >> Thanks for all the helpful tips. >> >> The thing I am still in the dark about is how to write the php to access >> the filemaker database with ODBC? >> >> So, as a test I have succesfully created an odbc connection to a >> (localhost) filemaker database (I also will use fmserver soon). >> >> Now I would like to know a way - using PHP to setup a connection to the >> filemaker database and perform queries from a local webpage. >> >> Here's some connection info... >> >> ip = xxx.xxx.xxx.??? - any special port >> USER DSN = test1 >> database = MyDB >> >> I just don't know how to write the ODBC connection code in PHP? >> >> Any ideas? >> >> >> >> -- >> Thanks, >> Dave - DealTek >> dealtek@gmail.com >> [db-3] >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -- Thanks, Dave - DealTek dealtek@gmail.com [db-3] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130425/b5b76f58/attachment.html From glyn.devine at quickseries.com Thu Apr 25 13:08:09 2013 From: glyn.devine at quickseries.com (Glyn Devine) Date: Thu Apr 25 12:09:30 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: Message-ID: This is more of a PHP question than an FX question but I'll try. First of all, you installed the FM ODBC driver and set up a DSN right? (System level DSN if you want it to be accessible to all users on the machine, User level DSN if you want it accessible only when logged into your account) Once you've done that, running queries is easy. Let's say you've got a table called Products and you want to print a listing of the field ProductCode it'd go something like this: $connect = odbc_connect("Your DSN Name", "filemaker user", "filemaker password"); //Establish a connection $query = "SELECT ProductCode FROM Products"; // Your query $result = odbc_exec($connect, $query); // Execute query //Loop through results while(odbc_fetch_row($result)){ $productcode = odbc_result($result, 1); print("$productcode\n"); } Odbc_close($connect); Also, regarding FX's speed... In all my experiments, I have never gotten acceptable speed out of it when writing. I've done all the 'best practice' stuff, made special layouts, severed relationships, removed calculations, everything. My FMS is running on a 2.8ghz Xeon Quad Core with 16GB of RAM and it still took 3-7 seconds to create each record no matter what I tried. Mine is just one story, Dale has obviously had a different experience, but that was mine. Never could figure out how to speed it up... On 13-04-25 2:14 PM, "dealTek" wrote: > > On Apr 25, 2013, at 9:55 AM, John Funk wrote: > >> When creating records with Fx you have to be sure and use an optimized >> layout created just for that purpose. Do not use fields that you do not need. >> With FX all information is inserted/extracted using the Fmresult xml file and >> that file is created by what fields are on the layout you are using in the >> query. >> I have created millions of records with a layout that has 3 of 34 fields and >> it was very fast. Another hint is to not have related or portals on the >> layout, if you need to create records in a related field of to a layout for >> that table using a key. The PHP code seems clunky but I found it to be fast. >> I also have seen ODBC queries take a long time especially when modifying a >> found set. >> >> The best thing about FX is NO DRIVERS are required so it is more flexible and >> you can actually use PHP command lines in DOS or MacOS bash commands. >> John >> >> From: Glyn Devine >> Reply-To: "FX.php Discussion List" >> Date: Thursday, April 25, 2013 11:28 AM >> To: "FX.php Discussion List" >> Subject: Re: [FX.php List] Connecting PHP Web Pages with ODBC >> >> ODBC will definitely be faster than FX. FX is dead slow when writing records. >> You are generally talking multiple seconds per record created. >> >> To use ODBC to write to filemaker in PHP, you will need to install the >> FileMaker ODBC driver on the same machine PHP is running on. The driver that >> comes with FileMaker 11 will work fine. I do not recommend the >> FileMaker-created ODBC drivers from FileMaker discs prior to version 11 ? >> these also have some pretty terrible speed problems. >> >> Good luck! > > > Hi John Glyn & Dale, > > Thanks for all the helpful tips. > > The thing I am still in the dark about is how to write the php to access the > filemaker database with ODBC? > > So, as a test I have succesfully created an odbc connection to a (localhost) > filemaker database (I also will use fmserver soon). > > Now I would like to know a way - using PHP to setup a connection to the > filemaker database and perform queries from a local webpage. > > Here's some connection info... > > ip = xxx.xxx.xxx.??? - any special port > USER DSN = test1 > database = MyDB > > I just don't know how to write the ODBC connection code in PHP? > > Any ideas? > > > > -- > Thanks, > Dave - DealTek > dealtek@gmail.com > [db-3] > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ernest.cunningham at gmail.com Thu Apr 25 13:08:16 2013 From: ernest.cunningham at gmail.com (Ernest Cunningham) Date: Thu Apr 25 12:09:40 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: References: Message-ID: <73F067CF-409E-4D79-9857-5B6D15F5A11B@gmail.com> I have not done any FileMaker work in a while (since FMP9) but I still read this mailing list. Anyway, this shocked me. I have never had record creation via FX.php take multiple seconds per record created. Through both good database design and good layout design it should never take that long. Are the layouts you are using optimised for the task only? Only the fields you need and no related data should be on screen. Ernest On 26/04/2013, at 4:28 AM, Glyn Devine wrote: > ODBC will definitely be faster than FX. FX is dead slow when writing records. You are generally talking multiple seconds per record created. > > To use ODBC to write to filemaker in PHP, you will need to install the FileMaker ODBC driver on the same machine PHP is running on. The driver that comes with FileMaker 11 will work fine. I do not recommend the FileMaker-created ODBC drivers from FileMaker discs prior to version 11 ? these also have some pretty terrible speed problems. > > Good luck! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130426/97dba119/attachment.html From dealtek at gmail.com Thu Apr 25 13:32:32 2013 From: dealtek at gmail.com (dealTek) Date: Thu Apr 25 12:33:52 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: References: Message-ID: <71EDA81F-5E89-445F-8DC3-CF2704577C6B@gmail.com> Hi John and all, Thanks for all the help.... using 1.8.3 mac now FM Pro advanced 11 with updated odbc from FM - file is open and ODBC is on for this user (I will move to fmserver soon) ODBC Manager will not store SYSTEM DSN - hmmm maybe permissions issue? how do I fix this? Glyn mentioned to use System level DSN so I'll try that when I fix permissions? so I'm using USER DSN - which does pass tests odbc datasource name = myuserdsn fm database = test1 table = mytable (with 2 fields = first and last) the error says: Warning: odbc_connect() [function.odbc-connect]: SQL error: [iODBC][Driver Manager]Data source name not found and no default driver specified. Driver could not be loaded, SQL state IM002 in SQLConnect in /Users/revdave/Sites/multisite-general/odbc1/z1.php on line 34 Connection Failed: On Apr 25, 2013, at 11:46 AM, John Funk wrote: > Try this for starters, I use this for reference. > > $conn=odbc_connect('dbname','username','pass'); //set the parameters for > the connection > if (!$conn) > {exit("Connection Failed: " . $conn);} //exit if the connection fails > > > $sql=""; //set the sql statement > > $rs=odbc_exec($conn,$sql); //call the connection with the statement > if (!$rs) > {exit("Error in SQL");} //exit if thesql is bad > > // get the field data from the result > while (odbc_fetch_row($rs)) > { > $field_one=odbc_result($rs,""); > $field_two=odbc_result($rs,""); > > echo $field_one." ". $field_two ."\n"; // show the data on your web page > } > > odbc_close($conn); > ?> > > > >> >> >> Hi John Glyn & Dale, >> >> Thanks for all the helpful tips. >> >> The thing I am still in the dark about is how to write the php to access >> the filemaker database with ODBC? >> >> So, as a test I have succesfully created an odbc connection to a >> (localhost) filemaker database (I also will use fmserver soon). >> >> Now I would like to know a way - using PHP to setup a connection to the >> filemaker database and perform queries from a local webpage. >> >> Here's some connection info... >> >> ip = xxx.xxx.xxx.??? - any special port >> USER DSN = test1 >> database = MyDB >> >> I just don't know how to write the ODBC connection code in PHP? >> >> Any ideas? >> >> >> >> -- >> Thanks, >> Dave - DealTek >> dealtek@gmail.com >> [db-3] >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -- Thanks, Dave - DealTek dealtek@gmail.com [db-3] From csinfo at criticalsolution.com Thu Apr 25 14:58:21 2013 From: csinfo at criticalsolution.com (John Funk) Date: Thu Apr 25 14:02:00 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: <71EDA81F-5E89-445F-8DC3-CF2704577C6B@gmail.com> Message-ID: Dave, I will have to dig a bit deeper?.maybe another has some help?. On 4/25/13 2:32 PM, "dealTek" wrote: >Hi John and all, > >Thanks for all the help.... > > >using 1.8.3 mac > >now FM Pro advanced 11 with updated odbc from FM - file is open and ODBC >is on for this user (I will move to fmserver soon) > >ODBC Manager will not store SYSTEM DSN - hmmm maybe permissions issue? >how do I fix this? > >Glyn mentioned to use System level DSN so I'll try that when I fix >permissions? > >so I'm using USER DSN - which does pass tests > > >odbc datasource name = myuserdsn >fm database = test1 >table = mytable > >(with 2 fields = first and last) > > >the error says: > >Warning: odbc_connect() [function.odbc-connect]: SQL error: >[iODBC][Driver Manager]Data source name not found and no default driver >specified. Driver could not be loaded, SQL state IM002 in SQLConnect in >/Users/revdave/Sites/multisite-general/odbc1/z1.php on line 34 >Connection Failed: > > > > > > > > >ini_set('display_errors', 1); >error_reporting(E_ALL | E_STRICT); >error_reporting(E_ERROR | E_WARNING | E_PARSE); > > > > >$dbname = 'test1'; >$username = 'web'; >$pass = 'web'; > > >$conn=odbc_connect('$dbname','$username','$pass'); //set the parameters >for the connection >if (!$conn) > {exit("Connection Failed: " . $conn);} //exit if the connection fails > > >$sql="select * from mytable"; //set the sql statement > >$rs=odbc_exec($conn,$sql); //call the connection with the statement >if (!$rs) > {exit("Error in SQL");} //exit if thesql is bad > >// get the field data from the result >while (odbc_fetch_row($rs)) >{ > $field_one=odbc_result($rs,"first"); > $field_two=odbc_result($rs,"last"); > >echo $field_one." ". $field_two ."\n"; // show the data on your web page >} > >odbc_close($conn); >?> > > > > > >On Apr 25, 2013, at 11:46 AM, John Funk >wrote: > >> Try this for starters, I use this for reference. >> >> > $conn=odbc_connect('dbname','username','pass'); //set the parameters for >> the connection >> if (!$conn) >> {exit("Connection Failed: " . $conn);} //exit if the connection fails >> >> >> $sql=""; //set the sql statement >> >> $rs=odbc_exec($conn,$sql); //call the connection with the statement >> if (!$rs) >> {exit("Error in SQL");} //exit if thesql is bad >> >> // get the field data from the result >> while (odbc_fetch_row($rs)) >> { >> $field_one=odbc_result($rs,""); >> $field_two=odbc_result($rs,""); >> >> echo $field_one." ". $field_two ."\n"; // show the data on your web >>page >> } >> >> odbc_close($conn); >> ?> >> >> >> >>> >>> >>> Hi John Glyn & Dale, >>> >>> Thanks for all the helpful tips. >>> >>> The thing I am still in the dark about is how to write the php to >>>access >>> the filemaker database with ODBC? >>> >>> So, as a test I have succesfully created an odbc connection to a >>> (localhost) filemaker database (I also will use fmserver soon). >>> >>> Now I would like to know a way - using PHP to setup a connection to the >>> filemaker database and perform queries from a local webpage. >>> >>> Here's some connection info... >>> >>> ip = xxx.xxx.xxx.??? - any special port >>> USER DSN = test1 >>> database = MyDB >>> >>> I just don't know how to write the ODBC connection code in PHP? >>> >>> Any ideas? >>> >>> >>> >>> -- >>> Thanks, >>> Dave - DealTek >>> dealtek@gmail.com >>> [db-3] >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > >-- >Thanks, >Dave - DealTek >dealtek@gmail.com >[db-3] > >_______________________________________________ >FX.php_List mailing list >FX.php_List@mail.iviking.org >http://www.iviking.org/mailman/listinfo/fx.php_list From dealtek at gmail.com Thu Apr 25 15:04:28 2013 From: dealtek at gmail.com (dealTek) Date: Thu Apr 25 14:05:46 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: References: Message-ID: On Apr 25, 2013, at 1:58 PM, John Funk wrote: > Dave, I will have to dig a bit deeper?.maybe another has some help?. Thanks so much John! - ODBC Manager will not store SYSTEM DSN - hmmm maybe permissions issue? >> - If I knew where ODBC Manager stores the SYSTEM DSN - then maybe I could try and fix it's permissions > > On 4/25/13 2:32 PM, "dealTek" wrote: > >> Hi John and all, >> >> Thanks for all the help.... >> >> >> using 1.8.3 mac >> >> now FM Pro advanced 11 with updated odbc from FM - file is open and ODBC >> is on for this user (I will move to fmserver soon) >> >> ODBC Manager will not store SYSTEM DSN - hmmm maybe permissions issue? >> how do I fix this? >> >> Glyn mentioned to use System level DSN so I'll try that when I fix >> permissions? >> >> so I'm using USER DSN - which does pass tests >> >> >> odbc datasource name = myuserdsn >> fm database = test1 >> table = mytable >> >> (with 2 fields = first and last) >> >> >> the error says: >> >> Warning: odbc_connect() [function.odbc-connect]: SQL error: >> [iODBC][Driver Manager]Data source name not found and no default driver >> specified. Driver could not be loaded, SQL state IM002 in SQLConnect in >> /Users/revdave/Sites/multisite-general/odbc1/z1.php on line 34 >> Connection Failed: >> >> >> >> >> >> >> > >> >> ini_set('display_errors', 1); >> error_reporting(E_ALL | E_STRICT); >> error_reporting(E_ERROR | E_WARNING | E_PARSE); >> >> >> >> >> $dbname = 'test1'; >> $username = 'web'; >> $pass = 'web'; >> >> >> $conn=odbc_connect('$dbname','$username','$pass'); //set the parameters >> for the connection >> if (!$conn) >> {exit("Connection Failed: " . $conn);} //exit if the connection fails >> >> >> $sql="select * from mytable"; //set the sql statement >> >> $rs=odbc_exec($conn,$sql); //call the connection with the statement >> if (!$rs) >> {exit("Error in SQL");} //exit if thesql is bad >> >> // get the field data from the result >> while (odbc_fetch_row($rs)) >> { >> $field_one=odbc_result($rs,"first"); >> $field_two=odbc_result($rs,"last"); >> >> echo $field_one." ". $field_two ."\n"; // show the data on your web page >> } >> >> odbc_close($conn); >> ?> >> >> >> >> >> >> On Apr 25, 2013, at 11:46 AM, John Funk >> wrote: >> >>> Try this for starters, I use this for reference. >>> >>> >> $conn=odbc_connect('dbname','username','pass'); //set the parameters for >>> the connection >>> if (!$conn) >>> {exit("Connection Failed: " . $conn);} //exit if the connection fails >>> >>> >>> $sql=""; //set the sql statement >>> >>> $rs=odbc_exec($conn,$sql); //call the connection with the statement >>> if (!$rs) >>> {exit("Error in SQL");} //exit if thesql is bad >>> >>> // get the field data from the result >>> while (odbc_fetch_row($rs)) >>> { >>> $field_one=odbc_result($rs,""); >>> $field_two=odbc_result($rs,""); >>> >>> echo $field_one." ". $field_two ."\n"; // show the data on your web >>> page >>> } >>> >>> odbc_close($conn); >>> ?> >>> >>> >>> >>>> >>>> >>>> Hi John Glyn & Dale, >>>> >>>> Thanks for all the helpful tips. >>>> >>>> The thing I am still in the dark about is how to write the php to >>>> access >>>> the filemaker database with ODBC? >>>> >>>> So, as a test I have succesfully created an odbc connection to a >>>> (localhost) filemaker database (I also will use fmserver soon). >>>> >>>> Now I would like to know a way - using PHP to setup a connection to the >>>> filemaker database and perform queries from a local webpage. >>>> >>>> Here's some connection info... >>>> >>>> ip = xxx.xxx.xxx.??? - any special port >>>> USER DSN = test1 >>>> database = MyDB >>>> >>>> I just don't know how to write the ODBC connection code in PHP? >>>> >>>> Any ideas? >>>> >>>> >>>> >>>> -- >>>> Thanks, >>>> Dave - DealTek >>>> dealtek@gmail.com >>>> [db-3] >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> -- >> Thanks, >> Dave - DealTek >> dealtek@gmail.com >> [db-3] >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list -- Thanks, Dave - DealTek dealtek@gmail.com [db-3] -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130425/ef097086/attachment-0001.html From bob at patin.com Thu Apr 25 15:30:51 2013 From: bob at patin.com (Bob Patin) Date: Thu Apr 25 14:32:06 2013 Subject: [FX.php List] Connecting PHP Web Pages with ODBC In-Reply-To: References: Message-ID: <9999D9FD-587F-4B54-A21E-8976F8AB660A@patin.com> FX isn't the issue; the issue is FileMaker and XML. For the record, at least the last time comparison tests were run, FX was faster than the FileMaker API. I don't see 'multiple seconds' per record creation; as others have mentioned, there are definite guidelines to follow when creating records. Bob Patin Longterm Solutions LLC P.O. Box 3408 Brentwood, TN 37024 bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com iChat: bobpatin AIM: longterm1954 Twitter: bobpatin Google+: http://www.longtermsolutions.com/plus -- FileMaker 9, 10 & 11 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- FileMaker hosting and consulting for all versions of FileMaker PHP ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Apr 25, 2013, at 11:28 AM, Glyn Devine wrote: > ODBC will definitely be faster than FX. FX is dead slow when writing records. You are generally talking multiple seconds per record created. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130425/57dcbd0f/attachment.html From rfox at innerfile.com Mon Apr 29 11:07:45 2013 From: rfox at innerfile.com (Robert Fox) Date: Mon Apr 29 10:14:07 2013 Subject: [FX.php List] FX.php with FM12 In-Reply-To: <9999D9FD-587F-4B54-A21E-8976F8AB660A@patin.com> References: <9999D9FD-587F-4B54-A21E-8976F8AB660A@patin.com> Message-ID: <3E4AB478-3172-403A-80F2-843FBD4FC394@innerfile.com> Has anyone successfully used FX.php to perform queries on a .fmp12 file? I am able to retrieve field and layout names, but get any empty found set whenever I perform a query. I have no problem performing queries on .fp7 files. As an experiment, I made a small .fp7 database and used FX.php to successfully perform queries. I then converted that file to .fmp12 and used FX.php to query and connect in the exact same way (except the change to the file extension and FM version). I was able to retrieve layout and fields names, but any query for records results in an empty found set. I have searched through this list's archive and found a lot of people discussing problems with FX and FM12, but I can't find anyone who reached a solution. Thanks, Robert Charles Fox Developer Inner File Software http://innerfile.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130429/45879f91/attachment.html From matsuo_atsushi at mac.com Mon Apr 29 11:26:14 2013 From: matsuo_atsushi at mac.com (Atsushi Matsuo) Date: Mon Apr 29 10:27:09 2013 Subject: [FX.php List] FX.php with FM12 In-Reply-To: <3E4AB478-3172-403A-80F2-843FBD4FC394@innerfile.com> References: <9999D9FD-587F-4B54-A21E-8976F8AB660A@patin.com> <3E4AB478-3172-403A-80F2-843FBD4FC394@innerfile.com> Message-ID: <7E6FFDBE-B5D9-417B-99B5-A257F2D14F91@mac.com> Hi, I hope that this pull request works for you, but this patch doesn't merged now. https://github.com/yodarunamok/fxphp/pull/19/files -- Atsushi Matsuo http://www.famlog.jp/ On 2013/04/30, at 2:07, Robert Fox wrote: > Has anyone successfully used FX.php to perform queries on a .fmp12 file? I am able to retrieve field and layout names, but get any empty found set whenever I perform a query. I have no problem performing queries on .fp7 files. > > As an experiment, I made a small .fp7 database and used FX.php to successfully perform queries. I then converted that file to .fmp12 and used FX.php to query and connect in the exact same way (except the change to the file extension and FM version). I was able to retrieve layout and fields names, but any query for records results in an empty found set. > > I have searched through this list's archive and found a lot of people discussing problems with FX and FM12, but I can't find anyone who reached a solution. > > Thanks, From csinfo at criticalsolution.com Mon Apr 29 11:30:51 2013 From: csinfo at criticalsolution.com (John Funk) Date: Mon Apr 29 10:34:13 2013 Subject: [FX.php List] FX.php with FM12 In-Reply-To: <3E4AB478-3172-403A-80F2-843FBD4FC394@innerfile.com> Message-ID: Yes I have two installations, They have been working for 9 months now. Here are two lines in your server.php file to check: $dataSourceType = 'FMPro12'; $fmdb='.fmp12'; The problem I have read about had to do with getting data from Portals if I remember right. John From: Robert Fox Reply-To: "FX.php Discussion List" Date: Monday, April 29, 2013 12:07 PM To: "FX.php Discussion List" Subject: [FX.php List] FX.php with FM12 Has anyone successfully used FX.php to perform queries on a .fmp12 file? I am able to retrieve field and layout names, but get any empty found set whenever I perform a query. I have no problem performing queries on .fp7 files. As an experiment, I made a small .fp7 database and used FX.php to successfully perform queries. I then converted that file to .fmp12 and used FX.php to query and connect in the exact same way (except the change to the file extension and FM version). I was able to retrieve layout and fields names, but any query for records results in an empty found set. I have searched through this list's archive and found a lot of people discussing problems with FX and FM12, but I can't find anyone who reached a solution. Thanks, Robert Charles Fox Developer Inner File Software http://innerfile.com _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130429/837d1b51/attachment.html From rfox at innerfile.com Mon Apr 29 13:04:33 2013 From: rfox at innerfile.com (Robert Fox) Date: Mon Apr 29 12:05:37 2013 Subject: [FX.php List] FX.php with FM12 In-Reply-To: References: Message-ID: <788B9F24-A69F-425D-80A5-0C209B33BC70@innerfile.com> Thank you for the suggestions. I think the problem is related to submitting blank find requests. In this particular application, I want to perform a find based on a default name. When I use my FM7 database, I can leave the default name blank and perform "FMFind", and it will act the same as a "FMFindAll". When I use the FM12, it comes back with no results. I will rewrite my code to test for empty defaults, which I think will fix my issue. Robert Charles Fox Developer Inner File Software http://innerfile.com On Apr 29, 2013, at 1:30 PM, John Funk wrote: Yes I have two installations, They have been working for 9 months now. Here are two lines in your server.php file to check: $dataSourceType = 'FMPro12'; $fmdb='.fmp12'; The problem I have read about had to do with getting data from Portals if I remember right. John From: Robert Fox > Reply-To: "FX.php Discussion List" > Date: Monday, April 29, 2013 12:07 PM To: "FX.php Discussion List" > Subject: [FX.php List] FX.php with FM12 Has anyone successfully used FX.php to perform queries on a .fmp12 file? I am able to retrieve field and layout names, but get any empty found set whenever I perform a query. I have no problem performing queries on .fp7 files. As an experiment, I made a small .fp7 database and used FX.php to successfully perform queries. I then converted that file to .fmp12 and used FX.php to query and connect in the exact same way (except the change to the file extension and FM version). I was able to retrieve layout and fields names, but any query for records results in an empty found set. I have searched through this list's archive and found a lot of people discussing problems with FX and FM12, but I can't find anyone who reached a solution. Thanks, Robert Charles Fox Developer Inner File Software http://innerfile.com _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130429/6e62bf4c/attachment-0001.html From bob at patin.com Tue Apr 30 10:30:07 2013 From: bob at patin.com (Bob Patin) Date: Tue Apr 30 09:31:04 2013 Subject: [FX.php List] [OFF] mPDF snafu Message-ID: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> I have a site I wrote for a client, which generates PDFs from their IWP site. Works great here on my machine running FMSA 11 and OS X Server. However... When I put the site on their machine I get my database query results, but if I include the mpdf.php page, the page never finishes loading. I can even just include the mpdf folder, but not render a PDF, and it never finishes loading the page; it craps out if i uncomment 'include('mpdf/mpdf.php'); Has anyone had this problem? Could this be a PHP prefs error of some sort? Thanks, Bob Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10 & 11 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker From dale.bengston at gmail.com Tue Apr 30 10:50:14 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Tue Apr 30 09:51:13 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> Message-ID: <8D3DD38B-0919-4281-8E6C-3938B0BFDFF9@gmail.com> Hi Bob, Does mpdf.php have further includes within it? I've had this get screwed up before due to paths being wrong. What does the Apache error log tell you? Dale On Apr 30, 2013, at 11:30 AM, Bob Patin wrote: > I have a site I wrote for a client, which generates PDFs from their IWP site. Works great here on my machine running FMSA 11 and OS X Server. > > However... > > When I put the site on their machine I get my database query results, but if I include the mpdf.php page, the page never finishes loading. > > I can even just include the mpdf folder, but not render a PDF, and it never finishes loading the page; it craps out if i uncomment 'include('mpdf/mpdf.php'); > > Has anyone had this problem? Could this be a PHP prefs error of some sort? > > Thanks, > > Bob > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10 & 11 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From bob at patin.com Tue Apr 30 10:54:40 2013 From: bob at patin.com (Bob Patin) Date: Tue Apr 30 09:55:36 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: <8D3DD38B-0919-4281-8E6C-3938B0BFDFF9@gmail.com> References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> <8D3DD38B-0919-4281-8E6C-3938B0BFDFF9@gmail.com> Message-ID: <5140783F-B8A7-4A12-8D38-32CFEE71355C@patin.com> Well, it might, but since it works on my machine, and since I simply copied the whole folder to another web server, I would've thought it would just simply *work...* How do I get to the error log on a Mac OS X machine (*not* OS X Server)? I've never tried to run a site on a Mac that is running OS X and not OS X Server. Could that be the issue? Not some sort of PHP config error perhaps? BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10 & 11 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Apr 30, 2013, at 11:50 AM, Dale Bengston wrote: > > Does mpdf.php have further includes within it? I've had this get screwed up before due to paths being wrong. What does the Apache error log tell you? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130430/84f812cc/attachment.html From bob at patin.com Tue Apr 30 10:55:24 2013 From: bob at patin.com (Bob Patin) Date: Tue Apr 30 09:56:21 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> Message-ID: <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> The file mpdf.php does have a couple of REQUIREs on it, but I see the files to which it refers, so I don't think that's it... On Apr 30, 2013, at 11:30 AM, Bob Patin wrote: > I have a site I wrote for a client, which generates PDFs from their IWP site. Works great here on my machine running FMSA 11 and OS X Server. > > However... > > When I put the site on their machine I get my database query results, but if I include the mpdf.php page, the page never finishes loading. > > I can even just include the mpdf folder, but not render a PDF, and it never finishes loading the page; it craps out if i uncomment 'include('mpdf/mpdf.php'); > > Has anyone had this problem? Could this be a PHP prefs error of some sort? > > Thanks, > > Bob > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > FileMaker 9, 10 & 11 Certified Developer > Member of FileMaker Business Alliance and FileMaker TechNet > -- > Twitter: bobpatin > AIM: longterm1954 > iChat: bobpatin > -- > Expert FileMaker Consulting > FileMaker Hosting for all versions of FileMaker > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dale.bengston at gmail.com Tue Apr 30 12:02:42 2013 From: dale.bengston at gmail.com (Dale Bengston) Date: Tue Apr 30 11:03:41 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> Message-ID: <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> Bob, you should be able to see the httpd error log by running Applications -> Utilities -> Console on OS X. On Mountain Lion, it's under /var/log/ - it might be in a different spot for other versions of OS X. Another culprit could be file permissions. The www user on OS X is pretty restricted. Dale On Apr 30, 2013, at 11:55 AM, Bob Patin wrote: > The file mpdf.php does have a couple of REQUIREs on it, but I see the files to which it refers, so I don't think that's it... > > > On Apr 30, 2013, at 11:30 AM, Bob Patin wrote: > >> I have a site I wrote for a client, which generates PDFs from their IWP site. Works great here on my machine running FMSA 11 and OS X Server. >> >> However... >> >> When I put the site on their machine I get my database query results, but if I include the mpdf.php page, the page never finishes loading. >> >> I can even just include the mpdf folder, but not render a PDF, and it never finishes loading the page; it craps out if i uncomment 'include('mpdf/mpdf.php'); >> >> Has anyone had this problem? Could this be a PHP prefs error of some sort? >> >> Thanks, >> >> Bob >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> FileMaker 9, 10 & 11 Certified Developer >> Member of FileMaker Business Alliance and FileMaker TechNet >> -- >> Twitter: bobpatin >> AIM: longterm1954 >> iChat: bobpatin >> -- >> Expert FileMaker Consulting >> FileMaker Hosting for all versions of FileMaker >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From steve at bluecrocodile.co.nz Tue Apr 30 14:34:20 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Tue Apr 30 13:35:22 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> Message-ID: <7B16F730-57EA-48B8-99AA-AC9E9B2CA63B@bluecrocodile.co.nz> Hi Bob If you're doing anything with images mPDF requires GD which may not be being included, check (via phpinfo()) that you have it? Also you need to allow write access to three sub-folders; /ttfontdata /tmp /grpah_cache so make sure that the PHP user has write access to those folders (for testing simply chmod 777 on those three, if that resolves it, then you know that was the problem, at which point you can set correct permissions etc or revert to previous) HTH Cheers Steve > Bob, you should be able to see the httpd error log by running Applications -> Utilities -> Console on OS X. On Mountain Lion, it's under /var/log/ - it might be in a different spot for other versions of OS X. > > Another culprit could be file permissions. The www user on OS X is pretty restricted. > > Dale > > On Apr 30, 2013, at 11:55 AM, Bob Patin wrote: > >> The file mpdf.php does have a couple of REQUIREs on it, but I see the files to which it refers, so I don't think that's it... >> >> >> On Apr 30, 2013, at 11:30 AM, Bob Patin wrote: >> >>> I have a site I wrote for a client, which generates PDFs from their IWP site. Works great here on my machine running FMSA 11 and OS X Server. >>> >>> However... >>> >>> When I put the site on their machine I get my database query results, but if I include the mpdf.php page, the page never finishes loading. >>> >>> I can even just include the mpdf folder, but not render a PDF, and it never finishes loading the page; it craps out if i uncomment 'include('mpdf/mpdf.php'); >>> >>> Has anyone had this problem? Could this be a PHP prefs error of some sort? >>> >>> Thanks, >>> >>> Bob >>> >>> Bob Patin >>> Longterm Solutions LLC >>> bob@longtermsolutions.com >>> 615-333-6858 >>> http://www.longtermsolutions.com >>> FileMaker 9, 10 & 11 Certified Developer >>> Member of FileMaker Business Alliance and FileMaker TechNet >>> -- >>> Twitter: bobpatin >>> AIM: longterm1954 >>> iChat: bobpatin >>> -- >>> Expert FileMaker Consulting >>> FileMaker Hosting for all versions of FileMaker >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz From bob at patin.com Tue Apr 30 14:40:08 2013 From: bob at patin.com (Bob Patin) Date: Tue Apr 30 13:41:04 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> Message-ID: <57E69835-695D-43FA-A041-C6A39C85B198@patin.com> hey, Well, I did look at permissions; I set EVERYONE to read/write, just to see what it would do. Part of hte problem is that my access to this machine is severely limited... they won't even set up FTP on it, so I have to do everything on the machine itself thru a Remote Desktop connection. A pain, to say the least... If his 2nd machine (which he says has OS X Server on it) doesn't work, I may try to track down errors, but since I have the site working on 2 different machines here in my network, this sort of falls outside my responsibility... grey area here... Best, Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10 & 11 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Apr 30, 2013, at 1:02 PM, Dale Bengston wrote: > Bob, you should be able to see the httpd error log by running Applications -> Utilities -> Console on OS X. On Mountain Lion, it's under /var/log/ - it might be in a different spot for other versions of OS X. > > Another culprit could be file permissions. The www user on OS X is pretty restricted. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130430/f8e7d9d5/attachment-0001.html From bob at patin.com Tue Apr 30 15:05:21 2013 From: bob at patin.com (Bob Patin) Date: Tue Apr 30 14:06:20 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: <7B16F730-57EA-48B8-99AA-AC9E9B2CA63B@bluecrocodile.co.nz> References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> <7B16F730-57EA-48B8-99AA-AC9E9B2CA63B@bluecrocodile.co.nz> Message-ID: <54C88F38-0C4C-4428-B1D7-E0FC886DD2B1@patin.com> Steve, There aren't any images (other than a logo); do I need to set chmod 777 on all the files? If so, how do I do that on OS X (not Server)? Thanks, Bob On Apr 30, 2013, at 3:34 PM, Steve Winter wrote: > Also you need to allow write access to three sub-folders; > /ttfontdata > /tmp > /grpah_cache > so make sure that the PHP user has write access to those folders (for testing simply chmod 777 on those three, if that resolves it, then you know that was the problem, at which point you can set correct permissions etc or revert to previous) > > HTH -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130430/bbb3a932/attachment.html From steve at bluecrocodile.co.nz Tue Apr 30 15:10:54 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Tue Apr 30 14:11:57 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: <54C88F38-0C4C-4428-B1D7-E0FC886DD2B1@patin.com> References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> <7B16F730-57EA-48B8-99AA-AC9E9B2CA63B@bluecrocodile.co.nz> <54C88F38-0C4C-4428-B1D7-E0FC886DD2B1@patin.com> Message-ID: Hi Bob chmod is the same on all version of OS X, though It thought in a previous post (though after mine) you said you had set full access on all folders?? You'll either need to be in the mPDF source folder, then sudo chmod 777 /ttfontdata etc each of the folders below, to if you can't cd to the folders, you'll need to know the full path then sudo chmod 777 /path/to/folder/ttfontdata Cheers Steve > Steve, > > There aren't any images (other than a logo); do I need to set chmod 777 on all the files? > > If so, how do I do that on OS X (not Server)? > > Thanks, > > Bob > > On Apr 30, 2013, at 3:34 PM, Steve Winter wrote: > >> Also you need to allow write access to three sub-folders; >> /ttfontdata >> /tmp >> /grpah_cache >> so make sure that the PHP user has write access to those folders (for testing simply chmod 777 on those three, if that resolves it, then you know that was the problem, at which point you can set correct permissions etc or revert to previous) >> >> HTH > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130430/5cc935f6/attachment.html From bob at patin.com Tue Apr 30 15:14:06 2013 From: bob at patin.com (Bob Patin) Date: Tue Apr 30 14:15:04 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> <7B16F730-57EA-48B8-99AA-AC9E9B2CA63B@bluecrocodile.co.nz> <54C88F38-0C4C-4428-B1D7-E0FC886DD2B1@patin.com> Message-ID: On Apr 30, 2013, at 4:10 PM, Steve Winter wrote: > chmod is the same on all version of OS X, though It thought in a previous post (though after mine) you said you had set full access on all folders?? Well, I set r/w on for 'everyone' but that doesn't include EXECUTE, does it, and does that matter? Do you think that may be why it's not working for his machine? It works fine on 2 of my servers that I installed it on... Thanks, BP > > You'll either need to be in the mPDF source folder, then > sudo chmod 777 /ttfontdata > etc each of the folders below, to if you can't cd to the folders, you'll need to know the full path then > sudo chmod 777 /path/to/folder/ttfontdata > > Cheers > Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130430/d5cafec0/attachment-0001.html From steve at bluecrocodile.co.nz Tue Apr 30 15:16:06 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Tue Apr 30 14:17:05 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> <7B16F730-57EA-48B8-99AA-AC9E9B2CA63B@bluecrocodile.co.nz> <54C88F38-0C4C-4428-B1D7-E0FC886DD2B1@patin.com> Message-ID: Hi Bob No idea, but it's gotta be worth a shot?! its' int he mPDF docs, and it's bitten me more than once in the past... But really, you need to be looking in the logs to see what's failing/reporting? Cheers Steve > > On Apr 30, 2013, at 4:10 PM, Steve Winter wrote: > >> chmod is the same on all version of OS X, though It thought in a previous post (though after mine) you said you had set full access on all folders?? > > Well, I set r/w on for 'everyone' but that doesn't include EXECUTE, does it, and does that matter? > > Do you think that may be why it's not working for his machine? It works fine on 2 of my servers that I installed it on... > > Thanks, > > BP > >> >> You'll either need to be in the mPDF source folder, then >> sudo chmod 777 /ttfontdata >> etc each of the folders below, to if you can't cd to the folders, you'll need to know the full path then >> sudo chmod 777 /path/to/folder/ttfontdata >> >> Cheers >> Steve > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list Steve Winter +44 777 852 4776 steve@bluecrocodile.co.nz -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130430/613c82c2/attachment.html From malcolm at notyourhomework.net Tue Apr 30 16:08:40 2013 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Tue Apr 30 15:09:38 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: <57E69835-695D-43FA-A041-C6A39C85B198@patin.com> References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> <57E69835-695D-43FA-A041-C6A39C85B198@patin.com> Message-ID: <484A1BE4-215F-44AB-BB3F-76BA92FF0567@notyourhomework.net> > Well, I did look at permissions; I set EVERYONE to read/write, just to see what it would do. > > Part of hte problem is that my access to this machine is severely limited... they won't even set up FTP on it, so I have to do everything on the machine itself thru a Remote Desktop connection. A pain, to say the least... Are you looking at the Information dialog window or are you using the command line? If you're experiencing problems, I'd use the command line. Malcolm From bob at patin.com Tue Apr 30 15:12:29 2013 From: bob at patin.com (Bob Patin) Date: Wed May 1 07:40:13 2013 Subject: [FX.php List] [OFF] mPDF snafu In-Reply-To: <7B16F730-57EA-48B8-99AA-AC9E9B2CA63B@bluecrocodile.co.nz> References: <407FE8F0-0CAA-4F18-84AC-1037FE39CF30@patin.com> <071A14D8-6BF5-409D-85A3-A5ED6CE48FDB@patin.com> <5A575412-56A1-4324-AB98-DABAC79425A7@gmail.com> <7B16F730-57EA-48B8-99AA-AC9E9B2CA63B@bluecrocodile.co.nz> Message-ID: <7C6FF746-00DF-4B97-925D-D57637748ADA@patin.com> Hey, I see that GD is on his machine; here's what I see in phpinfo: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2013-04-30 at 4.10.04 PM, 04-30-2013.PNG Type: image/png Size: 89720 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20130430/b904bb18/ScreenShot2013-04-30at4.10.04PM04-30-2013-0001.png -------------- next part -------------- This indicates that GD support is enabled, which is what I need, is that right? BP Bob Patin Longterm Solutions LLC bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com FileMaker 9, 10 & 11 Certified Developer Member of FileMaker Business Alliance and FileMaker TechNet -- Twitter: bobpatin AIM: longterm1954 iChat: bobpatin -- Expert FileMaker Consulting FileMaker Hosting for all versions of FileMaker On Apr 30, 2013, at 3:34 PM, Steve Winter wrote: > Hi Bob > > If you're doing anything with images mPDF requires GD which may not be being included, check (via phpinfo()) that you have it? > > Also you need to allow write access to three sub-folders; > /ttfontdata > /tmp > /grpah_cache > so make sure that the PHP user has write access to those folders (for testing simply chmod 777 on those three, if that resolves it, then you know that was the problem, at which point you can set correct permissions etc or revert to previous) > > HTH > > Cheers > Steve > >> Bob, you should be able to see the httpd error log by running Applications -> Utilities -> Console on OS X. On Mountain Lion, it's under /var/log/ - it might be in a different spot for other versions of OS X. >> >> Another culprit could be file permissions. The www user on OS X is pretty restricted. >> >> Dale >> >> On Apr 30, 2013, at 11:55 AM, Bob Patin wrote: >> >>> The file mpdf.php does have a couple of REQUIREs on it, but I see the files to which it refers, so I don't think that's it... >>> >>> >>> On Apr 30, 2013, at 11:30 AM, Bob Patin wrote: >>> >>>> I have a site I wrote for a client, which generates PDFs from their IWP site. Works great here on my machine running FMSA 11 and OS X Server. >>>> >>>> However... >>>> >>>> When I put the site on their machine I get my database query results, but if I include the mpdf.php page, the page never finishes loading. >>>> >>>> I can even just include the mpdf folder, but not render a PDF, and it never finishes loading the page; it craps out if i uncomment 'include('mpdf/mpdf.php'); >>>> >>>> Has anyone had this problem? Could this be a PHP prefs error of some sort? >>>> >>>> Thanks, >>>> >>>> Bob >>>> >>>> Bob Patin >>>> Longterm Solutions LLC >>>> bob@longtermsolutions.com >>>> 615-333-6858 >>>> http://www.longtermsolutions.com >>>> FileMaker 9, 10 & 11 Certified Developer >>>> Member of FileMaker Business Alliance and FileMaker TechNet >>>> -- >>>> Twitter: bobpatin >>>> AIM: longterm1954 >>>> iChat: bobpatin >>>> -- >>>> Expert FileMaker Consulting >>>> FileMaker Hosting for all versions of FileMaker >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > Steve Winter > +44 777 852 4776 > steve@bluecrocodile.co.nz > > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list