DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports Events Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones AWS Cloud
by AWS Developer Relations
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Partner Zones
AWS Cloud
by AWS Developer Relations
The Latest "Software Integration: The Intersection of APIs, Microservices, and Cloud-Based Systems" Trend Report
Get the report
  1. DZone
  2. Data Engineering
  3. Databases
  4. Creating a NetBeans PHP Project from a Subversion Repository

Creating a NetBeans PHP Project from a Subversion Repository

Jeff Rubinoff user avatar by
Jeff Rubinoff
·
Nov. 20, 08 · Interview
Like (0)
Save
Tweet
Share
44.52K Views

Join the DZone community and get the full member experience.

Join For Free

This article describes my experience in creating a PHP project in NetBeans IDE 6.5 from the repository version of Mediawiki. The project included 3 kinds of data that a developer would probably want to handle differently:

  • PHP sourceĀ  files, which need to be on the web server and need to be in a Subversion check-in directory
  • Subversion meta-data, which has to be in the Subversion check-in directory but preferably not on the web server
  • NetBeans IDE meta-data, which preferably should be stored separately from the rest of the data

Fortunately, the PHP Project from Existing Sources wizard made it easy to keep these 3 kinds of data separate from each other, as you will see in the following procedure.


  1. To begin with, in my IDE, I installed both the Subversion plugin and the Subversion 1.5 for Windows client, available from the Plugins manager (Tools > Plugins).

  2. I looked up the Mediawiki wiki page on their Subversion repository and found the checkout URL. Then in my IDE I went to Versioning > Subversion > Checkout and entered the URL.

    Because I am not a Mediawiki developer, I left the username and password fields blank. If I had developer privileges, I would have entered my authorization credentials so I could later commit changes back to the Mediawiki repository.

  3. In the next panel of the checkout wizard, the IDE automatically filled out the Repository Folder field with the path to the phase3 folder. I accepted this default. Then in the local folder field, I specified a path in the root of my drive. I left all other fields and check boxes blank, which is the default setting.

    When I clicked Finish, the IDE checked out the Mediawiki phase3 SVN repository correctly, with the path G:/mediawiki/phase3.

  4. Next I completed the Mediawiki installation procedure as described in the Mediawiki installation guide:

    1. Prepare the directories.
    2. Create a database.
    3. Run the installation script.

  5. Now I wanted to create a NetBeans project with this repository. I opened the New Project wizard and selected PHP Application with Existing Sources.

  6. In the Name and Location panel, I browsed to the G:/mediawiki/phase3 folder. I then selected "Put NetBeans metadata into a separate directory" This is so that no NetBeans metadata would be committed back to the Subversion repository. (I had no check in privileges in any case but wanted to test the feature.) I created a "mediawiki" folder in my NetBeansProjects directory for this purpose. I left all other fields at their default settings and clicked Next, which opened the Run Configuration panel.

     

  7. In the Run Configuration panel, I chose to run the project as a local web site, on my Xampp Apache server. I could instead have chosen to run the project on a remote FTP server or as a command-line script, as described in the Setting Up a PHP Project tutorial.

    In order to run the project as a local web site, I had to copy source files to my server's web folder. So I checked Copy files from Sources Folder to another location. NetBeans IDE automatically located my Apache server's web folder, which for Xampp is G:\xampp\htdocs, and entered the location into the Copy to folder field. This option meant that the PHP source files would be copied to the Apache server without the SVN or NetBeans IDE metadata.

That was it! When I clicked Finish, the IDE created a PHP project out of the checked out Mediawiki repository. It took about 30 seconds to index all the files. From then on, I could use the IDE's PHP editing features to work on the project and its versioning features to update and commit my changes.

PHP source control Repository (version control) NetBeans

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • 5 Best Python Testing Frameworks
  • Chaos Engineering Tutorial: Comprehensive Guide With Best Practices
  • Building a RESTful API With AWS Lambda and Express
  • The Power of Docker Images: A Comprehensive Guide to Building From Scratch

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends: