Re: [PHP] Re: Installing on a Mac: include_path issues
On 5 May 2011 05:51, David Robley robl...@aapt.net.au 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
Re: [PHP] Re: Installing on a Mac: include_path issues
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 rquadl...@gmail.com wrote: On 5 May 2011 05:51, David Robley robl...@aapt.net.au 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
Re: [PHP] Re: Installing on a Mac: include_path issues
On Thu, May 5, 2011 at 4:40 AM, Richard Quadling rquadl...@gmail.com wrote: On 5 May 2011 05:51, David Robley robl...@aapt.net.au wrote: Ken Kixmoeller wrote: include_path should only contain directories, not filenames. [1] Thanks. Yes, both of those are directories. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Installing on a Mac: include_path issues
On Wed, May 4, 2011 at 11:51 PM, David Robley robl...@aapt.net.au wrote: php.ini shows the include_path correctly, as: 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? Yes, it ia two-parter. I showed the second. The first is: Warning: include_once(smm_header.php) [function.include-once]: failed to open stream: No such file or directory in /Users/ken/Sites/smm_registration/smmcomputereducation.php on line 1 I am checking out the rights issue --- sounds like a great lead. Thank you. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Installing on a Mac: include_path issues
On Thu, May 5, 2011 at 5:59 AM, Mike Mackintosh mike.mackint...@angrystatic.com wrote: Run phpinfo() or php -I and see if the PHP.ini file is being loaded. php.ini shows the include_path correctly, as: /Users/ken/Documents/Clients/comped_php:/Users/ken/Documents/Clients/jaguar_php Oops, that line was supposed to say phpinfo() shows the include_path correctly. Sorry for the confusion. phpinfo() runs just fine and shows me what I expected. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Installing on a Mac: include_path issues
What are the permissions on the include directory? Sent from my iPhone On May 5, 2011, at 9:42, Ken Kixmoeller phph...@comcast.net wrote: On Thu, May 5, 2011 at 5:59 AM, Mike Mackintosh mike.mackint...@angrystatic.com wrote: Run phpinfo() or php -I and see if the PHP.ini file is being loaded. php.ini shows the include_path correctly, as: /Users/ken/Documents/Clients/comped_php:/Users/ken/Documents/Clients/jaguar_php Oops, that line was supposed to say phpinfo() shows the include_path correctly. Sorry for the confusion. phpinfo() runs just fine and shows me what I expected. Ken -- 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
[PHP] iPhone apology - was Re: [PHP] Re: Installing on a Mac: include_path issues
On 5 May 2011 15:08, Mike Mackintosh mike.mackint...@angrystatic.com wrote: Sent from my iPhone Why do all iPhone users apologies for sending mail from their iPhone. It's like someone saying Sorry, I've only got IE6. -- 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] Re: iPhone apology - was Re: [PHP] Re: Installing on a Mac: include_path issues
On Thu, May 5, 2011 at 9:52 AM, Richard Quadling rquadl...@gmail.com wrote: On 5 May 2011 15:08, Mike Mackintosh mike.mackint...@angrystatic.com wrote: Sent from my iPhone Why do all iPhone users apologize for sending mail from their iPhone? 1. Apparently, iphone software top-posts replies. For some people, that alone constitutes a federal (if not intergalactic) crime. 2. This signature addition seems to have started with the Blackberry. Some people got upset with concise replies (like fine) thinking them to be snippy, when they were due to limited typing capabilities. 3. Advertising for Apple. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: iPhone apology - was Re: [PHP] Re: Installing on a Mac: include_path issues
Jason Pruim On May 5, 2011, at 12:29 PM, Ken Kixmoeller phph...@comcast.net wrote: On Thu, May 5, 2011 at 9:52 AM, Richard Quadling rquadl...@gmail.com wrote: On 5 May 2011 15:08, Mike Mackintosh mike.mackint...@angrystatic.com wrote: Sent from my iPhone Why do all iPhone users apologize for sending mail from their iPhone? 1. Apparently, iphone software top-posts replies. For some people, that alone constitutes a federal (if not intergalactic) crime. Very true... 2. This signature addition seems to have started with the Blackberry. Some people got upset with concise replies (like fine) thinking them to be snippy, when they were due to limited typing capabilities. The signature can be set/moved on the iPhone depending on where you want it. 3. Advertising for Apple. Like they need more? Hehe Btw... Sent this from my iPhone :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Installing on a Mac: include_path issues
On Thu, May 5, 2011 at 9:08 AM, Mike Mackintosh mike.mackint...@angrystatic.com wrote: What are the permissions on the include directory? -- Well, I swear that I had set the permissions to r/w for these directories, but after I did it (again?), now I get a whole *new* set of errors which seem to be about connecting to MySQL. So, pending further investigation, it seems like *this* problem is solved. Many, many thanks to all who responded. Ken -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: iPhone apology - was Re: [PHP] Re: Installing on a Mac: include_path issues
On 5 May 2011 17:46, Jason Pruim li...@pruimphotography.com wrote: Jason Pruim On May 5, 2011, at 12:29 PM, Ken Kixmoeller phph...@comcast.net wrote: On Thu, May 5, 2011 at 9:52 AM, Richard Quadling rquadl...@gmail.com wrote: On 5 May 2011 15:08, Mike Mackintosh mike.mackint...@angrystatic.com wrote: Sent from my iPhone Why do all iPhone users apologize for sending mail from their iPhone? 1. Apparently, iphone software top-posts replies. For some people, that alone constitutes a federal (if not intergalactic) crime. Very true... 2. This signature addition seems to have started with the Blackberry. Some people got upset with concise replies (like fine) thinking them to be snippy, when they were due to limited typing capabilities. The signature can be set/moved on the iPhone depending on where you want it. 3. Advertising for Apple. Like they need more? Hehe Btw... Sent this from my iPhone :) When I read it, it just looks like an apology. I'm imagining some bowing and scraping fool desperately begging for forgiveness. Imagine a cross between John Merrick and Quasimodo, with a big dollop of Igor thrown in. Please forgive me master, I can only top post and tell the world I'm a ba, b, b! -- 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] Re: Installing on a Mac: include_path issues
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