View Full Version: Turing number script no db

MPAM Rebooted Forums > Software support (freewares, PHP...) > Turing number script no db


Title: Turing number script no db
Description: no image displaying


hivtop - March 2, 2008 08:44 PM (GMT)
I tried to get the Turing number script (simple-no db) to work on my server but there is NO IMAGE displayed.
I have:
PHP Version 5.0.4
Apache version 2.0.54
Zend Engine v2.0.4-dev
gd 2.0.33-2


I set l_form.php to 766
dir is set at 750

what am I missing to make it work???? any help would be great...
hivtop

hivtop - March 2, 2008 08:50 PM (GMT)
forgot this "php session info"

session
Session Support enabled
Registered save handlers files user
Registered serializer handlers php php_binary wddx

Directive Local Value Master Value
session.auto_start Off Off
session.bug_compat_42 Off Off
session.bug_compat_warn On On
session.cache_expire 180 180
session.cache_limiter nocache nocache
session.cookie_domain no value no value
session.cookie_lifetime 0 0
session.cookie_path / /
session.cookie_secure Off Off
session.entropy_file no value no value
session.entropy_length 0 0
session.gc_divisor 1000 1000
session.gc_maxlifetime 1440 1440
session.gc_probability 1 1
session.hash_bits_per_character 5 5
session.hash_function 0 0
session.name PHPSESSID PHPSESSID
session.referer_check no value no value
session.save_handler files files
session.save_path /var/lib/php/session /var/lib/php/session
session.serialize_handler php php
session.use_cookies On On
session.use_only_cookies Off Off
session.use_trans_sid 0 0


don't know if this helps but it is the only place I can think of that might be the problem ????

hivtop

patheticcockroach - March 4, 2008 03:13 PM (GMT)
Did you try opening l_gen.php in another tab (after loading l_form.php)? Also, do you use sessions elsewhere on your server and do they work? Usually, this kind of problem comes from sessions or safe mode.

hivtop - March 4, 2008 07:53 PM (GMT)
here goes...
1. after loading l_form.php, I get...

Just checking you are a human and not a cheat bot :). Copy the following number :
(Blank image place holder) blank text box, submit button

2. l_gen.php in a new tap is blank (view source shows only header, nothing in body then </HTML>).

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8"></HEAD>
<BODY></BODY></HTML>

the only web script running on the server is PHP Auction XL (stright cookies, not sessions),
all the standard fedora/webmin/ssh/mail/etc on the server side (all working fine), php safe mode is: off/off

so I guess we are left with sessions.. hahaha

would someone please run a phpinfo.php page on a box with a working turing script and post the session section from it's results, so I can check it against what I have above.

thanks in advance
hivtop

hivtop - March 4, 2008 10:08 PM (GMT)
question... does Zend Optimizer need to be installed to make the script work????

hivtop

hivtop - March 5, 2008 06:27 PM (GMT)
Turned session.auto_start to ON ON
no change

will keep trying stuff to see what happens.. hahaha
I love linux.. hahaha
hivtop

patheticcockroach - March 7, 2008 11:27 AM (GMT)
Sorry for not replying eariler, the e-mail notification seems broken... like many other things on Invision... anyway, here is a working version (I just uncompressed the script and copied it, it worked straight away) and the phpinfo that comes with it :
http://mpam.myftp.biz/test/l_form.php
http://mpam.myftp.biz/test/

Zend optimizer isn't installed. This server only has the latest Apache, PHP and MySQL (although MySQL isn't used here, of course). Sessions seem to cause a lot of trouble to many ppl... You may want to make sure, if you're on Linux, that your session directory (NB: I don't have a clue of where it is) has permissions 777.

hivtop - March 7, 2008 12:13 PM (GMT)
your taking awhile made me learn more of php & GD.. hahaha

I found the problem after reading 352 different pages on turing numbers, captcha, php and gd....

The problem was:
yes... GD was installed but "php-gd" was not (I missed the little line that said "without-gd" in the header of phpinfo)... must learn to read the fine print.. hahaha

after installing "php-gd" all is well and working great...

maybe you should add "needs php-gd" to the requirements page.. for us slow people... hahaha

Thanks again for your suggestions and script... now on to intergrating it... hahaha

Hivtop

patheticcockroach - March 7, 2008 02:45 PM (GMT)
Ah... that's Linux weird misteries for me... ;) On my Windows installation, I just uncomment the line "extension=php_gd2.dll" in php.ini and *poof* it works. Then I believe that this turing number script doesn't need GD, but only php_gd.




Hosted for free by InvisionFree