Archive for the ‘Web Development’

Dumping The MySQL database using PHP

If your web hosting provider does not keep the daily backups of your MySQL databases, then you need to think of taking the daily backups to avoid the risk of data loss. Backing up the database is very simple process if your do that using PhpMyAdmin or MYSQL administrator. However, this manual process sometimes may make you feel bored doing the same task daily. Hence, it is better to create the web page that takes the backups automatically. You just need to visit the backup generation page once a day. And it will dump the mysql backup for you. Here is the sample script that dumps the MYSQL database.

<?php
//~ Must edited values

//~ MySQL
$SQL_USER=’username’;
$SQL_PASS=’password’;
$SQL_DB=’database’;

//~ * Back up mail
$MAIL=’your@email.com’;
$SUBJECT=’backup’;
$MESSAGE=’backup’;

//~ * MySQL dump, then zip.
shell_exec(“mysqldump -u $SQL_USER -p$SQL_PASS $SQL_DB $SQL_DB.sql”);
shell_exec(“zip $SQL_DB $SQLDB.sql”);

//~ * Send mail with attachment.
$OB=’—-=_OuterBoundary_000?;
$IB=’—-=_InnerBoundery_001?;
$headers=”From: $MAIL\r\n”
.”MIME-Version: 1.0\r\n”
.”Content-Type: multipart/mixed;\n\tboundary=\”$OB\”\n”;
$Msg=”This is a multi-part message in MIME format.\n”
.”\n–$OB\n”
.”Content-Type: multipart/alternative;\n\tboundary=\”$IB\”\n\n”
.”\n–$IB\n”
.”Content-Type: text/plain;\n\tcharset=\”iso-8859-1\”\n”
.”Content-Transfer-Encoding: quoted-printable\n\n”
.$MESSAGE
.”\n–$IB–\n”
. “\n–$OB\n”
.”Content-Type: application/octet-stream;\n\tname=www.zip\n”
.”Content-Transfer-Encoding: base64\n”
.”Content-Disposition: attachment;\n\tfilename=www.zip\n\n”
.chunk_split(base64_encode(file_get_contents($SQL_DB.’.zip’)))
.”\n\n”
.”\n–$OB–\n”;
mail($MAIL, $SUBJECT, $Msg, $headers);
//~ * Completed message
echo ‘done’;
?>

Oracle Enterprise Linux and Zend Server For High Reliability and Performance

Oracle and Zend have a long-standing commitment to the PHP community, with a history of collaboration that has ensured integration between Oracle and Zend’s PHP solutions. Oracle Database, Application Server and JDeveloper tool, with a PHP extension, all support PHP development. A sizeable percent of Zend customers use Oracle Database infrastructure to develop and deploy enterprise PHP applications.

Oracle and Zend deliver a reliable, high performance Linux and PHP environment for running business-critical Web applications.

  • Oracle customers can easily install and update Zend Server from Oracle Unbreakable Linux Network (ULN) through standard, native RPM package delivery (http://linux.oracle.com)
  • Zend Server includes out-of-the-box connectivity to Oracle Database, minimizing the time required for set up
  • Full support for applications and production environments running on Oracle Enterprise Linux and Zend Server is available via Oracle (for Oracle Enterprise Linux) and Zend (for Zend Server)

Sources:
http://www.zend.com/products/server/
https://linux.oracle.com/pls/apex/f?p=101:3

Web Service Automates WordPress Password Cracking – Blog Hacking As A Service !!

Hackers have developed a distributed Wordpress admin account cracking scheme that poses a severe risk for the security of blogs whose owners select insecure passwords.

PHP scripts located on a virtual server run bruteforce (password guessing) attacks on targeted sites. Many sites can be attacked at the same time by the system, with results written into an associated database.

The SANS Institute’s Internet Storm Centre notes that brute force attacks against Wordpress are commonplace. The distributed nature of the latest attack marks an evolution towards blog hacking as a web service, however, thus marking it out from the crowd.

“While this particular version is relatively simple, the power behind the script and the MySQL database allows the attacker to distribute the attacks not only by sites, but also by passwords tried as well,” ISC security watcher Bojan Zdrnja writes.

Blog administrators are advised to use strong (hard to guess) passwords and to limiting access by IP address as a security precaution to prevent getting pwned.

New Features Of ImageGlue 7.0

New Features of ImageGlue 7.0

  • Support for 64-bit systems.
  • ImageGlue now incorporates the PostScript rendering engine as used by ABCpdf, our PDF component, which has proven to be fast, robust and accurate. This greatly improves support for importing and exporting PS, EPS, and PDF files, and also enables you to make use of powerful PostScript drawing operations for drawing to canvas.
  • Leveraging ABCpdf’s powerful vector graphics import and export functionality also makes it possible to interoperate with XPS and MS Office documents.
  • An improved API with new classes, methods and properties, more in keeping with normal .NET development.
  • Plus of course the usual range of bug fixes and minor enhancements.

When it comes to manipulating images dynamically there are few toolkits that can compete with ImageGlue 6 in terms of versatility and performance.

With extensive support for a huge range of graphic formats including JPEG2000, Very Large TIFF Support™, and fully multi-threaded processing, ImageGlue has proved a popular choice for use in ASP and ASP.NET server environments.

Now ImageGlue 7 has arrived, introducing support for 64-bit systems, improved PostScript handling, and many other enhancements.

They have also used the opportunity to revise the API, to make it more friendly and familiar to .NET coders. But don’t worry about rewriting legacy code – you’ll find the ’string parameter’ interface is still available through the WebSupergoo.ImageGlue6 namespace.

Website Optimization Techniques

As well as link building and on-page optimisation, there are some other very important SEO factors which can help your website index and rank in search engine listings. The following techniques are grouped into the category named ‘website optimisation’ and should not be overlooked when preparing an SEO campaign.

Domain Age and Expiration Date

Google and other search engines include many factors within their ranking system. One of these factors is trust rank. Owning a domain that has history improves the trust rank as does registering the domain for a long period of time.

Website History

Again trust rank comes into play here. If your website has been archived in the search engine results for a long period then it will help improve rankings and indexing of webpages created in comparison with a fairly new website with no history.

Structured Navigation

When creating a website, it is important to provide a well structured navigation, not just for users but also to allow search engine bots to follow links and index webpages within your website. Structuring your navigation correctly can help all you webpages be indexed and should help the flow of Google’s PageRank spread through out the website.

Valid HTML

As with structured navigation, the importance of valid HTML to search engine bots is to allow all webpages within your website to be indexed within the search engine listings. Validating your HTML will ensure that the bots do not hit any ‘brick walls’ within the code that prevent them from reading the rest of the webpage.

Contextual Linking

To further help the indexing of your webpages and to even out the flow of Google’s PageRank, it is useful to include links within the content text of your webpages. Wikipedia is a perfect example of how this should be done.

URL Structure Including keywords in your website’s URLs will help you rank for those terms. If your website uses dynamic URLs created through variables then think about rewriting them. Separate keywords using a minus character (eg. search-phrase.html) and try and keep the important keywords as close to the beginning of the URL as possible.

Regional Targeting

If you wish to target a certain region then there are a few steps you can take to help this process. Firstly you can choose a relevant domain such as a .co.uk (UK) or .de (Germany) rather than a generic .com domain. Then look at your hosting IP location, search engines can access this information and will use it to decide your target audience. Finally, Google Webmaster Tools allows you to set a geographic target which is useful if you have a .com domain.

Site Maps

Search engine bots look for site maps when they visit your website. Providing a standard HTML site map will help improve the indexing of your webpages and allow bots to find webpages that they might otherwise have missed. You can now also provide and submit an XML site map which all the major search engines have took on as a standard. Use your robots.txt to tell bots where to find your XML site map and also submit it to Google Webmaster Tools and Yahoo Site Explorer.

Domain Name

If you are purchasing a domain name for a new website then think about including your main targeted keywords within that domain name. For example if you are building an online store that sells low price golf clubs in the UK and you buy the domain cheapgolfclubs.co.uk then you are definitely going to have a lot more of a chance for quickly ranking well for the search term ‘cheap golf clubs’ in UK search engines than you would with a more generic domain name. You would also do well for long tail search terms such as ‘cheap golf clubs in the UK’ and have more chance of ranking for ‘golf clubs’ in the long term.