<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problems using CaptchaSecurityImages since PN PHP upgrade in Tech Help - Software/Hardware etc</title>
    <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704641#M30834</link>
    <description>Hi Netman,&lt;BR /&gt;You appear to have taken the session_start(); out of your image generator.&lt;BR /&gt;try just&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;ini_set('session.save_path', '/files/home3/netman/cgi-bin/SESSIONS');&lt;BR /&gt;session_start();&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;Gabe</description>
    <pubDate>Mon, 05 Apr 2010 20:51:27 GMT</pubDate>
    <dc:creator>Gabe</dc:creator>
    <dc:date>2010-04-05T20:51:27Z</dc:date>
    <item>
      <title>Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704622#M30815</link>
      <description>&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.plus.net/html/@3681646702FDFD32BCA97E2E5F1BDDD5/images/emoticons/huh.gif" alt="Huh" title="Huh" /&gt; Does anyone know how I can use CaptchaSecurityImages on my sumit forms as they were working before PN PHP upgrade and now they don't. &lt;BR /&gt;Where the page should display the security image I just get a red cross. Tried every trick that I know and now have run out of options.&lt;BR /&gt;Can anyone help please?&lt;BR /&gt;Netman</description>
      <pubDate>Sun, 04 Apr 2010 14:11:30 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704622#M30815</guid>
      <dc:creator>netman</dc:creator>
      <dc:date>2010-04-04T14:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704623#M30816</link>
      <description>The image is showing. Have you flushed your browser cache?&lt;BR /&gt;Gabe</description>
      <pubDate>Sun, 04 Apr 2010 15:11:56 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704623#M30816</guid>
      <dc:creator>Gabe</dc:creator>
      <dc:date>2010-04-04T15:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704624#M30817</link>
      <description>&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.plus.net/html/@0D61218B4C14ADFBC10BECD1C628E66A/images/emoticons/undecided.gif" alt="Undecided" title="Undecided" /&gt; Hi Gabe&lt;BR /&gt;The image is not showing and I have used 2 different kind of browsers i.e. Chrome and IE. No matter what I do the images do not show. The image that you saw was a static image just to make sure that images were not blocked from PHP pages.&lt;BR /&gt;Netman</description>
      <pubDate>Sun, 04 Apr 2010 21:05:16 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704624#M30817</guid>
      <dc:creator>netman</dc:creator>
      <dc:date>2010-04-04T21:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704625#M30818</link>
      <description>Hi Netman,&lt;BR /&gt;What I saw was images generated by &lt;A href="http://ccgi.netman.plus.com/cgi-bin/security.lib.php" target="_blank"&gt;http://ccgi.netman.plus.com/cgi-bin/security.lib.php&lt;/A&gt;. I reloaded the page and got a new picture each time. I still do if I use that url directly, though I see it's now been removed from the page.&lt;BR /&gt;Gabe</description>
      <pubDate>Sun, 04 Apr 2010 22:05:12 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704625#M30818</guid>
      <dc:creator>Gabe</dc:creator>
      <dc:date>2010-04-04T22:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704626#M30819</link>
      <description>&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.plus.net/html/@3681646702FDFD32BCA97E2E5F1BDDD5/images/emoticons/huh.gif" alt="Huh" title="Huh" /&gt; Hi Gabe&lt;BR /&gt;Yes you are right. I was a bit missleading. The image did reload but the PHP security.lib.php&amp;nbsp; page would not release the numbers and letters. The to the contact page. I therefore tried another PHP page CaptchaSecurityImages.php which I found on the web and it just leaves a red cross still not passing the numbers and letters back. I am not sure what is going on as I tested both pages on my local machine and they seem to work fine. Confused or what???&amp;nbsp; &lt;img class="lia-deferred-image lia-image-emoji" src="https://community.plus.net/html/@60D8B9A7EF595F957F721D893E7B8359/images/emoticons/crazy2.gif" alt="Crazy" title="Crazy" /&gt; &lt;BR /&gt;Netman</description>
      <pubDate>Sun, 04 Apr 2010 23:23:18 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704626#M30819</guid>
      <dc:creator>netman</dc:creator>
      <dc:date>2010-04-04T23:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704627#M30820</link>
      <description>Hi Netman,&lt;BR /&gt;How are you passing the variable? I'd expect the security.lib.php script to work with something like:&lt;BR /&gt;&lt;PRE&gt;&amp;lt;?php&lt;BR /&gt;session_start();&lt;BR /&gt;require_once "security.lib.php";&lt;BR /&gt;//Generate random code.&lt;BR /&gt;$_SESSION['random'] = generate_random_code(SP_KEY);&lt;BR /&gt;//Show picture&lt;BR /&gt;get_security_picture($_SESSION['random']);&lt;BR /&gt;&lt;BR /&gt;?&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;and then use $_SESSION['random'] in the script that receives your form. Or have I misunderstood the problem?&lt;BR /&gt;Gabe</description>
      <pubDate>Mon, 05 Apr 2010 14:04:58 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704627#M30820</guid>
      <dc:creator>Gabe</dc:creator>
      <dc:date>2010-04-05T14:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704628#M30821</link>
      <description>HI Gabe&lt;BR /&gt;Thanks for all your help but I am getting nowhere at the moment. It's a same that before PN upgraded to PHP5 all was well with my site but now I'm pulling my hair out. Well, I would if I had any&amp;nbsp; &lt;img class="lia-deferred-image lia-image-emoji" src="https://community.plus.net/html/@C99FFF55540079D701B20BB503070F3D/images/emoticons/cool.gif" alt="Cool" title="Cool" /&gt; &lt;BR /&gt;Anyway. The contact page is a html page as you know and it refers to the security.lib.php page &lt;BR /&gt;Code:&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;&lt;BR /&gt;define('SP_KEY',&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; '234612ASgBY0985Sfvtr3WDA345w3f35345dfb');&lt;BR /&gt;define('SP_CODE_LENGTH','5');&lt;BR /&gt;define('SP_CODE_OFFSET','2');&lt;BR /&gt;define('SP_QUALITY',&amp;nbsp; &amp;nbsp; '80');&lt;BR /&gt;define('SP_WIDTH',&amp;nbsp; &amp;nbsp; &amp;nbsp; '60');&lt;BR /&gt;define('SP_HEIGTH',&amp;nbsp; &amp;nbsp;  '30');&lt;BR /&gt;define('SP_CIRCLES',&amp;nbsp; &amp;nbsp; '100');&lt;BR /&gt;define('SP_FONT',&amp;nbsp; &amp;nbsp; &amp;nbsp;  '10');&lt;BR /&gt;define('SP_TEXT_X',&amp;nbsp; &amp;nbsp;  '7');&lt;BR /&gt;define('SP_TEXT_Y',&amp;nbsp; &amp;nbsp;  '7');&lt;BR /&gt;//generate random code. this code will be displayed at the image&lt;BR /&gt;//&lt;BR /&gt;function generate_random_code($key)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; return substr(md5($_SERVER['HTTP_USER_AGENT'] . $key . date("YmdHis")), SP_CODE_OFFSET, SP_CODE_LENGTH);&lt;BR /&gt;}&lt;BR /&gt;//generate picture&lt;BR /&gt;//&lt;BR /&gt;function get_security_picture($code) {&lt;BR /&gt;//set height and width for image font&lt;BR /&gt;//&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ImageFontWidth(SP_FONT);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ImageFontHeight(SP_FONT);&lt;BR /&gt;//create image&lt;BR /&gt;//&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $im = @imagecreate(SP_WIDTH, SP_HEIGTH);&lt;BR /&gt;//set image color&lt;BR /&gt;//&lt;BR /&gt;&amp;nbsp; &amp;nbsp; imagecolorallocate($im, 255 , 255, 255);&lt;BR /&gt;//set random text color&lt;BR /&gt;//&lt;BR /&gt;&amp;nbsp; &amp;nbsp; $text_color = imagecolorallocate($im, rand(0,100), rand(0,100), rand(0,100));&lt;BR /&gt;//create random color circles&lt;BR /&gt;//&lt;BR /&gt;&amp;nbsp; &amp;nbsp; for ($i=1; $i&amp;lt;=SP_CIRCLES; $i++) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $randomcolor = imagecolorallocate($im , rand(100,255), rand(100,255), rand(100,255));&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; imagefilledellipse($im, rand(0, SP_WIDTH-10), rand(0, SP_HEIGTH-3), rand(20,70), rand(20,70), $randomcolor);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; &amp;nbsp; imagerectangle($im, 0, 0, SP_WIDTH-1, SP_HEIGTH-1, $text_color);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; imagestring($im, SP_FONT, SP_TEXT_X, SP_TEXT_Y, $code, $text_color);&lt;BR /&gt;//output image in browser&lt;BR /&gt;&amp;nbsp; &amp;nbsp; header ("Content-type: image/jpeg");&lt;BR /&gt;&amp;nbsp; &amp;nbsp; imagejpeg($im, '', SP_QUALITY);&lt;BR /&gt;//destroy current image&lt;BR /&gt;//&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ImageDestroy($im);&lt;BR /&gt;}&lt;BR /&gt;get_security_picture(generate_random_code(SP_KEY));&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;&lt;BR /&gt;This places an image ib the html page. Somehow I need to get the image contects to the text box called code and then this is posted to my sendmail php page &lt;BR /&gt;Code:&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;session_save_path('/files/home3/netman/cgi-bin/SESSIONS/');&lt;BR /&gt;session_start();&lt;BR /&gt;if( isset($_POST['submit'])) {&lt;BR /&gt;&amp;nbsp; &amp;nbsp;  &lt;BR /&gt;if( $_SESSION['code'] == $_POST['code'] &amp;amp;&amp;amp; !empty($_SESSION['code'] ) ) {&lt;BR /&gt;&amp;nbsp;  //if( $_SESSION['code'] == $_POST['code'] &amp;amp;&amp;amp; !empty($_SESSION['code'] ) ) {&lt;BR /&gt;		// Insert you code for processing the form here, e.g emailing the submission, entering it into a database. &lt;BR /&gt;		////echo 'Thank you. Your message said "'.$_POST['message'].'"';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//--------------------------Set these paramaters--------------------------&lt;BR /&gt;// Subject of email sent to you.&lt;BR /&gt;$subject = 'You have a message from Netmans Website'; &lt;BR /&gt;// Your email address. This is where the form information will be sent. &lt;BR /&gt;$emailadd = 'web@netman.plus.com'; &lt;BR /&gt;$emailaddfrom = 'Netman web feedback form';&lt;BR /&gt;// Where to redirect after form is processed. &lt;BR /&gt;$url = 'http://www.netman.plus.com/thankyou.html'; &lt;BR /&gt;// Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.&lt;BR /&gt;$req = '0'; &lt;BR /&gt;// --------------------------Do not edit below this line--------------------------&lt;BR /&gt;$text = "Message from Netman Web email/feedback form:\n\n"; &lt;BR /&gt;$space = ' ';&lt;BR /&gt;$line = '&lt;BR /&gt;';&lt;BR /&gt;foreach ($_POST as $key =&amp;gt; $value)&lt;BR /&gt;{&lt;BR /&gt;if ($req == '1')&lt;BR /&gt;{&lt;BR /&gt;if ($value == '')&lt;BR /&gt;{echo "$key is empty";die;}&lt;BR /&gt;}&lt;BR /&gt;$j = strlen($key);&lt;BR /&gt;if ($j &amp;gt;= 100)&lt;BR /&gt;{echo "Name of form element $key cannot be longer than 100 characters";die;}&lt;BR /&gt;$j = 20 - $j;&lt;BR /&gt;for ($i = 1; $i &amp;lt;= $j; $i++)&lt;BR /&gt;{$space .= ' ';}&lt;BR /&gt;$value = str_replace('\n', "$line", $value);&lt;BR /&gt;$conc = "{$key}:$space{$value}$line";&lt;BR /&gt;$text .= $conc;&lt;BR /&gt;$space = ' ';&lt;BR /&gt;}&lt;BR /&gt;mail($emailadd, $subject, $text, 'From: '.$emailaddfrom.'');&lt;BR /&gt;echo '&amp;lt;META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'"&amp;gt;';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;		unset($_SESSION['code']);&lt;BR /&gt;&amp;nbsp;  } else {&lt;BR /&gt;		// Insert your code for showing an error message here&lt;BR /&gt;		//echo "Sorry, you have provided an invalid security code";&lt;BR /&gt; &lt;BR /&gt;	&amp;nbsp; header('Location:http://www.netman.plus.com/whoops.html');	&lt;BR /&gt;&amp;nbsp;  }&lt;BR /&gt;} else {&lt;BR /&gt;}&lt;BR /&gt;?&amp;gt;</description>
      <pubDate>Mon, 05 Apr 2010 16:55:16 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704628#M30821</guid>
      <dc:creator>netman</dc:creator>
      <dc:date>2010-04-05T16:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704629#M30822</link>
      <description>This may have nothing to do with it, but if it's a direct paste you have several major typos in your code.......&lt;BR /&gt;&lt;PRE&gt;define('SP_HEIGTH', &amp;nbsp; &amp;nbsp; '30');&lt;/PRE&gt;&lt;BR /&gt;Shouldn't it be SP_HEIGHT?</description>
      <pubDate>Mon, 05 Apr 2010 17:13:50 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704629#M30822</guid>
      <dc:creator>David_W</dc:creator>
      <dc:date>2010-04-05T17:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704630#M30823</link>
      <description>&lt;img class="lia-deferred-image lia-image-emoji" src="https://community.plus.net/html/@0D61218B4C14ADFBC10BECD1C628E66A/images/emoticons/undecided.gif" alt="Undecided" title="Undecided" /&gt;&lt;BR /&gt;OK now you've got me... &lt;BR /&gt;define(&lt;B&gt;'SP_HEIGTH'&lt;/B&gt;,&amp;nbsp; &amp;nbsp;  '30');&lt;BR /&gt;Shouldn't it be &lt;SPAN style="color:blue;"&gt;SP_HEIGHT&lt;/SPAN&gt;?&lt;BR /&gt;Arn't they both the same or are my eyes fuzzy from being infornt of the screen too long&amp;nbsp; &lt;img class="lia-deferred-image lia-image-emoji" src="https://community.plus.net/html/@60D8B9A7EF595F957F721D893E7B8359/images/emoticons/crazy2.gif" alt="Crazy" title="Crazy" /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Apr 2010 17:19:34 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704630#M30823</guid>
      <dc:creator>netman</dc:creator>
      <dc:date>2010-04-05T17:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704631#M30824</link>
      <description>spelling of height&amp;nbsp; &lt;img class="lia-deferred-image lia-image-emoji" src="https://community.plus.net/html/@D10385D46FF09B2E8FF20B0746B65E6F/images/emoticons/shocked.gif" alt="Shocked" title="Shocked" /&gt;</description>
      <pubDate>Mon, 05 Apr 2010 17:28:04 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704631#M30824</guid>
      <dc:creator>Oldjim</dc:creator>
      <dc:date>2010-04-05T17:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704632#M30825</link>
      <description>Come on Plusnet - this is a problem in PHP implementation &amp;amp; has exactly the same cause as the problems with sessions.&lt;BR /&gt;ALL calls to&amp;nbsp; session_start(); are failing - there is another post describing complicated ways of getting round it. I found a simpler way&lt;BR /&gt;which has also solved the problem with showing the captcha image.&lt;BR /&gt;If no session id is assigned php automatically assigns a reference when session_start is called BUT the length of this reference&lt;BR /&gt;is too long &amp;amp; choking Plusnet's php implementation. Nothing wrong with scripts, nothing wrong on my Win32 or Ubuntu Linux implementations&lt;BR /&gt;with PHP5 - it is Plusnet's implementation.&lt;BR /&gt;I use PHPFusion so I can't comment directly on your case but the captcha routine there includes a call to session_start();&lt;BR /&gt;The solution is to call session_id(); before calling session_start(); &amp;amp; assigning a short id&lt;BR /&gt;eg&amp;nbsp; session_id("sec");&amp;nbsp; &lt;BR /&gt;This has worked both for IM scripts which use session_start(); &amp;amp; PHPFusions&amp;nbsp; new Member registration script which uses&lt;BR /&gt;captcha images.&lt;BR /&gt;So... look in your script for the call to session_start(); &amp;amp; place session_id("sec");&amp;nbsp; before it &amp;amp; voila!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 05 Apr 2010 17:33:11 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704632#M30825</guid>
      <dc:creator>alanrm</dc:creator>
      <dc:date>2010-04-05T17:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704633#M30826</link>
      <description>Hi ananrm,&lt;BR /&gt;Thanks for the info. But alas I have put my website back to it's original state except for the PHP pages having &lt;BR /&gt;session_save_path('/files/home3/netman/cgi-bin/SESSIONS/');&lt;BR /&gt;session_id("sec");&amp;nbsp; &lt;BR /&gt;session_start();&lt;BR /&gt;at the top and still no security images shows.... I must be going do-lally by now I guess.</description>
      <pubDate>Mon, 05 Apr 2010 18:12:24 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704633#M30826</guid>
      <dc:creator>netman</dc:creator>
      <dc:date>2010-04-05T18:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704634#M30827</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Quote from: netman&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;session_save_path('/files/home3/netman/cgi-bin/SESSIONS/');&lt;BR /&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;Try&lt;BR /&gt;&lt;PRE&gt;ini_set('session.save_path', '/files/home3/netman/cgi-bin/SESSIONS');&lt;/PRE&gt;&lt;BR /&gt;And remove session_id("sec");&lt;BR /&gt;Gabe</description>
      <pubDate>Mon, 05 Apr 2010 18:24:18 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704634#M30827</guid>
      <dc:creator>Gabe</dc:creator>
      <dc:date>2010-04-05T18:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704635#M30828</link>
      <description>Hi Gabe&lt;BR /&gt;Thanks for the info.&lt;BR /&gt;I don't have an issue with the sessions it's the image security I have a problem with.&lt;BR /&gt;However I have done as stated and still no change. I am sure the issue lies with PN PHP config&amp;nbsp; &lt;img class="lia-deferred-image lia-image-emoji" src="https://community.plus.net/html/@60D8B9A7EF595F957F721D893E7B8359/images/emoticons/crazy2.gif" alt="Crazy" title="Crazy" /&gt;</description>
      <pubDate>Mon, 05 Apr 2010 19:00:57 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704635#M30828</guid>
      <dc:creator>netman</dc:creator>
      <dc:date>2010-04-05T19:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704636#M30829</link>
      <description>Hi netman,&lt;BR /&gt;Just to emphasize that it IS the session_start() function implementation which is causing the problem - you are viewing the captcha image&lt;BR /&gt;as something different but the problem is caused by the session_start function which is used in this script.&lt;BR /&gt;I came to&amp;nbsp; your query because I had problems with this function in an IM script &amp;amp; after reading your query I found that suddenly the captcha image was not appearing in my PN PHPFusion setup. It was therefore no surprise at all to find that the captcha script included a call to the very same function. These are now working again after my amendment.&lt;BR /&gt;I don't know why you need to specify a session save path - does your original script do this? The ONLY change I had to make to two different&lt;BR /&gt;scripts causing problems was to set a short file length id by calling session_id() before session_start() specifically to address the error&lt;BR /&gt;notice being generated by PHP.&lt;BR /&gt;Of course, a reference generated automatically by PHP for a session id should not be rejected by PHP &amp;amp; is not by any other implementation that I have come across.&lt;BR /&gt;To Gabe I would say-&lt;BR /&gt;Try uploading this script to PN &amp;amp; then explain how to solve the error. There should of course be no error message.&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;session_start();&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;Now upload this:-&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;session_id("test"); &lt;BR /&gt;session_start();&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;You will of course get a white screen but look at your cookies - the PHPSESSIONID has been successfully created&amp;nbsp; - it failed on the call just to&lt;BR /&gt;session_start() &lt;BR /&gt;</description>
      <pubDate>Mon, 05 Apr 2010 19:43:57 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704636#M30829</guid>
      <dc:creator>alanrm</dc:creator>
      <dc:date>2010-04-05T19:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704637#M30830</link>
      <description>Hi alanru&lt;BR /&gt;I got this on your second comment...&lt;BR /&gt;Server error!&lt;BR /&gt;The server encountered an internal error and was unable to complete your request. &lt;BR /&gt;Error message: &lt;BR /&gt;Premature end of script headers: session2.php &lt;BR /&gt;If you think this is a server error, please contact the webmaster. &lt;BR /&gt;Error 500</description>
      <pubDate>Mon, 05 Apr 2010 19:59:36 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704637#M30830</guid>
      <dc:creator>netman</dc:creator>
      <dc:date>2010-04-05T19:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704638#M30831</link>
      <description>Hi to both alanru and Gabe,&lt;BR /&gt;Here are my 3 instances of code &lt;BR /&gt;1. The call from the html file to the php security file&lt;BR /&gt;2. The php security file&lt;BR /&gt;3. the php Post and redirect file&lt;BR /&gt;I cannot see what's wrong&amp;nbsp; &lt;img class="lia-deferred-image lia-image-emoji" src="https://community.plus.net/html/@60D8B9A7EF595F957F721D893E7B8359/images/emoticons/crazy2.gif" alt="Crazy" title="Crazy" /&gt;&lt;BR /&gt;&lt;SPAN style="color:blue;"&gt;1.&lt;/SPAN&gt;&lt;BR /&gt;******************************************************************************************************************************************************************************&lt;BR /&gt; &amp;lt;img src="http://ccgi.netman.plus.com/cgi-bin/CaptchaSecurityImages.php" /&amp;gt;&amp;lt;br /&amp;gt;&lt;BR /&gt;		&amp;lt;label for="security_code"&amp;gt;Security Code: &amp;lt;/label&amp;gt;&amp;lt;input id="security_code" name="security_code" type="text" value=""/&amp;gt;&amp;lt;br /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;p&amp;gt;&amp;lt;br&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;input type="submit" name="submit" id="submit" class="button" value="Send message" tabindex="6" /&amp;gt;&lt;BR /&gt;******************************************************************************************************************************************************************************&lt;BR /&gt;&lt;SPAN style="color:blue;"&gt;2.&lt;/SPAN&gt;&lt;BR /&gt;******************************************************************************************************************************************************************************&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;//session_id("sec");&amp;nbsp; &lt;BR /&gt;//session_start();&lt;BR /&gt;session_id("sec");&amp;nbsp; &lt;BR /&gt;ini_set('session.save_path', '/files/home3/netman/cgi-bin/SESSIONS');&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;class CaptchaSecurityImages {&lt;BR /&gt;	var $font = 'arial.ttf';&lt;BR /&gt;	function generateCode($characters) {&lt;BR /&gt;		/* list all possible characters, similar looking characters and vowels have been removed */&lt;BR /&gt;		$possible = '23456789bcdfghjkmnpqrstvwxyz';&lt;BR /&gt;		$code = '';&lt;BR /&gt;		$i = 0;&lt;BR /&gt;		while ($i &amp;lt; $characters) { &lt;BR /&gt;			$code .= substr($possible, mt_rand(0, strlen($possible)-1), 1);&lt;BR /&gt;			$i++;&lt;BR /&gt;		}&lt;BR /&gt;		return $code;&lt;BR /&gt;	}&lt;BR /&gt;	function CaptchaSecurityImages($width='120',$height='40',$characters='6') {&lt;BR /&gt;		$code = $this-&amp;gt;generateCode($characters);&lt;BR /&gt;		/* font size will be 75% of the image height */&lt;BR /&gt;		$font_size = $height * 0.75;&lt;BR /&gt;		$image = @imagecreate($width, $height) or die('Cannot initialize new GD image stream');&lt;BR /&gt;		/* set the colours */&lt;BR /&gt;		$background_color = imagecolorallocate($image, 255, 255, 255);&lt;BR /&gt;		$text_color = imagecolorallocate($image, 20, 40, 100);&lt;BR /&gt;		$noise_color = imagecolorallocate($image, 100, 120, 180);&lt;BR /&gt;		/* generate random dots in background */&lt;BR /&gt;		for( $i=0; $i&amp;lt;($width*$height)/3; $i++ ) {&lt;BR /&gt;			imagefilledellipse($image, mt_rand(0,$width), mt_rand(0,$height), 1, 1, $noise_color);&lt;BR /&gt;		}&lt;BR /&gt;		/* generate random lines in background */&lt;BR /&gt;		for( $i=0; $i&amp;lt;($width*$height)/150; $i++ ) {&lt;BR /&gt;			imageline($image, mt_rand(0,$width), mt_rand(0,$height), mt_rand(0,$width), mt_rand(0,$height), $noise_color);&lt;BR /&gt;		}&lt;BR /&gt;		/* create textbox and add text */&lt;BR /&gt;		$textbox = imagettfbbox($font_size, 0, $this-&amp;gt;font, $code) or die('Error in imagettfbbox function');&lt;BR /&gt;		$x = ($width - $textbox[4])/2;&lt;BR /&gt;		$y = ($height - $textbox[5])/2;&lt;BR /&gt;		imagettftext($image, $font_size, 0, $x, $y, $text_color, $this-&amp;gt;font , $code) or die('Error in imagettftext function');&lt;BR /&gt;		/* output captcha image to browser */&lt;BR /&gt;		header('Content-Type: image/jpeg');&lt;BR /&gt;		imagejpeg($image);&lt;BR /&gt;		imagedestroy($image);&lt;BR /&gt;		$_SESSION['security_code'] = $code;&lt;BR /&gt;	}&lt;BR /&gt;}&lt;BR /&gt;$width = isset($_GET['width']) ? $_GET['width'] : '120';&lt;BR /&gt;$height = isset($_GET['height']) ? $_GET['height'] : '40';&lt;BR /&gt;$characters = isset($_GET['characters']) &amp;amp;&amp;amp; $_GET['characters'] &amp;gt; 1 ? $_GET['characters'] : '6';&lt;BR /&gt;$captcha = new CaptchaSecurityImages($width,$height,$characters);&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;******************************************************************************************************************************************************************************&lt;BR /&gt;&lt;SPAN style="color:blue;"&gt;3.&lt;/SPAN&gt;&lt;BR /&gt;*****************************************************************************************************************************************************************************&lt;BR /&gt;&amp;lt;?php&lt;BR /&gt;//session_save_path('/files/home3/netman/cgi-bin/SESSIONS/');&lt;BR /&gt;//session_id("sec");&amp;nbsp; &lt;BR /&gt;session_id("sec");&amp;nbsp; &lt;BR /&gt;ini_set('session.save_path', '/files/home3/netman/cgi-bin/SESSIONS');&lt;BR /&gt;session_start();&lt;BR /&gt;`chmod 700 $fn`;&lt;BR /&gt;if( isset($_POST['submit'])) {&lt;BR /&gt;&amp;nbsp; // get_security_picture($_SESSION['random'])&amp;nbsp; &lt;BR /&gt;&amp;nbsp;  if( $_SESSION['security_code'] == $_POST['security_code'] &amp;amp;&amp;amp; !empty($_SESSION['security_code'] ) ) {&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;//--------------------------Set these paramaters--------------------------&lt;BR /&gt;// Subject of email sent to you.&lt;BR /&gt;$subject = 'You have a message from Netmans Website'; &lt;BR /&gt;// Your email address. This is where the form information will be sent. &lt;BR /&gt;$emailadd = 'web@netman.plus.com'; &lt;BR /&gt;$emailaddfrom = 'Netman web feedback form';&lt;BR /&gt;// Where to redirect after form is processed. &lt;BR /&gt;$url = 'http://www.netman.plus.com/thankyou.html'; &lt;BR /&gt;// Makes all fields required. If set to '1' no field can not be empty. If set to '0' any or all fields can be empty.&lt;BR /&gt;$req = '0'; &lt;BR /&gt;// --------------------------Do not edit below this line--------------------------&lt;BR /&gt;$text = "Message from Netman Web email/feedback form:\n\n"; &lt;BR /&gt;$space = ' ';&lt;BR /&gt;$line = '&lt;BR /&gt;';&lt;BR /&gt;foreach ($_POST as $key =&amp;gt; $value)&lt;BR /&gt;{&lt;BR /&gt;if ($req == '1')&lt;BR /&gt;{&lt;BR /&gt;if ($value == '')&lt;BR /&gt;{echo "$key is empty";die;}&lt;BR /&gt;}&lt;BR /&gt;$j = strlen($key);&lt;BR /&gt;if ($j &amp;gt;= 100)&lt;BR /&gt;{echo "Name of form element $key cannot be longer than 100 characters";die;}&lt;BR /&gt;$j = 20 - $j;&lt;BR /&gt;for ($i = 1; $i &amp;lt;= $j; $i++)&lt;BR /&gt;{$space .= ' ';}&lt;BR /&gt;$value = str_replace('\n', "$line", $value);&lt;BR /&gt;$conc = "{$key}:$space{$value}$line";&lt;BR /&gt;$text .= $conc;&lt;BR /&gt;$space = ' ';&lt;BR /&gt;}&lt;BR /&gt;mail($emailadd, $subject, $text, 'From: '.$emailaddfrom.'');&lt;BR /&gt;echo '&amp;lt;META HTTP-EQUIV=Refresh CONTENT="0; URL='.$url.'"&amp;gt;';&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;		unset($_SESSION['code']);&lt;BR /&gt;&amp;nbsp;  } else {&lt;BR /&gt;		// Insert your code for showing an error message here&lt;BR /&gt;		//echo "Sorry, you have provided an invalid security code";&lt;BR /&gt; &lt;BR /&gt;	&amp;nbsp; header('Location:http://www.netman.plus.com/whoops.html');	&lt;BR /&gt;&amp;nbsp;  }&lt;BR /&gt;} else {&lt;BR /&gt;}&lt;BR /&gt;?&amp;gt;&lt;BR /&gt;*******************************************************************************************************************************************&lt;BR /&gt;Thanks for all your help guys</description>
      <pubDate>Mon, 05 Apr 2010 20:14:22 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704638#M30831</guid>
      <dc:creator>netman</dc:creator>
      <dc:date>2010-04-05T20:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704639#M30832</link>
      <description>Hi Alan,&lt;BR /&gt;Try&lt;BR /&gt;&lt;PRE&gt;&amp;lt;?php&lt;BR /&gt;ini_set('session.save_path', '/files/homeX/username/SESSION');&lt;BR /&gt;session_id("test");&lt;BR /&gt;session_start();&lt;BR /&gt;?&amp;gt;&lt;/PRE&gt;&lt;BR /&gt;suitably edited for your path. Call it in a few browsers. Then look in /SESSION and count the sessions.&lt;BR /&gt;Gabe</description>
      <pubDate>Mon, 05 Apr 2010 20:43:04 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704639#M30832</guid>
      <dc:creator>Gabe</dc:creator>
      <dc:date>2010-04-05T20:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704640#M30833</link>
      <description>Do we have a happy ending?&lt;BR /&gt;Both my original scripts without any alterations are now working again - Plusnet have been busy.&lt;BR /&gt;Netman - have you tried your original scripts again?</description>
      <pubDate>Mon, 05 Apr 2010 20:49:33 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704640#M30833</guid>
      <dc:creator>alanrm</dc:creator>
      <dc:date>2010-04-05T20:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems using CaptchaSecurityImages since PN PHP upgrade</title>
      <link>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704641#M30834</link>
      <description>Hi Netman,&lt;BR /&gt;You appear to have taken the session_start(); out of your image generator.&lt;BR /&gt;try just&lt;BR /&gt;&lt;PRE&gt;&lt;BR /&gt;ini_set('session.save_path', '/files/home3/netman/cgi-bin/SESSIONS');&lt;BR /&gt;session_start();&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;Gabe</description>
      <pubDate>Mon, 05 Apr 2010 20:51:27 GMT</pubDate>
      <guid>https://community.plus.net/t5/Tech-Help-Software-Hardware-etc/Problems-using-CaptchaSecurityImages-since-PN-PHP-upgrade/m-p/704641#M30834</guid>
      <dc:creator>Gabe</dc:creator>
      <dc:date>2010-04-05T20:51:27Z</dc:date>
    </item>
  </channel>
</rss>

