Previous Thread
Next Thread
Print Thread
Rate Thread
#210124 04/17/2001 5:20 AM
Joined: May 1999
Posts: 1
User
User
Offline
Joined: May 1999
Posts: 1
hi!

i was expected an doexpire.php and subscriptions.php, in state of them i found an *.pl file in the cronsubdir.

if i execute the doexpire.pl:
Can't locate w3ttheme.pm in @INC (@INC contains: /www/rainbow/dbb/cron /usr/lib/perl5/5.00503/i586-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i586-linux /usr/lib/perl5/site_perl/5.005 .) at ./doexpire.pl line 10.
BEGIN failed--compilation aborted at ./doexpire.pl line 10.

if i try to run subscriptions.pl it seems to me that it does not send any submessages to me.

any ideas ?

bug or humanfault myself ?

thanks for answering!

greetings

christian


---
Chris
[email protected]
http://www.indis.at

Sponsored Links
Logix #210125 04/17/2001 6:57 AM
Joined: Sep 1999
Posts: 33
Power User
Power User
Offline
Joined: Sep 1999
Posts: 33
Hi Steger,

The subscriptions and doexpire need to be Perl scripts so they can run as a cron job. Although I didn't expect them to be php files, I thought the instructions for setting them up were a bit lax, particularly for the novice wwwthreads user.

Here is what you can do to make them work:

1) I put doexpire.pl, subscriptions.pl, Mailer.pm, w3t.pm, w3tvars.pm and the languages subdirectory all in the same directory on my server. I suggest a directory outside of your normal 'web' directory. Only your system needs to see these files, nobody from the web needs to get to them.

2) Edit w3tvars.pm and set the parameters appropriately. The $config{'path'} is the full path name of the directory in which these files reside, not your php files.

3) Edit subscriptions.pl and doexpire.pl and change the unshift(@INC at the top to the same directory you set $config{'path'} to. This isn't specifically necessary but it is a liitle clearer what is going on.

4) Enter this command to make them executable: chmod 755 *.pl

5) Verify they work properly

6) Setup crontab to run them automatically.

That ought to do it! Good luck.


Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
isaac
isaac
California
Posts: 1,157
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240430)