SlideShare ist ein Scribd-Unternehmen logo
1 von 11
Configuration File – ProdigyView
Overview
Objective

Learn how to configure the system through the xml file.

Requirements

 Understanding of the Defines.
Estimated Time

5 minutes




                     www.prodigyview.com
Follow Along With A Code
          Example
1. Download a copy of the example code at
  www.prodigyview.com/source.

2. Install the system in an environment you feel
  comfortable testing in.

3. Proceed to config/site_config.xml




                    www.prodigyview.com
XML File
ProdigyView uses an xml file for holding system configurations instead of the standard
PHP file. If you remember reading about the Defines, the location of this file is set there.




                                       WHY XML?
There a typically four ways of storing and reading configuration files in PHP.

1.   Php.ini

2.   Database

3.   Php file

4.   XML File

Out of those 4 ways and test performed with repeated reading of a configuration
file, retrieving a configuration from the database is the slowest, php.ini is faster the a
php file, and an xml file takes the cake.
Good Article To Read
A good article to read on PHP configuration files is here:
       http://www.phpro.org/articles/Application-Configuration.html



The article will give you insight on using php.ini
configuration, xml configuration, php file configuration, and
the database configuration.
How the Configuration Works
The configuration works in two parts
1. If you noticed on the tutorial about the bootstrap, the
   ‘load_configuration’ option was set to false. If that is set true, the
   xml file is loaded and those variables are used to initialize:
  1. PVSessions
  2. PVRouter
  3. PVDatabase
  4. PVSecurity
  5. PVTemplate
2. In PVConfiguration, there are various methods that use the xml
   configuration. Example: Methods such as
   PVConfiguration::getEmailSettings() retrieve the email settings
   from the xml file.
General Configuration
The general configuration is general information about the
web application and is mainly used by functions in
PVTemplate.
Email Configuration
    The email configuration sets the defaults to how emails
    will be sent. The most important option here is the
    ‘mailer’. If the option is set to php, the method
    PVMail::sendEmail() will send an email using php’s mail()
    function. If the option is set to smtp, the
    PVMail:sendEmail() will send an email through SMTP.
Default SMTP information used




     Default from email used in sendmail
System
 The system configuration controls how the system runs.
  Display Error Message     The level of errors to report

                                                            Log errors




Remove global
variables




 Forces SEO friendly urls
Session
    The session configuration can be used to control
    sessions.
Sessions stored on the server configuration




Cookies stored in the browser configuration
Session Review
1. The default configuration file is set by the PV_CONFIG
   file

2. The XML file DOES NOT have to be used and can be
   turned off in the bootstrap.

3. The ‘email’ configurations configures the PVMail class.
4. The ‘sessions’ configurations configures the Session
   class.

5. The ‘system’ configuration configures the router and
   error reporting.

Weitere ähnliche Inhalte

Ähnlich wie Prodigyview XML COnfiguration File

Trouble shoot with linux syslog
Trouble shoot with linux syslogTrouble shoot with linux syslog
Trouble shoot with linux syslog
ashok191
 
Chapter14 Windows Server 2003 Security Features
Chapter14      Windows  Server 2003  Security  FeaturesChapter14      Windows  Server 2003  Security  Features
Chapter14 Windows Server 2003 Security Features
Raja Waseem Akhtar
 

Ähnlich wie Prodigyview XML COnfiguration File (20)

Doc quickinstall 3.x
Doc quickinstall 3.xDoc quickinstall 3.x
Doc quickinstall 3.x
 
File Handling
File HandlingFile Handling
File Handling
 
File Handling
File HandlingFile Handling
File Handling
 
How to generate,collect and upload ocum logs
How to generate,collect and upload ocum logsHow to generate,collect and upload ocum logs
How to generate,collect and upload ocum logs
 
The cPanel Log Files
The cPanel Log FilesThe cPanel Log Files
The cPanel Log Files
 
Php
PhpPhp
Php
 
Download It
Download ItDownload It
Download It
 
Php myadmin
Php myadminPhp myadmin
Php myadmin
 
Best Practices For Direct Admin Security
Best Practices For Direct Admin SecurityBest Practices For Direct Admin Security
Best Practices For Direct Admin Security
 
Aix 400
Aix 400Aix 400
Aix 400
 
Hybrid automation framework
Hybrid automation frameworkHybrid automation framework
Hybrid automation framework
 
Trouble shoot with linux syslog
Trouble shoot with linux syslogTrouble shoot with linux syslog
Trouble shoot with linux syslog
 
document
documentdocument
document
 
Group policy preferences
Group policy preferencesGroup policy preferences
Group policy preferences
 
How to import the agile plm database
How to import the agile plm databaseHow to import the agile plm database
How to import the agile plm database
 
Chapter14 Windows Server 2003 Security Features
Chapter14      Windows  Server 2003  Security  FeaturesChapter14      Windows  Server 2003  Security  Features
Chapter14 Windows Server 2003 Security Features
 
cPanel & WHM Glossary
cPanel & WHM GlossarycPanel & WHM Glossary
cPanel & WHM Glossary
 
Unix Administration 5
Unix Administration 5Unix Administration 5
Unix Administration 5
 
Instructions for using the phase wrapping and unwrapping code
Instructions for using the phase wrapping and unwrapping codeInstructions for using the phase wrapping and unwrapping code
Instructions for using the phase wrapping and unwrapping code
 
Organizing Machine Learning Projects - Repository Organization
Organizing Machine Learning Projects - Repository OrganizationOrganizing Machine Learning Projects - Repository Organization
Organizing Machine Learning Projects - Repository Organization
 

Mehr von ProdigyView

Mehr von ProdigyView (20)

Installing Plug-ins
Installing Plug-insInstalling Plug-ins
Installing Plug-ins
 
Building An Application
Building An ApplicationBuilding An Application
Building An Application
 
Installing Applications
Installing ApplicationsInstalling Applications
Installing Applications
 
Video Content Management
Video Content ManagementVideo Content Management
Video Content Management
 
Audio Content Management
Audio Content ManagementAudio Content Management
Audio Content Management
 
File Content Management
File Content ManagementFile Content Management
File Content Management
 
Email Configuration
Email ConfigurationEmail Configuration
Email Configuration
 
HTML5 Tags and Elements Tutorial
HTML5 Tags and Elements TutorialHTML5 Tags and Elements Tutorial
HTML5 Tags and Elements Tutorial
 
HTML Forms Tutorial
HTML Forms TutorialHTML Forms Tutorial
HTML Forms Tutorial
 
Html Tags Tutorial
Html Tags TutorialHtml Tags Tutorial
Html Tags Tutorial
 
Video Conversion PHP
Video Conversion PHPVideo Conversion PHP
Video Conversion PHP
 
Sending Email Basics PHP
Sending Email Basics PHPSending Email Basics PHP
Sending Email Basics PHP
 
Tools ProdigyView
Tools ProdigyViewTools ProdigyView
Tools ProdigyView
 
Custom Validation PHP
Custom Validation PHPCustom Validation PHP
Custom Validation PHP
 
Basic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHPBasic File Cache Tutorial - PHP
Basic File Cache Tutorial - PHP
 
Understanding Web Cache
Understanding Web CacheUnderstanding Web Cache
Understanding Web Cache
 
Javascript And CSS Libraries
Javascript And CSS LibrariesJavascript And CSS Libraries
Javascript And CSS Libraries
 
PHP Libraries
PHP LibrariesPHP Libraries
PHP Libraries
 
SQL Prepared Statements Tutorial
SQL Prepared Statements TutorialSQL Prepared Statements Tutorial
SQL Prepared Statements Tutorial
 
Database Basics
Database BasicsDatabase Basics
Database Basics
 

Kürzlich hochgeladen

Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
 

Kürzlich hochgeladen (20)

GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Advantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your BusinessAdvantages of Hiring UIUX Design Service Providers for Your Business
Advantages of Hiring UIUX Design Service Providers for Your Business
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 

Prodigyview XML COnfiguration File

  • 2. Overview Objective Learn how to configure the system through the xml file. Requirements  Understanding of the Defines. Estimated Time 5 minutes www.prodigyview.com
  • 3. Follow Along With A Code Example 1. Download a copy of the example code at www.prodigyview.com/source. 2. Install the system in an environment you feel comfortable testing in. 3. Proceed to config/site_config.xml www.prodigyview.com
  • 4. XML File ProdigyView uses an xml file for holding system configurations instead of the standard PHP file. If you remember reading about the Defines, the location of this file is set there. WHY XML? There a typically four ways of storing and reading configuration files in PHP. 1. Php.ini 2. Database 3. Php file 4. XML File Out of those 4 ways and test performed with repeated reading of a configuration file, retrieving a configuration from the database is the slowest, php.ini is faster the a php file, and an xml file takes the cake.
  • 5. Good Article To Read A good article to read on PHP configuration files is here: http://www.phpro.org/articles/Application-Configuration.html The article will give you insight on using php.ini configuration, xml configuration, php file configuration, and the database configuration.
  • 6. How the Configuration Works The configuration works in two parts 1. If you noticed on the tutorial about the bootstrap, the ‘load_configuration’ option was set to false. If that is set true, the xml file is loaded and those variables are used to initialize: 1. PVSessions 2. PVRouter 3. PVDatabase 4. PVSecurity 5. PVTemplate 2. In PVConfiguration, there are various methods that use the xml configuration. Example: Methods such as PVConfiguration::getEmailSettings() retrieve the email settings from the xml file.
  • 7. General Configuration The general configuration is general information about the web application and is mainly used by functions in PVTemplate.
  • 8. Email Configuration The email configuration sets the defaults to how emails will be sent. The most important option here is the ‘mailer’. If the option is set to php, the method PVMail::sendEmail() will send an email using php’s mail() function. If the option is set to smtp, the PVMail:sendEmail() will send an email through SMTP. Default SMTP information used Default from email used in sendmail
  • 9. System The system configuration controls how the system runs. Display Error Message The level of errors to report Log errors Remove global variables Forces SEO friendly urls
  • 10. Session The session configuration can be used to control sessions. Sessions stored on the server configuration Cookies stored in the browser configuration
  • 11. Session Review 1. The default configuration file is set by the PV_CONFIG file 2. The XML file DOES NOT have to be used and can be turned off in the bootstrap. 3. The ‘email’ configurations configures the PVMail class. 4. The ‘sessions’ configurations configures the Session class. 5. The ‘system’ configuration configures the router and error reporting.