BrainDump
  Home arrow BrainDump arrow Page 3 - XAMPP: Tips for Running an Apache/MySQL Se...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

XAMPP: Tips for Running an Apache/MySQL Server in Windows XP
By: Codex-M
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 5
    2009-04-23

    Table of Contents:
  • XAMPP: Tips for Running an Apache/MySQL Server in Windows XP
  • Configuring XAMPP: Apache/PHP and MySQL in one package
  • Useful XAMPP Techniques
  • Testing scripts in PHP 4 and PHP 5

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    XAMPP: Tips for Running an Apache/MySQL Server in Windows XP - Useful XAMPP Techniques


    (Page 3 of 4 )

    After learning a bit about XAMPP, its security and features, we will proceed to illustrate some XAMPP techniques. Okay, let’s start with the basics:

    Executing your first PHP script

    Say that you have a script named “basic.php,” which is a PHP program. Executing the script in your local Apache server is made possible by saving your PHP/html source in the htdocs folder. If you have installed XAMPP in drive C, htdocs can be located in C:XAMPPhtdocs.

    The files inside htdocs are the “local” or “offline” equivalent of the online web hosting root web server space. The root is the most important section of the web space because it is the reference for all folders. If you have website whose URL is http://www.yourwebsite.com/ , the forward slash “/” signifies the root directory. If you upload a file to the root directory via FTP, for example “thisisyourphpscript.php,” it can then be executed in your browser address bar as http://www.yourwebsite.com/thisisyourphpscript.php .

    The offline equivalent of the above web address is this: http://localhost/thisisyourscript.php , provided you have saved the script in this Windows-based path: C:XAMPPhtdocsthisisyourphpscript.php

    Creating a database and tables using PhpMyAdmin

    This is why I love XAMPP; the PhpMyAdmin is bundled with PHP, and database creation is straightforward. To directly access the database, type this in the address bar: http://localhost/phpmyadmin and be prepared to input security details such as the username and password.

    A tutorial on database creation and its details is beyond the scope of this article, but always bear in mind that database communication to PHP scripts is basically the same as what you would do when you upload your scripts online (of course you will need another MySQL username, password, hostname, etc.).

    More BrainDump Articles
    More By Codex-M


     

    BRAINDUMP ARTICLES

    - Introduction to Office Live Workspace
    - Using MS Excel for One-way Analysis of Varia...
    - Comparing Data Sets Using Statistical Analys...
    - Import Blogger Posts into WordPress Using Wi...
    - Download WordPress from an FTP Server and Ru...
    - Install and Run WordPress in XAMPP Local Host
    - What Windows 7 Brings to the Table
    - Virtualization and Sandbox Detection
    - Advanced Firebug Techniques in Windows XP Ho...
    - Editing CSS with Firebug in Windows XP Home
    - Using Firebug in Windows XP Home
    - Migrating to Exchange Server 2007
    - Using System Restore on a Non-Bootable PC
    - Finding Logged on Users and More Scripting S...
    - Developing Macro Commands in MS Excel





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek