Search Altered Pixels.net::

PHP Tutorials ::

Tutorials in Developing PHP
  • Convert your Dreamweaver Sites files to a FileZilla 3.X XML Dump

    Posted on :: Aug 17

    In my previous PHP-XML tutorial, Recover your Dreamweaver Sites Passwords with PHPI had shown you how with PHP you could export your Dreamweaver sites into XML Files and recover the encrypted passwords and write the results to the browser screen.

    Well I've gone and done it again, as I wasn't satisfied with just those results, I thought why can't I make this a FileZilla Site Manager XML Dump? And well, ofcourse my mind answered, "Why Can't You? You're a web dev expert do it."

    So I did.

    [Read more →]

  • Recover your Dreamweaver Sites Passwords with PHP

    Posted on :: Aug 4

    Here's the scenario, You've got a list of sites currently in Dreamweaver and you're using Dreamweaver to FTP into the site's remote file structure. Depending on the type of server, you may not be able to have a successful connection to the server, and need to use an FTP Client Like filezilla or cuteftp or a number of other ones available, but you don't remember the Site's Password.

    Dreamweaver stores your password as an encrypted string in the site definition. The string is a longish group of seemingly random characters. In fact, it is a hexadecimal number.

    This Tutorial will help you retrieve your encrypted passwords.

    [Read more →]

  • Listing Directories in PHP

    Posted on :: Aug 2

    In this PHP Tutorial, I'm going to show you how to displays a hyperlinked list of all the files contained in a specified folder. A really simple way to have your own directory browser, just drop the file in the folder and it will show an index of all files in the directory on your webspace.

    [Read more →]

  • Listing MYSQL Database Tables in PHP

    Posted on :: Aug 2

    This tutorial uses a PHP script or code to list all available MySQL databases in your account which is extremely easy and will quickly show you how to get that done.

    Why would I want to do that? I hear you think...

    Well, I use it a lot in my administration-type scripts to manage (view, back up, restore, optimize, check and repair) all my MySQL databases and tables periodically from just one page!

    [Read more →]

  • Using jQuery Autocomplete to Populate Another Autocomplete

    Posted on :: Jun 8

    This example will use a jquery autocomplete to choose a state then, based on the state, another jquery autocomplete will be populated with zip codes for that state. Basically, the state chosen gets used as a filter in the query for the second autocomplete. I've included example for this tutorial in .NET, ColdFusion and PHP to show just how easy it is and compare the differences between the languages, asnd uses SQL Server for it's Database...

    [Read more →]

  • Object Oriented Programming in PHP

    Posted on :: May 5

    This article introduces Object Oriented Programming (OOP) in PHP. I'll shows you how to code less and better by using some OOP concepts and PHP tricks.Object Oriented Programming in any language is the use of objects to represent functional parts of an application and real life entities. For example you may have a Person object to hold the data related to a person and even provide some functionality that this person may be capable of.

    Object Oriented Programming has long been used in games to represent the objects such as a User or an Enemy, or even a Weapon. This amazing way of programming has proven just as useful in software and web development.

    [Read more →]

  • Dynamic Drag’n Drop With jQuery And PHP

    Posted on :: Apr 21

    Drag’n drop generally looks hard-to-apply but it is definitely not by using JavaScript frameworks. Here is, how it is done by using jQuery & jQuery UI:

    [Read more →]

  • Dynamic thumbnails from websites

    Posted on :: Mar 31

    Since Alexa stopped offering their free thumbnail service last year a lot of thumbnail services are available now. Some of them offering limited free services and others only a paid premium version. On of the bigger and better services is Girafa, a thumbnail service with a free service and also premium services for users with more then 2000 image requests a month.

    [Read more →]

  • Create custom backups from your website using cURL (PHP Tutorial)

    Posted on :: Mar 25

    These days I needed a script to backup only a part of a customers website using a CRON. Most of the control panels I know allow only a complete website backup and this is not what I needed. While plaaning the script, I thought about a solution for webmaster without full SSH access to their hosting account. A typical situation could be:

    • A shared hosting account that allows only backups for the whole site incl. database, emails and other settings
    • No administration rights via SSH
    • A FTP host for the storage of the the backup files
    • Support for cURL and a default PHP5 configuration (sorry no more code for PHP4).

    [Read more →]

  • URL Rewritting in PHP

    Posted on :: Mar 15

    In my endeavors to optimize the projects and sites I've worked on, I developed a simple snipplet of code that will easily adapt your long urls into an easier to remeber and easier to use method.

    Let's take for example the url: http://yourdomain.com/index.cfm?view=blogid=4

    Using the Code snipplet below we'll make that url look like this:
    http://yourdomain.com/index.cfm/view/blog/blogid/4/

    [Read more →]

  • Uploading Files Like GMail Attachments

    Posted on :: Mar 13

    Asynchronous file uploads is quote popular feature in modern AJAX web-applications. However standard AJAX classes (XmlHttpRequest) does not have capabilities to process or send files selected with "file dialog" (input type="file"). This article contains example application (trivial file-sharing service, like rapidshare, megaupload or yousendit) which uses embedded frames (IFRAME) to upload file. While file is uploaded to hidden frame, user can still access web-page and fill "file description" field.

    [Read more →]

  • Creating Dynamic PDF files using HTML and PHP

    Posted on :: Feb 27

    There always arise a need for converting content from one file format to another one. Some may need to convert some text into HTML and some may need to convert some HTML content to an image format. The main reason for the need to convert from one file format to another is because the target file format is best suited for targeted medium where the content need to be displayed. The targeted medium may be an email, a printed hard copy or a web browser. The text format is best suited for sending emails, as the possibility of the email contents getting corrupted in the transition is much lesser, when compared to the HTML formatted emails. PDF document or a word document would be the best choice for taking a printed hard copy and obviously HTML is best for showing contents in web browsers.

    Here, we are going to study on converting HTML 2 PDF using PHP. This article is not going to explain on the main logic of how to convert a HTML file to PDF file. That would be a separate subject and it could not be covered in this short article. But we would be seeing how to use some free open source PHP scripts to accomplish this file conversion.

    [Read more →]

  • What if you could run PHP code directly inside ColdFusion?

    Posted on :: Jan 7

    I found this blog post back in early 2008 that states you can run PHP (and Ruby) on Coldfusion 8. I thought this was pretty damed cool, especially considering I develop with both. So here's the Blog entry:

    What if you could run PHP code directly inside ColdFusion?

    [Read more →]

  • Preventing SQL Injection

    Posted on :: Nov 17

    Most web applications interact with a database, and the data stored therein frequently originates from remote sources. Thus, when creating an SQL statement, you often use input in its construction. A typical SQL injection attack exploits this scenario by attempting to send fragments of valid SQL queries as unexpected values of GET and POST data. This is why an SQL injection vulnerability is often the fault of poor filtering and escaping, and this fact cannot be stressed enough.

    I'm going to explains SQL injection by looking at a few example attacks and then introducing some simple and effective safeguards. By applying best practices, you can practically eliminate SQL injection from your list of security concerns.

    Preventing SQL Injection in PHP & Coldfusion

    [Read more →]