| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| The original NP Emo Kid Join Date: Jan 2005 Location: Plymouth, UK
Posts: 1,693
![]() ![]() ![]() ![]() ![]() ![]() | [php] captcha not working (new) Hi all been doing my own captcha system and it seems to not want to work and i cannot figure out why. Here is my captcha class: PHP Code: PHP Code: PHP Code:
Last edited by liam_d; 06-28-2009 at 08:33 AM.
|
| | |
| | #2 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | session_start(); Has to be called in the file you're including the captcha image in as well. ---------- Post added at 07:13 AM ---------- Previous post was at 07:12 AM ---------- So, try: PHP Code: |
| | |
| | THREAD STARTER #3 (permalink) |
| The original NP Emo Kid Join Date: Jan 2005 Location: Plymouth, UK
Posts: 1,693
![]() ![]() ![]() ![]() ![]() ![]() | Yes I know that, that is only a small snippet I start the session of course. Like I said I've tried simply including the image generating file and having it simply echo the rand strings and they show but they won't show up on the image when I show the file like I showed. |
| | |
| | #4 (permalink) |
| Senior Member Join Date: Mar 2005
Posts: 4,948
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | http://www.secondversion.com/Untitled.php Testing there, it works. Are you sure you've specified the correct path to the image specified in imagecreatefromjpeg() ? Also, what happens if you visit the image file directly? (if in the web root) |
| | |
| | THREAD STARTER #5 (permalink) |
| The original NP Emo Kid Join Date: Jan 2005 Location: Plymouth, UK
Posts: 1,693
![]() ![]() ![]() ![]() ![]() ![]() | That's the thing the image shows up fine but the letters\numbers dont. I tried adding in hardcoded letters to see if the imagestrings are working and they showed up fine, so somehow the image file cannot grab the session strings when displayed using the template system. Going to the page itself will come up blank obviously as it won't have any information to use from the script that grabs it. |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| My domain aint working... | mebreezy | Domain Name Discussion | 12 | 05-09-2006 10:17 AM |
| Is Your Website Working Properly? - this software will make it sure c/w resale rights | weblord | For Sale / Advertising Board | 0 | 05-07-2006 06:23 PM |
| MSN.com stop working for 4 ......... | NamingJournal.com | Industry News | 10 | 05-01-2006 09:30 AM |
| IR generated mouseover JS code not working | Ringr | Programming | 1 | 01-16-2006 05:58 AM |
| Forms stopped working...help! | stu10 | Programming | 2 | 04-12-2005 01:49 PM |