Help for simple PHP script |
Help for simple PHP script |
denmarks |
Aug 31 2018, 12:31 PM
Post
#21
|
Advanced Member Group: Members Posts: 207 Joined: 17-January 08 Member No.: 4,734 |
Thanks for your help but it still doesn't increment. It is probably my host. I will check with them some day. I have also posted the question at the 1and1 forum and am still waiting for a response. It increments and displays the .png with no error. Also, when I inserted my 2 lines for error checking I got actual error messages, don't remember them now. I must be missing something on the server. I get errors with ini_set('display_errors', 'On'); error_reporting(E_ALL); but if I leave out ini_set... there is no error. I read about a php.ini file. Do I need that? Also I can not find a php log file to look for errors. |
CharlesEF |
Aug 31 2018, 03:11 PM
Post
#22
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
I must be missing something on the server. I get errors with ini_set('display_errors', 'On'); error_reporting(E_ALL); but if I leave out ini_set... there is no error. I read about a php.ini file. Do I need that? Also I can not find a php log file to look for errors. The php.ini file should be in the same directory that PHP was installed in, I have never heard of anyone needing to create the file themselves. The 'php-errors.log' file should be in your temp directory, the php.ini file points to the directory. Are you running the script from a local web server OR from your online web server? |
denmarks |
Aug 31 2018, 03:23 PM
Post
#23
|
Advanced Member Group: Members Posts: 207 Joined: 17-January 08 Member No.: 4,734 |
I must be missing something on the server. I get errors with ini_set('display_errors', 'On'); error_reporting(E_ALL); but if I leave out ini_set... there is no error. I read about a php.ini file. Do I need that? Also I can not find a php log file to look for errors. The php.ini file should be in the same directory that PHP was installed in, I have never heard of anyone needing to create the file themselves. The 'php-errors.log' file should be in your temp directory, the php.ini file points to the directory. Are you running the script from a local web server OR from your online web server? I have my own webspace. I do not install PHP. I do not have a temp directory. It is being run from an online web server (1and1) |
CharlesEF |
Aug 31 2018, 07:59 PM
Post
#24
|
Programming Fanatic Group: Members Posts: 1,981 Joined: 27-April 13 From: Edinburg, Texas Member No.: 19,088 |
I guess you should ask your hosting company where the INI and ERROR files are located. I can login to my account and have access to that information.
If you really want to learn PHP you should install a web server on your local computer. That way you KNOW when a script works correctly and can talk to your hosting company about it. I know nothing about 1and1. |
Lo-Fi Version | Time is now: 23rd April 2024 - 03:57 PM |