Seems that function produceSecurityImage( $textstr, $hashtext ) returns an error
Can you post the content of images.inc.php?
Main Topics
Browse All TopicsThis is a openscript php code verification script that prevents auto entry where a human views alpha-numeric text and then types in what they see.
Works on different server, not the one copied to hence wondering if php.ini variables are the cause.
Url = http://americas-original.c
Code =
<?php
/*************************
* Dolphin Web Community Software
* -------------------
* begin : Mon Mar 23 2006
* copyright : (C) 2006 BoonEx Group
* website : http://www.boonex.com
*
*
*
**************************
/*************************
*
* This is a free software; you can modify it under the terms of BoonEx
* Product License Agreement published on BoonEx site at http://www.boonex.com/down
* You may not however distribute it for free or/and a fee.
* This notice may not be removed from the source code. You may not also remove any other visible
* reference and links to BoonEx Group as provided in source code.
*
**************************
require_once( "images.inc.php" );
ob_start();
session_start();
$chars = array("a","A","b","B","c",
"k","K","L","m","M","n","N
"u","U","v","V","w","W","x
$textstr = '';
for ($i = 0, $length = 5; $i < $length; $i++) {
$textstr .= $chars[rand(0, count($chars) - 1)];
}
$hashtext = md5($textstr);
$_SESSION['strSec'] = $hashtext;
if ( produceSecurityImage( $textstr, $hashtext ) != IMAGE_ERROR_SUCCESS )
{
// output header
header( "Content-Type: image/gif" );
// output error image
$errorFilename = $ID_PIC_DIR . 'simg_error.gif';
$fp = fopen( $errorFilename, 'r' );
$fsize = filesize( $errorFilename );
if ( $fp )
{
print fread( $fp, $fsize );
}
fclose( $fp );
}
ob_end_flush();
?>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: darron_chapmanPosted on 2008-01-31 at 10:53:16ID: 20789714
Most likely... safe_mode is on, and that prevents you from using fopen on files that are outside your include directories.... either turn safe_mode off, or add whatever $ID_PIC_DIR point to to your include directory