flashisland
Members-
Posts
18 -
Joined
-
Last visited
Everything posted by flashisland
-
I found a way to do exactly what I want. Check out the code snippet below... ><?php ini_set('error_reporting', E_ALL | E_STRICT); ini_set('display_errors', 'Off'); ini_set('log_errors', 'On'); ini_set('error_log', '/path/to/errorlog'); ?> That seems to do the trick!
-
This will be a production site. How can you automatically log all php errors to a file? Setting error_reporting(0) won't report any errors ever, not even to a log file. Now I can write a script to catch php warnings but I can't catch and prevent fatal or complile errors without setting this value on the server instead of my files. Is there any way I can do this?
-
TCH-Bruce: I'm not talking about script that echos an error, I'm talking about in case of a fatal php error or warning. Yea I tried error_reporting(0) but that turns all error reporting off (obviously) so I'll never know that an error occurred. From the PHP manual it looks like there is a setting called "display_errors" which seems to be what I want. Anyone know how to get this turned off? It's simple on my own servers but for shared hosting I'm not sure how to do it.
-
Hey everyone, Is there an easy way to disable PHP error text? I don't want to disable error reporting, just the error text. I'm afraid that it might expose script information that I don't want them to have. Thanks!
-
Thanks, I'll try that!
-
Yes, but I've been waiting for months! The problem is that my placement on Google is dropping since I have no content on my page. When I used a meta redirect, I jumped back up to the top. From reading some stuff online, I seems that people have conflicting ideas about what Google likes/dislikes. Some people say that it's ok to use meta redirect as long as the wait time isn't zero. Is this true?
-
Hello everyone, Ever since I've moved my site to Total Choice Hosting, I've had a problem getting Google to reindex my pages as the new site. I used to be hosted on a free server. When you go into Google and type the search term "online pinball", my old website comes up as one of the top search terms (www.thepinballzone.coolfreepages.com/onlinepinball.htm). I am trying to get Google to realize that that page has moved, but I'm not quite sure how to do it. Right now I just have text that says the page has moved. I was using an automatic meta redirect but I heard that was bad in Google's eyes. Unfortunatly since it's a free host I can't use an .htaccess file to create a permanent redirect. Any ideas? Thanks for any help!
-
Yes, thank you helpbytes, it FINALLY works! Thank you all who helped me out! You guys are awesome.
-
Nope, it still won't work! I'm getting really sick of this script by now! I still keep getting the same "A message that you sent could not be delivered to one or more of its recipients." error. Edit: The script does however send me the testing email still.
-
I get an error, as I mentioned above, when I use that pipe address. This just doesn't make any sense.
-
Well, it kind of works now. I changed the pipe to address to this: >|/usr/bin/php /home/mycpanelsusername/public_html/myfile.php My php code is this: >#!/usr/bin/php -q <?php mail("kevin@****","Working...","It worked!"); return 0; ?> Now I do recieve the working email, but I still get a bounced back error message! Here's the error message: >This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: pipe to |/usr/bin/php /home/mycpanelusername/public_html/myfile.php generated by newsletter@**** The following text was generated during the delivery attempt: ------ pipe to |/usr/bin/php /home/mycpanelusername/public_html/myfile.php generated by newsletter@**** ------ Content-type: text/html X-Powered-By: PHP/4.3.11 Any ideas?
-
I feel like I've tried everything, and it still doesn't work. I used TCH-David's code, with the -q added, and I get this e-mailed error message: >pipe to |/home/mycpanelusername/public_html/myfile.php generated by newsletter@*** local delivery failed The following text was generated during the delivery attempt: ------ pipe to |/home/mycpanelusername/public_html/myfile.php generated by newsletter@**** ------ Error in argument 1, char 3: option not found Usage: php [-q] [-h] [-s] [-v] [-i] [-f <file>] php <file> [args...] -a Run interactively -C Do not chdir to the script's directory -c <path>|<file> Look for php.ini file in this directory -n No php.ini file will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -f <file> Parse <file>. Implies `-q' -h This help -i PHP information -l Syntax check only (lint) -m Show compiled in modules -q Quiet-mode. Suppress HTTP Header output. -s Display colour syntax highlighted source. -v Version number -w Display source with stripped comments and whitespace. -z <file> Load Zend extension <file>. I tried taking out the space and typed #!/usr/bin/php-q and I get the same error as before. The file is set to 755 permissions. Think this might be something I need to take up with the support dept?
-
Nope, it still won't work for me. I changed the opening statement and made sure it had permissions set to 755, but I still get the same error. Any chance this has to be in a specific directory to work?
-
I've decided to try and use the e-mail filter in cpanel, but I'm having a bunch of problems with it. Here's what I have so far... The PHP code: >#!/usr/bin/php <? mail("kevin@****","Working...","It worked!"); ?> I also set up the filter destination to |/home/mycpanelusername/public_html/myfile.php Unfortunatly, I keep getting bounced e-mails. Here's an excerpt of an error e-mail I get: >This message was created automatically by mail delivery software. A message that you sent could not be delivered to one or more of its recipients. This is a permanent error. The following address(es) failed: pipe to |/home/mycpanelusername/public_html/myfile.php generated by someone@**** local delivery failed Any ideas what's wrong?
-
Yea, I'm not in any rush or anything. This is just for my own personal site. If I can't get a solution, I'll probably do that. I just wondered if anyone knew a quick way to do it.
-
I'm currently working on a mailing list for my website. I need this list to be quite customized, so I don't want to use a pre-made script. Anyway, I want to make some sort of bounce back e-mail filter that can "read" bounced e-mails and automatically remove their address from the database. I thought about using an e-mail filter for this, but I'm not quite sure what to do. Anyone have any links/scripts or any ideas about how to go about this? Thanks for any help you can give!
-
What type/hosting provider would provide support for sockets? Is there any way I can have a socket enabled, maybe for a fee, so that I can use it on my website? I would like to host a chatroom and multiplayer games on my website, but I need sockets enabled.
-
I want to work on creating a chat room using perl or php socket commands. Has anyone else tried doing this? How reliable are perl sockets? And finally, are sockets even allowed/enabled by toal choice hosting? Thanks for the help.
