From aragon at umich.edu Thu Feb 7 09:03:24 2013 From: aragon at umich.edu (Michael McIntyre) Date: Thu Feb 7 08:09:10 2013 Subject: [FX.php List] Alternate grammar? In-Reply-To: <5106E9F7.6090307@umich.edu> References: <9B35A3AA-6597-457C-A6C9-F17097012DF8@gmail.com> <004DFB85-CC6E-4AFF-9A8A-92C428EABB1E@iViking.org> <438C1EBA-F13D-4538-A614-E128E6971C7E@gmail.com> <2CE2A804-3064-41B0-9432-749E72A6E8B2@iViking.org> <5106E9F7.6090307@umich.edu> Message-ID: To answer my own question, fmresultset.xml grammer can be invoked from the initial FX call, $myQuery = new FX($dbIP,$dbPort,$dbType); where $dbType='fmalt'; This would be an excellent addition to the PDF documentation. ~Michael On Mon, Jan 28, 2013 at 4:13 PM, Michael McIntyre wrote: > What config (in which files) is needed to invoke the fmresultset.xml grammer > & RetrieveFM7VerboseData.class.php? > > I set $dataServerType = 'fmalt' to no avail... > From whatdoyouwant at gmail.com Thu Feb 7 12:42:55 2013 From: whatdoyouwant at gmail.com (Nick) Date: Thu Feb 7 11:48:19 2013 Subject: [FX.php List] Alternate grammar? In-Reply-To: References: <9B35A3AA-6597-457C-A6C9-F17097012DF8@gmail.com> <004DFB85-CC6E-4AFF-9A8A-92C428EABB1E@iViking.org> <438C1EBA-F13D-4538-A614-E128E6971C7E@gmail.com> <2CE2A804-3064-41B0-9432-749E72A6E8B2@iViking.org> <5106E9F7.6090307@umich.edu> Message-ID: If you're starting a new project using FM Server 12 (and you use portals on your layouts), it is advisable to set $myQuery->usePortalIDs = true; the difference is that portals have their record id/modid instead of zero through x. That means that instead of using a for loop, use a foreach loop to walk through the portal records (which is backwards compatible with the old way as well). foreach ( $record['PortalTable::IDField'] as $portalkey => $portalIDData) { echo $record['PortalTable::OtherField'][$portalkey]; // only now portalkey is not 0 or 1, etc. It is recordnumber.modID like the ['data'] array. $portalTable_recordinfo = explode('.', $portalkey); $portalTable_recordid = $portalTable_recordinfo[0]; // if you wanted to loop through and edit, or something, use the recordID. } usePortalIDs is set to false currently in order to maintain backwards compatibility with the old code, for people that would use a for loop. On Thu, Feb 7, 2013 at 10:03 AM, Michael McIntyre wrote: > To answer my own question, fmresultset.xml grammer can be invoked from > the initial FX call, > $myQuery = new FX($dbIP,$dbPort,$dbType); > where $dbType='fmalt'; > > This would be an excellent addition to the PDF documentation. > > ~Michael > > On Mon, Jan 28, 2013 at 4:13 PM, Michael McIntyre > wrote: > > What config (in which files) is needed to invoke the fmresultset.xml > grammer > > & RetrieveFM7VerboseData.class.php? > > > > I set $dataServerType = 'fmalt' to no avail... > > > _______________________________________________ > 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/20130207/76a30d67/attachment-0001.html From malcolm at notyourhomework.net Thu Feb 7 17:16:17 2013 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Thu Feb 7 16:21:42 2013 Subject: [FX.php List] Handling File Uploads Message-ID: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> I wondering how other people have handled file uploads to FMPro databases. I've read the docs and they say that web users only get read privileges on container fields. That doesn't prevent us from accepting file uploads in the browser and putting them somewhere so that they can be accessed later on. Any suggestions? Malcolm From bob at patin.com Thu Feb 7 17:29:36 2013 From: bob at patin.com (Bob Patin) Date: Thu Feb 7 16:34:59 2013 Subject: [FX.php List] Handling File Uploads In-Reply-To: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> References: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> Message-ID: <6247B33D-35D6-4355-BF48-3934D61B3246@patin.com> I don't ever upload into container fields, because they just bloat the database. Instead, I upload to directories on the clients' sites, and link to them using a field in the database. Now, with FileMaker storing files separately from the database, I may need to rethink my strategy, but with a web app, it basically amounts to the same thing, except that in FM 12 the relationship between attached files and the database is handled by the database itself rather than by using a stored link to an upload. 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 Feb 7, 2013, at 6:16 PM, Malcolm Fitzgerald wrote: > I wondering how other people have handled file uploads to FMPro databases. I've read the docs and they say that web users only get read privileges on container fields. That doesn't prevent us from accepting file uploads in the browser and putting them somewhere so that they can be accessed later on. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130207/12493d72/attachment.html From tim.webko at gmail.com Thu Feb 7 17:33:48 2013 From: tim.webko at gmail.com (Tim 'Webko' Booth) Date: Thu Feb 7 16:39:11 2013 Subject: [FX.php List] Handling File Uploads In-Reply-To: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> References: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> Message-ID: Dear Malcolm On 8 February 2013 08:16, Malcolm Fitzgerald wrote: > I wondering how other people have handled file uploads to FMPro databases. > I don't. Send the file to a directory and then put the link information into the database... Not sure any database really stores the file itself... Cheers T -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130208/78b0185f/attachment.html From malcolm at notyourhomework.net Thu Feb 7 17:52:07 2013 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Thu Feb 7 16:57:30 2013 Subject: [FX.php List] Handling File Uploads In-Reply-To: References: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> Message-ID: > I wondering how other people have handled file uploads to FMPro databases. > > I don't. Send the file to a directory and then put the link information into the database... Not sure any database really stores the file itself? Great minds think alike. Bob Patin has already suggested the same. thanks, Malcolm -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130208/e019f46c/attachment.html From someone at gagayaya.com Thu Feb 7 18:05:09 2013 From: someone at gagayaya.com (Frank) Date: Thu Feb 7 17:11:04 2013 Subject: [FX.php List] Handling File Uploads In-Reply-To: References: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> Message-ID: Hi, I just finished a project using jquery uploader and web viewer. Using the record id to name created a directory Frank On 2013-02-07, at 7:52 PM, Malcolm Fitzgerald wrote: >> I wondering how other people have handled file uploads to FMPro databases. >> >> I don't. Send the file to a directory and then put the link information into the database... Not sure any database really stores the file itself? > > Great minds think alike. Bob Patin has already suggested the same. > > thanks, > > Malcolm > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From headhoncho at customikesolutions.com Thu Feb 7 22:07:09 2013 From: headhoncho at customikesolutions.com (Head Honcho) Date: Thu Feb 7 21:12:34 2013 Subject: [FX.php List] Handling File Uploads In-Reply-To: <6247B33D-35D6-4355-BF48-3934D61B3246@patin.com> References: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> <6247B33D-35D6-4355-BF48-3934D61B3246@patin.com> Message-ID: <54AC1E64-6980-4096-A370-6CB81B288CEC@customikesolutions.com> It is not recommended to touch/use FileMaker's externally stored files. If you fiddle with them, FileMaker complains and says they've been modified (by an external user). Certainly keeps the bloat of the solution down, but isn't as helpful as first thought Regards Michael Ward -- Head Honcho, CustoMike Solutions Member, FileMaker Business Alliance & FileMaker Technical Network FileMaker 7, 8, 9, 10 & 11 Certified Developer ph 0414 562 501 headhoncho@customikesolutions.com On 08/02/2013, at 11:29 AM, Bob Patin wrote: > I don't ever upload into container fields, because they just bloat the database. Instead, I upload to directories on the clients' sites, and link to them using a field in the database. > > Now, with FileMaker storing files separately from the database, I may need to rethink my strategy, but with a web app, it basically amounts to the same thing, except that in FM 12 the relationship between attached files and the database is handled by the database itself rather than by using a stored link to an upload. > > 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 Feb 7, 2013, at 6:16 PM, Malcolm Fitzgerald wrote: > >> I wondering how other people have handled file uploads to FMPro databases. I've read the docs and they say that web users only get read privileges on container fields. That doesn't prevent us from accepting file uploads in the browser and putting them somewhere so that they can be accessed later on. > > _______________________________________________ > 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/20130208/aec4b47c/attachment-0001.html From malcolm at notyourhomework.net Thu Feb 7 22:23:11 2013 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Thu Feb 7 21:28:34 2013 Subject: [FX.php List] Handling File Uploads In-Reply-To: <54AC1E64-6980-4096-A370-6CB81B288CEC@customikesolutions.com> References: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> <6247B33D-35D6-4355-BF48-3934D61B3246@patin.com> <54AC1E64-6980-4096-A370-6CB81B288CEC@customikesolutions.com> Message-ID: <60A84037-AECB-4726-A396-892CB5FB85E2@notyourhomework.net> That's right. The security model applies to container fields. The data may be stored outside the database but it is still subject to the security model. That prohibits us from modifying these files at will. Malcolm On 08/02/2013, at 4:07 PM, Head Honcho wrote: > It is not recommended to touch/use FileMaker's externally stored files. If you fiddle with them, FileMaker complains and says they've been modified (by an external user). > > Certainly keeps the bloat of the solution down, but isn't as helpful as first thought > > Regards > > Michael Ward > -- > Head Honcho, CustoMike Solutions > Member, FileMaker Business Alliance & FileMaker Technical Network > FileMaker 7, 8, 9, 10 & 11 Certified Developer > ph 0414 562 501 > headhoncho@customikesolutions.com > > On 08/02/2013, at 11:29 AM, Bob Patin wrote: > >> I don't ever upload into container fields, because they just bloat the database. Instead, I upload to directories on the clients' sites, and link to them using a field in the database. >> >> Now, with FileMaker storing files separately from the database, I may need to rethink my strategy, but with a web app, it basically amounts to the same thing, except that in FM 12 the relationship between attached files and the database is handled by the database itself rather than by using a stored link to an upload. >> >> 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 Feb 7, 2013, at 6:16 PM, Malcolm Fitzgerald wrote: >> >>> I wondering how other people have handled file uploads to FMPro databases. I've read the docs and they say that web users only get read privileges on container fields. That doesn't prevent us from accepting file uploads in the browser and putting them somewhere so that they can be accessed later on. >> >> _______________________________________________ >> 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/20130208/5950066b/attachment.html From steve at bluecrocodile.co.nz Fri Feb 8 01:10:26 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Fri Feb 8 00:15:57 2013 Subject: [FX.php List] Handling File Uploads In-Reply-To: <60A84037-AECB-4726-A396-892CB5FB85E2@notyourhomework.net> References: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> <6247B33D-35D6-4355-BF48-3934D61B3246@patin.com> <54AC1E64-6980-4096-A370-6CB81B288CEC@customikesolutions.com> <60A84037-AECB-4726-A396-892CB5FB85E2@notyourhomework.net> Message-ID: <5E8F5F4F-C52E-407B-94DD-E122287D4196@bluecrocodile.co.nz> Hi Malcolm All the advice and guidance you've received has contained excellent solutions, and comment, however much of it is, in my mind, now outdated by the arrival of FM12, external containers and the Insert From URL script step. In the past you didn't want to insert files into FM because it bloated the DB In the past you could upload files to a folder on the network and someone could manually import a reference into a container In the past uploading to another folder on the server and using a web viewer was a great solution (I did a demo at DevCon 2010 of a drag-and-drop solution which worked from both the web, and a web viewer in FM, to use the same functionality for uploading and accessing files on both the web and FM) Currently, you can't 'monkey around' with the FileStructure which FM creates for external files directly BUT you can most certainly provide a very smooth user experience from the web which gets files directly into container fields so that they can be viewed in their containers in FM. The process goes like this; build PHP page which uploads file to web server call script on FMS using PHP which creates new record and imports file into container That's it?! Attached is a very simple demo of this which I used at a recent TechNet session here in the UK. It uses the API rather than FX, but translating the code is trivial? to see it work, upload the DB to your FMS, drop the PHP file and the folder into your web root, give Apache/IIS write permissions on the folder, browse to the PHP file, enjoy the majesty?! Clearly adding a jQuery (or other framework as desired) drag and drop uploader to the 'front' in place of a standard form upload would be quite a simple task to undertake? If you're still in pre FM12 land an interested in the drag and drop solution for that (aspects of which Mr Patin as previously implemented to good effect with clients) then drop me a line... Cheers Steve > That's right. The security model applies to container fields. The data may be stored outside the database but it is still subject to the security model. That prohibits us from modifying these files at will. > > Malcolm > > > On 08/02/2013, at 4:07 PM, Head Honcho wrote: > >> It is not recommended to touch/use FileMaker's externally stored files. If you fiddle with them, FileMaker complains and says they've been modified (by an external user). >> >> Certainly keeps the bloat of the solution down, but isn't as helpful as first thought >> >> Regards >> >> Michael Ward >> -- >> Head Honcho, CustoMike Solutions >> Member, FileMaker Business Alliance & FileMaker Technical Network >> FileMaker 7, 8, 9, 10 & 11 Certified Developer >> ph 0414 562 501 >> headhoncho@customikesolutions.com >> >> On 08/02/2013, at 11:29 AM, Bob Patin wrote: >> >>> I don't ever upload into container fields, because they just bloat the database. Instead, I upload to directories on the clients' sites, and link to them using a field in the database. >>> >>> Now, with FileMaker storing files separately from the database, I may need to rethink my strategy, but with a web app, it basically amounts to the same thing, except that in FM 12 the relationship between attached files and the database is handled by the database itself rather than by using a stored link to an upload. >>> >>> 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 Feb 7, 2013, at 6:16 PM, Malcolm Fitzgerald wrote: >>> >>>> I wondering how other people have handled file uploads to FMPro databases. I've read the docs and they say that web users only get read privileges on container fields. That doesn't prevent us from accepting file uploads in the browser and putting them somewhere so that they can be accessed later on. >>> >>> _______________________________________________ >>> 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 -------------- next part -------------- Skipped content of type multipart/mixed From malcolm at notyourhomework.net Fri Feb 8 03:51:10 2013 From: malcolm at notyourhomework.net (Malcolm Fitzgerald) Date: Fri Feb 8 02:56:34 2013 Subject: [FX.php List] Handling File Uploads In-Reply-To: <5E8F5F4F-C52E-407B-94DD-E122287D4196@bluecrocodile.co.nz> References: <675367EC-4400-409E-B09B-2C9D35F5DEE0@notyourhomework.net> <6247B33D-35D6-4355-BF48-3934D61B3246@patin.com> <54AC1E64-6980-4096-A370-6CB81B288CEC@customikesolutions.com> <60A84037-AECB-4726-A396-892CB5FB85E2@notyourhomework.net> <5E8F5F4F-C52E-407B-94DD-E122287D4196@bluecrocodile.co.nz> Message-ID: <191A4B20-7EA3-41B3-BABF-0ADE4A3B3EC7@notyourhomework.net> Terrific. I'll dig in and have a look. thanks Malcolm On 08/02/2013, at 7:10 PM, Steve Winter wrote: > Hi Malcolm > > All the advice and guidance you've received has contained excellent solutions, and comment, however much of it is, in my mind, now outdated by the arrival of FM12, external containers and the Insert From URL script step. > > In the past you didn't want to insert files into FM because it bloated the DB > In the past you could upload files to a folder on the network and someone could manually import a reference into a container > In the past uploading to another folder on the server and using a web viewer was a great solution (I did a demo at DevCon 2010 of a drag-and-drop solution which worked from both the web, and a web viewer in FM, to use the same functionality for uploading and accessing files on both the web and FM) > Currently, you can't 'monkey around' with the FileStructure which FM creates for external files directly > > BUT you can most certainly provide a very smooth user experience from the web which gets files directly into container fields so that they can be viewed in their containers in FM. The process goes like this; > > build PHP page which uploads file to web server > call script on FMS using PHP which creates new record and imports file into container > > That's it?! Attached is a very simple demo of this which I used at a recent TechNet session here in the UK. It uses the API rather than FX, but translating the code is trivial? to see it work, upload the DB to your FMS, drop the PHP file and the folder into your web root, give Apache/IIS write permissions on the folder, browse to the PHP file, enjoy the majesty?! > > Clearly adding a jQuery (or other framework as desired) drag and drop uploader to the 'front' in place of a standard form upload would be quite a simple task to undertake? If you're still in pre FM12 land an interested in the drag and drop solution for that (aspects of which Mr Patin as previously implemented to good effect with clients) then drop me a line... > > Cheers > Steve > > > > > >> That's right. The security model applies to container fields. The data may be stored outside the database but it is still subject to the security model. That prohibits us from modifying these files at will. >> >> Malcolm >> >> >> On 08/02/2013, at 4:07 PM, Head Honcho wrote: >> >>> It is not recommended to touch/use FileMaker's externally stored files. If you fiddle with them, FileMaker complains and says they've been modified (by an external user). >>> >>> Certainly keeps the bloat of the solution down, but isn't as helpful as first thought >>> >>> Regards >>> >>> Michael Ward >>> -- >>> Head Honcho, CustoMike Solutions >>> Member, FileMaker Business Alliance & FileMaker Technical Network >>> FileMaker 7, 8, 9, 10 & 11 Certified Developer >>> ph 0414 562 501 >>> headhoncho@customikesolutions.com >>> >>> On 08/02/2013, at 11:29 AM, Bob Patin wrote: >>> >>>> I don't ever upload into container fields, because they just bloat the database. Instead, I upload to directories on the clients' sites, and link to them using a field in the database. >>>> >>>> Now, with FileMaker storing files separately from the database, I may need to rethink my strategy, but with a web app, it basically amounts to the same thing, except that in FM 12 the relationship between attached files and the database is handled by the database itself rather than by using a stored link to an upload. >>>> >>>> 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 Feb 7, 2013, at 6:16 PM, Malcolm Fitzgerald wrote: >>>> >>>>> I wondering how other people have handled file uploads to FMPro databases. I've read the docs and they say that web users only get read privileges on container fields. That doesn't prevent us from accepting file uploads in the browser and putting them somewhere so that they can be accessed later on. >>>> >>>> _______________________________________________ >>>> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130208/9c8d0728/attachment.html From jsfmp at earthlink.net Thu Feb 14 18:02:07 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Feb 14 17:06:54 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification Message-ID: Hi all Just seeking some basic clarification on SSL certs & DNS w/ domains, subdomains, etc. 1) Given the following two sites: abc.domain.com/apples/ abc.domain.com/bananas/ Is it correct that these two sites: a) Can share one SSL cert b) Must be on the same server 2) Given the following two sites: apples.domain.com/ bananas.domain.com/ Is it correct that these two sites: a) Must each have their own SSL cert b) Can be on the same server or on two different servers TIA, -Joel From jschwartz at exit445.com Thu Feb 14 18:15:46 2013 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Thu Feb 14 17:20:42 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: Message-ID: <7E54133D-F1B9-45B1-9243-863860C79951@exit445.com> Correct. For example #1, the cert must be defined as abc.domain.com. Hth. Jonathan Schwartz Exit 445 Group 415-370-5011 On Feb 14, 2013, at 5:02 PM, Joel Shapiro wrote: > Hi all > > Just seeking some basic clarification on SSL certs & DNS w/ domains, subdomains, etc. > > 1) Given the following two sites: > abc.domain.com/apples/ > abc.domain.com/bananas/ > > Is it correct that these two sites: > a) Can share one SSL cert > b) Must be on the same server > > > 2) Given the following two sites: > apples.domain.com/ > bananas.domain.com/ > > Is it correct that these two sites: > a) Must each have their own SSL cert > b) Can be on the same server or on two different servers > > > TIA, > -Joel_______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Thu Feb 14 18:20:35 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Feb 14 17:25:21 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: <7E54133D-F1B9-45B1-9243-863860C79951@exit445.com> References: <7E54133D-F1B9-45B1-9243-863860C79951@exit445.com> Message-ID: <0876BFBF-E801-4BC5-8166-E0881D389724@earthlink.net> Cool. Thanks Jonathan! -Joel On Feb 14, 2013, at 5:15 PM, Jonathan Schwartz wrote: > Correct. > > For example #1, the cert must be defined as abc.domain.com. > > Hth. > > Jonathan Schwartz > Exit 445 Group > 415-370-5011 > > On Feb 14, 2013, at 5:02 PM, Joel Shapiro wrote: > >> Hi all >> >> Just seeking some basic clarification on SSL certs & DNS w/ domains, subdomains, etc. >> >> 1) Given the following two sites: >> abc.domain.com/apples/ >> abc.domain.com/bananas/ >> >> Is it correct that these two sites: >> a) Can share one SSL cert >> b) Must be on the same server >> >> >> 2) Given the following two sites: >> apples.domain.com/ >> bananas.domain.com/ >> >> Is it correct that these two sites: >> a) Must each have their own SSL cert >> b) Can be on the same server or on two different servers >> >> >> TIA, >> -Joel_______________________________________________ >> 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 jschwartz at exit445.com Thu Feb 14 18:34:31 2013 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Thu Feb 14 17:39:27 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: <0876BFBF-E801-4BC5-8166-E0881D389724@earthlink.net> References: <7E54133D-F1B9-45B1-9243-863860C79951@exit445.com> <0876BFBF-E801-4BC5-8166-E0881D389724@earthlink.net> Message-ID: One more thing...you need a different IP address for each ssl cert. Jonathan Schwartz Exit 445 Group 415-370-5011 On Feb 14, 2013, at 5:20 PM, Joel Shapiro wrote: > Cool. Thanks Jonathan! > > -Joel > > > On Feb 14, 2013, at 5:15 PM, Jonathan Schwartz wrote: > >> Correct. >> >> For example #1, the cert must be defined as abc.domain.com. >> >> Hth. >> >> Jonathan Schwartz >> Exit 445 Group >> 415-370-5011 >> >> On Feb 14, 2013, at 5:02 PM, Joel Shapiro wrote: >> >>> Hi all >>> >>> Just seeking some basic clarification on SSL certs & DNS w/ domains, subdomains, etc. >>> >>> 1) Given the following two sites: >>> abc.domain.com/apples/ >>> abc.domain.com/bananas/ >>> >>> Is it correct that these two sites: >>> a) Can share one SSL cert >>> b) Must be on the same server >>> >>> >>> 2) Given the following two sites: >>> apples.domain.com/ >>> bananas.domain.com/ >>> >>> Is it correct that these two sites: >>> a) Must each have their own SSL cert >>> b) Can be on the same server or on two different servers >>> >>> >>> TIA, >>> -Joel_______________________________________________ >>> 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 headhoncho at customikesolutions.com Thu Feb 14 19:31:40 2013 From: headhoncho at customikesolutions.com (Head Honcho) Date: Thu Feb 14 18:36:38 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: Message-ID: you can get wildcard ssl certificates (*.domain.com) that will cover: apple.domain.com banana.domain.com. Hope this helps. Regards Michael Ward -- Head Honcho, CustoMike Solutions Member, FileMaker Business Alliance & FileMaker Technical Network FileMaker 7, 8, 9, 10 & 11 Certified Developer ph 0414 562 501 headhoncho@customikesolutions.com On 15/02/2013, at 12:02 PM, Joel Shapiro wrote: > Hi all > > Just seeking some basic clarification on SSL certs & DNS w/ domains, subdomains, etc. > > 1) Given the following two sites: > abc.domain.com/apples/ > abc.domain.com/bananas/ > > Is it correct that these two sites: > a) Can share one SSL cert > b) Must be on the same server > > > 2) Given the following two sites: > apples.domain.com/ > bananas.domain.com/ > > Is it correct that these two sites: > a) Must each have their own SSL cert > b) Can be on the same server or on two different servers > > > TIA, > -Joel_______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From jsfmp at earthlink.net Thu Feb 14 19:43:23 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Thu Feb 14 18:48:10 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: Message-ID: Thanks Michael Would the two subdomains need to reside on the same server in order to use one wildcard ssl cert? -Joel On Feb 14, 2013, at 6:31 PM, Head Honcho wrote: > you can get wildcard ssl certificates (*.domain.com) that will cover: > > apple.domain.com > banana.domain.com. > > Hope this helps. > > Regards > > Michael Ward > -- > Head Honcho, CustoMike Solutions > Member, FileMaker Business Alliance & FileMaker Technical Network > FileMaker 7, 8, 9, 10 & 11 Certified Developer > ph 0414 562 501 > headhoncho@customikesolutions.com > > On 15/02/2013, at 12:02 PM, Joel Shapiro wrote: > >> Hi all >> >> Just seeking some basic clarification on SSL certs & DNS w/ domains, subdomains, etc. >> >> 1) Given the following two sites: >> abc.domain.com/apples/ >> abc.domain.com/bananas/ >> >> Is it correct that these two sites: >> a) Can share one SSL cert >> b) Must be on the same server >> >> >> 2) Given the following two sites: >> apples.domain.com/ >> bananas.domain.com/ >> >> Is it correct that these two sites: >> a) Must each have their own SSL cert >> b) Can be on the same server or on two different servers >> >> >> TIA, >> -Joel_______________________________________________ >> 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 phil at eden.net.nz Thu Feb 14 19:44:31 2013 From: phil at eden.net.nz (Philip Lamb) Date: Thu Feb 14 18:49:28 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: <7E54133D-F1B9-45B1-9243-863860C79951@exit445.com> <0876BFBF-E801-4BC5-8166-E0881D389724@earthlink.net> Message-ID: The answers given so far are incorrect. >>>> 1) Given the following two sites: >>>> abc.domain.com/apples/ >>>> abc.domain.com/bananas/ >>>> >>>> Is it correct that these two sites: >>>> a) Can share one SSL cert Yes. >>>> b) Must be on the same server No. You can use different servers. SSL certificates are not tied to IP addresses, nor machines. The only requirement is that the hostname of the HTTP request resolve to the hostname in the certificate. For the server to actually use the certificate it must also hold the private key tied to the certificate -- sometimes this can be difficult to arrange. Think about a big site which uses round-robin DNS with https. E.g. https://www.google.com. Multiple IP addresses are returned for that domain name query, and each IP address has a server which answers to www.google.com on port 443. >>>> 2) Given the following two sites: >>>> apples.domain.com/ >>>> bananas.domain.com/ >>>> >>>> Is it correct that these two sites: >>>> a) Must each have their own SSL cert No. You can use a wildcard SSL certificate. >>>> b) Can be on the same server or on two different servers >>>> Yes to both. Multihosting SSL sites on a single IP requires browser support, but it is supported by all the modern browsers. See http://serverfault.com/questions/109800/multiple-ssl-domains-on-the-same-ip-address-and-same-port. Regards, Phil. -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 4881 bytes Desc: not available Url : http://mail.iviking.org/pipermail/fx.php_list/attachments/20130215/8b7c8204/smime.bin From bob at patin.com Thu Feb 14 19:56:14 2013 From: bob at patin.com (Bob Patin) Date: Thu Feb 14 19:01:05 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: Message-ID: Actually, assuming your example is what you're going to use, you can use the same cert for both. The cert doesn't care about folders; you can use this: https://abc.domain.com/apples/index.php and also use it for https://abc.domain.com/oranges/index.php Same cert. I do it all the time, in fact; I have an SSL cert for each of my servers, that clients can then hook into, for example: https://ssl7.longtermsolutions.com/joeclient/index.php or https://ssl7.longtermsolutions.com/susieclient/index.htm Same cert... If you only want one cert on the server, you don't need to use a 2nd IP address, but I usually do anyway. I HIGHLY recommend rapidssl.com; takes all of 5 minutes max to get your cert. What OS are you using, and what version? I have a couple of tips about setting it up on OS X Server... 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 Feb 14, 2013, at 7:02 PM, Joel Shapiro wrote: > Hi all > > Just seeking some basic clarification on SSL certs & DNS w/ domains, subdomains, etc. > > 1) Given the following two sites: > abc.domain.com/apples/ > abc.domain.com/bananas/ > > Is it correct that these two sites: > a) Can share one SSL cert > b) Must be on the same server > > > 2) Given the following two sites: > apples.domain.com/ > bananas.domain.com/ > > Is it correct that these two sites: > a) Must each have their own SSL cert > b) Can be on the same server or on two different servers > > > TIA, > -Joel_______________________________________________ > 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 Thu Feb 14 19:58:39 2013 From: bob at patin.com (Bob Patin) Date: Thu Feb 14 19:03:30 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: Message-ID: One note though: this will NOt work: https://www.domain.com will not work with abc.domain.com certificate... it looks at both subdomain and domain, and the top-level domain too (.com, etc.). On Feb 14, 2013, at 8:56 PM, Bob Patin wrote: > Actually, assuming your example is what you're going to use, you can use the same cert for both. > > The cert doesn't care about folders; you can use this: > > https://abc.domain.com/apples/index.php > > and also use it for > > https://abc.domain.com/oranges/index.php > > Same cert. > > I do it all the time, in fact; I have an SSL cert for each of my servers, that clients can then hook into, for example: > > https://ssl7.longtermsolutions.com/joeclient/index.php > or > https://ssl7.longtermsolutions.com/susieclient/index.htm > > Same cert... > > If you only want one cert on the server, you don't need to use a 2nd IP address, but I usually do anyway. > > I HIGHLY recommend rapidssl.com; takes all of 5 minutes max to get your cert. What OS are you using, and what version? I have a couple of tips about setting it up on OS X Server... > > > 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 Feb 14, 2013, at 7:02 PM, Joel Shapiro wrote: > >> Hi all >> >> Just seeking some basic clarification on SSL certs & DNS w/ domains, subdomains, etc. >> >> 1) Given the following two sites: >> abc.domain.com/apples/ >> abc.domain.com/bananas/ >> >> Is it correct that these two sites: >> a) Can share one SSL cert >> b) Must be on the same server >> >> >> 2) Given the following two sites: >> apples.domain.com/ >> bananas.domain.com/ >> >> Is it correct that these two sites: >> a) Must each have their own SSL cert >> b) Can be on the same server or on two different servers >> >> >> TIA, >> -Joel_______________________________________________ >> 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 Fri Feb 15 01:43:07 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Fri Feb 15 00:48:09 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: Message-ID: <3847C5CA-87CC-43BF-A7F3-D4F425DBDF1C@bluecrocodile.co.nz> Unless you have a wildcard cert? which if you don't need EV and given the cost of certs has come down significantly is a relatively cost-effective approach these days? > One note though: this will NOt work: > > https://www.domain.com > > will not work with abc.domain.com certificate... it looks at both subdomain and domain, and the top-level domain too (.com, etc.). > > > > > On Feb 14, 2013, at 8:56 PM, Bob Patin wrote: > >> Actually, assuming your example is what you're going to use, you can use the same cert for both. >> >> The cert doesn't care about folders; you can use this: >> >> https://abc.domain.com/apples/index.php >> >> and also use it for >> >> https://abc.domain.com/oranges/index.php >> >> Same cert. >> >> I do it all the time, in fact; I have an SSL cert for each of my servers, that clients can then hook into, for example: >> >> https://ssl7.longtermsolutions.com/joeclient/index.php >> or >> https://ssl7.longtermsolutions.com/susieclient/index.htm >> >> Same cert... >> >> If you only want one cert on the server, you don't need to use a 2nd IP address, but I usually do anyway. >> >> I HIGHLY recommend rapidssl.com; takes all of 5 minutes max to get your cert. What OS are you using, and what version? I have a couple of tips about setting it up on OS X Server... >> >> >> 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 Feb 14, 2013, at 7:02 PM, Joel Shapiro wrote: >> >>> Hi all >>> >>> Just seeking some basic clarification on SSL certs & DNS w/ domains, subdomains, etc. >>> >>> 1) Given the following two sites: >>> abc.domain.com/apples/ >>> abc.domain.com/bananas/ >>> >>> Is it correct that these two sites: >>> a) Can share one SSL cert >>> b) Must be on the same server >>> >>> >>> 2) Given the following two sites: >>> apples.domain.com/ >>> bananas.domain.com/ >>> >>> Is it correct that these two sites: >>> a) Must each have their own SSL cert >>> b) Can be on the same server or on two different servers >>> >>> >>> TIA, >>> -Joel_______________________________________________ >>> 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 steve at bluecrocodile.co.nz Fri Feb 15 01:44:08 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Fri Feb 15 00:49:06 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: Message-ID: <5CAAC7C8-3810-41D6-B398-0C9FF491723A@bluecrocodile.co.nz> > I HIGHLY recommend rapidssl.com; takes all of 5 minutes max to get your cert. Likewise? quick, efficient, and cost effective at $50 for a single sub-domain cert and $200 for a wildcard cert... 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/20130215/b5e07afa/attachment.html From steve at bluecrocodile.co.nz Fri Feb 15 02:02:03 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Fri Feb 15 01:07:04 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: <7E54133D-F1B9-45B1-9243-863860C79951@exit445.com> <0876BFBF-E801-4BC5-8166-E0881D389724@earthlink.net> Message-ID: Joel I suspect based on your thread on the FM board that you may had found a way round this anyway, but anyway? Phil has given the most complete and accurate answer - I've added a few notes below for additional thought/clarity... > The answers given so far are incorrect. > >>>>> 1) Given the following two sites: >>>>> abc.domain.com/apples/ >>>>> abc.domain.com/bananas/ >>>>> >>>>> Is it correct that these two sites: >>>>> a) Can share one SSL cert > > Yes. > >>>>> b) Must be on the same server > > No. You can use different servers. However - if they're not on the same server then you're going to have to do something clever with some other 'device' which is on the same IP... > SSL certificates are not tied to IP addresses, nor machines. The only requirement is that the hostname of the HTTP request resolve to the hostname in the certificate. For the server to actually use the certificate it must also hold the private key tied to the certificate -- sometimes this can be difficult to arrange. > > Think about a big site which uses round-robin DNS with https. E.g. https://www.google.com. Multiple IP addresses are returned for that domain name query, and each IP address has a server which answers to www.google.com on port 443. Whilst accurate, this isn't (entirely) relevant, since each of those servers which 'answers' to google.com offers the 'complete' google.com feature set. If I understand what Joel was asking correctly, could 'apples' be delivered by server A, while 'bananas' is delivered by server B, then the answer is slightly different. (though not from the perspective of the SSL cert - it doesn't care, and as Phil has said, the same cert could be used on 100 different machines, all responding to the same domain name). If you point the same domain name at two different servers, then both those servers need to know how to deliver the content for /apples and /bananas - or, provide a way to full fill those requests. One way of achieving this would be to use a load balancer, and for that device (could just be a correctly configured Apache web server, or a more specialised application/piece of kit) to respond to abc.domain.com, then to pass requests for /apples to one server, and /bananas to another server, both of which are running 'behind' the load balancer. A second alternative, in a similar vain, would be to configure the web server on the box which delivers content for /apples to proxy the content from the server which does /bananas when someone requests content from /bananas on it, but this is going to have a performance impact, particularly if the servers are on different LANs... >>>>> 2) Given the following two sites: >>>>> apples.domain.com/ >>>>> bananas.domain.com/ >>>>> >>>>> Is it correct that these two sites: >>>>> a) Must each have their own SSL cert > > No. You can use a wildcard SSL certificate. As per my previous post, that's true so long as you're not trying to use EV. if you want EV (when the SSL icon in a user browser turns green) then that requires an individual certificate for each domain name. The other thing with wildcard certs is that they only become cost effective at about 4 sub-domains... >>>>> b) Can be on the same server or on two different servers > > Yes to both. Multihosting SSL sites on a single IP requires browser support, but it is supported by all the modern browsers. See http://serverfault.com/questions/109800/multiple-ssl-domains-on-the-same-ip-address-and-same-port. One item in the excellent article above worth highlighting is Internet Explorer (any version) on Windows XP which may not be too much of an issue for you, however in my experience there are sadly still rather a lot of users who through the requirements of their corporate IT systems fall into that category.. Coupling this with your question on the FM list, then your solution there, would allow the first option above to work rather well - deliver your content from /apples and /bananas on the same server? (is it at all possible that this may be a client of yours I've also done a little work for??) Cheers Steve > Regards, > Phil. > > _______________________________________________ > 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/20130215/18c35353/attachment.html From jmaymailing at pointinspace.com Fri Feb 15 06:34:38 2013 From: jmaymailing at pointinspace.com (John May) Date: Fri Feb 15 05:39:28 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: <7E54133D-F1B9-45B1-9243-863860C79951@exit445.com> <0876BFBF-E801-4BC5-8166-E0881D389724@earthlink.net> Message-ID: <511E396E.5010100@pointinspace.com> >>>>> b) Can be on the same server or on two different servers >>>>> > > Yes to both. Multihosting SSL sites on a single IP requires browser > support, but it is supported by all the modern browsers. See > http://serverfault.com/questions/109800/multiple-ssl-domains-on-the-same-ip-address-and-same-port. > > I would not recommend multihoming SSL sites on one IP address (we don't do such here). See incompatibilities at: http://www.howtoforge.com/hosting-multiple-ssl-web-sites-on-one-ip-address-with-apache-2.2-and-gnutls-debian-lenny The biggest one being that it won't work with XP. - John -- ------------------------------------------------------------------- John May : President http://www.pointinspace.com/ Point In Space Internet Solutions 800.664.8610 919.338.8198 Professional FileMaker Pro, MySQL, PHP & Lasso Hosting on shared, virtual and hardware dedicated servers From jschwartz at exit445.com Fri Feb 15 07:41:16 2013 From: jschwartz at exit445.com (Jonathan Schwartz) Date: Fri Feb 15 06:46:08 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: Message-ID: Joel, Sorry. I got one of those answers wrong. ;-( For perspective, the wildcard cert provides ultimate flexibility, but at a cost. For just the two domains you use in the example, the cost of a wildcard cert versus two individual certs is double (rapidssl: $199 vs 2 x $49 ). If the domain count is likely to grow or cost is not an issue, the wildcard is a good choice. It boils down to cost versus convenience versus what your goal is. HTH Jonathan On Feb 14, 2013, at 5:02 PM, Joel Shapiro wrote: > Hi all > > Just seeking some basic clarification on SSL certs & DNS w/ domains, subdomains, etc. > > 1) Given the following two sites: > abc.domain.com/apples/ > abc.domain.com/bananas/ > > Is it correct that these two sites: > a) Can share one SSL cert > b) Must be on the same server > > > 2) Given the following two sites: > apples.domain.com/ > bananas.domain.com/ > > Is it correct that these two sites: > a) Must each have their own SSL cert > b) Can be on the same server or on two different servers > > > TIA, > -Joel_______________________________________________ > 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 Fri Feb 15 08:29:33 2013 From: bob at patin.com (Bob Patin) Date: Fri Feb 15 07:34:26 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: <5CAAC7C8-3810-41D6-B398-0C9FF491723A@bluecrocodile.co.nz> References: <5CAAC7C8-3810-41D6-B398-0C9FF491723A@bluecrocodile.co.nz> Message-ID: <9592DDE1-D9EC-4AEE-B981-4CFFC8C1FDD0@patin.com> You can even do 2 years on a regular cert for only $86; I just renewed one of mine yesterday, took all of 5 minutes. Steve's right (as usual of course!); prices have plummeted, almost half what they used to be... What I do for my clients is to just buy a server-wide cert; I assign a subdomain to the server, like xs4.longtermsolutions.com, and then I buy a cert for that subdomain so that any site on the machine can use it by just specifying their home directory, like so: https://xs4.longtermsolutions.com/domain/index.php 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 Feb 15, 2013, at 2:44 AM, Steve Winter wrote: > > >> I HIGHLY recommend rapidssl.com; takes all of 5 minutes max to get your cert. > > Likewise? quick, efficient, and cost effective at $50 for a single sub-domain cert and $200 for a wildcard cert... > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130215/e1bf7670/attachment-0001.html From jsfmp at earthlink.net Fri Feb 15 12:37:46 2013 From: jsfmp at earthlink.net (Joel Shapiro) Date: Fri Feb 15 11:42:35 2013 Subject: [FX.php List] [OFF] Basic SSL & DNS clarification In-Reply-To: References: <7E54133D-F1B9-45B1-9243-863860C79951@exit445.com> <0876BFBF-E801-4BC5-8166-E0881D389724@earthlink.net> Message-ID: Thanks everybody for all your great responses! My question after Phil's response was *how* one might have two directories of one domain on two separate servers, but Steve seems to have explained how one could set that up. FWIW: My question on FM's TechNet that Steve referred to was asking whether anyone could see any potential problems with having one Web Server serve both an FM12 site and an FM11 site -- by having the FM12 WPE on the web server and the FM11 WPE on the respective FMS11 DB server (& using the FM API). This works fine for me on my test servers, but I wanted to check if anyone could foresee any problems. (And it's not so much that that's a "way round" my questions in this thread; it's more that I'm looking to understand all the options and ramifications before I make my suggestions to the client :-) Thanks again, -Joel p.s. @Steve: No, unless you've been trawling the SF FM/Web market without my knowledge, I don't believe you know this client :) On Feb 15, 2013, at 1:02 AM, Steve Winter wrote: > Joel > > I suspect based on your thread on the FM board that you may had found a way round this anyway, but anyway? Phil has given the most complete and accurate answer - I've added a few notes below for additional thought/clarity... > >> The answers given so far are incorrect. >> >>>>>> 1) Given the following two sites: >>>>>> abc.domain.com/apples/ >>>>>> abc.domain.com/bananas/ >>>>>> >>>>>> Is it correct that these two sites: >>>>>> a) Can share one SSL cert >> >> Yes. >> >>>>>> b) Must be on the same server >> >> No. You can use different servers. > > However - if they're not on the same server then you're going to have to do something clever with some other 'device' which is on the same IP... > >> SSL certificates are not tied to IP addresses, nor machines. The only requirement is that the hostname of the HTTP request resolve to the hostname in the certificate. For the server to actually use the certificate it must also hold the private key tied to the certificate -- sometimes this can be difficult to arrange. >> >> Think about a big site which uses round-robin DNS with https. E.g. https://www.google.com. Multiple IP addresses are returned for that domain name query, and each IP address has a server which answers to www.google.com on port 443. > > Whilst accurate, this isn't (entirely) relevant, since each of those servers which 'answers' to google.com offers the 'complete' google.com feature set. > > If I understand what Joel was asking correctly, could 'apples' be delivered by server A, while 'bananas' is delivered by server B, then the answer is slightly different. (though not from the perspective of the SSL cert - it doesn't care, and as Phil has said, the same cert could be used on 100 different machines, all responding to the same domain name). > > If you point the same domain name at two different servers, then both those servers need to know how to deliver the content for /apples and /bananas - or, provide a way to full fill those requests. > > One way of achieving this would be to use a load balancer, and for that device (could just be a correctly configured Apache web server, or a more specialised application/piece of kit) to respond to abc.domain.com, then to pass requests for /apples to one server, and /bananas to another server, both of which are running 'behind' the load balancer. > > A second alternative, in a similar vain, would be to configure the web server on the box which delivers content for /apples to proxy the content from the server which does /bananas when someone requests content from /bananas on it, but this is going to have a performance impact, particularly if the servers are on different LANs... > >>>>>> 2) Given the following two sites: >>>>>> apples.domain.com/ >>>>>> bananas.domain.com/ >>>>>> >>>>>> Is it correct that these two sites: >>>>>> a) Must each have their own SSL cert >> >> No. You can use a wildcard SSL certificate. > > As per my previous post, that's true so long as you're not trying to use EV. if you want EV (when the SSL icon in a user browser turns green) then that requires an individual certificate for each domain name. The other thing with wildcard certs is that they only become cost effective at about 4 sub-domains... > >>>>>> b) Can be on the same server or on two different servers >> >> Yes to both. Multihosting SSL sites on a single IP requires browser support, but it is supported by all the modern browsers. See http://serverfault.com/questions/109800/multiple-ssl-domains-on-the-same-ip-address-and-same-port. > > One item in the excellent article above worth highlighting is > Internet Explorer (any version) on Windows XP > which may not be too much of an issue for you, however in my experience there are sadly still rather a lot of users who through the requirements of their corporate IT systems fall into that category.. > > Coupling this with your question on the FM list, then your solution there, would allow the first option above to work rather well - deliver your content from /apples and /bananas on the same server? (is it at all possible that this may be a client of yours I've also done a little work for??) > > Cheers > Steve > >> Regards, >> Phil. >> >> _______________________________________________ >> 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 From whatdoyouwant at gmail.com Mon Feb 18 13:29:09 2013 From: whatdoyouwant at gmail.com (Nick) Date: Mon Feb 18 12:33:47 2013 Subject: [FX.php List] Alternate grammar? In-Reply-To: References: <9B35A3AA-6597-457C-A6C9-F17097012DF8@gmail.com> <004DFB85-CC6E-4AFF-9A8A-92C428EABB1E@iViking.org> <438C1EBA-F13D-4538-A614-E128E6971C7E@gmail.com> <2CE2A804-3064-41B0-9432-749E72A6E8B2@iViking.org> <5106E9F7.6090307@umich.edu> Message-ID: I wanted to add to this - usePortalIDs=true doesn't do anything unless you have the actual portal object on the layout. On Thu, Feb 7, 2013 at 1:42 PM, Nick wrote: > If you're starting a new project using FM Server 12 (and you use portals > on your layouts), it is advisable to set $myQuery->usePortalIDs = true; > the difference is that portals have their record id/modid instead of zero > through x. > > That means that instead of using a for loop, use a foreach loop to walk > through the portal records (which is backwards compatible with the old way > as well). > > foreach ( $record['PortalTable::IDField'] as $portalkey => $portalIDData) > { > echo $record['PortalTable::OtherField'][$portalkey]; > > // only now portalkey is not 0 or 1, etc. It is recordnumber.modID like > the ['data'] array. > $portalTable_recordinfo = explode('.', $portalkey); > $portalTable_recordid = $portalTable_recordinfo[0]; > // if you wanted to loop through and edit, or something, use the recordID. > > } > > > usePortalIDs is set to false currently in order to maintain backwards > compatibility with the old code, for people that would use a for loop. > > > On Thu, Feb 7, 2013 at 10:03 AM, Michael McIntyre wrote: > >> To answer my own question, fmresultset.xml grammer can be invoked from >> the initial FX call, >> $myQuery = new FX($dbIP,$dbPort,$dbType); >> where $dbType='fmalt'; >> >> This would be an excellent addition to the PDF documentation. >> >> ~Michael >> >> On Mon, Jan 28, 2013 at 4:13 PM, Michael McIntyre >> wrote: >> > What config (in which files) is needed to invoke the fmresultset.xml >> grammer >> > & RetrieveFM7VerboseData.class.php? >> > >> > I set $dataServerType = 'fmalt' to no avail... >> > >> _______________________________________________ >> 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/20130218/ec34f797/attachment.html From chris at iViking.org Mon Feb 18 21:53:51 2013 From: chris at iViking.org (Chris Hansen) Date: Mon Feb 18 20:58:27 2013 Subject: [FX.php List] Alternate grammar? In-Reply-To: References: <9B35A3AA-6597-457C-A6C9-F17097012DF8@gmail.com> <004DFB85-CC6E-4AFF-9A8A-92C428EABB1E@iViking.org> <438C1EBA-F13D-4538-A614-E128E6971C7E@gmail.com> <2CE2A804-3064-41B0-9432-749E72A6E8B2@iViking.org> <5106E9F7.6090307@umich.edu> Message-ID: Okay. So what do you propose? --Chris On Feb 18, 2013, at 1:29 PM, Nick wrote: > I wanted to add to this - usePortalIDs=true doesn't do anything unless you have the actual portal object on the layout. > > > On Thu, Feb 7, 2013 at 1:42 PM, Nick wrote: > If you're starting a new project using FM Server 12 (and you use portals on your layouts), it is advisable to set $myQuery->usePortalIDs = true; > the difference is that portals have their record id/modid instead of zero through x. > > That means that instead of using a for loop, use a foreach loop to walk through the portal records (which is backwards compatible with the old way as well). > > foreach ( $record['PortalTable::IDField'] as $portalkey => $portalIDData) > { > echo $record['PortalTable::OtherField'][$portalkey]; > > // only now portalkey is not 0 or 1, etc. It is recordnumber.modID like the ['data'] array. > $portalTable_recordinfo = explode('.', $portalkey); > $portalTable_recordid = $portalTable_recordinfo[0]; > // if you wanted to loop through and edit, or something, use the recordID. > > } > > > usePortalIDs is set to false currently in order to maintain backwards compatibility with the old code, for people that would use a for loop. > > > On Thu, Feb 7, 2013 at 10:03 AM, Michael McIntyre wrote: > To answer my own question, fmresultset.xml grammer can be invoked from > the initial FX call, > $myQuery = new FX($dbIP,$dbPort,$dbType); > where $dbType='fmalt'; > > This would be an excellent addition to the PDF documentation. > > ~Michael > > On Mon, Jan 28, 2013 at 4:13 PM, Michael McIntyre wrote: > > What config (in which files) is needed to invoke the fmresultset.xml grammer > > & RetrieveFM7VerboseData.class.php? > > > > I set $dataServerType = 'fmalt' to no avail... > > > _______________________________________________ > 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 Wed Feb 20 15:52:27 2013 From: whatdoyouwant at gmail.com (Nick) Date: Wed Feb 20 14:56:57 2013 Subject: [FX.php List] Alternate grammar? In-Reply-To: References: <9B35A3AA-6597-457C-A6C9-F17097012DF8@gmail.com> <004DFB85-CC6E-4AFF-9A8A-92C428EABB1E@iViking.org> <438C1EBA-F13D-4538-A614-E128E6971C7E@gmail.com> <2CE2A804-3064-41B0-9432-749E72A6E8B2@iViking.org> <5106E9F7.6090307@umich.edu> Message-ID: Just to document that behavior. The portals use the old behavior when there is not a portal object. Developers iterating portals should always use foreach and not a for loop to keep compatibility for both ways. On Mon, Feb 18, 2013 at 10:53 PM, Chris Hansen wrote: > Okay. So what do you propose? > > --Chris > > On Feb 18, 2013, at 1:29 PM, Nick wrote: > > > I wanted to add to this - usePortalIDs=true doesn't do anything unless > you have the actual portal object on the layout. > > > > > > On Thu, Feb 7, 2013 at 1:42 PM, Nick wrote: > > If you're starting a new project using FM Server 12 (and you use portals > on your layouts), it is advisable to set $myQuery->usePortalIDs = true; > > the difference is that portals have their record id/modid instead of > zero through x. > > > > That means that instead of using a for loop, use a foreach loop to walk > through the portal records (which is backwards compatible with the old way > as well). > > > > foreach ( $record['PortalTable::IDField'] as $portalkey => $portalIDData) > > { > > echo $record['PortalTable::OtherField'][$portalkey]; > > > > // only now portalkey is not 0 or 1, etc. It is recordnumber.modID like > the ['data'] array. > > $portalTable_recordinfo = explode('.', $portalkey); > > $portalTable_recordid = $portalTable_recordinfo[0]; > > // if you wanted to loop through and edit, or something, use the > recordID. > > > > } > > > > > > usePortalIDs is set to false currently in order to maintain backwards > compatibility with the old code, for people that would use a for loop. > > > > > > On Thu, Feb 7, 2013 at 10:03 AM, Michael McIntyre > wrote: > > To answer my own question, fmresultset.xml grammer can be invoked from > > the initial FX call, > > $myQuery = new FX($dbIP,$dbPort,$dbType); > > where $dbType='fmalt'; > > > > This would be an excellent addition to the PDF documentation. > > > > ~Michael > > > > On Mon, Jan 28, 2013 at 4:13 PM, Michael McIntyre > wrote: > > > What config (in which files) is needed to invoke the fmresultset.xml > grammer > > > & RetrieveFM7VerboseData.class.php? > > > > > > I set $dataServerType = 'fmalt' to no avail... > > > > > _______________________________________________ > > 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/20130220/b3a346ee/attachment-0001.html From bob at patin.com Wed Feb 27 10:17:14 2013 From: bob at patin.com (Bob Patin) Date: Wed Feb 27 09:21:17 2013 Subject: [FX.php List] Problem w/ calling script from PHP Message-ID: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> I have a client's solution that *should* do this: 1. I edit a field - no problem here 2. I call a script in the database - no problem here 3. Script calls a script in a 2nd file on the same server - FAIL Is this a known limitation? Why can I not call a script from a 2nd, non-web-utilized file on the same server? 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 steve at bluecrocodile.co.nz Wed Feb 27 10:38:03 2013 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Wed Feb 27 09:42:11 2013 Subject: [FX.php List] Problem w/ calling script from PHP In-Reply-To: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> References: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> Message-ID: <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> Hi Bob I'd guess permissions are the issue? does the second file have the XML/PHP privilege set enabled?? does the user who is performing the script in the first file, exist in the second file?? and with the same password? and does that user have permission to run the script called by the first script?? Random thoughts that might help ;-) Cheers Steve > I have a client's solution that *should* do this: > > 1. I edit a field - no problem here > 2. I call a script in the database - no problem here > > 3. Script calls a script in a 2nd file on the same server - FAIL > > Is this a known limitation? Why can I not call a script from a 2nd, non-web-utilized file on the same server? > > 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 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/20130227/475ec5f3/attachment.html From andersm at mac.com Wed Feb 27 10:50:34 2013 From: andersm at mac.com (Anders Monsen) Date: Wed Feb 27 09:54:38 2013 Subject: [FX.php List] Problem w/ calling script from PHP In-Reply-To: <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> References: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> Message-ID: <512E476A.1060309@mac.com> Bob, This could be similar to server side scripts. You need to check the path of the second file in your external data source settings. Make sure the folder is included in the path. Also, you may need "../" or similar to point to the correct location. -- Anders On 2/27/13 11:38 AM, Steve Winter wrote: > Hi Bob > > I'd guess permissions are the issue... > > * does the second file have the XML/PHP privilege set enabled...? > * does the user who is performing the script in the first file, > exist in the second file...? > * and with the same password... > * and does that user have permission to run the script called by the > first script...? > > > Random thoughts that might help ;-) > > Cheers > Steve > >> I have a client's solution that *should* do this: >> >> 1. I edit a field - no problem here >> 2. I call a script in the database - no problem here >> >> 3. Script calls a script in a 2nd file on the same server - FAIL >> >> Is this a known limitation? Why can I not call a script from a 2nd, >> non-web-utilized file on the same server? >> >> 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 > > 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130227/00635f60/attachment.html From bob at patin.com Wed Feb 27 13:56:28 2013 From: bob at patin.com (Bob Patin) Date: Wed Feb 27 13:00:30 2013 Subject: [FX.php List] Problem w/ calling script from PHP In-Reply-To: <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> References: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> Message-ID: <9070DBB0-3C96-4C45-BB8C-EF615C1F457F@patin.com> I did think of that, enabled XML in the 2nd file, but it really didn't seem like that would be the issue. Could it be because the user in file A (web file) doesn't exist in file B? I'm thinking maybe, so i'm going to add that... 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 Feb 27, 2013, at 11:38 AM, Steve Winter wrote: > Hi Bob > > I'd guess permissions are the issue? > does the second file have the XML/PHP privilege set enabled?? > does the user who is performing the script in the first file, exist in the second file?? > and with the same password? > and does that user have permission to run the script called by the first script?? > > Random thoughts that might help ;-) > > Cheers > Steve > >> I have a client's solution that *should* do this: >> >> 1. I edit a field - no problem here >> 2. I call a script in the database - no problem here >> >> 3. Script calls a script in a 2nd file on the same server - FAIL >> >> Is this a known limitation? Why can I not call a script from a 2nd, non-web-utilized file on the same server? >> >> 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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130227/5067a13f/attachment.html From headhoncho at customikesolutions.com Wed Feb 27 15:20:27 2013 From: headhoncho at customikesolutions.com (Head Honcho) Date: Wed Feb 27 14:24:32 2013 Subject: [FX.php List] Problem w/ calling script from PHP In-Reply-To: <9070DBB0-3C96-4C45-BB8C-EF615C1F457F@patin.com> References: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> <9070DBB0-3C96-4C45-BB8C-EF615C1F457F@patin.com> Message-ID: <7282B73C-ECE4-4871-8157-A14AB07C242D@customikesolutions.com> Does the second file have the same privilege set(s) user(s) as the first file. For any FileMaker file to "talk" to another file, they need to have the correct privileges.... this goes for web "users" too. ie if logged in as "webUser" then the second file also has to have "webUser" as a user. Has caught me out on occasion too. Hope this helps. Regards Michael Ward -- Head Honcho, CustoMike Solutions Member, FileMaker Business Alliance & FileMaker Technical Network FileMaker 7 - 12 Certified Developer ph 0414 562 501 headhoncho@customikesolutions.com On 28/02/2013, at 7:56 AM, Bob Patin wrote: > I did think of that, enabled XML in the 2nd file, but it really didn't seem like that would be the issue. > > Could it be because the user in file A (web file) doesn't exist in file B? I'm thinking maybe, so i'm going to add that... > > 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 Feb 27, 2013, at 11:38 AM, Steve Winter wrote: > >> Hi Bob >> >> I'd guess permissions are the issue? >> does the second file have the XML/PHP privilege set enabled?? >> does the user who is performing the script in the first file, exist in the second file?? >> and with the same password? >> and does that user have permission to run the script called by the first script?? >> >> Random thoughts that might help ;-) >> >> Cheers >> Steve >> >>> I have a client's solution that *should* do this: >>> >>> 1. I edit a field - no problem here >>> 2. I call a script in the database - no problem here >>> >>> 3. Script calls a script in a 2nd file on the same server - FAIL >>> >>> Is this a known limitation? Why can I not call a script from a 2nd, non-web-utilized file on the same server? >>> >>> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130228/4ea5526a/attachment-0001.html From bob at patin.com Wed Feb 27 15:26:07 2013 From: bob at patin.com (Bob Patin) Date: Wed Feb 27 14:30:09 2013 Subject: [FX.php List] Problem w/ calling script from PHP In-Reply-To: <7282B73C-ECE4-4871-8157-A14AB07C242D@customikesolutions.com> References: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> <9070DBB0-3C96-4C45-BB8C-EF615C1F457F@patin.com> <7282B73C-ECE4-4871-8157-A14AB07C242D@customikesolutions.com> Message-ID: <91F7F5FF-4CB9-4785-8379-D979E347DD9E@patin.com> On Feb 27, 2013, at 4:20 PM, Head Honcho wrote: > Does the second file have the same privilege set(s) user(s) as the first file. yep... I really thought that would fix it, but so far no go... 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130227/4f6c8729/attachment.html From tim.webko at gmail.com Wed Feb 27 15:44:03 2013 From: tim.webko at gmail.com (Tim 'Webko' Booth) Date: Wed Feb 27 14:48:04 2013 Subject: [FX.php List] Problem w/ calling script from PHP In-Reply-To: <91F7F5FF-4CB9-4785-8379-D979E347DD9E@patin.com> References: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> <9070DBB0-3C96-4C45-BB8C-EF615C1F457F@patin.com> <7282B73C-ECE4-4871-8157-A14AB07C242D@customikesolutions.com> <91F7F5FF-4CB9-4785-8379-D979E347DD9E@patin.com> Message-ID: Also try running the script with full privileges at the script level... On 28 February 2013 09:26, Bob Patin wrote: > > On Feb 27, 2013, at 4:20 PM, Head Honcho < > headhoncho@customikesolutions.com> wrote: > > Does the second file have the same privilege set(s) user(s) as the first > file. > > > yep... > > I really thought that would fix it, but so far no go... > > 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 > > > _______________________________________________ > 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/20130228/6b96732a/attachment.html From bob at patin.com Wed Feb 27 16:10:53 2013 From: bob at patin.com (Bob Patin) Date: Wed Feb 27 15:14:55 2013 Subject: [FX.php List] Problem w/ calling script from PHP In-Reply-To: References: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> <9070DBB0-3C96-4C45-BB8C-EF615C1F457F@patin.com> <7282B73C-ECE4-4871-8157-A14AB07C242D@customikesolutions.com> <91F7F5FF-4CB9-4785-8379-D979E347DD9E@patin.com> Message-ID: <410D442C-C17A-400A-8343-76C786098F6F@patin.com> Did that... nothing works. I added the same web u/p that I use in the web app to all related databases; I added XML to the priv. set I set the web user to full-access I double-checked the external file path from file A to file B Very strange... 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 Feb 27, 2013, at 4:44 PM, Tim 'Webko' Booth wrote: > Also try running the script with full privileges at the script level... > > On 28 February 2013 09:26, Bob Patin wrote: > > On Feb 27, 2013, at 4:20 PM, Head Honcho wrote: > >> Does the second file have the same privilege set(s) user(s) as the first file. > > yep... > > I really thought that would fix it, but so far no go... > > 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 > > > _______________________________________________ > 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/20130227/ab99a60c/attachment.html From bob at patin.com Thu Feb 28 10:09:58 2013 From: bob at patin.com (Bob Patin) Date: Thu Feb 28 09:13:57 2013 Subject: [FX.php List] Problem w/ calling script from PHP In-Reply-To: <410D442C-C17A-400A-8343-76C786098F6F@patin.com> References: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> <9070DBB0-3C96-4C45-BB8C-EF615C1F457F@patin.com> <7282B73C-ECE4-4871-8157-A14AB07C242D@customikesolutions.com> <91F7F5FF-4CB9-4785-8379-D979E347DD9E@patin.com> <410D442C-C17A-400A-8343-76C786098F6F@patin.com> Message-ID: OK, here's even more to this wrinkle... To review: Web calls script; script runs... We added a step in the script to have it call a 2nd script in the SAME DATABASE. Doesn't run... Ideas? On Feb 27, 2013, at 5:10 PM, Bob Patin wrote: > Did that... nothing works. > > I added the same web u/p that I use in the web app to all related databases; > I added XML to the priv. set > I set the web user to full-access > I double-checked the external file path from file A to file B > > Very strange... > > > 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 Feb 27, 2013, at 4:44 PM, Tim 'Webko' Booth wrote: > >> Also try running the script with full privileges at the script level... >> >> On 28 February 2013 09:26, Bob Patin wrote: >> >> On Feb 27, 2013, at 4:20 PM, Head Honcho wrote: >> >>> Does the second file have the same privilege set(s) user(s) as the first file. >> >> yep... >> >> I really thought that would fix it, but so far no go... >> >> 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 >> >> >> _______________________________________________ >> 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/20130228/2fb15d6c/attachment.html From dsomar at gmail.com Thu Feb 28 10:30:29 2013 From: dsomar at gmail.com (Denis Somar) Date: Thu Feb 28 09:34:27 2013 Subject: [FX.php List] Problem w/ calling script from PHP In-Reply-To: References: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> <9070DBB0-3C96-4C45-BB8C-EF615C1F457F@patin.com> <7282B73C-ECE4-4871-8157-A14AB07C242D@customikesolutions.com> <91F7F5FF-4CB9-4785-8379-D979E347DD9E@patin.com> <410D442C-C17A-400A-8343-76C786098F6F@patin.com> Message-ID: Is perform subscript a web safe/server safe script as denoted in The script window of Fm Advanced? I would think it is, but you never know. Also, is this a db hosted by you or 3rd party host? On Thursday, February 28, 2013, Bob Patin wrote: > OK, here's even more to this wrinkle... > > To review: > > Web calls script; script runs... > > We added a step in the script to have it call a 2nd script in the SAME > DATABASE. > > Doesn't run... > > Ideas? > > > On Feb 27, 2013, at 5:10 PM, Bob Patin 'cvml', 'bob@patin.com');>> wrote: > > Did that... nothing works. > > I added the same web u/p that I use in the web app to all related > databases; > I added XML to the priv. set > I set the web user to full-access > I double-checked the external file path from file A to file B > > Very strange... > > > Bob Patin > Longterm Solutions LLC > bob@longtermsolutions.com '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 Feb 27, 2013, at 4:44 PM, Tim 'Webko' Booth > > wrote: > > Also try running the script with full privileges at the script level... > > On 28 February 2013 09:26, Bob Patin 'cvml', 'bob@patin.com');>> wrote: > >> >> On Feb 27, 2013, at 4:20 PM, Head Honcho < >> headhoncho@customikesolutions.com > 'headhoncho@customikesolutions.com');>> wrote: >> >> Does the second file have the same privilege set(s) user(s) as the first >> file. >> >> >> yep... >> >> I really thought that would fix it, but so far no go... >> >> BP >> >> >> Bob Patin >> Longterm Solutions LLC >> bob@longtermsolutions.com > '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 > '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 '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 '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/20130228/7f82fa1d/attachment-0001.html From bob at patin.com Thu Feb 28 10:47:50 2013 From: bob at patin.com (Bob Patin) Date: Thu Feb 28 09:51:47 2013 Subject: [FX.php List] Problem w/ calling script from PHP In-Reply-To: References: <08223BCC-7A65-4F41-B727-271E5B54C1B1@patin.com> <85AA5A68-FBFB-4155-A988-5EF7E84F7373@bluecrocodile.co.nz> <9070DBB0-3C96-4C45-BB8C-EF615C1F457F@patin.com> <7282B73C-ECE4-4871-8157-A14AB07C242D@customikesolutions.com> <91F7F5FF-4CB9-4785-8379-D979E347DD9E@patin.com> <410D442C-C17A-400A-8343-76C786098F6F@patin.com> Message-ID: <7BB02FDE-470A-4F25-8B08-4468C6738656@patin.com> Yes, it's just a one-line script in the 2nd script, just to see if it fires--it should send an email using hte SMTP server, which is something that works in script 1 when fired from the web, but not in script 2. These are hosted here by me. 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 Feb 28, 2013, at 11:30 AM, Denis Somar wrote: > Is perform subscript a web safe/server safe script as denoted in The script window of Fm Advanced? I would think it is, but you never know. Also, is this a db hosted by you or 3rd party host? -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130228/5b1a711c/attachment.html