You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi Tom, thank you. i made it using xampp with directory structure C:\xampp\htdocs\ijdb6\Project\public
if anyone wants to try using xampp, here's how:
first and foremost you need to change your Apache server root folder from default one at htdocs (c:\xampp\htdocs) to public (c:\xampp\htdocs\ijdb6\Project\public). i use this directory structure but should also work for any directory structure you choose
change file httpd.conf like this:
you can search the file in c:\xampp\apache or you can hit Config button in Xampp control panel and choose httpd.conf file
dont forget to stop and restart your apache server so the change will take effect. just hit stop and start button in Xampp control panel
create .htaccess file and place it in root folder. our new root folder now is 'public'. the content like this:
you can create this file using IDE or using notepad. with notepad choose to 'save as' and 'save as type' All Files
type localhost in your browser address bar, and, voilaa..
if you like to have a feeling like you are accessing a real server, you can change localhost to mydevserver.com or any whimsical name you can come up to by edit file hosts located in C:\Windows\system32\drivers\etc
you need windows special permission to make the edit. try make the edit using windows provided account named administrator
thats all.
Tom has introduced very good technique that we should put our front controller (index.php) and other necessary files in root folder but put those important files outside of this folder. by making these changes we can make our root folder 'public' to serve the internet while we put the important files out from this folder. it greatly improve security
the provided .htaccess file make sure that for every non-existent folder/path or file we query in browser's address bar will go to index.php. the next thing is obvious, we make the index.php to response to specific URI. in other words, any URI is acceptable to the controller as long as we provide their corresponding response
The text was updated successfully, but these errors were encountered:
Are you still working on this website framework? I'm more than a year behind you and having mixed results, looking for some guidance from someone who may have figured it all out, or can plod along with me. I've been working on it about two months at this point.
I keep running into walls, taking a day to a week to resolve the problems. I had it more or less on track up thru categories, but now in Permissions I'm at a wall again.
Would you have time and patience to respond to problems I would send you?
Thanks
Nate
hi Tom, thank you. i made it using xampp with directory structure C:\xampp\htdocs\ijdb6\Project\public
if anyone wants to try using xampp, here's how:
change file httpd.conf like this:
you can search the file in c:\xampp\apache or you can hit Config button in Xampp control panel and choose httpd.conf file
dont forget to stop and restart your apache server so the change will take effect. just hit stop and start button in Xampp control panel
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ /index.php [NC,L,QSA]
you can create this file using IDE or using notepad. with notepad choose to 'save as' and 'save as type' All Files
if you like to have a feeling like you are accessing a real server, you can change localhost to mydevserver.com or any whimsical name you can come up to by edit file hosts located in C:\Windows\system32\drivers\etc
you need windows special permission to make the edit. try make the edit using windows provided account named administrator
thats all.
Tom has introduced very good technique that we should put our front controller (index.php) and other necessary files in root folder but put those important files outside of this folder. by making these changes we can make our root folder 'public' to serve the internet while we put the important files out from this folder. it greatly improve security
the provided .htaccess file make sure that for every non-existent folder/path or file we query in browser's address bar will go to index.php. the next thing is obvious, we make the index.php to response to specific URI. in other words, any URI is acceptable to the controller as long as we provide their corresponding response
The text was updated successfully, but these errors were encountered: