< Back to DraftCode
DraftCode Help Topics

How can I import files and folders into DraftCode?
Do you support Git?
How can I export my work?
Is a MySQL database included?
How is the runtime different from apache?
What is the path to my workspace?
Can I configure execution to start with a specific file?
Which PHP extensions are included?
Can you help me understand how to use WordPress, configure phpMyAdmin, etc?
I love DraftCode, how can I help keep it going?

Get in touch...


How can I import files and folders into DraftCode?
You can import files by:

You can import folders by:

If you want to import a folder from a location that only supports files, we recommend to zip compress your folder, import it, and expand it in DraftCode using the built-in zip/unzip support.

Do you support Git?
If you want to use GIT with your PHP projects, we recommend to use Apps like WorkingCopy in conjunction with DraftCode.
To hand a new version of a whole folder back to WorkingCopy, zip it first and then "Open in..." the zip file in WorkingCopy. WorkingCopy will then guide you through how the changes will be imported into the repository.

How can I export my work?
You can hand any file in the workspace over to another iOS App or using Extensions via the standard share button available in the top right corner of the editor. This way you can upload to iCloud Drive, DropBox.app or the FTP App of your choice.
If you want to hand over a whole folder, simply zip it first by tapping the folder's name in the file viewer and selecting "zip" from the action menu. (You can also tap the filename of a selected zip archive in the source viewer to unzip it.)
If you use WorkingCopy, you can hand over a zip to it and the App will guide you through how the changes should be imported into the repository.

Is a MySQL database included?
No. MySQL is supported in the sense that the MySQL PHP extension is included which allows you to access any MySQL database on the network via PHP in DraftCode. A MySQL database itself is not (and cannot be) included. For offline database work we strongly recommend to investigate using SQLite3, which is included and does not require an external database server. It is a full blown SQL database and if your App uses PDO you should be able to simply switch over. The included WordPress package for example runs completely offline using a WordPress SQLite plugin.

How is the runtime different from apache?
From the perspective of your PHP App running inside DraftCode there is no difference or limitation. Please note that you however can NOT access the runtime from other iOS Apps or other devices on the local network.

What is the path to my workspace?
The path is different on every installation because the workspace is part of the App's sandboxed folder. You can use __FILE__, __DIR__ and similar PHP variables to get to the absolute path of your installation, or alternatively use relative paths.

Can I configure execution to start with a specific file?
Yes. You can use the "star" button in the code editor to mark a file as the starting point for when you hit "RUN" instead of the file you are editing right now. This is useful for larger PHP projects with many files that you might work on but that are not a valid point of execution.

Which PHP extensions are included?
Why don't you include *name of extension*

Here is DraftCode's phpinfo output which shows all currently included extensions. Compiling PHP for iOS is a non trivial task and certain extensions pose significant challenges. It's unfortunately not as simple as "just including them all".
Please get in touch if you need an extension to be supported. It helps us to prioritise what to work on next.

Can you help me understand how to use WordPress, configure phpMyAdmin, etc?
The PHP Apps that are included in DraftCode are identical to their versions you can download from the web, include the same documentation and behave exactly like on any other PHP installation. We have tested them to ensure they work as expected. Please understand that explaining how to configure phpMyAdmin, or how to work with WordPress is not in scope of DraftCode support. Please have a look at the documentation or online forums of these Apps for more information. Thank you for your understanding.

I love DraftCode, how can I help keep it going?
The AppStore is a challenging place for niche Apps like DraftCode. Please help spread the word and rate/review every new version of DraftCode. It really helps! And if you find an issue or are angry about something, please get in touch with us before deciding to write a bad review.

Get in touch
Please send a message to the e-mail address:
support -at - solesignal.com.
© SOLESIGNAL LTD 2017 - ALL RIGHTS RESERVED