| View previous topic :: View next topic |
| Author |
Message |
kidkae
Joined: 08 May 2009 Posts: 5
|
Posted: Fri May 08, 2009 6:46 pm Post subject: image not show on hosting |
|
|
i do some captcha on localhost using xampp
it look fine, the captcha image was seen
but when i'm upload it on a hosting
it show some error like this:
Fatal error: Class 'Text_CAPTCHA' not found in /home....
on PEAR cpanel, i have instal text_captcha and image_text
is there anything have to be configured on captcha after put it on the server?
thanks |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Sat May 09, 2009 11:16 am Post subject: |
|
|
| Either you haven't included the Text/Captcha.php file not correctly or the include_path isn't set correctly. |
|
| Back to top |
|
 |
kidkae
Joined: 08 May 2009 Posts: 5
|
Posted: Mon May 11, 2009 10:18 am Post subject: |
|
|
this is my include path
ini_set('include_path' , ini_get('include_path')
. PATH_SEPARATOR . '../include/');
could have something wrong on that?
coz i do the captcha fine on localhost using the latest xampp (1.7.1)
thanks mark |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Mon May 11, 2009 10:32 am Post subject: |
|
|
| Instead of '../include', I'd try to use an absolute path. |
|
| Back to top |
|
 |
kidkae
Joined: 08 May 2009 Posts: 5
|
Posted: Mon May 11, 2009 12:03 pm Post subject: |
|
|
humm...
but i need that '../include' path so it can work with the other code
to get the captcha work, could it possible if i put manual captcha and image_text folder inside the '../include', so that i do not have to change my include path?
thanks mark |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Mon May 11, 2009 1:50 pm Post subject: |
|
|
| kidkae wrote: | | but i need that '../include' path so it can work with the other code |
Hmm, how should an absolute path be a problem here?
But if it really is, you can also append the absolute path to the current include_path.
| kidkae wrote: | | to get the captcha work, could it possible if i put manual captcha and image_text folder inside the '../include', so that i do not have to change my include path? |
Yes, as long as the directory structure is right, i.e. there needs to be a "Text" and an "Image" folder there. (Maybe this is the problem currently?) |
|
| Back to top |
|
 |
kidkae
Joined: 08 May 2009 Posts: 5
|
Posted: Tue May 12, 2009 9:43 pm Post subject: |
|
|
i have put Text and Image folder in '../include'
but now i've got this eror :
Warning: require_once(PEAR.php) [function.require-once]: failed to open stream: No such file ............./include/Text/CAPTCHA.php on line 22
Fatal error: require_once() [function.require]: Failed opening required 'PEAR.php' (include_path='.:/usr/lib/php:/usr/local/lib/php:../include/') in .............../include/Text/CAPTCHA.php on line 22
its call the PEAR.php
i do think now the include_path maybe is the problem.
now i'm still learn and try how to use the ini_set correctly so it can work find with the captcha and other code.
do you maybe have some suggestion for me?
thanks mark |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1230
|
Posted: Tue May 12, 2009 10:21 pm Post subject: |
|
|
| PEAR.php needs to be in the directory in which the "Image" and "Text" directories reside. |
|
| Back to top |
|
 |
kidkae
Joined: 08 May 2009 Posts: 5
|
Posted: Wed May 13, 2009 2:21 pm Post subject: |
|
|
i though it will be much difficult
but it is not..
after i've put PEAR.php
next i've put PEAR5.php
then i've put the text_password and the image_text
and the captcha image shows on the server now
like it work on localhost
thanks for your help mark!  |
|
| Back to top |
|
 |
everyone
Joined: 10 Mar 2010 Posts: 1
|
Posted: Wed Mar 10, 2010 12:39 pm Post subject: |
|
|
Me too !I have pictures that do not show up. While editing and previewing they show up, but once published they do not show. _________________ free baby samples
free baby samples |
|
| Back to top |
|
 |
|