Archive for the ‘TEChNoLoGY’ Category

Send Email Using Gmail as my SMTP from XAMPP (PHP)

July 31st, 2013, posted in PHP
Share

I have been trying to send email using PHP script and XAMPP Lite. The PHP script itself is not a biggies but the default XAMPP configuration doesnt allow me to send out the email.
My objective is to use Gmail as my SMTP (rather than localhost). After some digging and try and error.. Here is my solution :

Edit your php.ini (xamppphpphp.ini). Search for [mail function] and change these parameters accordingly :

SMTP = smtp.gmail.com
smtp_port = 587
sendmail_from = [your_gmail_username]@gmail.com

Note: This gmail account will be used to send the email

sendmail_path = “”D:xamppsendmailsendmail.exe” -t”

Note: I did install my xampp at D:xampp



1. Edit your sendmail.ini (xamppsendmailsendmail.ini)

Comment the “Mercury”and “A free mail service example” contents as shown below:

# Mercury
#account Mercury
#host localhost
#from postmaster@localhost
#auth off

# A freemail service example
#account Hotmail
#tls on
#tls_certcheck off
#host smtp.live.com
#from [exampleuser]@hotmail.com
#auth on
#user [exampleuser]@hotmail.com
#password [examplepassword]



2. Add the account through which you want to send your mails. In my example I have configured the Gmail account as shown below:

account Gmail
tls on
tls_certcheck off
host smtp.gmail.com
from [your_gmail_username]@gmail.com
auth on
user [your_gmail_username]@gmail.com
password [your_gmail_password]port 587



3. Set the default account to Gmail as shown below:

account default : Gmail

Many thanks to this link . His original post point me to the right direction. The only missing piece is port number in sendmail.ini where gmail no longer use port 25 as smtp port but 587. Hope this help.

Share

What Is A Fraud Page Or Phishing Site ?

July 27th, 2013, posted in PHP
Share

What Is A Fraud Page Or Phishing Site ?,Fraud Page,Phishing Site,html,php,RSA Anti-Fraud Command Center RSA,Security Division of EMC,Security Division,website deveploment, website security,FREE SCRIPT WEBSITES,FREE SCRIPT ,WEBSITES,

Studying ”  ethical hacking has given me an upper hand on the hackers.”  Hackers are people who learn stuff on their own. But we on the other hand are taught how to use stuff for saftey purposes.

One of our tools are security companies like RSA Anti-Fraud Command Center. Hackers basically inject their script code and upload it on FREE SCRIPT WEBSITES. Most developers are unaware of that fact and to save their time they download such scripts and upload it to their website. These script create automatic login pages that redirect to other websites. These are called Fraud Pages.
These pages should be reported immediately to RSA Anti-Fraud Command Center. What they do is they send an email just like below :

Dear Team

It appears that your website ******.com has been hacked by a fraudster. It is now hosting a phishing attack against RBC.
Please remove the fraudulent folders/files as soon as possible and secure your website as it has been compromised.
Please note that it is possible that the fraudulent content is embedded in your website’s legitimate files.

http://www.*****.com/sites/Library_/redirect.php

In addition, please send us any source files of the attack.
Please let us know if you have any questions or need further assistance. We appreciate your cooperation.

Best Regards,

RSA Anti-Fraud Command Center
RSA, The Security Division of EMC
US Phone: +1-866-408-7525
Email: afcc@rsa.com
For more information about RSA’s AFCC
http://www.rsa.com/node.aspx?id=3348

“

to the concerned authority and tell them to remove it. This is a very good way since they allow the developer to correct his mistake and be careful for next time.

You can see the contact information in their email and whenever you come across any such illegal page.

Just report it !!

Help us keep web clean and safe for upcoming generation !!

Note : This blog was written by a friend.
http://qambarraza.com/certified-ethical-hacking-ceh/what-is-a-fraud-page-or-phishing-site.html

Share

PHP Mail Fuction

July 2nd, 2013, posted in PHP
Share

php mail fuciton,php mail,mail fuction,php cc and bcc,send mail by php,hotmail,gmail, gmail SMTP, mail configuration, mail issues, mail sending issues, php, php mail sending, Send Email Using Gmail as my SMTP from XAMPP (PHP), SMTP, XAMPP,html,

This is very good link to learn with examples about PHP fuction :

http://php.net/manual/en/function.mail.php

php mail fuciton,php mail,mail fuction,php cc and bcc,send mail by php,hotmail,gmail, gmail SMTP, mail configuration, mail issues, mail sending issues, php, php mail sending, Send Email Using Gmail as my SMTP from XAMPP (PHP), SMTP, XAMPP,html,

Share

Oracle : Seven Deadly Habits Of A DBA And How To Cure Them

June 20th, 2013, posted in Oracle
Share

Seven Deadly Habits Of A DBA And How To Cure Them,oracle,dba,cure,sin,mistake,issues,Seven Deadly Habits of a DBA and how to cure them

Calling widespread bad habits in database administration “deadly” may seem extreme. However, when you consider the critical nature of most data, and just how damaging data loss or corruption can be to a corporation, “deadly” seems pretty dead-on.
Although these habits are distressingly common among DBAs, they are curable with some shrewd management intervention. What follows is a list of the seven habits we consider the deadliest, along with some ideas on how to eliminate them.

Habit #1. THE LEAP OF FAITH: “We have faith in our backup.”
Blind faith can be endearing, but not when it comes backing up a database. Backups should be trusted only as far as they have been tested and verified.
Cures:

  • Have your DBAs verify that the backup is succeeding regularly, preferably using a script that notifies them if there’s an issue.
  • Maintain a backup to your backup. DBAs should always use at least two backup methods. A common technique is to use those old-fashioned exports as a backup to the online backups.
  • Resource test recoveries as often as is practical. An early sign that your DBA team is either overworked or not prioritizing correctly is having a quarter go by without a test recovery. Test recoveries confirm that your backup strategy is on track, while allowing your team to practice recovery activities so they can handle them effectively when the time comes.

Habit #2. GREAT EXPECTATIONS: “It will work the way we expect it to. Let’s go ahead.”
Although not user friendly in the traditional sense, Oracle is very power-user friendly— once you’ve been working with it for a while, you develop an instinct for the way things “should” work. Although that instinct is often right, one of the most dangerous habits any DBA can possess is an assumption that Oracle will “just work” the way it should.
Cures:

  • Inculcate a “practice, practice, practice” mentality throughout the organization. DBAs need to rehearse activities in the safe sandbox of a test environment that’s designed to closely mimic the behaviour of the production system. The organization needs to allow the time and money for them to do so.
  • Pair inexperienced DBAs with senior ones whenever possible—or take them under your own wing. New DBAs tend to be fearless, but learning from someone else’s experience can help instill some much needed paranoia.
  • Review the plans for everything. It’s amazing how often DBAs say, “I’ve done that a hundred times, I don’t need a plan.” If they’re heading into execution mode, they absolutely need a plan.

Habit #3. LAISSEZ-FAIRE ADMINISTRATION: “We don’t need to monitor the system. The users always let us know when something’s wrong.”
If you depend on the users to inform the DBA team that there’s a problem, it may already be too late.
Cures:

  • Install availability and performance monitoring systems so that issues are identified and resolved before they cause service-affecting failures.
  • Avoid post-release software issues by working with developers and testers to ensure that all production-ready software is stable and high-performance.

Habit #4. THE MEMORY TEST: “We’ll remember how this happened, and what we did to get things going again.”

It may seem impossible that a DBA team would forget a massive procedure that took them weeks to get right, and yet it happens all the time. In order to prevent recurring mistakes and take advantage of gained experience, documentation is essential.

