From ggt667 at gmail.com Thu Nov 1 00:55:20 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Nov 1 00:55:25 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: References: Message-ID: And why are you running different versions? A real test environment should always be identical to the production environment ggt On 11/1/07, Dale Bengston wrote: > Hi John, > > I'm putting my money on paths. Can you post the code that produces > different results on the different servers? > > Thanks, > Dale > > On Oct 31, 2007, at 9:41 PM, John Funk wrote: > > > This may not be the place but I need to find out why on my Apache test > > server (Mac OS), can I use the PHP function (Require_Once) / > > (Include_once) > > just fine but on my production s Apache server (Unix) the PHP script > > just > > stalls right at the first occurance of this function. > > My server guy told me to compare PHP.ini files to see what is > > different. > > The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). > > > > Any more ideas out there? > > > > Thanks > > John Funk > > > > > > _______________________________________________ > > 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 rp272 at cam.ac.uk Thu Nov 1 03:35:21 2007 From: rp272 at cam.ac.uk (Roger Price) Date: Thu Nov 1 03:35:33 2007 Subject: [FX.php List] FMP Checkbox References: <2067E90059A94B28ACD8BBAA08ECA0B3@crim.cam.ac.uk><7.0.1.0.2.20071101103341.02832780@nicheit.com.au> Message-ID: <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> Thank you all for your various suggestions. Using '\n' rather than ''chr(10)' seems to have worked fine but only if I do the concatenation the 'tedious' way! Passing the checkbox values in an array seems very neat and works exactly as suggested. However when I implode the array with '\n' as the separator the resultant variable gives me: 'value1\nvalue1\nvalue3' which of course does not give the desired result in FMP. Why should this be - am I missing something? BTW Gjermund when do you expect the FX.php update that includes a checkbox feature to be released? kindest regards Roger ----- Original Message ----- From: "Gjermund Gusland Thorsen" To: "FX.php Discussion List" Sent: Thursday, November 01, 2007 12:31 AM Subject: Re: [FX.php List] FMP Checkbox > Never mess with the array cowboys ;-) They Rock! > > arrays and foreach are really one of the most beautiful combinations > in php AFAIK. > > and heredoc to let your brains focus on anything but quotes ;-) > > On 11/1/07, Tim 'Webko' Booth wrote: >> At 10:16 PM 31/10/2007, you wrote: >> >BTW did you ever consider using arrays? >> > >> >> >> As a note - this method rocks compared to anything else I've tried. >> >> Concatenation for large checkbox sets is tedious, and you can still >> end up with nothing but a heap of returns - the above creates a >> lovely array to play with :-0 >> >> Webko >> >> >> _______________________________________________ >> 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 ggt667 at gmail.com Thu Nov 1 03:48:42 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Nov 1 03:48:47 2007 Subject: [FX.php List] FMP Checkbox In-Reply-To: <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> References: <2067E90059A94B28ACD8BBAA08ECA0B3@crim.cam.ac.uk> <7.0.1.0.2.20071101103341.02832780@nicheit.com.au> <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> Message-ID: You have to put escaped characters such as \n and \t in double quotes. FX.php SP2 will be out as soon as possible, I have not sent my stuff to Chris yet, as package maintainer he will have to test it too. I expect X-mas +/- 1 month. If time allows. Gjermund On 11/1/07, Roger Price wrote: > Thank you all for your various suggestions. Using '\n' rather than > ''chr(10)' seems to have worked fine but only if I do the concatenation the > 'tedious' way! > > Passing the checkbox values in an array seems very neat and works exactly as > suggested. However when I implode the array with '\n' as the separator the > resultant variable gives me: > > 'value1\nvalue1\nvalue3' which of course does not give the desired result > in FMP. > > Why should this be - am I missing something? > > BTW Gjermund when do you expect the FX.php update that includes a checkbox > feature to be released? > > kindest regards > > Roger > > ----- Original Message ----- > From: "Gjermund Gusland Thorsen" > To: "FX.php Discussion List" > Sent: Thursday, November 01, 2007 12:31 AM > Subject: Re: [FX.php List] FMP Checkbox > > > > Never mess with the array cowboys ;-) They Rock! > > > > arrays and foreach are really one of the most beautiful combinations > > in php AFAIK. > > > > and heredoc to let your brains focus on anything but quotes ;-) > > > > On 11/1/07, Tim 'Webko' Booth wrote: > >> At 10:16 PM 31/10/2007, you wrote: > >> >BTW did you ever consider using arrays? > >> > > >> > >> > >> As a note - this method rocks compared to anything else I've tried. > >> > >> Concatenation for large checkbox sets is tedious, and you can still > >> end up with nothing but a heap of returns - the above creates a > >> lovely array to play with :-0 > >> > >> Webko > >> > >> > >> _______________________________________________ > >> 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 rp272 at cam.ac.uk Thu Nov 1 04:01:50 2007 From: rp272 at cam.ac.uk (Roger Price) Date: Thu Nov 1 04:01:57 2007 Subject: [FX.php List] FMP Checkbox References: <2067E90059A94B28ACD8BBAA08ECA0B3@crim.cam.ac.uk><7.0.1.0.2.20071101103341.02832780@nicheit.com.au><011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> Message-ID: <012901c81c6e$391fba20$2caa6f83@crim.cam.ac.uk> Such a simple thing and so easy to overlook! I will know better next time... thank you Roger ----- Original Message ----- From: "Gjermund Gusland Thorsen" To: "FX.php Discussion List" Sent: Thursday, November 01, 2007 9:48 AM Subject: Re: [FX.php List] FMP Checkbox > You have to put escaped characters such as \n and \t in double quotes. > > FX.php SP2 will be out as soon as possible, I have not sent my stuff > to Chris yet, as package maintainer he will have to test it too. I > expect X-mas +/- 1 month. If time allows. > > Gjermund > > On 11/1/07, Roger Price wrote: > > Thank you all for your various suggestions. Using '\n' rather than > > ''chr(10)' seems to have worked fine but only if I do the concatenation the > > 'tedious' way! > > > > Passing the checkbox values in an array seems very neat and works exactly as > > suggested. However when I implode the array with '\n' as the separator the > > resultant variable gives me: > > > > 'value1\nvalue1\nvalue3' which of course does not give the desired result > > in FMP. > > > > Why should this be - am I missing something? > > > > BTW Gjermund when do you expect the FX.php update that includes a checkbox > > feature to be released? > > > > kindest regards > > > > Roger > > > > ----- Original Message ----- > > From: "Gjermund Gusland Thorsen" > > To: "FX.php Discussion List" > > Sent: Thursday, November 01, 2007 12:31 AM > > Subject: Re: [FX.php List] FMP Checkbox > > > > > > > Never mess with the array cowboys ;-) They Rock! > > > > > > arrays and foreach are really one of the most beautiful combinations > > > in php AFAIK. > > > > > > and heredoc to let your brains focus on anything but quotes ;-) > > > > > > On 11/1/07, Tim 'Webko' Booth wrote: > > >> At 10:16 PM 31/10/2007, you wrote: > > >> >BTW did you ever consider using arrays? > > >> > > > >> > > >> > > >> As a note - this method rocks compared to anything else I've tried. > > >> > > >> Concatenation for large checkbox sets is tedious, and you can still > > >> end up with nothing but a heap of returns - the above creates a > > >> lovely array to play with :-0 > > >> > > >> Webko > > >> > > >> > > >> _______________________________________________ > > >> FX.php_List mailing list > > >> FX.php_List@mail.iviking.org > > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > >> > > > _______________________________________________ > > > FX.php_List mailing list > > > FX.php_List@mail.iviking.org > > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From ggt667 at gmail.com Thu Nov 1 05:31:47 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Nov 1 05:31:52 2007 Subject: [FX.php List] FMP Checkbox In-Reply-To: <012901c81c6e$391fba20$2caa6f83@crim.cam.ac.uk> References: <2067E90059A94B28ACD8BBAA08ECA0B3@crim.cam.ac.uk> <7.0.1.0.2.20071101103341.02832780@nicheit.com.au> <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> <012901c81c6e$391fba20$2caa6f83@crim.cam.ac.uk> Message-ID: Well if you start using heredoc, you will no longer have to deal with quotes at all. but it's kinda hard/alot extra inside functions? ggt667 On 11/1/07, Roger Price wrote: > Such a simple thing and so easy to overlook! I will know better next time... > > thank you > > Roger > ----- Original Message ----- > From: "Gjermund Gusland Thorsen" > To: "FX.php Discussion List" > Sent: Thursday, November 01, 2007 9:48 AM > Subject: Re: [FX.php List] FMP Checkbox > > > > You have to put escaped characters such as \n and \t in double quotes. > > > > FX.php SP2 will be out as soon as possible, I have not sent my stuff > > to Chris yet, as package maintainer he will have to test it too. I > > expect X-mas +/- 1 month. If time allows. > > > > Gjermund > > > > On 11/1/07, Roger Price wrote: > > > Thank you all for your various suggestions. Using '\n' rather than > > > ''chr(10)' seems to have worked fine but only if I do the concatenation > the > > > 'tedious' way! > > > > > > Passing the checkbox values in an array seems very neat and works > exactly as > > > suggested. However when I implode the array with '\n' as the separator > the > > > resultant variable gives me: > > > > > > 'value1\nvalue1\nvalue3' which of course does not give the desired > result > > > in FMP. > > > > > > Why should this be - am I missing something? > > > > > > BTW Gjermund when do you expect the FX.php update that includes a > checkbox > > > feature to be released? > > > > > > kindest regards > > > > > > Roger > > > > > > ----- Original Message ----- > > > From: "Gjermund Gusland Thorsen" > > > To: "FX.php Discussion List" > > > Sent: Thursday, November 01, 2007 12:31 AM > > > Subject: Re: [FX.php List] FMP Checkbox > > > > > > > > > > Never mess with the array cowboys ;-) They Rock! > > > > > > > > arrays and foreach are really one of the most beautiful combinations > > > > in php AFAIK. > > > > > > > > and heredoc to let your brains focus on anything but quotes ;-) > > > > > > > > On 11/1/07, Tim 'Webko' Booth wrote: > > > >> At 10:16 PM 31/10/2007, you wrote: > > > >> >BTW did you ever consider using arrays? > > > >> > > > > >> > > > >> > > > >> As a note - this method rocks compared to anything else I've tried. > > > >> > > > >> Concatenation for large checkbox sets is tedious, and you can still > > > >> end up with nothing but a heap of returns - the above creates a > > > >> lovely array to play with :-0 > > > >> > > > >> Webko > > > >> > > > >> > > > >> _______________________________________________ > > > >> FX.php_List mailing list > > > >> FX.php_List@mail.iviking.org > > > >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > >> > > > > _______________________________________________ > > > > FX.php_List mailing list > > > > FX.php_List@mail.iviking.org > > > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > > > > > > _______________________________________________ > > > FX.php_List mailing list > > > FX.php_List@mail.iviking.org > > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From csinfo at comcast.net Thu Nov 1 06:20:26 2007 From: csinfo at comcast.net (John Funk) Date: Thu Nov 1 06:20:30 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: Message-ID: We set up the test server before we knew about the environment at the production ISP. The ISP's machine is shared by multiple sites, some PHP so the version cannot be changed. Here is the code that is casueing problems: wi_form_lib.php is a script that does the form processing for FileMaker. And wi_form_lib.php calls FX.php. (I inherited this project so some of this was out of my control. Thanks John On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" wrote: > And why are you running different versions? > > A real test environment should always be identical to the production > environment > > ggt > > On 11/1/07, Dale Bengston wrote: >> Hi John, >> >> I'm putting my money on paths. Can you post the code that produces >> different results on the different servers? >> >> Thanks, >> Dale >> >> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >> >>> This may not be the place but I need to find out why on my Apache test >>> server (Mac OS), can I use the PHP function (Require_Once) / >>> (Include_once) >>> just fine but on my production s Apache server (Unix) the PHP script >>> just >>> stalls right at the first occurance of this function. >>> My server guy told me to compare PHP.ini files to see what is >>> different. >>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>> >>> Any more ideas out there? >>> >>> Thanks >>> John Funk >>> >>> >>> _______________________________________________ >>> 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 steve at bluecrocodile.co.nz Thu Nov 1 06:36:26 2007 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Nov 1 06:36:42 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: Message-ID: <20071101123639.08A6D5F2763@mail.iviking.org> Hi John, What do you see if you try; echo $_SERVER['DOCUMENT_ROOT'].'
'; Is the returned path correct...?? Have you just tried calling the include without that...? I tend to use relative references for includes, so in my instance I would have just put; Assuming that the file doing the calling is in the root, and wi_form_lib.php is in a sub folder of that called includes... Try those, see if you can get as far as getting wi_form_lib.php to load... stick an echo 'I loaded
'; as the first line so that you know that it is... Once you get that loading, then you can look to replicate the same tests in that file to determine what (if anything) is going wrong with including the FX.php files... Let us know how you get on... Cheers Steve -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk Sent: Thursday, 1 November 2007 12:20 p.m. To: FX.php Discussion List Subject: Re: [FX.php List] PHP.ini question We set up the test server before we knew about the environment at the production ISP. The ISP's machine is shared by multiple sites, some PHP so the version cannot be changed. Here is the code that is casueing problems: wi_form_lib.php is a script that does the form processing for FileMaker. And wi_form_lib.php calls FX.php. (I inherited this project so some of this was out of my control. Thanks John On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" wrote: > And why are you running different versions? > > A real test environment should always be identical to the production > environment > > ggt > > On 11/1/07, Dale Bengston wrote: >> Hi John, >> >> I'm putting my money on paths. Can you post the code that produces >> different results on the different servers? >> >> Thanks, >> Dale >> >> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >> >>> This may not be the place but I need to find out why on my Apache test >>> server (Mac OS), can I use the PHP function (Require_Once) / >>> (Include_once) >>> just fine but on my production s Apache server (Unix) the PHP script >>> just >>> stalls right at the first occurance of this function. >>> My server guy told me to compare PHP.ini files to see what is >>> different. >>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>> >>> Any more ideas out there? >>> >>> Thanks >>> John Funk >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list _______________________________________________ FX.php_List mailing list FX.php_List@mail.iviking.org http://www.iviking.org/mailman/listinfo/fx.php_list No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 6:01 a.m. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 6:01 a.m. From csinfo at comcast.net Thu Nov 1 06:56:35 2007 From: csinfo at comcast.net (John Funk) Date: Thu Nov 1 06:56:41 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: <20071101123639.08A6D5F2763@mail.iviking.org> Message-ID: Thanks Steve, At one time or another yesterday I tried echoing the path and it did return the machine path (not URL) it seems ok but I will try the relative method and let you know. John On 11/1/07 7:36 AM, "Steve Winter" wrote: > Hi John, > > What do you see if you try; > > echo $_SERVER['DOCUMENT_ROOT'].'
'; > > Is the returned path correct...?? > > Have you just tried calling the include without that...? I tend to use > relative references for includes, so in my instance I would have just put; > > > > Assuming that the file doing the calling is in the root, and wi_form_lib.php > is in a sub folder of that called includes... > > Try those, see if you can get as far as getting wi_form_lib.php to load... > stick an echo 'I loaded
'; as the first line so that you know that it > is... > > Once you get that loading, then you can look to replicate the same tests in > that file to determine what (if anything) is going wrong with including the > FX.php files... > > Let us know how you get on... > > Cheers > Steve > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk > Sent: Thursday, 1 November 2007 12:20 p.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] PHP.ini question > > We set up the test server before we knew about the environment at the > production ISP. The ISP's machine is shared by multiple sites, some PHP so > the version cannot be changed. > Here is the code that is casueing problems: > ?> > > wi_form_lib.php is a script that does the form processing for FileMaker. And > wi_form_lib.php calls FX.php. > (I inherited this project so some of this was out of my control. > Thanks > John > > On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" wrote: > >> And why are you running different versions? >> >> A real test environment should always be identical to the production >> environment >> >> ggt >> >> On 11/1/07, Dale Bengston wrote: >>> Hi John, >>> >>> I'm putting my money on paths. Can you post the code that produces >>> different results on the different servers? >>> >>> Thanks, >>> Dale >>> >>> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >>> >>>> This may not be the place but I need to find out why on my Apache test >>>> server (Mac OS), can I use the PHP function (Require_Once) / >>>> (Include_once) >>>> just fine but on my production s Apache server (Unix) the PHP script >>>> just >>>> stalls right at the first occurance of this function. >>>> My server guy told me to compare PHP.ini files to see what is >>>> different. >>>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>>> >>>> Any more ideas out there? >>>> >>>> Thanks >>>> John Funk >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 > 6:01 a.m. > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 > 6:01 a.m. > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From dbengston at preservationstudio.com Thu Nov 1 08:11:11 2007 From: dbengston at preservationstudio.com (Dale Bengston) Date: Thu Nov 1 08:11:22 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: References: Message-ID: <2E5CA41B-F2BA-4795-B4E7-B096B8A8748E@preservationstudio.com> There's a simple answer to that question: it is not practical. If I were to have a server that matched every single one of my clients' live environments, I'd need a mix of Mac and Windows servers, some using SSL, some using Kerberos, some running FileMaker 6 Unlimited, some running FMSA 7, some running FMSA 8, some running PHP4, some running PHP5... and I'd never be able to perfectly match the combination of firewalls and routers and DMZs and ports open and.... The PHP5 version installed on OS X Leopard doesn't come with PEAR supported. So now we can add that to our list of exceptions and quirks. You get the idea. The other alternative would be to dictate to our clients what they can deploy on. I don't know about the clients you work with, but we almost never have that luxury. The better solution is to write code that toggles settings based on platform and/or works with as many installation scenarios as possible. This means we've had to learn more than we thought about paths and $_SERVER variables on different platforms. Dale On Nov 1, 2007, at 1:55 AM, Gjermund Gusland Thorsen wrote: > And why are you running different versions? > > A real test environment should always be identical to the production > environment > > ggt > > On 11/1/07, Dale Bengston wrote: >> Hi John, >> >> I'm putting my money on paths. Can you post the code that produces >> different results on the different servers? >> >> Thanks, >> Dale >> >> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >> >>> This may not be the place but I need to find out why on my Apache >>> test >>> server (Mac OS), can I use the PHP function (Require_Once) / >>> (Include_once) >>> just fine but on my production s Apache server (Unix) the PHP script >>> just >>> stalls right at the first occurance of this function. >>> My server guy told me to compare PHP.ini files to see what is >>> different. >>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>> >>> Any more ideas out there? >>> >>> Thanks >>> John Funk >>> >>> >>> _______________________________________________ >>> 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 dbengston at preservationstudio.com Thu Nov 1 08:13:36 2007 From: dbengston at preservationstudio.com (Dale Bengston) Date: Thu Nov 1 08:13:42 2007 Subject: [FX.php List] Re: FX.php SP2 In-Reply-To: References: <2067E90059A94B28ACD8BBAA08ECA0B3@crim.cam.ac.uk> <7.0.1.0.2.20071101103341.02832780@nicheit.com.au> <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> Message-ID: <62E2E8CB-B876-4B81-B108-0EB9EF0CF9E4@preservationstudio.com> Does this service pack fix the bugs when using MySQL as one's data source? Dale On Nov 1, 2007, at 4:48 AM, Gjermund Gusland Thorsen wrote: > You have to put escaped characters such as \n and \t in double quotes. > > FX.php SP2 will be out as soon as possible, I have not sent my stuff > to Chris yet, as package maintainer he will have to test it too. I > expect X-mas +/- 1 month. If time allows. > > Gjermund > > On 11/1/07, Roger Price wrote: >> Thank you all for your various suggestions. Using '\n' rather than >> ''chr(10)' seems to have worked fine but only if I do the >> concatenation the >> 'tedious' way! >> >> Passing the checkbox values in an array seems very neat and works >> exactly as >> suggested. However when I implode the array with '\n' as the >> separator the >> resultant variable gives me: >> >> 'value1\nvalue1\nvalue3' which of course does not give the desired >> result >> in FMP. >> >> Why should this be - am I missing something? >> >> BTW Gjermund when do you expect the FX.php update that includes a >> checkbox >> feature to be released? >> >> kindest regards >> >> Roger >> >> ----- Original Message ----- >> From: "Gjermund Gusland Thorsen" >> To: "FX.php Discussion List" >> Sent: Thursday, November 01, 2007 12:31 AM >> Subject: Re: [FX.php List] FMP Checkbox >> >> >>> Never mess with the array cowboys ;-) They Rock! >>> >>> arrays and foreach are really one of the most beautiful combinations >>> in php AFAIK. >>> >>> and heredoc to let your brains focus on anything but quotes ;-) >>> >>> On 11/1/07, Tim 'Webko' Booth wrote: >>>> At 10:16 PM 31/10/2007, you wrote: >>>>> BTW did you ever consider using arrays? >>>>> >>>>> >>> >>>> As a note - this method rocks compared to anything else I've tried. >>>> >>>> Concatenation for large checkbox sets is tedious, and you can still >>>> end up with nothing but a heap of returns - the above creates a >>>> lovely array to play with :-0 >>>> >>>> Webko >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From leo at finalresort.org Thu Nov 1 02:06:20 2007 From: leo at finalresort.org (Leo R. Lundgren) Date: Thu Nov 1 08:37:39 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: References: Message-ID: <8AF47983-905F-463E-B4FB-70D9ACEA9E5C@finalresort.org> Start by trying a simple case where you require_once() a file in the same directory as the script. If that doesn't work, make sure it's not a permission issue, and then check if there are any differences to the settings by doing phpinfo() on both sides. -| 1 nov 2007 kl. 03.41 skrev John Funk: > This may not be the place but I need to find out why on my Apache test > server (Mac OS), can I use the PHP function (Require_Once) / > (Include_once) > just fine but on my production s Apache server (Unix) the PHP > script just > stalls right at the first occurance of this function. > My server guy told me to compare PHP.ini files to see what is > different. > The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). > > Any more ideas out there? > > Thanks > John Funk > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Thu Nov 1 10:13:09 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Nov 1 10:13:13 2007 Subject: [FX.php List] Re: FX.php SP2 In-Reply-To: <62E2E8CB-B876-4B81-B108-0EB9EF0CF9E4@preservationstudio.com> References: <2067E90059A94B28ACD8BBAA08ECA0B3@crim.cam.ac.uk> <7.0.1.0.2.20071101103341.02832780@nicheit.com.au> <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> <62E2E8CB-B876-4B81-B108-0EB9EF0CF9E4@preservationstudio.com> Message-ID: If you have a fix for that or can describe the bugs, those can be submitted too. ggt667 On 11/1/07, Dale Bengston wrote: > Does this service pack fix the bugs when using MySQL as one's data > source? > > Dale > > On Nov 1, 2007, at 4:48 AM, Gjermund Gusland Thorsen wrote: > > > You have to put escaped characters such as \n and \t in double quotes. > > > > FX.php SP2 will be out as soon as possible, I have not sent my stuff > > to Chris yet, as package maintainer he will have to test it too. I > > expect X-mas +/- 1 month. If time allows. > > > > Gjermund > > > > On 11/1/07, Roger Price wrote: > >> Thank you all for your various suggestions. Using '\n' rather than > >> ''chr(10)' seems to have worked fine but only if I do the > >> concatenation the > >> 'tedious' way! > >> > >> Passing the checkbox values in an array seems very neat and works > >> exactly as > >> suggested. However when I implode the array with '\n' as the > >> separator the > >> resultant variable gives me: > >> > >> 'value1\nvalue1\nvalue3' which of course does not give the desired > >> result > >> in FMP. > >> > >> Why should this be - am I missing something? > >> > >> BTW Gjermund when do you expect the FX.php update that includes a > >> checkbox > >> feature to be released? > >> > >> kindest regards > >> > >> Roger > >> > >> ----- Original Message ----- > >> From: "Gjermund Gusland Thorsen" > >> To: "FX.php Discussion List" > >> Sent: Thursday, November 01, 2007 12:31 AM > >> Subject: Re: [FX.php List] FMP Checkbox > >> > >> > >>> Never mess with the array cowboys ;-) They Rock! > >>> > >>> arrays and foreach are really one of the most beautiful combinations > >>> in php AFAIK. > >>> > >>> and heredoc to let your brains focus on anything but quotes ;-) > >>> > >>> On 11/1/07, Tim 'Webko' Booth wrote: > >>>> At 10:16 PM 31/10/2007, you wrote: > >>>>> BTW did you ever consider using arrays? > >>>>> > >>>>> >>>> > >>>> As a note - this method rocks compared to anything else I've tried. > >>>> > >>>> Concatenation for large checkbox sets is tedious, and you can still > >>>> end up with nothing but a heap of returns - the above creates a > >>>> lovely array to play with :-0 > >>>> > >>>> Webko > >>>> > >>>> > >>>> _______________________________________________ > >>>> FX.php_List mailing list > >>>> FX.php_List@mail.iviking.org > >>>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>>> > >>> _______________________________________________ > >>> FX.php_List mailing list > >>> FX.php_List@mail.iviking.org > >>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>> > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > >> > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From fx at 9degrees.com Thu Nov 1 10:25:15 2007 From: fx at 9degrees.com (Michael Layne) Date: Thu Nov 1 10:25:20 2007 Subject: [FX.php List] FMP Checkbox In-Reply-To: <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> References: <2067E90059A94B28ACD8BBAA08ECA0B3@crim.cam.ac.uk><7.0.1.0.2.20071101103341.02832780@nicheit.com.au> <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> Message-ID: <1B7211F5-9193-431D-9DC1-98E1F7EA123C@9degrees.com> It's been a while, but this is what I do for radio buttons... foreach($ans01 as $value => $label) { $checked = $dJP['answer01'][0] == $value ? "checked=\"checked\"" : ""; echo "" . $label . "\n"; } then this is how I post back into the database: // type == 1 is if I'm modifying the record as opposed to creating it - I use the same form/page for both with a variable... isset($_POST['answer01']) ? ($type[1] == '1' ? $answer01 = implode (", ",$_POST['answer01']) : $answer01 = $_POST['answer01']) : $answer01 = ''; for checkboxes: foreach($ansLanguage as $value => $label) { $checked = ( eregi($value,$dJP['language'][0])) ? "checked=\"checked \"" : ""; echo "" . $label . "\n"; } then posting to the database: isset($_POST['language']) ? $language = implode (", ",$_POST ['language']) : $language = ''; so in FileMaker, the data looks like "Yes, No, Maybe, Sort Of" or "English, German, Dutch, French" HTH. Need more details, let me know... Michael Michael Layne | 9 degrees development | www.9degrees.com | 404.226.7835 [m] | Skype: LayneBay On Nov 1, 2007, at 5:35 AM, Roger Price wrote: > Thank you all for your various suggestions. Using '\n' rather than > ''chr(10)' seems to have worked fine but only if I do the > concatenation the > 'tedious' way! > > Passing the checkbox values in an array seems very neat and works > exactly as > suggested. However when I implode the array with '\n' as the > separator the > resultant variable gives me: > > 'value1\nvalue1\nvalue3' which of course does not give the desired > result > in FMP. > > Why should this be - am I missing something? > > BTW Gjermund when do you expect the FX.php update that includes a > checkbox > feature to be released? > > kindest regards > > Roger > > ----- Original Message ----- > From: "Gjermund Gusland Thorsen" > To: "FX.php Discussion List" > Sent: Thursday, November 01, 2007 12:31 AM > Subject: Re: [FX.php List] FMP Checkbox > > >> Never mess with the array cowboys ;-) They Rock! >> >> arrays and foreach are really one of the most beautiful combinations >> in php AFAIK. >> >> and heredoc to let your brains focus on anything but quotes ;-) >> >> On 11/1/07, Tim 'Webko' Booth wrote: >>> At 10:16 PM 31/10/2007, you wrote: >>>> BTW did you ever consider using arrays? >>>> >>>> >> >>> As a note - this method rocks compared to anything else I've tried. >>> >>> Concatenation for large checkbox sets is tedious, and you can still >>> end up with nothing but a heap of returns - the above creates a >>> lovely array to play with :-0 >>> >>> Webko >>> >>> >>> _______________________________________________ >>> 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://www.iviking.org/pipermail/fx.php_list/attachments/20071101/628cdb6c/attachment-0001.html From csinfo at comcast.net Thu Nov 1 10:25:26 2007 From: csinfo at comcast.net (John Funk) Date: Thu Nov 1 10:26:02 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: Message-ID: Steve, When I replace: require_once($_SERVER['DOCUMENT_ROOT'] ."/includes/wi_form_lib.php" With require_once("/includes/wi_form_lib.php" It still stops but I did find out that it is the require_once that is not working because include_once DOES NOT stop the script. I am checking the two PHP.ini files. Any more ideas? John On 11/1/07 7:56 AM, "John Funk" wrote: > Thanks Steve, > At one time or another yesterday I tried echoing the path and it did return > the machine path (not URL) it seems ok but I will try the relative method > and let you know. > John > > > On 11/1/07 7:36 AM, "Steve Winter" wrote: > >> Hi John, >> >> What do you see if you try; >> >> echo $_SERVER['DOCUMENT_ROOT'].'
'; >> >> Is the returned path correct...?? >> >> Have you just tried calling the include without that...? I tend to use >> relative references for includes, so in my instance I would have just put; >> >> >> >> Assuming that the file doing the calling is in the root, and wi_form_lib.php >> is in a sub folder of that called includes... >> >> Try those, see if you can get as far as getting wi_form_lib.php to load... >> stick an echo 'I loaded
'; as the first line so that you know that it >> is... >> >> Once you get that loading, then you can look to replicate the same tests in >> that file to determine what (if anything) is going wrong with including the >> FX.php files... >> >> Let us know how you get on... >> >> Cheers >> Steve >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >> Sent: Thursday, 1 November 2007 12:20 p.m. >> To: FX.php Discussion List >> Subject: Re: [FX.php List] PHP.ini question >> >> We set up the test server before we knew about the environment at the >> production ISP. The ISP's machine is shared by multiple sites, some PHP so >> the version cannot be changed. >> Here is the code that is casueing problems: >> > ?> >> >> wi_form_lib.php is a script that does the form processing for FileMaker. And >> wi_form_lib.php calls FX.php. >> (I inherited this project so some of this was out of my control. >> Thanks >> John >> >> On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" wrote: >> >>> And why are you running different versions? >>> >>> A real test environment should always be identical to the production >>> environment >>> >>> ggt >>> >>> On 11/1/07, Dale Bengston wrote: >>>> Hi John, >>>> >>>> I'm putting my money on paths. Can you post the code that produces >>>> different results on the different servers? >>>> >>>> Thanks, >>>> Dale >>>> >>>> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >>>> >>>>> This may not be the place but I need to find out why on my Apache test >>>>> server (Mac OS), can I use the PHP function (Require_Once) / >>>>> (Include_once) >>>>> just fine but on my production s Apache server (Unix) the PHP script >>>>> just >>>>> stalls right at the first occurance of this function. >>>>> My server guy told me to compare PHP.ini files to see what is >>>>> different. >>>>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>>>> >>>>> Any more ideas out there? >>>>> >>>>> Thanks >>>>> John Funk >>>>> >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 >> 6:01 a.m. >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 >> 6:01 a.m. >> >> >> >> _______________________________________________ >> 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 dbengston at preservationstudio.com Thu Nov 1 10:30:13 2007 From: dbengston at preservationstudio.com (Dale Bengston) Date: Thu Nov 1 10:30:27 2007 Subject: [FX.php List] Re: FX.php SP2 In-Reply-To: References: <2067E90059A94B28ACD8BBAA08ECA0B3@crim.cam.ac.uk> <7.0.1.0.2.20071101103341.02832780@nicheit.com.au> <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> <62E2E8CB-B876-4B81-B108-0EB9EF0CF9E4@preservationstudio.com> Message-ID: I believe Marisa Smith & Chris Beecher from our organization have communicated these to Chris Hansen. I was wondering if they had been addressed. Dale On Nov 1, 2007, at 11:13 AM, Gjermund Gusland Thorsen wrote: > If you have a fix for that or can describe the bugs, > those can be submitted too. > > ggt667 > > On 11/1/07, Dale Bengston wrote: >> Does this service pack fix the bugs when using MySQL as one's data >> source? >> >> Dale >> >> On Nov 1, 2007, at 4:48 AM, Gjermund Gusland Thorsen wrote: >> >>> You have to put escaped characters such as \n and \t in double >>> quotes. >>> >>> FX.php SP2 will be out as soon as possible, I have not sent my stuff >>> to Chris yet, as package maintainer he will have to test it too. I >>> expect X-mas +/- 1 month. If time allows. >>> >>> Gjermund >>> >>> On 11/1/07, Roger Price wrote: >>>> Thank you all for your various suggestions. Using '\n' rather than >>>> ''chr(10)' seems to have worked fine but only if I do the >>>> concatenation the >>>> 'tedious' way! >>>> >>>> Passing the checkbox values in an array seems very neat and works >>>> exactly as >>>> suggested. However when I implode the array with '\n' as the >>>> separator the >>>> resultant variable gives me: >>>> >>>> 'value1\nvalue1\nvalue3' which of course does not give the desired >>>> result >>>> in FMP. >>>> >>>> Why should this be - am I missing something? >>>> >>>> BTW Gjermund when do you expect the FX.php update that includes a >>>> checkbox >>>> feature to be released? >>>> >>>> kindest regards >>>> >>>> Roger >>>> >>>> ----- Original Message ----- >>>> From: "Gjermund Gusland Thorsen" >>>> To: "FX.php Discussion List" >>>> Sent: Thursday, November 01, 2007 12:31 AM >>>> Subject: Re: [FX.php List] FMP Checkbox >>>> >>>> >>>>> Never mess with the array cowboys ;-) They Rock! >>>>> >>>>> arrays and foreach are really one of the most beautiful >>>>> combinations >>>>> in php AFAIK. >>>>> >>>>> and heredoc to let your brains focus on anything but quotes ;-) >>>>> >>>>> On 11/1/07, Tim 'Webko' Booth wrote: >>>>>> At 10:16 PM 31/10/2007, you wrote: >>>>>>> BTW did you ever consider using arrays? >>>>>>> >>>>>>> >>>>> >>>>>> As a note - this method rocks compared to anything else I've >>>>>> tried. >>>>>> >>>>>> Concatenation for large checkbox sets is tedious, and you can >>>>>> still >>>>>> end up with nothing but a heap of returns - the above creates a >>>>>> lovely array to play with :-0 >>>>>> >>>>>> Webko >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list From ggt667 at gmail.com Thu Nov 1 10:38:05 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Nov 1 10:38:16 2007 Subject: [FX.php List] FMP Checkbox In-Reply-To: <1B7211F5-9193-431D-9DC1-98E1F7EA123C@9degrees.com> References: <2067E90059A94B28ACD8BBAA08ECA0B3@crim.cam.ac.uk> <7.0.1.0.2.20071101103341.02832780@nicheit.com.au> <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> <1B7211F5-9193-431D-9DC1-98E1F7EA123C@9degrees.com> Message-ID: First of all your code is very hard to read "" in only needed for escaped characters I tried changing your code a little bit. foreach( $ans01 as $value => $label) { $checked = $dJP['answer01'][0] == $value ? 'checked="checked"' : ''; echo '' . $label . "\n"; } ggt667 On 11/1/07, Michael Layne wrote: > It's been a while, but this is what I do for radio buttons... > > foreach($ans01 as $value => $label) { > $checked = $dJP['answer01'][0] == $value ? "checked=\"checked\"" : ""; > echo " $checked />" . $label . "\n"; > } > > then this is how I post back into the database: > > // type == 1 is if I'm modifying the record as opposed to creating it - I > use the same form/page for both with a variable... > isset($_POST['answer01']) ? ($type[1] == '1' ? $answer01 = implode (", > ",$_POST['answer01']) : $answer01 = $_POST['answer01']) : $answer01 = ''; > > > for checkboxes: > > foreach($ansLanguage as $value => $label) { > $checked = ( eregi($value,$dJP['language'][0])) ? > "checked=\"checked\"" : ""; > echo " $checked />" . $label . "\n"; > } > > then posting to the database: > > isset($_POST['language']) ? $language = implode (", ",$_POST['language']) : > $language = ''; > > so in FileMaker, the data looks like "Yes, No, Maybe, Sort Of" or "English, > German, Dutch, French" > > > > HTH. Need more details, let me know... > > Michael > > Michael Layne | 9 degrees development | www.9degrees.com | > 404.226.7835 [m] | Skype: LayneBay > > > > On Nov 1, 2007, at 5:35 AM, Roger Price wrote: > > Thank you all for your various suggestions. Using '\n' rather than > ''chr(10)' seems to have worked fine but only if I do the concatenation the > 'tedious' way! > > Passing the checkbox values in an array seems very neat and works exactly as > suggested. However when I implode the array with '\n' as the separator the > resultant variable gives me: > > 'value1\nvalue1\nvalue3' which of course does not give the desired result > in FMP. > > Why shoumd this be - am I missing something? > > BTW Gjermund when do you expect the FX.php update that includes a checkbox > feature to be released? > > kindest regards > > Roger > > ----- Original Message ----- > From: "Gjermund Gusland Thorsen" > To: "FX.php Discussion List" > Sent: Thursday, November 01, 2007 12:31 AM > Subject: Re: [FX.php List] FMP Checkbox > > > > Never mess with the array cowboys ;-) They Rock! > > arrays and foreach are really one of the most beautiful combinations > in php AFAIK. > > and heredoc to let your brains focus on anything but quotes ;-) > > On 11/1/07, Tim 'Webko' Booth wrote: > At 10:16 PM 31/10/2007, you wrote: > BTW did you ever consider using arrays? > > > As a note - this method rocks compared to anything else I've tried. > > Concatenation for large checkbox sets is tedious, and you can still > end up with nothing but a heap of returns - the above creates a > lovely array to play with :-0 > > Webko > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > > From pvanbuskirk at otc.fsu.edu Thu Nov 1 10:38:16 2007 From: pvanbuskirk at otc.fsu.edu (VanBuskirk, Patricia) Date: Thu Nov 1 10:38:37 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: References: Message-ID: <8CE764618AA99F4FB83198E126B457C46200D2@FSU-EXCH-01.fsu.edu> I have the same problem, so in the meantime, I put the included file in the same directory as the page and that works. I realize that is not a good solution, but I had to in order to make the page work. I am anxious to see what the solution is. -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk Sent: Thursday, November 01, 2007 12:25 PM To: FX.php Discussion List Subject: Re: [FX.php List] PHP.ini question Steve, When I replace: require_once($_SERVER['DOCUMENT_ROOT'] ."/includes/wi_form_lib.php" With require_once("/includes/wi_form_lib.php" It still stops but I did find out that it is the require_once that is not working because include_once DOES NOT stop the script. I am checking the two PHP.ini files. Any more ideas? John On 11/1/07 7:56 AM, "John Funk" wrote: > Thanks Steve, > At one time or another yesterday I tried echoing the path and it did return > the machine path (not URL) it seems ok but I will try the relative method > and let you know. > John > > > On 11/1/07 7:36 AM, "Steve Winter" wrote: > >> Hi John, >> >> What do you see if you try; >> >> echo $_SERVER['DOCUMENT_ROOT'].'
'; >> >> Is the returned path correct...?? >> >> Have you just tried calling the include without that...? I tend to use >> relative references for includes, so in my instance I would have just put; >> >> >> >> Assuming that the file doing the calling is in the root, and wi_form_lib.php >> is in a sub folder of that called includes... >> >> Try those, see if you can get as far as getting wi_form_lib.php to load... >> stick an echo 'I loaded
'; as the first line so that you know that it >> is... >> >> Once you get that loading, then you can look to replicate the same tests in >> that file to determine what (if anything) is going wrong with including the >> FX.php files... >> >> Let us know how you get on... >> >> Cheers >> Steve >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >> Sent: Thursday, 1 November 2007 12:20 p.m. >> To: FX.php Discussion List >> Subject: Re: [FX.php List] PHP.ini question >> >> We set up the test server before we knew about the environment at the >> production ISP. The ISP's machine is shared by multiple sites, some PHP so >> the version cannot be changed. >> Here is the code that is casueing problems: >> > ?> >> >> wi_form_lib.php is a script that does the form processing for FileMaker. And >> wi_form_lib.php calls FX.php. >> (I inherited this project so some of this was out of my control. >> Thanks >> John >> >> On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" wrote: >> >>> And why are you running different versions? >>> >>> A real test environment should always be identical to the production >>> environment >>> >>> ggt >>> >>> On 11/1/07, Dale Bengston wrote: >>>> Hi John, >>>> >>>> I'm putting my money on paths. Can you post the code that produces >>>> different results on the different servers? >>>> >>>> Thanks, >>>> Dale >>>> >>>> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >>>> >>>>> This may not be the place but I need to find out why on my Apache test >>>>> server (Mac OS), can I use the PHP function (Require_Once) / >>>>> (Include_once) >>>>> just fine but on my production s Apache server (Unix) the PHP script >>>>> just >>>>> stalls right at the first occurance of this function. >>>>> My server guy told me to compare PHP.ini files to see what is >>>>> different. >>>>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>>>> >>>>> Any more ideas out there? >>>>> >>>>> Thanks >>>>> John Funk >>>>> >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 >> 6:01 a.m. >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 >> 6:01 a.m. >> >> >> >> _______________________________________________ >> 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 steve at bluecrocodile.co.nz Thu Nov 1 10:39:42 2007 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Nov 1 10:39:59 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: Message-ID: <20071101163956.65D3B5F2F2B@mail.iviking.org> John, That's because of the fundamental difference between require and include, the include is presumably still failing, however because it's only an include the rest of the script will run... require says exactly that, it's required so if it can't be found, stop...! Have you tried require_once("includes/wi_form_lib.php"); (note the removal of the initial /) Can you tell us more about the structure of the files..? what is the name of the file that is trying to include wi_form_lib.php...? and where is that file actually located relative to the file that's doing the calling...?? Cheers Steve -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk Sent: Thursday, 1 November 2007 4:25 p.m. To: FX.php Discussion List Subject: Re: [FX.php List] PHP.ini question Steve, When I replace: require_once($_SERVER['DOCUMENT_ROOT'] ."/includes/wi_form_lib.php" With require_once("/includes/wi_form_lib.php" It still stops but I did find out that it is the require_once that is not working because include_once DOES NOT stop the script. I am checking the two PHP.ini files. Any more ideas? John On 11/1/07 7:56 AM, "John Funk" wrote: > Thanks Steve, > At one time or another yesterday I tried echoing the path and it did return > the machine path (not URL) it seems ok but I will try the relative method > and let you know. > John > > > On 11/1/07 7:36 AM, "Steve Winter" wrote: > >> Hi John, >> >> What do you see if you try; >> >> echo $_SERVER['DOCUMENT_ROOT'].'
'; >> >> Is the returned path correct...?? >> >> Have you just tried calling the include without that...? I tend to use >> relative references for includes, so in my instance I would have just put; >> >> >> >> Assuming that the file doing the calling is in the root, and wi_form_lib.php >> is in a sub folder of that called includes... >> >> Try those, see if you can get as far as getting wi_form_lib.php to load... >> stick an echo 'I loaded
'; as the first line so that you know that it >> is... >> >> Once you get that loading, then you can look to replicate the same tests in >> that file to determine what (if anything) is going wrong with including the >> FX.php files... >> >> Let us know how you get on... >> >> Cheers >> Steve >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >> Sent: Thursday, 1 November 2007 12:20 p.m. >> To: FX.php Discussion List >> Subject: Re: [FX.php List] PHP.ini question >> >> We set up the test server before we knew about the environment at the >> production ISP. The ISP's machine is shared by multiple sites, some PHP so >> the version cannot be changed. >> Here is the code that is casueing problems: >> > ?> >> >> wi_form_lib.php is a script that does the form processing for FileMaker. And >> wi_form_lib.php calls FX.php. >> (I inherited this project so some of this was out of my control. >> Thanks >> John >> >> On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" wrote: >> >>> And why are you running different versions? >>> >>> A real test environment should always be identical to the production >>> environment >>> >>> ggt >>> >>> On 11/1/07, Dale Bengston wrote: >>>> Hi John, >>>> >>>> I'm putting my money on paths. Can you post the code that produces >>>> different results on the different servers? >>>> >>>> Thanks, >>>> Dale >>>> >>>> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >>>> >>>>> This may not be the place but I need to find out why on my Apache test >>>>> server (Mac OS), can I use the PHP function (Require_Once) / >>>>> (Include_once) >>>>> just fine but on my production s Apache server (Unix) the PHP script >>>>> just >>>>> stalls right at the first occurance of this function. >>>>> My server guy told me to compare PHP.ini files to see what is >>>>> different. >>>>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>>>> >>>>> Any more ideas out there? >>>>> >>>>> Thanks >>>>> John Funk >>>>> >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> >> _______________________________________________ >> FX.php_List mailing list >> FX.php_List@mail.iviking.org >> http://www.iviking.org/mailman/listinfo/fx.php_list >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 >> 6:01 a.m. >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 >> 6:01 a.m. >> >> >> >> _______________________________________________ >> 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 6:01 a.m. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 6:01 a.m. From ggt667 at gmail.com Thu Nov 1 10:52:04 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Nov 1 10:52:07 2007 Subject: [FX.php List] Re: FX.php SP2 In-Reply-To: References: <2067E90059A94B28ACD8BBAA08ECA0B3@crim.cam.ac.uk> <7.0.1.0.2.20071101103341.02832780@nicheit.com.au> <011301c81c6a$85ff6ec0$2caa6f83@crim.cam.ac.uk> <62E2E8CB-B876-4B81-B108-0EB9EF0CF9E4@preservationstudio.com> Message-ID: Then it should be ok. ggt On 11/1/07, Dale Bengston wrote: > I believe Marisa Smith & Chris Beecher from our organization have > communicated these to Chris Hansen. I was wondering if they had been > addressed. > > Dale > > On Nov 1, 2007, at 11:13 AM, Gjermund Gusland Thorsen wrote: > > > If you have a fix for that or can describe the bugs, > > those can be submitted too. > > > > ggt667 > > > > On 11/1/07, Dale Bengston wrote: > >> Does this service pack fix the bugs when using MySQL as one's data > >> source? > >> > >> Dale > >> > >> On Nov 1, 2007, at 4:48 AM, Gjermund Gusland Thorsen wrote: > >> > >>> You have to put escaped characters such as \n and \t in double > >>> quotes. > >>> > >>> FX.php SP2 will be out as soon as possible, I have not sent my stuff > >>> to Chris yet, as package maintainer he will have to test it too. I > >>> expect X-mas +/- 1 month. If time allows. > >>> > >>> Gjermund > >>> > >>> On 11/1/07, Roger Price wrote: > >>>> Thank you all for your various suggestions. Using '\n' rather than > >>>> ''chr(10)' seems to have worked fine but only if I do the > >>>> concatenation the > >>>> 'tedious' way! > >>>> > >>>> Passing the checkbox values in an array seems very neat and works > >>>> exactly as > >>>> suggested. However when I implode the array with '\n' as the > >>>> separator the > >>>> resultant variable gives me: > >>>> > >>>> 'value1\nvalue1\nvalue3' which of course does not give the desired > >>>> result > >>>> in FMP. > >>>> > >>>> Why should this be - am I missing something? > >>>> > >>>> BTW Gjermund when do you expect the FX.php update that includes a > >>>> checkbox > >>>> feature to be released? > >>>> > >>>> kindest regards > >>>> > >>>> Roger > >>>> > >>>> ----- Original Message ----- > >>>> From: "Gjermund Gusland Thorsen" > >>>> To: "FX.php Discussion List" > >>>> Sent: Thursday, November 01, 2007 12:31 AM > >>>> Subject: Re: [FX.php List] FMP Checkbox > >>>> > >>>> > >>>>> Never mess with the array cowboys ;-) They Rock! > >>>>> > >>>>> arrays and foreach are really one of the most beautiful > >>>>> combinations > >>>>> in php AFAIK. > >>>>> > >>>>> and heredoc to let your brains focus on anything but quotes ;-) > >>>>> > >>>>> On 11/1/07, Tim 'Webko' Booth wrote: > >>>>>> At 10:16 PM 31/10/2007, you wrote: > >>>>>>> BTW did you ever consider using arrays? > >>>>>>> > >>>>>>> >>>>>> > >>>>>> As a note - this method rocks compared to anything else I've > >>>>>> tried. > >>>>>> > >>>>>> Concatenation for large checkbox sets is tedious, and you can > >>>>>> still > >>>>>> end up with nothing but a heap of returns - the above creates a > >>>>>> lovely array to play with :-0 > >>>>>> > >>>>>> Webko > >>>>>> > >>>>>> > >>>>>> _______________________________________________ > >>>>>> FX.php_List mailing list > >>>>>> FX.php_List@mail.iviking.org > >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>>>>> > >>>>> _______________________________________________ > >>>>> FX.php_List mailing list > >>>>> FX.php_List@mail.iviking.org > >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>>>> > >>>> > >>>> _______________________________________________ > >>>> FX.php_List mailing list > >>>> FX.php_List@mail.iviking.org > >>>> http://www.iviking.org/mailman/listinfo/fx.php_list > >>>> > >>> _______________________________________________ > >>> FX.php_List mailing list > >>> FX.php_List@mail.iviking.org > >>> http://www.iviking.org/mailman/listinfo/fx.php_list > >> > >> _______________________________________________ > >> FX.php_List mailing list > >> FX.php_List@mail.iviking.org > >> http://www.iviking.org/mailman/listinfo/fx.php_list > >> > > _______________________________________________ > > FX.php_List mailing list > > FX.php_List@mail.iviking.org > > http://www.iviking.org/mailman/listinfo/fx.php_list > > _______________________________________________ > FX.php_List mailing list > FX.php_List@mail.iviking.org > http://www.iviking.org/mailman/listinfo/fx.php_list > From csinfo at comcast.net Thu Nov 1 11:35:22 2007 From: csinfo at comcast.net (John Funk) Date: Thu Nov 1 11:35:46 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: <20071101163956.65D3B5F2F2B@mail.iviking.org> Message-ID: Steve, thanks for the explanation. Removal of the "/" does not work. The initial file, index.php is in the root directory and the wi_form_lib.php is in the includes directory (one level above root) On 11/1/07 11:39 AM, "Steve Winter" wrote: > John, > > That's because of the fundamental difference between require and include, > the include is presumably still failing, however because it's only an > include the rest of the script will run... require says exactly that, it's > required so if it can't be found, stop...! > > Have you tried > require_once("includes/wi_form_lib.php"); > > (note the removal of the initial /) > > Can you tell us more about the structure of the files..? what is the name of > the file that is trying to include wi_form_lib.php...? and where is that > file actually located relative to the file that's doing the calling...?? > > Cheers > Steve > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk > Sent: Thursday, 1 November 2007 4:25 p.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] PHP.ini question > > Steve, > When I replace: > require_once($_SERVER['DOCUMENT_ROOT'] ."/includes/wi_form_lib.php" > With > require_once("/includes/wi_form_lib.php" > > It still stops but I did find out that it is the require_once that is not > working because include_once DOES NOT stop the script. > I am checking the two PHP.ini files. > Any more ideas? > John > > > On 11/1/07 7:56 AM, "John Funk" wrote: > >> Thanks Steve, >> At one time or another yesterday I tried echoing the path and it did > return >> the machine path (not URL) it seems ok but I will try the relative method >> and let you know. >> John >> >> >> On 11/1/07 7:36 AM, "Steve Winter" wrote: >> >>> Hi John, >>> >>> What do you see if you try; >>> >>> echo $_SERVER['DOCUMENT_ROOT'].'
'; >>> >>> Is the returned path correct...?? >>> >>> Have you just tried calling the include without that...? I tend to use >>> relative references for includes, so in my instance I would have just > put; >>> >>> >>> >>> Assuming that the file doing the calling is in the root, and > wi_form_lib.php >>> is in a sub folder of that called includes... >>> >>> Try those, see if you can get as far as getting wi_form_lib.php to > load... >>> stick an echo 'I loaded
'; as the first line so that you know that > it >>> is... >>> >>> Once you get that loading, then you can look to replicate the same tests > in >>> that file to determine what (if anything) is going wrong with including > the >>> FX.php files... >>> >>> Let us know how you get on... >>> >>> Cheers >>> Steve >>> >>> -----Original Message----- >>> From: fx.php_list-bounces@mail.iviking.org >>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >>> Sent: Thursday, 1 November 2007 12:20 p.m. >>> To: FX.php Discussion List >>> Subject: Re: [FX.php List] PHP.ini question >>> >>> We set up the test server before we knew about the environment at the >>> production ISP. The ISP's machine is shared by multiple sites, some PHP > so >>> the version cannot be changed. >>> Here is the code that is casueing problems: >>> "/includes/wi_form_lib.php"); >>> ?> >>> >>> wi_form_lib.php is a script that does the form processing for FileMaker. > And >>> wi_form_lib.php calls FX.php. >>> (I inherited this project so some of this was out of my control. >>> Thanks >>> John >>> >>> On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" wrote: >>> >>>> And why are you running different versions? >>>> >>>> A real test environment should always be identical to the production >>>> environment >>>> >>>> ggt >>>> >>>> On 11/1/07, Dale Bengston wrote: >>>>> Hi John, >>>>> >>>>> I'm putting my money on paths. Can you post the code that produces >>>>> different results on the different servers? >>>>> >>>>> Thanks, >>>>> Dale >>>>> >>>>> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >>>>> >>>>>> This may not be the place but I need to find out why on my Apache test >>>>>> server (Mac OS), can I use the PHP function (Require_Once) / >>>>>> (Include_once) >>>>>> just fine but on my production s Apache server (Unix) the PHP script >>>>>> just >>>>>> stalls right at the first occurance of this function. >>>>>> My server guy told me to compare PHP.ini files to see what is >>>>>> different. >>>>>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>>>>> >>>>>> Any more ideas out there? >>>>>> >>>>>> Thanks >>>>>> John Funk >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: > 1/11/2007 >>> 6:01 a.m. >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: > 1/11/2007 >>> 6:01 a.m. >>> >>> >>> >>> _______________________________________________ >>> 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 > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 > 6:01 a.m. > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 > 6:01 a.m. > > > > _______________________________________________ > 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 Thu Nov 1 11:54:41 2007 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Nov 1 11:54:58 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: Message-ID: <20071101175456.93AB25F3235@mail.iviking.org> John, And what happens when you try to load http://servername/includes/wi_form_lib.php Does the php page get loaded...? (make sure there's at least an echo 'hello'; or something right at the top of the file so that you can tell if it's been loaded... This all seems really strange... it shouldn't be this hard...!! Cheers Steve -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk Sent: Thursday, 1 November 2007 5:35 p.m. To: FX.php Discussion List Subject: Re: [FX.php List] PHP.ini question Steve, thanks for the explanation. Removal of the "/" does not work. The initial file, index.php is in the root directory and the wi_form_lib.php is in the includes directory (one level above root) On 11/1/07 11:39 AM, "Steve Winter" wrote: > John, > > That's because of the fundamental difference between require and include, > the include is presumably still failing, however because it's only an > include the rest of the script will run... require says exactly that, it's > required so if it can't be found, stop...! > > Have you tried > require_once("includes/wi_form_lib.php"); > > (note the removal of the initial /) > > Can you tell us more about the structure of the files..? what is the name of > the file that is trying to include wi_form_lib.php...? and where is that > file actually located relative to the file that's doing the calling...?? > > Cheers > Steve > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk > Sent: Thursday, 1 November 2007 4:25 p.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] PHP.ini question > > Steve, > When I replace: > require_once($_SERVER['DOCUMENT_ROOT'] ."/includes/wi_form_lib.php" > With > require_once("/includes/wi_form_lib.php" > > It still stops but I did find out that it is the require_once that is not > working because include_once DOES NOT stop the script. > I am checking the two PHP.ini files. > Any more ideas? > John > > > On 11/1/07 7:56 AM, "John Funk" wrote: > >> Thanks Steve, >> At one time or another yesterday I tried echoing the path and it did > return >> the machine path (not URL) it seems ok but I will try the relative method >> and let you know. >> John >> >> >> On 11/1/07 7:36 AM, "Steve Winter" wrote: >> >>> Hi John, >>> >>> What do you see if you try; >>> >>> echo $_SERVER['DOCUMENT_ROOT'].'
'; >>> >>> Is the returned path correct...?? >>> >>> Have you just tried calling the include without that...? I tend to use >>> relative references for includes, so in my instance I would have just > put; >>> >>> >>> >>> Assuming that the file doing the calling is in the root, and > wi_form_lib.php >>> is in a sub folder of that called includes... >>> >>> Try those, see if you can get as far as getting wi_form_lib.php to > load... >>> stick an echo 'I loaded
'; as the first line so that you know that > it >>> is... >>> >>> Once you get that loading, then you can look to replicate the same tests > in >>> that file to determine what (if anything) is going wrong with including > the >>> FX.php files... >>> >>> Let us know how you get on... >>> >>> Cheers >>> Steve >>> >>> -----Original Message----- >>> From: fx.php_list-bounces@mail.iviking.org >>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >>> Sent: Thursday, 1 November 2007 12:20 p.m. >>> To: FX.php Discussion List >>> Subject: Re: [FX.php List] PHP.ini question >>> >>> We set up the test server before we knew about the environment at the >>> production ISP. The ISP's machine is shared by multiple sites, some PHP > so >>> the version cannot be changed. >>> Here is the code that is casueing problems: >>> "/includes/wi_form_lib.php"); >>> ?> >>> >>> wi_form_lib.php is a script that does the form processing for FileMaker. > And >>> wi_form_lib.php calls FX.php. >>> (I inherited this project so some of this was out of my control. >>> Thanks >>> John >>> >>> On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" wrote: >>> >>>> And why are you running different versions? >>>> >>>> A real test environment should always be identical to the production >>>> environment >>>> >>>> ggt >>>> >>>> On 11/1/07, Dale Bengston wrote: >>>>> Hi John, >>>>> >>>>> I'm putting my money on paths. Can you post the code that produces >>>>> different results on the different servers? >>>>> >>>>> Thanks, >>>>> Dale >>>>> >>>>> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >>>>> >>>>>> This may not be the place but I need to find out why on my Apache test >>>>>> server (Mac OS), can I use the PHP function (Require_Once) / >>>>>> (Include_once) >>>>>> just fine but on my production s Apache server (Unix) the PHP script >>>>>> just >>>>>> stalls right at the first occurance of this function. >>>>>> My server guy told me to compare PHP.ini files to see what is >>>>>> different. >>>>>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>>>>> >>>>>> Any more ideas out there? >>>>>> >>>>>> Thanks >>>>>> John Funk >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> >>> _______________________________________________ >>> FX.php_List mailing list >>> FX.php_List@mail.iviking.org >>> http://www.iviking.org/mailman/listinfo/fx.php_list >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: > 1/11/2007 >>> 6:01 a.m. >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: > 1/11/2007 >>> 6:01 a.m. >>> >>> >>> >>> _______________________________________________ >>> 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 > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 > 6:01 a.m. > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 > 6:01 a.m. > > > > _______________________________________________ > 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 6:01 a.m. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 6:01 a.m. From bob at patin.com Thu Nov 1 12:20:25 2007 From: bob at patin.com (Bob Patin) Date: Thu Nov 1 12:20:27 2007 Subject: [FX.php List] NTLM protocol Message-ID: Has anyone on this list used the NTLM protocol to allow users of a PHP solution to have access after they've logged in using the NTLM protocol? Not being a Microsoft person, I know nothing about it, but a client is asking if I can use it for an authentication system for a new web app. Thanks, Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting From ggt667 at gmail.com Thu Nov 1 13:09:12 2007 From: ggt667 at gmail.com (Gjermund Gusland Thorsen) Date: Thu Nov 1 13:09:18 2007 Subject: [FX.php List] NTLM protocol In-Reply-To: References: Message-ID: This messages qualifies for: [OffTopic] NTLM protocol I am not complaining that you asked the question, but if it is not pure php or FX.php, topics should have [OffTopic] in subject. ggt667 On 11/1/07, Bob Patin wrote: > Has anyone on this list used the NTLM protocol to allow users of a PHP > solution to have access after they've logged in using the NTLM > protocol? Not being a Microsoft person, I know nothing about it, but a > client is asking if I can use it for an authentication system for a > new web app. > > Thanks, > > Bob Patin > Longterm Solutions > bob@longtermsolutions.com > 615-333-6858 > http://www.longtermsolutions.com > Member of FileMaker Business Alliance and FileMaker TechNet > > CONTACT US VIA INSTANT MESSAGING: > AIM or iChat: longterm1954 > Yahoo: longterm_solutions > MSN: tech@longtermsolutions.com > ICQ: 159333060 > > -------------------------- > Contact us for FileMaker hosting for all versions of FileMaker > PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? > Consulting > > _______________________________________________ > 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 Nov 1 15:09:41 2007 From: bob at patin.com (Bob Patin) Date: Thu Nov 1 15:09:45 2007 Subject: [FX.php List] NTLM protocol In-Reply-To: References: Message-ID: <62D117C2-DED8-4BC2-9DF9-8BD8C16F353D@patin.com> Excuse me, but what is "pure PHP?" Every solution I use combines a lot of things, including FX.php, PHP, FileMaker Pro, and general web design technology. This particular web app, which I'm writing in FX.php, is one where my client asked if the login could use NTLM. I was looking for someone who'd done that with PHP, which I'd then integrate with her FX.php web app. If this bothers other listers, I'd like to know about it; generally, I like the idea that we share PHP knowledge on this list, and if this offends GGT, then that's regrettable... Bob Patin Longterm Solutions bob@longtermsolutions.com 615-333-6858 http://www.longtermsolutions.com Member of FileMaker Business Alliance and FileMaker TechNet CONTACT US VIA INSTANT MESSAGING: AIM or iChat: longterm1954 Yahoo: longterm_solutions MSN: tech@longtermsolutions.com ICQ: 159333060 -------------------------- Contact us for FileMaker hosting for all versions of FileMaker PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? Consulting On Nov 1, 2007, at 2:09 PM, Gjermund Gusland Thorsen wrote: > This messages qualifies for: [OffTopic] NTLM protocol > > I am not complaining that you asked the question, but if it is not > pure php or FX.php, > topics should have [OffTopic] in subject. > > ggt667 > > On 11/1/07, Bob Patin wrote: >> Has anyone on this list used the NTLM protocol to allow users of a >> PHP >> solution to have access after they've logged in using the NTLM >> protocol? Not being a Microsoft person, I know nothing about it, >> but a >> client is asking if I can use it for an authentication system for a >> new web app. >> >> Thanks, >> >> Bob Patin >> Longterm Solutions >> bob@longtermsolutions.com >> 615-333-6858 >> http://www.longtermsolutions.com >> Member of FileMaker Business Alliance and FileMaker TechNet >> >> CONTACT US VIA INSTANT MESSAGING: >> AIM or iChat: longterm1954 >> Yahoo: longterm_solutions >> MSN: tech@longtermsolutions.com >> ICQ: 159333060 >> >> -------------------------- >> Contact us for FileMaker hosting for all versions of FileMaker >> PHP ? CDML ? Full email services ? Free DNS hosting ? Colocation ? >> Consulting >> >> _______________________________________________ >> 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 csinfo at comcast.net Thu Nov 1 15:18:28 2007 From: csinfo at comcast.net (John Funk) Date: Thu Nov 1 15:18:45 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: <20071101175456.93AB25F3235@mail.iviking.org> Message-ID: Steve, I discovered that my problem is NOT the required_once function but rather the include file it's self. I have isolated the problem to one function inside the include file, When I take that out, things start to work. Like I said before, I inherited this web site so I need to do some code sloothing. But still what could be the difference between the servers that might cause this. John On 11/1/07 12:54 PM, "Steve Winter" wrote: > John, > > And what happens when you try to load > http://servername/includes/wi_form_lib.php > Does the php page get loaded...? (make sure there's at least an echo > 'hello'; or something right at the top of the file so that you can tell if > it's been loaded... > > This all seems really strange... it shouldn't be this hard...!! > > Cheers > Steve > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk > Sent: Thursday, 1 November 2007 5:35 p.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] PHP.ini question > > Steve, thanks for the explanation. > Removal of the "/" does not work. > The initial file, index.php is in the root directory and the wi_form_lib.php > is in the includes directory (one level above root) > > > > On 11/1/07 11:39 AM, "Steve Winter" wrote: > >> John, >> >> That's because of the fundamental difference between require and include, >> the include is presumably still failing, however because it's only an >> include the rest of the script will run... require says exactly that, it's >> required so if it can't be found, stop...! >> >> Have you tried >> require_once("includes/wi_form_lib.php"); >> >> (note the removal of the initial /) >> >> Can you tell us more about the structure of the files..? what is the name > of >> the file that is trying to include wi_form_lib.php...? and where is that >> file actually located relative to the file that's doing the calling...?? >> >> Cheers >> Steve >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >> Sent: Thursday, 1 November 2007 4:25 p.m. >> To: FX.php Discussion List >> Subject: Re: [FX.php List] PHP.ini question >> >> Steve, >> When I replace: >> require_once($_SERVER['DOCUMENT_ROOT'] ."/includes/wi_form_lib.php" >> With >> require_once("/includes/wi_form_lib.php" >> >> It still stops but I did find out that it is the require_once that is not >> working because include_once DOES NOT stop the script. >> I am checking the two PHP.ini files. >> Any more ideas? >> John >> >> >> On 11/1/07 7:56 AM, "John Funk" wrote: >> >>> Thanks Steve, >>> At one time or another yesterday I tried echoing the path and it did >> return >>> the machine path (not URL) it seems ok but I will try the relative method >>> and let you know. >>> John >>> >>> >>> On 11/1/07 7:36 AM, "Steve Winter" wrote: >>> >>>> Hi John, >>>> >>>> What do you see if you try; >>>> >>>> echo $_SERVER['DOCUMENT_ROOT'].'
'; >>>> >>>> Is the returned path correct...?? >>>> >>>> Have you just tried calling the include without that...? I tend to use >>>> relative references for includes, so in my instance I would have just >> put; >>>> >>>> >>>> >>>> Assuming that the file doing the calling is in the root, and >> wi_form_lib.php >>>> is in a sub folder of that called includes... >>>> >>>> Try those, see if you can get as far as getting wi_form_lib.php to >> load... >>>> stick an echo 'I loaded
'; as the first line so that you know that >> it >>>> is... >>>> >>>> Once you get that loading, then you can look to replicate the same tests >> in >>>> that file to determine what (if anything) is going wrong with including >> the >>>> FX.php files... >>>> >>>> Let us know how you get on... >>>> >>>> Cheers >>>> Steve >>>> >>>> -----Original Message----- >>>> From: fx.php_list-bounces@mail.iviking.org >>>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >>>> Sent: Thursday, 1 November 2007 12:20 p.m. >>>> To: FX.php Discussion List >>>> Subject: Re: [FX.php List] PHP.ini question >>>> >>>> We set up the test server before we knew about the environment at the >>>> production ISP. The ISP's machine is shared by multiple sites, some PHP >> so >>>> the version cannot be changed. >>>> Here is the code that is casueing problems: >>>> > "/includes/wi_form_lib.php"); >>>> ?> >>>> >>>> wi_form_lib.php is a script that does the form processing for FileMaker. >> And >>>> wi_form_lib.php calls FX.php. >>>> (I inherited this project so some of this was out of my control. >>>> Thanks >>>> John >>>> >>>> On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" wrote: >>>> >>>>> And why are you running different versions? >>>>> >>>>> A real test environment should always be identical to the production >>>>> environment >>>>> >>>>> ggt >>>>> >>>>> On 11/1/07, Dale Bengston wrote: >>>>>> Hi John, >>>>>> >>>>>> I'm putting my money on paths. Can you post the code that produces >>>>>> different results on the different servers? >>>>>> >>>>>> Thanks, >>>>>> Dale >>>>>> >>>>>> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >>>>>> >>>>>>> This may not be the place but I need to find out why on my Apache > test >>>>>>> server (Mac OS), can I use the PHP function (Require_Once) / >>>>>>> (Include_once) >>>>>>> just fine but on my production s Apache server (Unix) the PHP script >>>>>>> just >>>>>>> stalls right at the first occurance of this function. >>>>>>> My server guy told me to compare PHP.ini files to see what is >>>>>>> different. >>>>>>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>>>>>> >>>>>>> Any more ideas out there? >>>>>>> >>>>>>> Thanks >>>>>>> John Funk >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: >> 1/11/2007 >>>> 6:01 a.m. >>>> >>>> >>>> No virus found in this outgoing message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: >> 1/11/2007 >>>> 6:01 a.m. >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: > 1/11/2007 >> 6:01 a.m. >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: > 1/11/2007 >> 6:01 a.m. >> >> >> >> _______________________________________________ >> 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 > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 > 6:01 a.m. > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 > 6:01 a.m. > > > > _______________________________________________ > 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 Thu Nov 1 15:23:58 2007 From: steve at bluecrocodile.co.nz (Steve Winter) Date: Thu Nov 1 15:24:16 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: Message-ID: <20071101212411.CEB695F384F@mail.iviking.org> Okay, So you may in fact be on to something with it being a php.ini issue... what's the function that's causing the issue...? are there any uncommon looking methods being used within that function...? I don't recall which version are on which box that you're working with, it may be that there's a function in there which isn't supported yet/any longer, on the version of php on the production box... Send us the code of the function that's breaking things and we'll see if we can spot anything... Cheers Steve -----Original Message----- From: fx.php_list-bounces@mail.iviking.org [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk Sent: Thursday, 1 November 2007 9:18 p.m. To: FX.php Discussion List Subject: Re: [FX.php List] PHP.ini question Steve, I discovered that my problem is NOT the required_once function but rather the include file it's self. I have isolated the problem to one function inside the include file, When I take that out, things start to work. Like I said before, I inherited this web site so I need to do some code sloothing. But still what could be the difference between the servers that might cause this. John On 11/1/07 12:54 PM, "Steve Winter" wrote: > John, > > And what happens when you try to load > http://servername/includes/wi_form_lib.php > Does the php page get loaded...? (make sure there's at least an echo > 'hello'; or something right at the top of the file so that you can tell if > it's been loaded... > > This all seems really strange... it shouldn't be this hard...!! > > Cheers > Steve > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk > Sent: Thursday, 1 November 2007 5:35 p.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] PHP.ini question > > Steve, thanks for the explanation. > Removal of the "/" does not work. > The initial file, index.php is in the root directory and the wi_form_lib.php > is in the includes directory (one level above root) > > > > On 11/1/07 11:39 AM, "Steve Winter" wrote: > >> John, >> >> That's because of the fundamental difference between require and include, >> the include is presumably still failing, however because it's only an >> include the rest of the script will run... require says exactly that, it's >> required so if it can't be found, stop...! >> >> Have you tried >> require_once("includes/wi_form_lib.php"); >> >> (note the removal of the initial /) >> >> Can you tell us more about the structure of the files..? what is the name > of >> the file that is trying to include wi_form_lib.php...? and where is that >> file actually located relative to the file that's doing the calling...?? >> >> Cheers >> Steve >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >> Sent: Thursday, 1 November 2007 4:25 p.m. >> To: FX.php Discussion List >> Subject: Re: [FX.php List] PHP.ini question >> >> Steve, >> When I replace: >> require_once($_SERVER['DOCUMENT_ROOT'] ."/includes/wi_form_lib.php" >> With >> require_once("/includes/wi_form_lib.php" >> >> It still stops but I did find out that it is the require_once that is not >> working because include_once DOES NOT stop the script. >> I am checking the two PHP.ini files. >> Any more ideas? >> John >> >> >> On 11/1/07 7:56 AM, "John Funk" wrote: >> >>> Thanks Steve, >>> At one time or another yesterday I tried echoing the path and it did >> return >>> the machine path (not URL) it seems ok but I will try the relative method >>> and let you know. >>> John >>> >>> >>> On 11/1/07 7:36 AM, "Steve Winter" wrote: >>> >>>> Hi John, >>>> >>>> What do you see if you try; >>>> >>>> echo $_SERVER['DOCUMENT_ROOT'].'
'; >>>> >>>> Is the returned path correct...?? >>>> >>>> Have you just tried calling the include without that...? I tend to use >>>> relative references for includes, so in my instance I would have just >> put; >>>> >>>> >>>> >>>> Assuming that the file doing the calling is in the root, and >> wi_form_lib.php >>>> is in a sub folder of that called includes... >>>> >>>> Try those, see if you can get as far as getting wi_form_lib.php to >> load... >>>> stick an echo 'I loaded
'; as the first line so that you know that >> it >>>> is... >>>> >>>> Once you get that loading, then you can look to replicate the same tests >> in >>>> that file to determine what (if anything) is going wrong with including >> the >>>> FX.php files... >>>> >>>> Let us know how you get on... >>>> >>>> Cheers >>>> Steve >>>> >>>> -----Original Message----- >>>> From: fx.php_list-bounces@mail.iviking.org >>>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >>>> Sent: Thursday, 1 November 2007 12:20 p.m. >>>> To: FX.php Discussion List >>>> Subject: Re: [FX.php List] PHP.ini question >>>> >>>> We set up the test server before we knew about the environment at the >>>> production ISP. The ISP's machine is shared by multiple sites, some PHP >> so >>>> the version cannot be changed. >>>> Here is the code that is casueing problems: >>>> > "/includes/wi_form_lib.php"); >>>> ?> >>>> >>>> wi_form_lib.php is a script that does the form processing for FileMaker. >> And >>>> wi_form_lib.php calls FX.php. >>>> (I inherited this project so some of this was out of my control. >>>> Thanks >>>> John >>>> >>>> On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" wrote: >>>> >>>>> And why are you running different versions? >>>>> >>>>> A real test environment should always be identical to the production >>>>> environment >>>>> >>>>> ggt >>>>> >>>>> On 11/1/07, Dale Bengston wrote: >>>>>> Hi John, >>>>>> >>>>>> I'm putting my money on paths. Can you post the code that produces >>>>>> different results on the different servers? >>>>>> >>>>>> Thanks, >>>>>> Dale >>>>>> >>>>>> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >>>>>> >>>>>>> This may not be the place but I need to find out why on my Apache > test >>>>>>> server (Mac OS), can I use the PHP function (Require_Once) / >>>>>>> (Include_once) >>>>>>> just fine but on my production s Apache server (Unix) the PHP script >>>>>>> just >>>>>>> stalls right at the first occurance of this function. >>>>>>> My server guy told me to compare PHP.ini files to see what is >>>>>>> different. >>>>>>> The PHP versions are 4.1.2 (test server) and 4.2.1 (Production). >>>>>>> >>>>>>> Any more ideas out there? >>>>>>> >>>>>>> Thanks >>>>>>> John Funk >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> >>>> _______________________________________________ >>>> FX.php_List mailing list >>>> FX.php_List@mail.iviking.org >>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: >> 1/11/2007 >>>> 6:01 a.m. >>>> >>>> >>>> No virus found in this outgoing message. >>>> Checked by AVG Free Edition. >>>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: >> 1/11/2007 >>>> 6:01 a.m. >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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 >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: > 1/11/2007 >> 6:01 a.m. >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: > 1/11/2007 >> 6:01 a.m. >> >> >> >> _______________________________________________ >> 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 > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 > 6:01 a.m. > > > No virus found in this outgoing message. > Checked by AVG Free Edition. > Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 > 6:01 a.m. > > > > _______________________________________________ > 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 No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 6:01 a.m. No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: 1/11/2007 6:01 a.m. From dbengston at preservationstudio.com Thu Nov 1 15:25:04 2007 From: dbengston at preservationstudio.com (Dale Bengston) Date: Thu Nov 1 15:25:14 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: References: Message-ID: John, Different versions of PHP use different constants, like use of $_HTTP_SERVER_VARS being deprecated in favor of $_SERVER at some point, and PHP5 being more strict about blocks of PHP code beginning Steve, > I discovered that my problem is NOT the required_once function but > rather > the include file it's self. I have isolated the problem to one > function > inside the include file, When I take that out, things start to work. > Like I said before, I inherited this web site so I need to do some > code > sloothing. But still what could be the difference between the > servers that > might cause this. > John > > On 11/1/07 12:54 PM, "Steve Winter" wrote: > >> John, >> >> And what happens when you try to load >> http://servername/includes/wi_form_lib.php >> Does the php page get loaded...? (make sure there's at least an echo >> 'hello'; or something right at the top of the file so that you can >> tell if >> it's been loaded... >> >> This all seems really strange... it shouldn't be this hard...!! >> >> Cheers >> Steve >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >> Sent: Thursday, 1 November 2007 5:35 p.m. >> To: FX.php Discussion List >> Subject: Re: [FX.php List] PHP.ini question >> >> Steve, thanks for the explanation. >> Removal of the "/" does not work. >> The initial file, index.php is in the root directory and the >> wi_form_lib.php >> is in the includes directory (one level above root) >> >> >> >> On 11/1/07 11:39 AM, "Steve Winter" >> wrote: >> >>> John, >>> >>> That's because of the fundamental difference between require and >>> include, >>> the include is presumably still failing, however because it's only >>> an >>> include the rest of the script will run... require says exactly >>> that, it's >>> required so if it can't be found, stop...! >>> >>> Have you tried >>> require_once("includes/wi_form_lib.php"); >>> >>> (note the removal of the initial /) >>> >>> Can you tell us more about the structure of the files..? what is >>> the name >> of >>> the file that is trying to include wi_form_lib.php...? and where >>> is that >>> file actually located relative to the file that's doing the >>> calling...?? >>> >>> Cheers >>> Steve >>> >>> -----Original Message----- >>> From: fx.php_list-bounces@mail.iviking.org >>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >>> Sent: Thursday, 1 November 2007 4:25 p.m. >>> To: FX.php Discussion List >>> Subject: Re: [FX.php List] PHP.ini question >>> >>> Steve, >>> When I replace: >>> require_once($_SERVER['DOCUMENT_ROOT'] ."/includes/wi_form_lib.php" >>> With >>> require_once("/includes/wi_form_lib.php" >>> >>> It still stops but I did find out that it is the require_once that >>> is not >>> working because include_once DOES NOT stop the script. >>> I am checking the two PHP.ini files. >>> Any more ideas? >>> John >>> >>> >>> On 11/1/07 7:56 AM, "John Funk" wrote: >>> >>>> Thanks Steve, >>>> At one time or another yesterday I tried echoing the path and it >>>> did >>> return >>>> the machine path (not URL) it seems ok but I will try the >>>> relative method >>>> and let you know. >>>> John >>>> >>>> >>>> On 11/1/07 7:36 AM, "Steve Winter" >>>> wrote: >>>> >>>>> Hi John, >>>>> >>>>> What do you see if you try; >>>>> >>>>> echo $_SERVER['DOCUMENT_ROOT'].'
'; >>>>> >>>>> Is the returned path correct...?? >>>>> >>>>> Have you just tried calling the include without that...? I tend >>>>> to use >>>>> relative references for includes, so in my instance I would have >>>>> just >>> put; >>>>> >>>>> >>>>> >>>>> Assuming that the file doing the calling is in the root, and >>> wi_form_lib.php >>>>> is in a sub folder of that called includes... >>>>> >>>>> Try those, see if you can get as far as getting wi_form_lib.php to >>> load... >>>>> stick an echo 'I loaded
'; as the first line so that you >>>>> know that >>> it >>>>> is... >>>>> >>>>> Once you get that loading, then you can look to replicate the >>>>> same tests >>> in >>>>> that file to determine what (if anything) is going wrong with >>>>> including >>> the >>>>> FX.php files... >>>>> >>>>> Let us know how you get on... >>>>> >>>>> Cheers >>>>> Steve >>>>> >>>>> -----Original Message----- >>>>> From: fx.php_list-bounces@mail.iviking.org >>>>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John >>>>> Funk >>>>> Sent: Thursday, 1 November 2007 12:20 p.m. >>>>> To: FX.php Discussion List >>>>> Subject: Re: [FX.php List] PHP.ini question >>>>> >>>>> We set up the test server before we knew about the environment >>>>> at the >>>>> production ISP. The ISP's machine is shared by multiple sites, >>>>> some PHP >>> so >>>>> the version cannot be changed. >>>>> Here is the code that is casueing problems: >>>>> >> "/includes/wi_form_lib.php"); >>>>> ?> >>>>> >>>>> wi_form_lib.php is a script that does the form processing for >>>>> FileMaker. >>> And >>>>> wi_form_lib.php calls FX.php. >>>>> (I inherited this project so some of this was out of my control. >>>>> Thanks >>>>> John >>>>> >>>>> On 11/1/07 1:55 AM, "Gjermund Gusland Thorsen" >>>>> wrote: >>>>> >>>>>> And why are you running different versions? >>>>>> >>>>>> A real test environment should always be identical to the >>>>>> production >>>>>> environment >>>>>> >>>>>> ggt >>>>>> >>>>>> On 11/1/07, Dale Bengston >>>>>> wrote: >>>>>>> Hi John, >>>>>>> >>>>>>> I'm putting my money on paths. Can you post the code that >>>>>>> produces >>>>>>> different results on the different servers? >>>>>>> >>>>>>> Thanks, >>>>>>> Dale >>>>>>> >>>>>>> On Oct 31, 2007, at 9:41 PM, John Funk wrote: >>>>>>> >>>>>>>> This may not be the place but I need to find out why on my >>>>>>>> Apache >> test >>>>>>>> server (Mac OS), can I use the PHP function (Require_Once) / >>>>>>>> (Include_once) >>>>>>>> just fine but on my production s Apache server (Unix) the PHP >>>>>>>> script >>>>>>>> just >>>>>>>> stalls right at the first occurance of this function. >>>>>>>> My server guy told me to compare PHP.ini files to see what is >>>>>>>> different. >>>>>>>> The PHP versions are 4.1.2 (test server) and 4.2.1 >>>>>>>> (Production). >>>>>>>> >>>>>>>> Any more ideas out there? >>>>>>>> >>>>>>>> Thanks >>>>>>>> John Funk >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> FX.php_List mailing list >>>>>>>> FX.php_List@mail.iviking.org >>>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>>> _______________________________________________ >>>>>>> FX.php_List mailing list >>>>>>> FX.php_List@mail.iviking.org >>>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>>>> >>>>>> _______________________________________________ >>>>>> FX.php_List mailing list >>>>>> FX.php_List@mail.iviking.org >>>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> >>>>> _______________________________________________ >>>>> FX.php_List mailing list >>>>> FX.php_List@mail.iviking.org >>>>> http://www.iviking.org/mailman/listinfo/fx.php_list >>>>> >>>>> No virus found in this incoming message. >>>>> Checked by AVG Free Edition. >>>>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: >>> 1/11/2007 >>>>> 6:01 a.m. >>>>> >>>>> >>>>> No virus found in this outgoing message. >>>>> Checked by AVG Free Edition. >>>>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: >>> 1/11/2007 >>>>> 6:01 a.m. >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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 >>> >>> No virus found in this incoming message. >>> Checked by AVG Free Edition. >>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: >> 1/11/2007 >>> 6:01 a.m. >>> >>> >>> No virus found in this outgoing message. >>> Checked by AVG Free Edition. >>> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: >> 1/11/2007 >>> 6:01 a.m. >>> >>> >>> >>> _______________________________________________ >>> 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 >> >> No virus found in this incoming message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: >> 1/11/2007 >> 6:01 a.m. >> >> >> No virus found in this outgoing message. >> Checked by AVG Free Edition. >> Version: 7.5.503 / Virus Database: 269.15.17/1103 - Release Date: >> 1/11/2007 >> 6:01 a.m. >> >> >> >> _______________________________________________ >> 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 dbengston at preservationstudio.com Thu Nov 1 15:36:08 2007 From: dbengston at preservationstudio.com (Dale Bengston) Date: Thu Nov 1 15:36:21 2007 Subject: [FX.php List] PHP.ini question In-Reply-To: <20071101212411.CEB695F384F@mail.iviking.org> References: <20071101212411.CEB695F384F@mail.iviking.org> Message-ID: <8077DA13-A543-4960-B1E1-4904097BED26@preservationstudio.com> Different *installations* of PHP can have different options compiled in as well. Your PHP code may be referencing a function that is not compiled in the live server's version. This happened to me during development on a Mac, where I was using some of the mb_ string functions and the money_format() function only to find that my client's Windows install of PHP didn't include support for those. Dale PS If you include phpinfo() on a page, the Configure Command section will provide all the gory details of what modules are compiled in your respective versions of PHP. On Nov 1, 2007, at 4:23 PM, Steve Winter wrote: > Okay, > > So you may in fact be on to something with it being a php.ini issue... > what's the function that's causing the issue...? are there any > uncommon > looking methods being used within that function...? I don't recall > which > version are on which box that you're working with, it may be that > there's a > function in there which isn't supported yet/any longer, on the > version of > php on the production box... > > Send us the code of the function that's breaking things and we'll > see if we > can spot anything... > > Cheers > Steve > > -----Original Message----- > From: fx.php_list-bounces@mail.iviking.org > [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk > Sent: Thursday, 1 November 2007 9:18 p.m. > To: FX.php Discussion List > Subject: Re: [FX.php List] PHP.ini question > > Steve, > I discovered that my problem is NOT the required_once function but > rather > the include file it's self. I have isolated the problem to one > function > inside the include file, When I take that out, things start to work. > Like I said before, I inherited this web site so I need to do some > code > sloothing. But still what could be the difference between the > servers that > might cause this. > John > > On 11/1/07 12:54 PM, "Steve Winter" wrote: > >> John, >> >> And what happens when you try to load >> http://servername/includes/wi_form_lib.php >> Does the php page get loaded...? (make sure there's at least an echo >> 'hello'; or something right at the top of the file so that you can >> tell if >> it's been loaded... >> >> This all seems really strange... it shouldn't be this hard...!! >> >> Cheers >> Steve >> >> -----Original Message----- >> From: fx.php_list-bounces@mail.iviking.org >> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >> Sent: Thursday, 1 November 2007 5:35 p.m. >> To: FX.php Discussion List >> Subject: Re: [FX.php List] PHP.ini question >> >> Steve, thanks for the explanation. >> Removal of the "/" does not work. >> The initial file, index.php is in the root directory and the > wi_form_lib.php >> is in the includes directory (one level above root) >> >> >> >> On 11/1/07 11:39 AM, "Steve Winter" >> wrote: >> >>> John, >>> >>> That's because of the fundamental difference between require and >>> include, >>> the include is presumably still failing, however because it's only >>> an >>> include the rest of the script will run... require says exactly >>> that, > it's >>> required so if it can't be found, stop...! >>> >>> Have you tried >>> require_once("includes/wi_form_lib.php"); >>> >>> (note the removal of the initial /) >>> >>> Can you tell us more about the structure of the files..? what is >>> the name >> of >>> the file that is trying to include wi_form_lib.php...? and where >>> is that >>> file actually located relative to the file that's doing the >>> calling...?? >>> >>> Cheers >>> Steve >>> >>> -----Original Message----- >>> From: fx.php_list-bounces@mail.iviking.org >>> [mailto:fx.php_list-bounces@mail.iviking.org] On Behalf Of John Funk >>> Sent: Thursday, 1 November 2007 4:25 p.m. >>> To: FX.php Discussion List >>> Subject: Re: [FX.php List] PHP.ini question >>> >>> Steve, >>> When I replace: >>> require_once($_SERVER['DOCUMENT_ROOT'] ."/includes/wi_form_lib.php" >>> With >>> require_once("/includes/wi_form_lib.php" >>> >>> It still stops but I did find out that it is the require_once that >>> is not >>> working because include_once DOES NOT stop the script. >>> I am checking the two PHP.ini files. >>> Any more ideas? >>> John >>> >>> >>> On 11/1/07 7:56 AM, "John Funk" wrote: >>> >>>> Thanks Steve, >>>> At one time or another yesterday I tried echoing the path and it >>>> did >>> return >>>> the machine path (not URL) it seems ok but I will try the relative > method >>>> and let you know. >>>> John >>>> >>>> >>>> On 11/1/07 7:36 AM, "Steve Winter" >>>> wrote: >>>> >>>>> Hi John, >>>>> >>>>> What do you see if you try; >>>>> >>>>> echo $_SERVER['DOCUMENT_ROOT'].'
'; >>>>> >>>>> Is the returned path correct...?? >>>>> >>>>> Have you just tried calling the include without that...? I tend >>>>> to use >>>>> relative references for includes, so in my instance I would have >>>>> just >>> put; >>>>> >>>>> >>>>> >>>>> Assuming that the file doing the calling is in the root, and >>> wi_form_lib.php >>>>> is in a sub folder of that called includes... >>>>> >>>>> Try th