Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Jun 2000
Posts: 190
Pilgrim Offline OP
OP Offline
Joined: Jun 2000
Posts: 190
I suspect my hosting ISP has changed how their crons are run because I've been using the same subscriptions.php script for 3 years and it has worked fine. The error that came via e-mail is:

[:"red"]Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/www/the-highway/forum/cron/php/subscriptions.php on line 192[/]

Here's the section of that script referred to below. I can't find anything wrong with it. Suggestions?

$to       = $config['emailaddy'];<br />	$subject  = "Subscription Count";<br />	$msg      = "$count Number of subscriptions sent out!\n";<br />	----->$headers  = "From: $config['emailaddy'] <$config['emailaddy']>$newline";<-----<br />	$headers .= "Sender: $config['emailaddy']$newline";<br />	$headers .= "Reply-to: $config['emailaddy']$newline";<br />	$headers .= "X-Mailer: $config['emailaddy']$newline";<br />	$headers .= "Return-Path: <$config['emailaddy']>$newline";<br />	mail("$to","$subject","$msg",$headers);


Artificial Intelligence is no match for natural stupidity!
Sponsored Links
Joined: Mar 2000
Posts: 21,079
Likes: 3
I type Like navaho
I type Like navaho
Joined: Mar 2000
Posts: 21,079
Likes: 3
Hey Pilgrim - long time no see

Have you not updated any files recently? Possible they've updated their php recently?

- Allen wavey
- What Drives You?
Joined: Nov 2001
Posts: 10,369
I type Like navaho
I type Like navaho
Joined: Nov 2001
Posts: 10,369
Try changing this:
<br />$headers  = "From: $config['emailaddy'] <$config['emailaddy']>$newline";<-----<br />	$headers .= "Sender: $config['emailaddy']$newline";<br />	$headers .= "Reply-to: $config['emailaddy']$newline";<br />	$headers .= "X-Mailer: $config['emailaddy']$newline";<br />	$headers .= "Return-Path: <$config['emailaddy']>$newline";<br />

to this:
<br />$headers  = "From: {$config['emailaddy']} <{$config['emailaddy']}>$newline";<-----<br />	$headers .= "Sender: {$config['emailaddy']}$newline";<br />	$headers .= "Reply-to: {$config['emailaddy']}$newline";<br />	$headers .= "X-Mailer: {$config['emailaddy']}$newline";<br />	$headers .= "Return-Path: <{$config['emailaddy']}>$newline";<br />

Basically putting { and } around any array inside of a quote string.

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
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online 267
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 2
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,808
Greg Hard 4,625
Top Posters(30 Days)
isaac 5
Top Likes Received
isaac 64
Gizmo 12
Brett 7
Morgan 2
Top Likes Received (30 Days)
isaac 2
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2020 VNC Web Services

Powered by UBB.threads™ PHP Forum Software 7.7.6
(Snapshot build
Responsive Width:

PHP: 5.4.45 Page Time: 0.038s Queries: 21 (0.013s) Memory: 3.2704 MB (Peak: 3.4618 MB) Data Comp: Zlib Server Time: 2020-12-03 00:54:25 UTC
Valid HTML 5 and Valid CSS