File format · .phpr

PHPRunner .phpr Project File: Format, Corruption and Repair

What a PHPRunner .phpr project file contains, why XLineSoft project files stop opening, and how corrupt project files are diagnosed and repaired.


The .phpr extension belongs to PHPRunner, the Windows-based code generator from XLineSoft that builds database-driven PHP web applications with minimal hand coding. A single .phpr file holds the complete definition of one project, which is why a file that suddenly refuses to open can bring development to a full stop. In this guide we explain what the format is, what lives inside it, why these files become unreadable, and how repair is approached.

What the .phpr File Is

PHPRunner works on a generator model: instead of writing PHP by hand, you point the program at a database, choose the tables to expose, configure pages, security and appearance, and let PHPRunner produce the finished web application. Every choice made along the way is saved into one project file with the .phpr extension.

The generated output, meaning the PHP scripts, templates and supporting files that PHPRunner uploads to your web server, is separate from the project. Output is produced from the project and can be produced again at any time. That makes the .phpr file the single authoritative copy of an application's design, and the loss of it means losing the ability to regenerate or conveniently modify the application.

XLineSoft also publishes sibling generators, ASPRunnerPro and ASPRunner.NET, aimed at classic ASP and ASP.NET development. Those products use their own project formats; a .phpr file is specific to PHPRunner.

What a PHPRunner Project Contains

A typical .phpr file stores the full configuration needed to rebuild the application, including:

  • Database connection settings, such as the server address, database name and credentials used at design time.
  • Table and field selection: which tables the application exposes, key fields, lookup wizards, dropdowns and field-level options.
  • Page configuration for each table: list, add, edit, view, search and detail pages, plus export and print options such as PDF, Excel and Word output.
  • The security model: user accounts or group-based permissions controlling who can see which tables, fields, pages and records.
  • Events: snippets of server-side PHP and client-side JavaScript attached to defined points in the application's behaviour. These are often the most valuable custom work in a project.
  • Visual settings: themes, layouts, logos and custom styling.
  • Language and localisation settings for multilingual applications.
  • Build and upload settings used when publishing to the web server.

Because all of this lives in one container, a .phpr file is usually modest in size while representing days or weeks of configuration and custom code.

How PHPRunner Uses the Project File

The normal workflow is to open or create a project, connect to the database, step through the wizard, refine pages in the visual editor, and then build and upload. The project file records every decision so the build can be repeated whenever the database or the design changes. When a project is reopened, PHPRunner can compare the saved table structure against the live database schema and flag fields that were added, renamed or removed since the last save.

Two practical points about versions are worth knowing. First, project files are tied to the release that wrote them: opening an older project in a newer PHPRunner release typically involves an upgrade or conversion step, and a project upgraded by a newer release generally cannot be returned to an older one. Second, keeping the installer for the exact version you use makes it far easier to validate a recovered file later, because a repaired .phpr should be tested in the same or a newer build than the one that created it.

Technical Facts About the Format

  • Full name: PHPRunner Project File.
  • Developer: XLineSoft.
  • Category: proprietary software development project file, not a document or media format.
  • Platform: PHPRunner itself runs on Windows; the generated output is PHP intended for a web server.
  • Internal layout: the container structure is proprietary and has never been publicly documented in a formal specification, and it has changed across major versions. There is no officially registered MIME type and no publicly documented file signature we can state with confidence; XLineSoft's own documentation is the authoritative reference on the format.
  • Relationship to output: the .phpr file is the design; the .php files, templates and assets on the server are products of that design.

Why .phpr Files Become Corrupt or Unreadable

Most damage we see in these files traces back to the storage environment or to an interrupted write, for example:

  • Interrupted saves: a power cut, a forced shutdown or a crash while the project is open can leave the last save only partially written to disk.
  • Storage media failure: bad sectors on a hard drive or wear in flash storage can destroy the portions of the file that landed on damaged blocks.
  • Network dropouts: saving directly to a network share that disconnects mid-write can truncate the file.
  • Cloud sync conflicts: sync tools can leave partial uploads or conflicting copies, and it is easy to keep working on the wrong or incomplete one.
  • Truncated transfers: an interrupted copy or download can leave a file that is structurally incomplete even though it looks normal in a folder listing.
  • Malware and ransomware: malicious software may overwrite, corrupt or encrypt project files along with everything else on a machine.
  • Manual editing: opening the file in a text editor and saving it can re-encode or alter it in ways PHPRunner cannot read.

