Xampp htdocs folder doesn't reconize when i change files - php

I don't know if this has been already asked, i searched almost everywhere i can think of, but i didn't find a solution.
My problem consists in:
I start xampp panel(which is saved in E disk and not the main one), i start Apache and MySQL, than i have saved in a folder called "site"(inside htdocs)some php files with more folders like: css, javas, ect.
What is happening is that every time i modify any file that is inside a folder in the folder "site", the localhost/site, doesn't recognize the change, but once i change the folder name ("site"), into something else and access it again (localhost/anothername), the exact file/files i changed are recognized and work.
If from here i try to change another file that i didn't modify before i have to rechange the name again and so on.
Thank you very much!

Related

I have done my codes but the page not working

my web that I have coded not uploaded as I expected it show me the directory instead of my page.
when you work in Zamp software, you create a folder in the htdocs folder and then drop your projects in it. For example, if the folder name in the htdocs folder is test and the project name is one, you should go to localhost / test / one. php When you go to this path, the project runs directly. There is another way that you went this way. Write localhost / index, which you opened correctly. Now look for the name of your project in this section and click on it. But if there is no project or the project does not load, there is something wrong with your workplace. Example of code errors and your work path I hope this article has helped you

Problem with moving opencart website to new domain/server

Hi i moved my opencart website to new domain and theres huge problem i cant seem to figure out, i cant see any images, and i cant see translations on a lot of text.
Website is using template.
I did all the steps correctly:
export database
import to new database
changed configuration in config.php and admin/confing.php to new database
uploaded files to new server
Site is running on new domain but i cant see any images, and i cant see translations on a lot of text.
This is new domain: https://ecogreenbags.eu/
This is old one so you can see how it should look like: https://green-bags.sk/
Database is obviously running because all products are there, i can enter admininstration, all orders are there and everything, just not images and that text. I doublechecked if there is uploaded the language folders with that translations, everything is there, FTP is EXACT CLONE of old one except changed config.php files
I have no idea where is the problem. Any ideas ? Thanks a lot
Please confirm to recheck following two variable value is correct in both config file.
\config.php and \admin\config.php
define('DIR_IMAGE', '/home/example/public_html/opencart/image/');
define('DIR_LANGUAGE', '/home/example/public_html/opencart/catalog/language/');
you may double check your correct document root path in server.
Get correct doucment root path by echo following in config file.
echo $_SERVER["DOCUMENT_ROOT"];
Double check your config.php files both in root of site and folder admin. Its most likely to be a typo in the config.php in the absolute path to images.
May also be worth checking the file permissions\ownership of the image folder\files.

Netbeans and codeigniter

For some reason when I create a project in netbeans and go to run the project it also loads the xxamp index file and not the project index file that is apart of the codeigniter installation.
http://screencast.com/t/qOSH80wPgvf
Edit:
Here is my file tree I have right now set up for my project. Why Netbeans creates an important files folder I have no idea for my CI project. I have edited the index file to have the application and system variable to both have the ../system or applicaton as its value. I have changed the Web Root inside the project properties to have a value of public_html and I have also changed the value of the Index File field to say index.php.
After doing this and running the project I would expect to get the default Welcome to Codeigniter page and I don't. I am receiving a message that shows the following. Any ideas on why this is?
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster.
Error 404
localhost
Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.16
Projects
- MyFirstProject
- Source Files
- application
- public_html
- assets
index.php
- system
- Test Files
- Important Files
- Include Path
I've tried doing some additional research on the topic and have yet to come up with a solution.
Edit 2:
Any ideas from anyone?
Your problem is likely related to your choice of folder layout. Which I assume you do, for "security reasons". That said, NetBeans isn't a server. Its an IDE, so you can't manipulate it the same way you would the server.
Most servers by default define your "root" folder as "public_html" or "www" as far as where it looks by default to serve files for public consumption. Through the use of PHP you can tell the index.php that comes with CodeIgniter to look up one directory outside of the defined root and have it read the file(s) accordingly.
However, to setup a project in netbeans and have all files and folder accounted for accordingly you need to tell it that all your files start in whatever folder they reside. So it can load all the files and read from them respectively. This in essence and in respect to server logic is telling it that the folder that houses
application
public_html
system
is the define root path. So inadvertantly by breaking out of the design of codeigniter and placing the core files outside of what would be your defined root on the server is breaking your project. There is not an index.php depicted in your listing above at the same level that those folders are in. If there is, its the index.php for xxamp that keeps loading for you by default.
What you need to do is stop trying to implement your "security measures" and put them in the right order. Or.. not include that folder in your project telling it the one with assets and index.php is the root path. If netbeans is smart enough it will find the files and folders outside like the server will.
Right click on your project and go to properties. Make sure that in the run configuration the URL is correct and the index file is properly set up and matches your directory in xxamp.
after downloading codeigniter open index.php file and there set your path correctly to your
application folder because i think you putted your index.php inside public_html folder so
the path which is set by default in index.php is not working and can not find application folder, try to fix it and it will work fine your problem is not with netbeans.

Drupal move from subdirectory

I had a drupal site completely working at www.example.com/example. I copied the files to the root folder in attempt to simply have the site held at www.example.com yet now it is asking for a new install and I have no idea why, I expected to have to make some changes, but not to be confronted with the request of a new install. I have heard it may be something to do with changing the base url but I'm not sure. Can someone please help me?
Thanks heaps
Assuming your site is on a linux based hosting, most probably your problem is divided into two parts
Problem 1) The settings file "sites/default/settings.php" is read only so when you moved the site to another directory it most probably didn't move this file because it is read only, and that was pointed out by another person
Problem 2) The second problem may be the result of enabling clean urls and not moving .htaccess file; when you moved the site to another directory you may have left out the ".htaccess". Check to see if it is moved to the new directory.
Another possibility is that you have a modified .htaccess to make the subdirectory work, in that case you may want to get a fresh ".htaccess" file from here :
http://code.google.com/p/drupalgooglecode/source/browse/trunk/.htaccess

DreamWeaver with PHP

Greetings ! I have a project that has php index.php file in /htdocs. Also include files like dboperaitons.php, config.php and css file also in /htdocs/themes. Now I set up New site in dreamweaver opened the index.php file, it is running fine , but when I click on properties and ry to add or modify css property from dreamweaver, it gives me error saying unable to open file http://localhost/themes/en.css file because it is not found in the hard disk.
1. Why is it searching for file as http://localhost instead of c:/xampp/themes.
2. It says en.css file is remote file and cannot be edited.
How can I resolve this. Please guide.
you can fix this problem by browsing the file manually from its location.
When you define a site in Dreamweaver you need to make sure you set up both the local and remote locations in order for it to know where files are. It sounds like you have not defined the local site folders properly and DW is confused about where things go.

Categories