Home Index

Welcome, Guest
Welcome, Guest. Please login or register.
August 21, 2017, 11:23:09 pm
Search:  
Advanced search
WJD Forum Index  |  Recent Posts
Pages: [1] 2 3 ... 7
 1 
 on: December 24, 2007, 09:11:09 am 
Started by Shawn Sorrell - Last post by Shawn Sorrell
When you are developing a script you want to be able to see any errors that may occur including start up errors.  You can do with by createing a .htaccess file with the following and uploading it to the direcotry where your script is.
Code:
php_flag    display_errors          on
    php_flag    display_startup_errors  on
    php_value   error_reporting         2047

 2 
 on: December 18, 2007, 07:56:20 am 
Started by Shawn Sorrell - Last post by Shawn Sorrell
If you want to turn on error logging for a specific directory and don't want to mess with the main php.ini file you can do so by createing a .htaccess file and uploading to the directory in question.  Include in the file the following code.
Code:
php_flag log_errors on
php_value error_log /var/www/html/some_directory/php-error.log

This would create a log file called php-error.log in /var/www/html/some_directory.  You can change both the log file name and path to the directory where you want the log written. The log does not have to be written to the same directory you upload the .htaccess file to. You just need to have write access for the directory you want it written in.  Another popular choice for a directory would be where your other logs are written to.  That bit of code would look like this.

Code:
php_flag log_errors on
php_value error_log /var/log/php-error.log

Log files are created as plain text files and can be downloaded and read with free programs like EditPlus or Crimson.

 3 
 on: December 18, 2007, 07:53:09 am 
Started by Shawn Sorrell - Last post by Shawn Sorrell
If you want to turn on error logging for a specific directory and don't want to mess with the main php.ini file you can do so by createing a .htaccess file and uploading to the directory in question.  Include in the file the following code.
Code:
php_flag log_errors on
php_value error_log /var/www/html/some_directory/php-error.log

This would create a log file called php-error.log in /var/www/html/some_directory.  You can change both the log file name and path to the directory where you want the log written. The log does not have to be written to the same directory you upload the .htaccess file to. You just need to have write access for the directory you want it written in.  Another popular choice for a directory would be where your other logs are written to.  That bit of code would look like this.

Code:
php_flag log_errors on
php_value error_log /var/log/php-error.log

Log files are created as plain text files and can be downloaded and read with free programs like EditPlus or Crimson.

 4 
 on: December 18, 2007, 07:39:33 am 
Started by Shawn Sorrell - Last post by Shawn Sorrell
If you want to delete spam at the server level you can add the following rule.  You do need to have Spam Assassin installed on your account which can be done via your Site Manager.

Code:
:0
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*
/dev/null

This code well delete any email that received  a score of 10.  The score is represented by the * (stars/asterisks).  You can modify the amount of asterisks to accommodate your needs.  This need to be added after the emails have been processed by Spam Assassin.  On a WH account this would be after the line # END SPAMASSASSIN BLOCK.

 5 
 on: October 27, 2007, 03:49:39 am 
Started by desperateboy - Last post by Shawn Sorrell
Just changing the color of a graphic may not give you the right to use the image legally. Combining two images really does not make it your own either.  If you well notice most copyrights state something like " in full or part".

There is a ton of public domain images out there you can use.  Try a search on Google or your favorite search engine for "public domain images".  You should get quite a few hits.  You can also find really cheap graphic libraries at your local bookstore or computer store that have thousands of images on them that you can use.

 6 
 on: October 24, 2007, 04:41:54 am 
Started by desperateboy - Last post by desperateboy
hi
I am confused about image copyrights because i copy images from LINK REMOVED and from other web sites. Like lets say I find a image of a red bunny on the internet, but I save the image and change the color to purple - is that now an original image? Would I have to worry about copyright stuff? What if I took two copyrighted graphics like of a bunny and a cat and combine them to make a logo? Would I have copyright problems then?

 7 
 on: March 22, 2005, 05:45:59 pm 
Started by ss puppets - Last post by Shawn Sorrell
Thank you Billy and for letting me know that you where unable to register on your first try.  I did have some premissions set wrong within the program but it seems my changes has fixed things.

Again thank you for the kind words.

 8 
 on: March 22, 2005, 01:00:34 pm 
Started by ss puppets - Last post by ss puppets
I just wanted everyone to know what a great job Shawn did on the websitehttp://www.sspuppetfactory.puppetsandstuff.com
We thank you for your being a jack of all trades. Your efforts and detailed work that you have put into this project will be greatly appreciated by all that visit it. This dream would not have been possible without your patience, and dedication.
Thank you for putting up with all the e-mails, the quick last minute changes, and allways being supportive of what I was trying to accomplish.
Please remember if you plant a seed and want it to grow you must use the right tools to take care of it. I feel that those tools are essential elements that Shawn uses in any thing that he is involved with.
Congratulations once again on a job well done! Very Happy
Everyone at SS Puppet Factory

 9 
 on: March 02, 2005, 11:01:39 am 
Started by Shawn Sorrell - Last post by Shawn Sorrell
WH has a program called Apache Error Messages 1.0. It can be found and installed under Site Manager > Site Applications > Miscellaneous.  Once installed the program is password protected using your main username password combo that you use to access your Site Manager. I theory this program makes changes to your apache config files and then restarts apache. I have not had much luck with using the program.

The same effect can be optained by using your own .htaccess files.  This may come in handy when you want to create say a 404 page not found custom message for a sub directory under your main home directory.  All you need to do is create an .htaccess file with one of the following examples.

1) plain text - The single leading (") marks it as text, it does not get output
Code:
ErrorDocument 500 "The server made a boo boo.

2) local redirects - to redirect to local URL /missing.html
Code:
ErrorDocument 404 /missing.html

You can redirect to a script or a document using server-side-includes.
Code:
ErrorDocument 404 /cgi-bin/missing_handler.pl

3) external redirects - Many of the environment variables associated with the original  request will *not* be available to such.
Code:
ErrorDocument 402 http://some.other-server.com/subscription_info.html


These pages will give you more information on the whole process. Both pages are also linked to in the WH Apache Error Messages interface.
Apache's Custom Error Response Help
World Wide Web Consortium's HTTP Status Code Definitions

 10 
 on: February 01, 2005, 11:45:20 am 
Started by Shawn Sorrell - Last post by torrin
Thanks for the tip.  I had forgotten about this.

Pages: [1] 2 3 ... 7
Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC