Coder Social home page Coder Social logo

simple-php-website's People

Contributors

banago avatar faulkinator avatar madzadev avatar nouamanetazi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

simple-php-website's Issues

pushing issue

i wanna clone your code to my local machine, can i push it to my github account?

Pretty URI option doesn't work

When I put the pretty uri option to true, the content doesn't change when I change the page and stays to the homepage content and title.

issue

I don't know php, I need some suppot , please help me

How to run this project??

This question may be stupid I had install the xampp. . But i cannot run the file . Nothing appear in browser it just come out coding of the files. I want to see the interface of the project.

building a php site

hello, may you please assist me with building your php website. i am new to php

Probably something simple!

Hey Mate,
Thanks for sharing the code. First of all, I am not very familiar with PHP. Trying to host a simple website. I am hosting it on my localhost on port 8080. I have updated the site_url field with "http://localhost:8080". I can access the indexpage just fine, however, when I click on the About Us, Products etc, get a blank page. On inspecting code, I am getting a blank html page back. Any ideas on what I could be doing wrong ?

syntax error, unexpected '?'

$ php -S localhost:8080
PHP 5.4.16 Development Server started at Mon May 10 13:23:27 2021
Listening on http://localhost:8080
Document root is /home/si.roy/simple-php-website
Press Ctrl-C to quit.
[Mon May 10 13:23:32 2021] PHP Parse error: syntax error, unexpected '?' in /home/si.roy/simple-php-website/includes/functions.php on line 36
[Mon May 10 13:23:32 2021] ::1:46572 [200]: / - syntax error, unexpected '?' in /home/si.roy/simple-php-website/includes/functions.php on line 36

From Another host :

[si.roy@jenkins ~]$ curl http://localhost:8080


Parse error: syntax error, unexpected '?' in /home/si.roy/simple-php-website/includes/functions.php on line 36

[si.roy@jenkins ~]$

PHP Version :
$ php -v
PHP 5.4.16 (cli) (built: Oct 29 2019 09:56:22)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies

Docker Container

Can we able to run this application inside the container?
Also why this docker is running only under the folder /var/www/html/. could you please explain I'm new to docker

Build.xml file to build the project

Hi,
We are very new to php and planned to use this project for CICD. Hence to build the project through Jenkins we need build.xml file.
Could you please provide for the same.

Requested url not found

Hi,

Thank you for your code!
I copied all the site to c9 and the homepage opens just like it should, but all other links lead to:

Not Found
The requested URL /about-us was not found on this server.

Apache/2.4.7 (Ubuntu) Server at php-test-ruja.c9users.io Port 443

What might be the problem? Also tried copying one page to the root-directory, this did not help.
Tried the solution to delete the "/" from the navmenu, this did not help either.

Best, Jan

No pom file

Can you please add a om file for maven compiler

devops project

how do I start the project and what I suppose to do in the first stage give me some instruction.

Can't seem to set up active class in navigation

Hello there. First of all, thanks for this great resource. I am having some slight user error when it comes to the nav menu. I want to set it up so that an active class is added to the nav item when you are on that page, making it different from the rest. I have tried to do something like that with this code:

`/**

  • Website navigation.
    */
    function navMenu($sep = ' | ')
    {
    $nav_menu = '';

    foreach (config('nav_menu') as $uri => $name) {
    $nav_menu .= '<a class="nav-link'.(($name==$page)?' active':"").'" href="'.(config('pretty_uri') || $uri == '' ? '' : '?page=').$uri.'">'.$name.'';
    }

    echo trim($nav_menu, $sep);
    }`

There is not an error, but it does not add the active element. I would be grateful for your help, if there's an effective way to do this.

Thanks.

do everything in the index.php instead of template.php

Hi friends,

Thanks for your code, it is pretty nice for me to learn more php.

I try to change everything to have the data of the template.php in the index.php. After that everything works, but not the navigation. "requested url not on the server". The links of the navigation looks the same.....

Why do i want this? Because i wanted to include header, sidebar and footer, instead of to have them directly in the template.php file. But this does'nt work in the original code, it did'nt find my including files. When i chance everything from template.php to index.php it works, but not the navigation, like i write.

If you like, you can have a look at my project in: https://github.com/eversthomas/fritz

Greetz ... Tom.

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.