I'm trying to activate a security image and have been given some code to put in my php.ini file. I've looked at all the files for my site, but can't find this one - any suggestions please. As you've probably guessed, i'm working 'in the dark' here.
This is the code it's been suggested I try :
extension=php_gd2.dll
and to enable error reporting:
error_reporting = E_ALL
display_errors = On
Thanks.
Moderator
From: Yorkshire, UK
Registered: 2006-08-19
Posts: 2860
I've been thanked 85 times.
Offline
If you're on a shared host then it's unlikely that you'll have access to your php.ini file
it may not even be called that.
(some hosts do give you access, but you may have to ask them)
more importantly, you'll want to know if the gd library was compiled into php when your host set your server up.
In a blank file, paste in the following lines
Code: php
<php
phpinfo();
?>
save it as something like info.php and upload it to your server, then look at the page through a browser - you will see all the php configuartion options. The headings are alphabetical, so scroll down and see if you can see anything about gd.
you can set error handling at run time, see http://uk2.php.net/manual/en/function.e … orting.php
Report back withnyour findings!!!
You can set your error reporting within your PHP file...just add this to the top:
Code: php
ini_set('error_reporting', E_ALL);
Today's article: A Unique Look at Adwords Advertising
Thanks for response.
Made file (using TextEdit on Mac) and uploaded - got access denied note. Uploaded it then to my 'docroot' and tried to view in browser - got 404 error messge.
Not essential to activate this feature, but I would have iiked to. As far as I know, I have access to all files - there is a php admin facility on my server, which I don't know how to use - I do eveything and change everything in exisitng files, or make new ones on my Mac and upload/replace via FTP.
Guess I need to do a bit more reading....
| Never |


