Archive for the ‘Other’ Category
Apache error: .htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
This time a simple error and simple explanation. I installed a nice WAMP package called WampServer and I got an error on a site that worked fine on other servers. The error I found in the logs was:
.htaccess: Invalid command ‘RewriteEngine’, perhaps misspelled or defined by a module not included in the server configuration
How to analyze HTTP headers generated&received
Analyzing HTTP headers is a great way to debug websites. This is the easiest way to check what data was actually returned by Ajax request or find out if a website redirected us to another place. You can also check POST and GET fields sent by the browser and even modify then on the fly.
Some TTF fonts don’t work with @font-face. How to fix them
Recently I created a nice True Type font (.TTF) to embed on my website using CSS3 @font-face technique. Unfortunately it completely didn’t work- not in Firefox, not in Opera- just not at all. I replaced my font file with another one and it worked just fine in the web browsers. I installed my font in my OS and then I could use it with any application, like OpenOffice or Corel Draw.
PHP: Nice URL shortener to use from PHP
In this post I would like to present you a nice URL shortening service that you may use from PHP in a very simple way (perhaps simplest possible!).
Let’s say you want to shorten url like this:
http://www.my-website-is-here.com/index.php?subpage
To do this you need this simple code:
$url = ‘http://www.my-website-is-here.com/index.php?subpage’;
$new_url = file_get_contents(‘http://is.gd/api.php?longurl=’ . urlencode($url));
Now you can echo $new_url to see [...]
Windows ignores my hosts file
I recently had a problem because all the entries I added in Windows hosts file (C:\WINDOWS\system32\drivers\etc\hosts) stopped working.
Virtual Hosts in Windows under WAMP
Do you want to call your localhost websites from a webbrowser using nice URLs like: mysite.dev or somethingelse.dev? Here’s a way how to do this under Windows.
First edit your Apache’s httpd.conf file. Look for “DocumentRoot” and then change into something like this (“e:/wamp/www” is the path to my sites):
DocumentRoot "e:/wamp/www/"
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
[...]
(Almost) All PHP functions with simple explanations in one place
AMQP
AMQPConnection::__construct – Create an instance of AMQPConnection
AMQPConnection::isConnected – Determine if the AMQPConnection object is still connected to the broker.
AMQPExchange::bind – The bind purpose
AMQPExchange::__construct – Create an instance of AMQPExchange
AMQPExchange::declare – Declare a new exchange on the broker.
AMQPExchange::delete – Delete the exchange from the broker.
AMQPExchange::publish – Publish a message to an exchange.
AMQPQueue::ack – Acknowledge the receipt [...]
35 Best jQuery Sliders/Slideshows With Demos, part 7
Licensed under MIT:
jQuery UI Slider
Easy Slider
dSlide
AD Gallery
Licensed under GNU GPL:
CrossSlide
35 Best jQuery Sliders/Slideshows With Demos, part 6
Licensed under MIT:
jCarousel with Tango Skin & Custom Effect
jCarousel with Tango Skin & External Controls
jCarousel with Ie7 Skin
Slinky Slider
Anything Slider
35 Best jQuery Sliders/Slideshows With Demos, part 5
Licensed under Creative Commons Attribution 3.0 Unported License
Flickr Gallery
Licensed under GNU GPL 3:
Smooth Div Scroll
Licensed under Freeware (MIT?):
Simple Controls Gallery
Licensed under GNU GPL 2:
Popeye
Sliding Gallery