[FX.php List] PHP.ini question
John Funk
csinfo at comcast.net
Thu Nov 1 06:56:35 MDT 2007
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" <steve at bluecrocodile.co.nz> wrote:
> Hi John,
>
> What do you see if you try;
>
> echo $_SERVER['DOCUMENT_ROOT'].'<br />';
>
> 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;
>
> <?php require_once("includes/wi_form_lib.php"); ?>
>
> 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<br />'; 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 at mail.iviking.org
> [mailto:fx.php_list-bounces at 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:
> <?php require_once($_SERVER['DOCUMENT_ROOT'] . "/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" <ggt667 at gmail.com> 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 <dbengston at preservationstudio.com> 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 at mail.iviking.org
>>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>
>>> _______________________________________________
>>> FX.php_List mailing list
>>> FX.php_List at mail.iviking.org
>>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at 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 at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list