I am always on the lookout for a nice simple htpasswd generator and I found a pretty nice one.
http://www.htaccesstools.com/htpasswd-generator/
Enjoy!
I am always on the lookout for a nice simple htpasswd generator and I found a pretty nice one.
http://www.htaccesstools.com/htpasswd-generator/
Enjoy!
Hey all,
So how can you read a user who just logged in with htacess?
Make sure you have it right by checking phpinfo().
My problem - when a user logged into my website and then went to my "blog" area (which did not require any logging in) Wordpress would removed all the sessions I had set.
Why did it do this?
If we open wp-settings.php the first few lines of code completely remove all session information (as well as other).
To fix this issue I did the following:
This is quite a unique little function. It came in handy when I had to check a "global" array holding all key elements already loaded.
Very simple example above - for more information check php.net: http://www.php.net/manual/en/function.array-key-exists.php
Well, here I was again doing a fast freelance job for a friend - He wanted a full functioning forum up and ready to go as fast as possible. I of course thought of the very nice free system - phpbb(http://phpbb.com). To make things interesting we had already put in place a custom made membership system, the phpbb forum would now have to integrate into our Registration and Login process seamlessly.
My first instinct was to go to the boards on PHPBB and do a quick search to find my solution - It turns out the solution is not fully laid out... Or atleast to me it didn't seem to be layed out.
So after about 30-45 minutes looking over threads and replies I decided to just look at how PHPBB initiated its sessions and cookies and go for it myself.
Here are my easy steps to accomplish this login / registration task (I have no error checking/hack prevention in place for my example, I don't want to do everything for you now
)
STEP 1 - REGISTRATION
STEP 2 - LOGIN
While checking for the username/password within your own system (and succeeding) enter these few lines of code.
The above peace of code will use PHPBB's own session handler to create the cookies / sessions needed to log the user into the forum - as well as your own system.
Enjoy!
Adobes Apollo project has been provided a new breath of life, which so conveniently is named AIR (Adobe Integrated Runtime). Yes, the AIR project is the same as Apollo just with a few new (advanced) features.
The key feature to Apollo/AIR is the runtime enviorment as it allows you to take your Javascript, HTML, Flash, or Flex application and turn it into a light desktop application.
Why do I say "light"? Frankly, the AIR runtime does not handle its resources and memory access very well - hence any large system seems clunky, and slow to response.
Now, what can a light application do? What is the Runtime useful for at this stage in the game?
Lets take a real world example - Pownce.com...
"You can access all of your Pownce notes just on our website or you can download a small program for your computer.
The software is available right now for Windows and Mac users and will be available for Linux soon too. It takes advantage of a new technology from Adobe called AIR, which is super useful."
Screenshot

View larger image
Yes... Pownce has created a very simple IM type application and integrated it to work directly with their website.
Now, however cool this might be - Is it really practical to have another system like this? I personally believe not, Pownce will not steal any facebookers just because they have a cool AIR application.
In my opinion the largest contribution this runtime offers is the ability to instantly update your users / members of new content on your website. Imagine your user having an instant notification sent right to their desktop when a user has posted a reply to their topic? Many of you will say... so... thats email? Not exactly, when it comes to automated responses email has some flaws.
Over all AIR is not fully operational, its real world examples and applications are more experiments / cool toys instead of practical applications.
I do however believe this will be quite revolutionary and will more then likely become an effective way to deliver fresh content to your users as well as communicate your users content with your website(Instant desktop updates without c++!).
More to come as I am now developing a few "Practical" applications for my employers.
RESOURCES
Adobe AIR
Adobe Showcase
O2Apps.com
Here is a little excerpt from the article - Very interesting.
"Can you imagine living for four centuries? A team of scientists from Bangor University's School of Ocean Sciences believe they have found an animal which did just that, a quahog clam, Arctica islandica, which was living and growing on the seabed in the cold waters off the north coast of Iceland for around 400 years.
When this animal was a juvenile, King James I replaced Queen Elizabeth I as English monarch, Shakespeare was writing his greatest plays Hamlet, Othello, King Lear and Macbeth and Giordano Bruno was burnt at the stake for espousing the view that the Sun rather than the Earth was the centre of the universe."
Is it a bad thing that thinking about PHP makes me happy?
Read this article and you will understand: Sources of optimism found in the brain.
Thank you google toolbar!!
Read more: http://www.htmldog.com/ptg/archives/000017.php
Fix: http://code.jenseng.com/google/
Enjoy