Re: Re: Installing on a Mac: include_path issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Run phpinfo() or php -I and see if the PHP.ini file is being loaded.

Sent from my iPhone

On May 5, 2011, at 5:40, Richard Quadling <rquadling@xxxxxxxxx> wrote:

> On 5 May 2011 05:51, David Robley <robleyd@xxxxxxxxxxx> wrote:
>> Ken Kixmoeller wrote:
>> 
>>> Hey, folks -- --
>>> 
>>> I am switching over my development (I hope) to a Mac. Having some
>>> trouble with the configuration. Rudimentary scripts run fine in the
>>> document_root, but beyond that, my scripts in the include_path are not
>>> found.
>>> 
>>> The include_path has a couple of directories in which I have my
>>> foundation classes and a clients application classes and other
>>> programs. For various reasons, I put them into my "Documents/Clients"
>>> folder. When I create to set the path to these files in PHP, they are:
>>> 
>>>  /Users/ken/Documents/Clients/comped_php
>>>  /Users/ken/Documents/Clients/jaguar_php
>>> 
>>> PHP doesn't find them, which has me stumped.
>>> 
>>> php.ini shows the include_path correctly, as:
>>>   /Users/ken/Documents/Clients/comped_php:/Users/ken/Documents/Clients/jaguar_php
>>> 
>>> the document_root, configured in Apache is: /Users/ken/Sites/
>>> 
>>> The errors show as:
>>> include_once() [function.include]: Failed opening 'smm_header.php' for
>>> inclusion
>>> 
>> (include_path='/Users/ken/Documents/Clients/comped_php:/Users/ken/Documents/Clients/jaguar_php')
>>> in /Users/ken/Sites/smm_registration/smmcomputereducation.php on line 1
>>> 
>>> Any ideas or suggestions?
>>> 
>>> Thanks,
>>> 
>>> Ken
>> 
>> If I remember correctly, include and friends have two parts to the error
>> message but you've only shown us one. For a guess, is it possible the
>> apache process doesn't have permissions for those directories and/or the
>> files within them?
>> 
>> 
>> 
>> Cheers
>> --
>> David Robley
>> 
>> I've got Parkinson's disease. And he's got mine.
>> Today is Setting Orange, the 52nd day of Discord in the YOLD 3177.
>> 
>> 
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>> 
>> 
> 
> include_path should only contain directories, not filenames. [1]
> 
> Richard.
> 
> [1] http://docs.php.net/manual/en/ini.core.php#ini.include-path
> 
> -- 
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux