I’m exploring the possibilities of using Redis as a session manager which seems to have turned into a bit of a pandoras box. I’m currently using windows 7 environment for Dev and downloaded/installed Redis MS Open Tech version 2.8. I’ve tested it to ensure its working and from Redis Client the PING receives the obligatory PONG response so all is well. However, reading on the web it appears that I also need PHPredis or Predis before I can actually start exploring further. I’ve tried installing Predis but to no avail… but I’ll stop my rant right now and ask the question:
Is there anywhere that has up to date information on what needs to be installed and how it needs to be installed so that I can actually start working with above apps and PHP session…
@oddz Thanks for prompt reply
Local dev setup is a Wind 7, PHP 5.3.29, IIS7 – Redis 2.8 from MS Open Tech
The error I’me getting when trying to run a simple PHP test script
@s_molinari…Sadly and inspite of my constant haranguing my current host provider has 5.4 so I’m kind of stumped. I did actually think about Linux but ther’es the accosiated learning curve with that too…
Thanks for the helpful suggestions though… I just wished there was more out there on Predis or phpredis… sadly not
In the meantime I’ve stumped up a standard PHP session manager that works reasonably well…
I would second using a vm since installing open source technologies is so much easier on linux. Not to mention much documentation exists in the context of linux than windows for *most open source technologies. A vm really isn’t all that difficult to set-up with tools such as puphpet.com.
The answer to that is easy (to say). Change hosts.
This is true, but believe me, you’ll be more successful with your development, if you learn to work with a Linux VM. And even more importantly, developing for/ with Linux is actually more professional. 67.5% of the websites today are powered by Linux/Unix.
@s_molinari
My hosts are almost certainly runing Linux and CPanel( which is good)… but I’m digressing…
So I’ve found, I think, the answer to the problem and it’s down to a ''. Yes that’s right a solitary backslash
The script that so many, many people are using for tutotials is:
$redis = new PredisClient();
As in here:
Is this one of those " Ah yeh, everyone knows about that" moments…?
It’s very very early days yet, but at least I’m not getting the error in the first six lines of a very straightforward script…
Wish me luck … I’m going in…