How to edit php.ini from ssh

Code Library, Linux Apache Server 2 Comments »

Type:

1. “cd /etc”
2. “ls”

Check that there is the php.ini listed if not you will have to ask your hosting provider where it is.

3. “vi php.ini”

Find the bit in php.ini you would like to edit.

4. “i” - This enables you to edit the php.ini file

5. After changing the file, please Esc.

6: “:wq” - (w = saves the file, q = quit)

7. reboot your server and your done.

Rate This Post:

Getting .htaccess to work on windows apache

Code Library, Linux Apache Server, Windows IIS Server 3 Comments »

Could figure out how to actually write the .htaccess file in windows as when i tried to rename the txt file I created to .htaccess it popped up an error saying “You must type a file name”.

The solution:

1. Open up notepad

2. Write the contents of your .htaccess

3. Save as

4. “.htacess” - Make sure you keep the speech marks.

5. Sorted

Rate This Post:

Web design/ CSS galleries

CSS, Web Development Stuff No Comments »

Bellow is a list of all the web design galleries I could find. Each gallery has different requirement to enter a design from CSS, tabless W3C compliant to having to be green. This is suppose to be a reasonably comprehensive list in alphabetical order, if I have missed any out please comment (with the URL) at the bottom and I will add it asap.

When I get round to it i’ll make my favorite list with reviews and something or other. Please enjoy.

  1. Artnetz
  2. Alvit
  3. Best Web Gallery
  4. BRDCAST
  5. CeeSeS
  6. Cool Home Pages
  7. Cool Site Collection
  8. Creative Pakistan
  9. CSS Website
  10. CSS 11
  11. CSS Based
  12. CSS Blast
  13. CSS Bloom
  14. CSS Brain
  15. CSS Beauty
  16. CSS Clip
  17. CSS Collection
  18. CSS Container
  19. CSS Coo Site
  20. CSS Cool
  21. CSS Demo
  22. CSS Design
  23. CSS Design Yorkshire
  24. CSS Drive
  25. CSS Elite
  26. CSS Flavor
  27. CSS Galaxy
  28. CSS Galeri
  29. CSS Galerie
  30. CSS Galerie
  31. CSS Galerie
  32. CSS Gallery
  33. CSS Globe
  34. CSS Green
  35. CSS hardcore
  36. CSS Hazard
  37. CSS Heaven
  38. CSS Import
  39. CSS Impress
  40. CSS Inspirace
  41. CSS Love
  42. CSS Mania
  43. CSS Mess
  44. CSS Princess
  45. CSS Reboot
  46. CSS Remix
  47. CSS Showcase
  48. CSS Smooth Operator
  49. CSS Thesis
  50. CSS Tux
  51. CSS Vault
  52. CSS Web Designers
  53. CSS Zen Garden
  54. CSS-Galleries
  55. CSS Genius
  56. Dark Eye
  57. Dekiteharu
  58. De Web Times
  59. Design Link Database
  60. Design Meltdown
  61. Design Shack
  62. Design Snack
  63. Design Beauty
  64. Dev Home
  65. E-Motional Design
  66. Easy Share CSS Beauty
  67. Edu Style
  68. Frog Family Standards
  69. Full Single
  70. Inspiration King
  71. Light on Dark
  72. Liquid Designs
  73. Lovely Blogs
  74. Menthe Fresh
  75. Moderni Web
  76. Morpheed CSS
  77. Most Inspired
  78. najDizajn
  79. Nearly Nice
  80. Netcocktail
  81. Netzfruehling
  82. One Pixel Army
  83. Perfection
  84. Piep Matzel
  85. Pixelgangster
  86. ProWebArt
  87. Screen Fluent
  88. Screenalicio.us
  89. Screenspire
  90. Showcase
  91. Standards Reboot
  92. Style Crunch
  93. Style Grind
  94. Style The Web
  95. Styleboost
  96. Stylegala
  97. Submit CSS
  98. The Best Designs
  99. The Daily Slurp
  100. The Horizontal Way
  101. Unmatched Style
  102. W3 Compliant Sites
  103. W3C Compliance
  104. Wake up Gallery
  105. We Creative
  106. Web Design Book
  107. Web Design Galleries
  108. Web Design Inspiration
  109. Web Gallery
  110. Web Standards Awards
  111. Web Standards in Germany
  112. Web Test
  113. Webdesign Awards
  114. Webdesign Inspiration
  115. Webdigity Design Gallery
  116. Well Designed CSS Sites
  117. Well Done Sites
  118. Well-Designed Weblogs
  119. With style
  120. Wow Factor

If you found this article useful please feel free to Digg it.

Rate This Post:

WordPress Database Backup Plugin 2.0.5 not working

Code Library, PHP, Web Development Stuff, Wordpress No Comments »

The backup file could not be saved. Please check the permissions for writing to your backup directory and try again

Right here was my problem:

“I am also having the issue with the wp-db-backup plugin. I’m running version Wordpress v2.1.3 and wp-db-backup v2.0.5, i have ensured that wp-contents folder is chmod 777 but still get the javascript error “The backup file could not be saved. Please check the permissions for writing to your backup directory and try again“.”

If you have done everything correctly, ie change file permissions and checked there is no conflicting plugins then the reason is likely to be the same as mine.

Check you php.ini file - If php safe mode is on turn it off.

If you can’t access your php.ini file, you might be able to create one in your directory or alternatively ask your web hosting company. You may only be able to edit it through SSH in which case read my article on SSH commands and VI commands.

If you have access to your domain through a plesk control panel sometimes you can turn it off in the domain setup page. When you add a new domain to the server and tick the php box, the php safe mode box is automatically turn on.

Rate This Post:

X-cart breakdown of files

Code Library, x-cart No Comments »

I started to use x-cart a little for some of my clients so everything I learn about the file structure, style design, programming etc I will continually add to this post.

Skin1/

Where all the design files are kept using smarty template engine
header.tpl The header info of the page

Skin1/customer/

Generally everything in the skin1>customer folder is to do with the front end of the store.
home.tpl is the home page

Skin1/main/

Skin1>main also has a few usuful files
prnotice.tpl is generally where the copyright notice and footer contents goes.

Rate This Post:
Entries RSS Comments RSS