How to link HTML CSS and PHP together? [closed] - php

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I created a new PHP project using Netbeans and i have some trouble referencing the very same css file to all my links in the project.
This is what I have:
If you know why this is happening please let me know.

It's a path problem
In register.php you should use ../css/style.css because register.php is in a subdirectory (links), index.php is in root path, then you can use css/style.css

Related

Why 2 index.php pages here? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
Improve this question
trying to implement the MCV based off Dary's video
https://www.youtube.com/watch?v=n2yeK6LwSII
I can't understand why we have an index.php in the public folder and index.php in the view/pages folder I honestly can't figure out how the one in the view/pages gets called.
I am trying to configure this on IIS as well
https://github.com/Darynazar/MVCFramework
public/index.php is the entry place of your app.
all other PHP files will include after that, so the index.php in view is not the enry point. you can rename it to whatever you want.

is there a php code that include/require a page and not a file? (PHP) [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I have a page 'Error 404' and the address is like http://myurl.com/error404
the php file of error404 require's the index.php to properly show it.
I need a php code that will load or show the content in the url above without redirecting/changing the url. thanks
echo file_get_contents("http://myurl.com/error404");
Works also for URLs.
DOCS

Github php page not found [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
When I upload HTML file (like index.html) web page works good, but when I upload index.php and then refresh it shows 404 error:
There isn't a GitHub Page here.
you can read more about:
https://pages.github.com/
and jekyll can do the job that you want too
http://jekyllrb.com/docs/quickstart/
here well coded site "app" hosted in github:
https://github.com/thedereck/gh-pages-blog

How To Upload A File In IIS? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I'm trying to upload in IIS a php file but it fails, I don't know why.
I have found the following references:
Reference 1,
Reference 2
but still didn't found a proper step by step guide.
Any references is appreciable,
Thanks in advance
you need to check the permissions on the uploading directory. For more information chekc the following URL
http://social.technet.microsoft.com/Forums/windows/en-US/fe6fc533-8688-4faf-848c-ba98cd6d6ec0/iis7-php-permissions-issue

How can i remove "index.php" and redirect to home url [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
For example if my home page url is "mywebsite.com/index.php", I want to access index.php on "mywebsite.com"
what is the standard procedure that every website uses ?
You must create an .htaccess file and write the following:
DirectoryIndex index.php
The file must be inside your folder with index.php

Categories