I could never decide which I love more, programming or poetry. In the end, I have decided not to abandon any of them. With additions of my thoughts over various issues, and some (which I think is) interesting (as well as important) stuff going on in my life, this World Of Mine being created.
PHP + MySQL + cURL: Single Sign On With Multiple Domains
Recent challenging task I received from BitterCoffee (BC) is to create a Single Sign On. Sounds simple but pretty challenging as the other host which provides another application have a totally different database structure. Login process will be done on BC’s site then users will click on a link to go to the other site.
Session will most likely not to work. I thought of using JSON but I failed to figure out how to make the Javascript to be dynamic as I always prefer to use jQuery (if you have an idea, feel free to share). In the end, I decided to use PHP along with MySQL and cURL.
We will first start by creating a table to handle the login session:
-
CREATE TABLE IF NOT EXISTS `sso_login` (`user_id` int(11) NOT NULL)
Purpose of the table is to store logged in users and remove then upon signing out.
Next is the PHP script which will insert new user id upon signing in (file name: register.php):
Final Goodbye
The moment of eternity
is soon to arrive,
As the Angels will bring me
to where forever I shall stay alive.
An Angel of sin,
A bad start to begin,
Describing this twisted-mind mortal,
Who soon to be apart from this world.
Never be a tranquilizer,
But rather a point of disaster,
A novice in bringing tranquillity,
An expert in providing misery.
There’ll no longer be me,
No more dealing with insanity,
Find that peace you always desire,
Make it as your life attire.
Shed your tears,
Smile is what you should apply,
As I’m fading from here,
Bidding my final goodbye.
Transparency In A Relationship
How important is transparency in a relationship? Some claims that in a relationship everything must be shared, no secrecy should exists. As most puts it, “secrecy is a sign of guilt”, hence some people being called liars for keeping secrets from their partners. But do they deserve such title for their action? Despite the fact that openness is important in a relationship, but there is another important ingredient in keeping the relationship strong, trust.
Trust, honesty, humility, transparency and accountability are the building blocks of a positive reputation. Trust is the foundation of any relationship. – Mike Paul
Perhaps most people have forgotten that trust is much more important in a relationship. By having high level of trust in a relationship, we don’t need so much of transparency. Not every information needed to be share, have we forgotten about privacy? Do we need to expose every details about our past and present to our partners? No, we do not.
Example of a case:
Dear scholars, As-Salamu `alaykum. I am a married woman. I have sinned by speaking to and writing love letters to another man. I know I have made a mistake. I am desperate to know how I can I pay for my sin. Is it necessary for me to tell my husband about it? If I do, he will never forgive me. How can I fortify my faith? Please help me as soon as possible with an answer. Jazakum Allah khayran.
A confession of a wife who were in a relationship with another man. It is wrong, without a doubt. But must she confess it to her husband? As she claimed, if doing so she’ll damage the relationship. In this situation it is best to keep it as a secret from the husband. As being answered by the scholar: Read More
Tags: openness, relationship, secret, transparency, trust



