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 9 years ago.
Improve this question
Suppose i have a file demo.php & it includes info.php . If i load demo.php using Jquery in my index.php will it work? ie. the information in info.php will be included or not?
Yes, it will work, but be sure that links in the "info.php" are connected properly.
e.g :
1- index.php
2- demo.php - includes (info.php).
loading(including) demo.php in index.php will make file "index.php" - load all contents of demo.php.
Related
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.
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
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 4 years ago.
Improve this question
I am trying to make this page:
https://mediastreet.ie/media-jobs/role-65678
same as this page using htaccess:
https://mediastreet.ie/media-jobs/role
So basically /role-65678 is a parameter like role-{parameter}. So when on /role-65678 i have a script that fetches this (65678) and displays the job according to it.
Rather than editing your htaccess file, I would just reccomend sticking with a good old get method.
Use https://mediastreet.ie/media-jobs/role?id=65678
Then in the index.php file in the directory "role", use the get functionality as shown below.
<?PHP
$id = $_GET["id"];
//Code to follow
?>
Past experiance tells me this will save alot of htaccess headaches!
All the Best.
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
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