Code: Select all
Parse error: syntax error, unexpected T_STRING in /home/.jacinth/bill501/druidry.org/board/dhp/includes/message_parser.php on line 302
Code: Select all
300{
301 if (function_exists('curl_exec'))
302 {
303 $c_img = curl_init();
Code: Select all
if ($stats === false)
{
Code: Select all
if (function_exists('curl_exec'))
{
$c_img = curl_init();
$c_timeout = 8; //The timeout, in seconds. You may want to change this
$c_max_filesize = 64000; //The max file size loaded into memory
curl_setopt($c_img, CURLOPT_URL, $in);
curl_setopt($c_img, CURLOPT_RETURNTRANSFER, 1);
@curl_setopt($c_img, CURLOPT_BUFFERSIZE, $c_max_filesize);
curl_setopt($c_img, CURLOPT_CONNECTTIMEOUT, $c_timeout);
curl_setopt($c_img, CURLOPT_FOLLOWLOCATION,1);
$grabbed_img = @curl_exec($c_img);
curl_close($c_img);
$stats[0] = $stats[1] = false;
if ($grabbed_img)
{
$grabbed_img = @imagecreatefromstring($grabbed_img);
$stats[1] = @imagesy($grabbed_img);
$stats[0]= @imagesx($grabbed_img);
unset($grabbed_img, $c_img);
}
if (!$stats[0] || !$stats[1])
{
$stats = false;
}
}
}
if ($stats === false)
{
Thanks for the correction. I tested the hack and was wondering why it wasn't working. I didn't think to check that the dimensions had been reversed.medigeek wrote:I use dreamhost as well, the code posted before is a great workaround, but the image x and y were placed reverted, hence it will say "Your images may only be up to 150 pixels high." if you have a 200 (width) x 50 (height).
With my limited programming knowledge, I just reverted the imagesx and imagesy:
After the lines (AFTER, NOT BEFORE):
Ive cleared style cache, template cache and general cache, but doesnt work ... Have PHPBB3 GoldParse error: syntax error, unexpected '/' in /forum/phpBB3/includes/message_parser.php on line 445
Code: Select all
mkdir mysite.com/cgi-bin
cp /dh/cgi-system/php5.cgi mysite.com/cgi-bin/php.cgi
cp /etc/php5/cgi/php.ini mysite.com/cgi-bin/php.ini
exit
Code: Select all
mkdir mysite.com/cgi-bin
cp /dh/cgi-system/php.cgi mysite.com/cgi-bin/php.cgi
cp /etc/php5/cgi/php.ini mysite.com/cgi-bin/php.ini
exit
Code: Select all
AddHandler php-cgi .php
Action php-cgi /cgi-bin/php.cgi
RKumono wrote:Dreamhost Users:
You CAN edit your PHP.INI file. I had to dig around for this myself, as we were getting the 'not possible' error on signature and avatar images. Too many places to try and custom recode quickly, so I looked for solutions.