Re: [PHP] Re: Need pro advice: Is Pear installed and/or setup correctly?

2011-05-27 Thread Philip Thompson
On Fri, May 27, 2011 at 1:36 PM, Micky Hulse mickyhulse.li...@gmail.comwrote:

 On Fri, May 27, 2011 at 10:27 AM, Micky Hulse
 mickyhulse.li...@gmail.com wrote:
  Would it be safe for me to conclude that Pair is not setup properly?

 Haha, Pear the package, not the host. :D

 http://www.pair.com/

 Typo. My bad.

 Also, what the heck does this mean:

 It is not safe to rely on the system's timezone settings. Please use
 the date.timezone setting, the TZ environment variable or the
 date_default_timezone_set() function. In case you used any of those
 methods and you are still getting this warning, you most likely
 misspelled the timezone identifier. We selected 'America/New_York' for
 'EDT/-4.0/DST' instead in /home/USER/public_html/test.php on line 6


The host is apparently using PHP 5.3 - this message started to appear in
this version. Use date_default_timezone_set() somewhere in your code to
explicitly set your timezone. I'm in the central US, so I use
'America/Chicago'. See the docs for more info.

Not sure about your original question.

Happy coding,
~Philip

http://lonestarlightandsound.com/


Re: [PHP] Re: Need pro advice: Is Pear installed and/or setup correctly?

2011-05-27 Thread Micky Hulse
On Fri, May 27, 2011 at 12:06 PM, Philip Thompson
philthath...@gmail.com wrote:
 The host is apparently using PHP 5.3 - this message started to appear in
 this version. Use date_default_timezone_set() somewhere in your code to
 explicitly set your timezone. I'm in the central US, so I use
 'America/Chicago'. See the docs for more info.

Thanks Philip! I will give that a try. :)

Testing now...

Nice! That helped! :)

date_default_timezone_set('America/Los_Angeles');

Now all I got to do is convince my friend that the host needs to add
Pear to the include path (at least, I think this is the problem with
Pear).

Thanks again Philip!

Have a great day.

Cheers,
Micky

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



Re: [PHP] Re: Need pro advice: Is Pear installed and/or setup correctly?

2011-05-27 Thread Micky Hulse
Looks like the host changed my include path:

(include_path='.:/usr/lib/php:/usr/local/lib/php:/usr/local/lib/php/PEAR')

I am still getting file not found include errors.

I am guess that Mail.php and Mail_Mime/mime.php are extras that are
not installed.

This is my first time trying to use Pear. Normally I use other code
for sending emails with attachments...

I think my friend setup an e-mail form using this tutorial:

http://www.html-form-guide.com/email-form/php-email-form-attachment.html

He could not get it to work, and I am just trying to get it to work for him.

I will probably ditch the whole Pear idea and use something else.

I hate working for free! :D

Thanks for listening all.. Sorry to bug the list with my crud.

Cheers,
Micky

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



Re: [PHP] Re: Need pro advice: Is Pear installed and/or setup correctly?

2011-05-27 Thread Micky Hulse
On Fri, May 27, 2011 at 12:48 PM, Micky Hulse rgmi...@gmail.com wrote:
 Looks like the host changed my include path:
 I will probably ditch the whole Pear idea and use something else.

Well, actually, it looks like having PEAR on the include path did help.

Mail.php was found... It was Mail_Mime/mime.php that was not getting found.

This seems totally hackish, but I had to download Mail_Mime and put it
in the web root of my friend's server:

http://pear.php.net/package/Mail_Mime/download

And changed the Mail_Mime include path to point to the new location
and it worked.

What a headache. Lol.

Problem solved. Thanks for the help Philip, and thanks for listening all!

Have a nice day.

Cheers,
Micky

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