Relative Content

Tag Archive for phphtml

Building a Controller on PHP

I have been building a website using PHP and I have ran into a problem when trying to build a controller. So I have my page url names listed as: “/”, “/about”, “/courses”. The home page seems to be working but when I click on the about us page I am getting an error: “The requested URL was not found on this server.” When I include .php for each of the URL page names, it works fine. Could someone help me out with this?

Php select folder dialog

I need to place two text fields and two buttons. The first one uses a dialog to select the file name and place it in the textbox.
The second selects the folder with which the user will work and places it in the second textbox.
Or another option: after clicking on the first button, the file name is placed in the first textbox, and its path without a name is placed in the second.