Coder Social home page Coder Social logo

my-shop-php's Introduction

All Stars my shop

All Stars my shop is a template of a concept store using HTML, CSS, PHP and MySQL only. You can display products and categories, sign-in and sign-up, save users in database, use an admin page to manage your database. Here is an example of a concept store displaying Chrismas present for people who don't have a lot of money but a great sense of humor

Installation

Download the latest PHP 5 ZIP package from www.php.net/downloads.php. Copy C:\php\php.ini-development to C:\php\php.ini

Define the extension directory:extension_dir = "C:/php/ext".

Enable extensions: extension=mysql and extension=pdo_mysql

Configure PHP as an Apache module :

Ensure Apache is not running (use net stop Apache2.2from the command line) and open its confhttpd.conf configuration file in an editor. The following lines should be changed:

On line 239, add index.php as a default file name:

DirectoryIndex index.php index.html

At the bottom of the file, add the following lines (change the PHP file locations if necessary):

# PHP5 module

LoadModule php5_module "c:/php/php5apache2_2.dll"

AddType application/x-httpd-php .php

PHPIniDir "C:/php"

Save the configuration file and test it from the command line (Start > Run > cmd):

cd Apache2bin

httpd -t

You also need to install mySQL : https://dev.mysql.com/doc/mysql-installation-excerpt/8.0/en/windows-install-archive.html

Usage

php -S localhost:8000;

Then open a browser with the url :

http://localhost:8000/index.php, http://localhost:8000/signin.php, http://localhost:8000/signup.php, http://localhost:8000/admin.php.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Authors and acknowledgment

Thanks to Jean-Baptiste, Kobi and Estelle who have contributed to this project.

my-shop-php's People

Contributors

estellethou avatar jibebigo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.