nsForum logo

Welcome Guest ( Log In )

 
Reply to this topicStart new topic
> What Is The Path To Pear Mail.php?
lttdeveloper
post Jan 31 2011, 05:00 PM
Post #1





Group: Verified NS Member
Posts: 9
Joined: 4-January 11
Member No.: 12,361



I need to know the path to PEAR mail.php because I am running a script from scheduled tasks (cron). It works fine when running the script from the browser, but it can't find it from cron. If you supply the path, I'll figure it out (this is not a request for "custom script help"). Please let me know the path so I can reference it in my include('path/to/pear/Mail.php').
Go to the top of the page
 
+Quote Post
CarpeNoctumDC
post Feb 24 2011, 03:30 PM
Post #2





Group: Validating
Posts: 47
Joined: 20-April 10
Member No.: 9,227



QUOTE (lttdeveloper @ Jan 31 2011, 05:00 PM) *
I need to know the path to PEAR mail.php because I am running a script from scheduled tasks (cron). It works fine when running the script from the browser, but it can't find it from cron. If you supply the path, I'll figure it out (this is not a request for "custom script help"). Please let me know the path so I can reference it in my include('path/to/pear/Mail.php').


PHP on the Linux Shared hosting servers was not compiled with pear (or rather with it disabled)... Check your phpInfo

You will find: --without-pear
Go to the top of the page
 
+Quote Post
Craig
post Mar 10 2011, 04:29 AM
Post #3





Group: Administrators
Posts: 988
Joined: 23-June 08
From: Pennsylvania
Member No.: 1,317



QUOTE (CarpeNoctumDC @ Feb 24 2011, 03:30 PM) *
PHP on the Linux Shared hosting servers was not compiled with pear (or rather with it disabled)... Check your phpInfo

You will find: --without-pear


PHP on our servers was configured "--without-pear" but the Mail.php for Pear is installed on our servers. The full path to it is /usr/services/vux/lib/php/Mail.php.
Go to the top of the page
 
+Quote Post
AWgsw
post Oct 28 2013, 10:23 PM
Post #4





Group: Verified NS Member
Posts: 1
Joined: 28-October 13
Member No.: 21,835



QUOTE (Craig @ Mar 10 2011, 05:29 AM) *
PHP on our servers was configured "--without-pear" but the Mail.php for Pear is installed on our servers. The full path to it is /usr/services/vux/lib/php/Mail.php.


The script I have requires 2 includes: Mail.php and Mail/mime.php
The first php file indeed seems to be in the include path, but not the second (either as Mail/mime.php or as just mime.php).
Any alternatives?
Thanks.
Go to the top of the page
 
+Quote Post
Craig
post Oct 29 2013, 12:26 AM
Post #5





Group: Administrators
Posts: 988
Joined: 23-June 08
From: Pennsylvania
Member No.: 1,317



QUOTE (AWgsw @ Oct 28 2013, 11:23 PM) *
The script I have requires 2 includes: Mail.php and Mail/mime.php
The first php file indeed seems to be in the include path, but not the second (either as Mail/mime.php or as just mime.php).
Any alternatives?
Thanks.

http://forums.networksolutions.com/script-...pear-t4343.html lists the Pear modules we have installed and explains how you can use other Pear modules which you can upload via FTP.
Go to the top of the page
 
+Quote Post
ovsokolov
post Jan 24 2016, 05:59 AM
Post #6





Group: Verified NS Member
Posts: 1
Joined: 24-January 16
Member No.: 24,660



I tried to include /usr/services/vux/lib/php/Mail.php
but its still giving Mail not found error during scheduled task.
It works fine when calling php directly.
Did location change or how properly include Mail.php for use in scheduled task
Go to the top of the page
 
+Quote Post
Craig
post Jan 25 2016, 08:16 PM
Post #7





Group: Administrators
Posts: 988
Joined: 23-June 08
From: Pennsylvania
Member No.: 1,317



QUOTE (ovsokolov @ Jan 24 2016, 05:59 AM) *
I tried to include /usr/services/vux/lib/php/Mail.php
but its still giving Mail not found error during scheduled task.
It works fine when calling php directly.
Did location change or how properly include Mail.php for use in scheduled task

That is the correct path, but it may not be installed on the server that runs scheduled tasks. You should be able to get it to work by using wget domain.com/script.php instead of php script.php for the comman for the scheduled task. This way it runs on the same server as the website rather than the server that does the scheduled tasks.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

RSS Lo-Fi Version    Network Solutions © 2011 Time is now: 25th April 2017 - 07:06 AM
Domain Names | Web Hosting | Web Design | Shopping Cart Software | Online Marketing | SSL Certificates