Changing frontend cache
Our architecture consists of a front-end cache that most read only users obtain their data from directly. The front-end cache sits in front of a farm of webservers that serve pages written in PHP. We need to be able to detect certain conditions at the front-end cache level and pass those values through to the back-end via HTTP headers. For example we would like to manually tag the carrier network based on the IP address. So, for incoming traffic if the user is say coming from an IP address in the range of “41.202.192.0”/19 we would tag them as being a Orange Cameroon user by setting the appropriate HTTP request header, e.g., X-Carrier = “Orange Cameroon”.
How to create interest in programming? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for […]
Is it good/safe OOP practice to have a method whose only purpose is to send/retrieve data from another class?
I have a class that performs basic MySQL operations. This is all in PHP.
Is it a good idea to install Mercurial on your server and hg pull to deploy?
I’ve just started at a new job this past month and looks like they have NO source control for their code. They are relying on the backups their hosting provider takes for them.
Condition based function declarations
I recently came across a weird piece of code
Using replacement to get possible outcomes to then search through HUGE amount of data
I have a database table holding 40 million records (table A).
Registration: Email hash and verifying only one account per email
I’m using a registration function that hashes the email in PBKDF2 with a random and unique Salt each time. The hashes email and his salt are saved in the DB. No problem with that.
The problem is that now I want to make sure that users only create one single account per email. Obviously to verify that I need to check my DB and that’s where the problem starts. I either lose in security or in time.
What is the simplest/easiest way to display line of text only when printing a webpage using PHP?
I have a line of text I would like to display only when a webpage is being printed. Is it possible to only display this line when printing the page or doing a print preview using PHP in some way?
Work flow when editing files in /var/www. Constantly needing to input “sudo” commands
I installed Apache2 and PHP5 last night on my fresh Linux Mint machine.
Can a loosely typed language be considered true object oriented?
Can a loosely typed programming language like PHP be really considered object oriented?