Tag Archives: faq

Xamarin FAQ and Tips

This page provides tips for using the Xamarin platform and some solutions for some problems you may encounter when using Xamarin or coding in C#.

FAQ

Topics/Questions:

Where can I download Xamarin?

  • You can download Xamarin from xamarin.com/download for free. If you are a Mac user, you will need Xamarin Studio (included in the installation). If you are a Windows user, you can use Xamarin Studio or Visual Studio (included in the installation).
  • In the tutorials on this site, we will be using Xamarin Studio (for consistency). If you are developing apps for Android you will also need Xamarin.Android (on Windows or Mac), and for iOS app development you will need Xamarin.iOS (on a Mac). These options are available in the installation and the instructions are provided on the Xamarin website.
  • If you are developing apps for iOS, you will also need Xcode installed (which is also free from the Mac App Store).
  • The installation is quite large so it may take some time to download and you will need plenty of space.

The Xamarin installation failed. Why?

  • The Xamarin installation may fail if you lose your Internet connection. However, the common cause of a failed installation is that you do not have enough storage space left on your computer to download and install the necessary files. Make some room and then try again.

Note: This resource is under construction and constantly growing. Check back soon for more information!

PHP/MySQL FAQ and Tips

This page provides tips and answers to frequently asked questions on PHP and MySQL.

Why won’t my PHP page load in my browser?

  • Make sure that you have your PHP development environment (such as XAMPP) installed and running.
  • Make sure that your Apache Web Server is also running (In XAMPP, open the XAMPP Manager, click on the Manage Servers tab, select Apache Web Server, and click on Start (and also turn on MySQL Database if you intend to use that).
  • Make sure that the webpage ends with the correct extension (eg. myfile.php) and that it is in the correct directory eg. XAMPP/htdocs/myfile.php.
  • Make sure your htdocs folder is intact. If using XAMPP, you will have a htdocs folder inside the XAMPP installation folder. It will contain all of your PHP files that you write, but it will also contain a lot of other important file such as the configuration file. Do not alter the structure of your htdocs folder or delete/move any other files!

My Apache web server won’t start. Why?

  • Make sure there are no other programs running that may clash with your PHP environment (eg. XAMPP). It may be using the same ports that are require by XAMPP. Skype is known to use the same ports and can cause issue if running. Make sure it is completely closed (go to Task Manager in Windows, select the conflicting program and click End Task; or Force Quit the program on Mac OS).
  • Make sure your htdocs folder is in the correct location and has not been moved or deleted. Make sure the files inside your PHP environment installation’s (eg. XAMPP) folder have not been moved or deleted, including the htdocs folder.
  • Make sure your httpd.conf configuration file points to the correct directory if you have moved your htdocs folder. Make sure you also have privileges to access this folder if you are not an administrator.

I’m getting syntax errors.

  • Check the spelling of your statements or keywords.
  • Make sure your statements all end with a semicolon (;) and that you close brackets and quotation marks where necessary.
  • Make sure you have escaped quotation marks inside strings.
  • Make sure you use commas or periods where need to separate items (eg. in string concatenation).
  • Also make sure that you variable names follow the rules of variable naming.

I get errors when I declare a new variable.

Check the following:

  • Names of variables must begin with a $ dollar sign
  • Letters, numbers and underscores can be used in variable names but no spaces
  • The first chracter of a variable name cannot be a number
  • Variable names are case-sensitive (that means, $myvariable, $myVariable, and $MYVARIABLE are three different variables).