Cures:

  • Require that your DBAs maintain a comprehensive documentation library and activity diary, including a significant level of rationale, syntax, and workflow detail.
  • Provide your team with groupware on your intranet so that these documents become searchable in an emergency.
  • Enforce the discipline of documentation and check it periodically. Ask your DBAs: When was this tablespace created, by whom, and with what SQL? What tasks were performed on a particular day? If they can’t answer quickly, you’ll know they’ve gone back to relying on memory.

Habit #5. THE BLAME GAME: “Don’t look at me, it’s the developer’s fault that SQL is in production”

Some DBAs have a real “us versus them” mentality when it comes to developers in their organization. They see themselves not as facilitators helping the developers develop quality code from a database standpoint, but rather as guardians who prevent poor-quality code from making it into production. This might seem like semantics, but a confrontational relationship between developers and DBAs results in a lack of developer initiative and significant slowdowns in release cycles.

Cures:

  • Select DBAs who understand it’s their responsibility to work as an integrated team with the developers they support.
  • Cultivate a team attitude by structuring continuous DBA involvement in every project rather than at review milestones.
  • Consider assigning an individual DBA in a developer support role. If it’s clearly in the job description, there’s more motivation to do it well.

Habit #6. THE SOLO ACT: “I know what I’m doing and don’t need any help.”

Database administration is increasingly complex and even the most senior DBAs can’t possibly know every last detail. DBAs have different specialties, which need to be culled and utilized. When DBAs feel like they know, or should know, everything, they don’t ask questions and miss out on valuable knowledge they could be gaining from others.
Cures:

  • Foster a teamwork culture where it’s acceptable for DBAs to admit they don’t know the answer and to ask for help.
  • Encourage your DBAs to seek out an outside peer group as a forum for brainstorming and testing their assumptions. No single person can match the expertise and experience of even a relatively small group.
  • Provide a safety net of tech resources such as reference materials, courses, and outside experts or consultants on call.

Habit #7. TECHNO-LUST: “Things would work so much better if only we had…”
DBAs are often on top of the latest technology, which can help them do a superlative job. But when the desire for new technology causes DBAs to recommend unnecessary hardware purchases or software add-ons, costs tend to skyrocket quickly—as do problems.

Cures:

  • Never upgrade your hardware infrastructure without first exhausting all tuning opportunities. Remember, ten years ago enormous enterprises were run on servers one-tenth the capacity—all thanks to necessity and skill.
  • Never consent to using advanced or new features until you’re well aware of the ongoing maintenance commitment and resulting costs.
  • Watch out for DBA support software that presents friendly GUI interfaces for difficult tasks. This type of interface allows a beginner DBA to act as an intermediate DBA under certain circumstances, but simultaneously prevents that beginner from learning the actual skills behind the tasks. Moreover, these tools tend to hide real risks from the DBA, making potentially damaging activities as easy as point-and-click.Whether it takes a twelve-step program or one tiny adjustment, all of these deadly DBA habits can be kicked. Of course, the first step is recognizing the problem. By starting with this list and doing a careful inventory of the successes and failures in your team’s database administration, you’ll be well on your way to finding a cure
Main url: http://appsdbaclass.blogspot.com/2011/10/seven-deadly-habits-of-dbaand-how-to.html?utm_source=feedburner&utm_medium=email&utm_campaign=Feed%3A+OracleAppsDbaoracleEbsR12+%28Oracle+Apps+DBA+%28Oracle+EBS+R12%29%29
Share

Learn HTML, Practice and Test on W3C

June 15th, 2013, posted in Programming
Share

Learn HTML, Practice and Test on W3C,Learn HTML, Practice,Test ,W3C,

W3Schools HTML Quiz

HTML based tutorial can be found on

http://www.w3schools.com/html/

i went through that URL advised to me by Dr. Ralph Moseley, module leader of Internet Programming at Middlesex University, London.  Since i had some previous hands-on experince with this language i was able to get the perfect score.

You guys should try it too. Since we would be dealing with this language more frequently now..

Note : This blog was written by a friend.
http://qambarraza.com/

Share