Z controller File: Difference between revisions
Jump to navigation
Jump to search
m
Reverted edits by Upazixorys (Talk); changed back to last version by Ric
Upazixorys (talk | contribs) No edit summary |
m (Reverted edits by Upazixorys (Talk); changed back to last version by Ric) |
||
Line 1: | Line 1: | ||
{{Nav z controller}} | {{Nav z controller}} | ||
'''File menu Introduction''' | '''File menu Introduction''' | ||
Line 5: | Line 4: | ||
The File drop-down menu has nothing to do with files! Genially this is the first location a user checks, hence this menu contains most commonly used server configurations. | The File drop-down menu has nothing to do with files! Genially this is the first location a user checks, hence this menu contains most commonly used server configurations. | ||
{|cellpadding= | {|cellpadding="6" cellspacing="1" style="background:#000000;" | ||
|-style= | |-style="background:#e8e8e8;" | ||
|'''''Menu Item'''''||'''''Description''''' | |'''''Menu Item'''''||'''''Description''''' | ||
|-valign= | |-valign="top" style="background:#f5f5f5;" | ||
| | | | ||
* Put www On-Line | * Put www On-Line | ||
Line 18: | Line 17: | ||
Clicking either of the four menu items opens a window confirming the selection. This window ([[#Passwords Htaccess On-line |'''Passwords Htaccess''']] On-line) also allows you to directly control all the features associated with accessing root folders. For example you can password protect these. | Clicking either of the four menu items opens a window confirming the selection. This window ([[#Passwords Htaccess On-line |'''Passwords Htaccess''']] On-line) also allows you to directly control all the features associated with accessing root folders. For example you can password protect these. | ||
|- style= | |- style="background:#f5f5f5;" | ||
| | | | ||
* [[#Apache Configuration | Apache& | * [[#Apache Configuration | Apache Configuration]] | ||
| | | | ||
This menu item opens a window where you can change some common Apache parameters. It also provides direct access to the two Apache configuration files. After making a change you can check the syntax. | This menu item opens a window where you can change some common Apache parameters. It also provides direct access to the two Apache configuration files. After making a change you can check the syntax. | ||
|- style= | |- style="background:#f5f5f5;" | ||
| | | | ||
* [[#PHP Configuration |PHP Configuration]] | * [[#PHP Configuration |PHP Configuration]] | ||
| | | | ||
This menu item opens a window where you can change some common PHP parameters. It also provides direct access to the three PHP configuration files used in Uniform Server. | This menu item opens a window where you can change some common PHP parameters. It also provides direct access to the three PHP configuration files used in Uniform Server. | ||
|- style= | |- style="background:#f5f5f5;" | ||
| | | | ||
* Exit | * Exit | ||
Line 40: | Line 39: | ||
Each root folder is protected by an htaccess file this allows you to enable public access or restrict access either locally or password protect them. Hence three common sections the following description is for root folder www however it applies to all three. | Each root folder is protected by an htaccess file this allows you to enable public access or restrict access either locally or password protect them. Hence three common sections the following description is for root folder www however it applies to all three. | ||
{| | {| | ||
|- valign= | |- valign="top" | ||
| | | | ||
=== Root Folder www === | === Root Folder www === | ||
Line 50: | Line 49: | ||
* Click the '''Change name password''' button this saves them to a file for latter use. | * Click the '''Change name password''' button this saves them to a file for latter use. | ||
'''''Password protect root folder'':''' | '''''Password protect root folder'':''' | ||
* Click first button on right. Toggles between '''Password Disabled''' and '''Password Enabled''' With | * Click first button on right. Toggles between '''Password Disabled''' and '''Password Enabled''' With "Password Enabled" you are required to enter a name and password to access the root folder. | ||
'''''On-line Access - Local Access'':''' | '''''On-line Access - Local Access'':''' | ||
* Second button on right toggles between who can access the root folder. If password is enabled they are required to enter a name and password even if they are local or on-line. | * Second button on right toggles between who can access the root folder. If password is enabled they are required to enter a name and password even if they are local or on-line. | ||
Line 67: | Line 66: | ||
This window provides access to some common Apache configuration parameters. Generally there is no need to change any of these | This window provides access to some common Apache configuration parameters. Generally there is no need to change any of these | ||
{| | {| | ||
|- valign= | |- valign="top" | ||
| | | | ||
*'''''Update Configuration''''' After making changes this button updates the Apache configuration file accordingly. | *'''''Update Configuration''''' After making changes this button updates the Apache configuration file accordingly. | ||
Line 89: | Line 88: | ||
Any changes made to the current ini file do not become effective until the server is restarted. After making changes to either development or production use the update button to save changes. After saving changes you can switch the file into service remember this overwrites the current file. Again you need to restart the server for the changes to take effect. | Any changes made to the current ini file do not become effective until the server is restarted. After making changes to either development or production use the update button to save changes. After saving changes you can switch the file into service remember this overwrites the current file. Again you need to restart the server for the changes to take effect. | ||
{| | {| | ||
|- valign= | |- valign="top" | ||
| | | | ||
'''''Note'':''' Default Uniform Server has the production PHP configuration file switched in. | '''''Note'':''' Default Uniform Server has the production PHP configuration file switched in. | ||
Line 115: | Line 114: | ||
== Short open tags == | == Short open tags == | ||
=== Warning === | === Warning === | ||
* Do not use the short form ''' | * Do not use the short form '''<? ?>''' of PHP open tag. | ||
* Always use the long form of PHP open tag ''' | * Always use the long form of PHP open tag '''<?php ?>''' | ||
* Always switch short form open tags '''off'''' | * Always switch short form open tags '''off'''' | ||
Line 122: | Line 121: | ||
You can convert older scripts as follows | You can convert older scripts as follows | ||
* Replace all occurrences of ''' | * Replace all occurrences of '''<? ?>''' with '''<?php ?>''' | ||
* Replace all occurrences of ''' | * Replace all occurrences of '''<?=''' with ''' <?php echo''' | ||
'''''[[#top | Top]]''''' | '''''[[#top | Top]]''''' |