A file that fails to open is not always corrupt, however. A version mismatch, a partially synced copy or simply trying to open the wrong file can produce similar symptoms, so the situation is worth diagnosing before assuming the worst.

What Can Be Recovered

The goal of recovery is a .phpr file that opens cleanly in the matching version of PHPRunner, restoring the project exactly as it was saved. Where a full reconstruction is not possible, partial recovery still has real value: event code, connection settings, security definitions and page configurations can often be extracted from a damaged container, which dramatically shortens the work of rebuilding the project by hand.

One important consolation when a project file is lost: the deployed application on the web server keeps running, because the generated PHP code is independent of the project file. What is lost is the ability to regenerate and modify the application conveniently, and that is precisely what a recovered .phpr file restores.

How .phpr Repair Works

Professional recovery of a PHPRunner project generally proceeds in four stages:

  1. Evaluation. The file is inspected to establish its size, structure and damage pattern: whether it is truncated, whether header or index structures are damaged, and whether the payload regions are intact.
  2. Reconstruction. Damaged container structures are rebuilt, and where multiple copies or sync versions exist, intact regions can be combined into a single complete file.
  3. Validation. The repaired file is test-loaded in the appropriate PHPRunner build to confirm that the project opens and that its settings, events and security configuration are present and coherent.
  4. Delivery. The client receives a working .phpr file, plus, where full repair was impossible, whatever settings and code could be extracted.

If you are handling a damaged file yourself, three rules apply: keep the original untouched and work only on copies, never open and re-save the file from a text or hex editor, and note the exact PHPRunner version used so validation can be done in the right environment.

Preventing Damage and Loss

Because the .phpr file is the single source of truth for a project, protecting it deserves the same discipline as source code:

  • Copy the file to a second location after every working session, using dated filenames so you keep a version history.
  • Keep at least one copy on a separate physical device, not just another folder on the same drive.
  • Avoid opening projects directly from unstable network shares or aggressively syncing cloud folders; work locally and copy afterwards.
  • Close the project before shutting down or restarting the machine.
  • Record which PHPRunner version each project uses, and keep the installer.
  • Keep copies of custom event code snippets separately as a reference, so the hardest work is never stored in only one place.

FAQ

Can I open a .phpr file without PHPRunner?

No. The format is proprietary and undocumented, so PHPRunner itself, in the same or a newer version, is the only reliable reader. There is no widely available third-party viewer or converter.

Is a .phpr file the same as my application's PHP code?

No. The .php files on your web server are generated output. The .phpr file is the project definition used to generate them, and it is the only place where the visual, security and event configuration lives in editable form.

PHPRunner refuses to open my project. Is it definitely corrupt?

Not necessarily. A version mismatch, a partially synced copy or an incomplete transfer can all look like corruption. Try opening the file in the version that created it, compare its size against any backup or copy, and check whether the failure message points to a specific stage of loading.

My web application still runs. Does that mean the project file is fine?

Not necessarily. The deployed application is independent of the project file, so it can keep serving users even after the .phpr file is lost or damaged. The only real test is opening the project in PHPRunner.

Can a damaged .phpr file be repaired if there is no backup?

Often, yes. Truncated and partially damaged containers are frequently recoverable, and even severely damaged files can yield extractable settings and event code. A professional evaluation is the practical way to find out.

Does PHPRunner keep its own backups of projects?

Behaviour varies between versions, so we advise checking XLineSoft's documentation for your release rather than relying on any built-in mechanism. Deliberate, versioned copies you make yourself remain the dependable safeguard.

If a PHPRunner project will not load, send it to us for a free evaluation. We will examine the file's structure, tell you plainly whether the project definition can be recovered in full or in part, and there is no obligation until you decide how to proceed.

Send us your .phpr file for a free evaluation

Our recovery engineers will tell you exactly what can be recovered — at no cost. There is no charge if we cannot recover your data.

Start a free evaluation