• p5_255078
    了解作者
  • 14.8KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-05 11:51
    上传日期
CSI 2132可交付成果2 A07组14部分 团队成员 艾丽斯·克鲁蒂尔300051115 Chethin Manage 300066367 马特·蒂普(Matt Tippin)300066841 Mac使用说明 从安装XAMPP 从本地计算机打开XAMPP,然后在“常规”选项卡中按“开始” 在虚拟开发环境中配置PostgreSQL 导航到“卷”选项卡,然后单击“安装” 现在,您将能够在虚拟开发环境中打开目录。 该文件夹将显示为USB驱动器/挂载,您可以通过单击“浏览”来访问 导航到root/etc并使用任何文本编辑器打开php.ini 找到行;extension="pgsql.so"并删除分号,使该行成为extension="pgsql.so" 将存储库PHP文件添加到虚拟开发环境 保存文件并导航到root/htdocs 删除此处的所有内容,并将其替换为该存储库的
csi2132-g14-main.zip
  • csi2132-g14-main
  • database_2021-03-20.sql
    8KB
  • README.md
    2.4KB
  • DONOTUSE.db
    44KB
  • triggers.txt
    357B
  • hotel
  • book.php
    873B
  • room.php
    1.7KB
  • index.php
    2.9KB
  • confirm.php
    997B
  • settings.php
    136B
内容介绍
# CSI 2132 Deliverable 2 Section A07 Group 14 ## Team Memebers * Elise Cloutier 300051115 * Chethin Manage 300066367 * Matt Tippin 300066841 ## Instructions for Mac 1. Install XAMPP from [here](https://www.apachefriends.org/index.html) 2. Open XAMPP from your local machine and press "Start" in the General Tab 3. Configure PostgreSQL within the Virtual Development Environemt - Navigate to the Volumes tab and click "Mount" - You will now be able to open a directory within the Virtual Development Environment. - The Folder will be visible as a USB Drive/Mount which you can access by clicking "Explore" - Navigate into ```root/etc``` and open ```php.ini``` with any text editor - Find the line ```;extension="pgsql.so"``` and remove the semilicolon such that the line becomes ```extension="pgsql.so"``` 4. Add repository PHP files to Virtual Development Environment - Save the file and navigate to ```root/htdocs``` - Delete everything there and replace it with the **hotel** folder of this repository 5. In **settings.php**, change the user and password to your own. 5. Go to the address provided in XAMPP by clicking "Go To Application" in the General Tab ## Instructions for Windows 1. Install XAMPP from [here](https://www.apachefriends.org/index.html) 2. Open XAMPP from your local machine and press "Start" in the General Tab 3. Configure PostgreSQL within the Virtual Development Environemt - Click Explorerto Navigate int - Search the directory for ```php.ini``` - Navigate into ```root/etc``` and open ```php.ini``` with any text editor - Find the line ```;extension=pgsql.so```, ```;extension=pdo_sql.so``` - Remove the semilicolon such that the lines become ```extension="pgsql.so"``` and ```extension=pdo_sql.so"``` 4. Add repository PHP files to Virtual Development Environment - Save the file and navigate to ```root/htdocs``` - Delete everything there and replace it with the **hotel** folder of this repository 5. Go to the address provided in XAMPP which is http://127.0.0.1 by default ## Instructions for Linux 1. Install php: - For Linux: ```sudo apt install php``` 2. Install PGSQL for php using ```sudo apt install php-phsql``` - See here for <em> Call to undefined function pg_connect </em> error 3. Navigate into root project directory and then ```root/hotels``` 4. Run ```php -S 127.0.0.1:8000``` to start a server 5. View in your browser by navigating to the above address
评论
    相关推荐