Browsers can't open .php file in xampp [closed] - html

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 was stuck here for a couple of hours. I tried opening my .php in htdocs (localhost/users) using Internet Explorer but it redirect me to download my.php file instead of opening it. I've also tried using Chrome and Opera but it shows cannot locate the file (localhost/users ).I've other related questions here but it seems none is fitting to my question.

Don't open a PHP file directly. Navigate to the URL your web server is running on, usually http://localhost, but the port could differ depending on your configuration. If you set the web server (Apache) to run on a port other than 80, use a URL like http://localhost:1234 instead, where 1234 is the port number.

Related

Hơ to autonatically launch a website after accessing a Windows 10 hotspot [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 1 year ago.
Improve this question
I want my laptop to render a webpage (Example: 192.168.1.2:5000/index) to a smartphone after it access my Windows 10 hotspot successfully. What should I do?
If I am understanding your question correctly you want to view your local webpage on smartphone or any other device connected to that same network.
You can do this by following steps:
Open command prompt with Win +R key and type 'cmd' and hit Enter.
Type ipconfig and hit enter in your command prompt.
Find the IPV4 address as marked in the image for you network.
Now on your other device in browser url, type [YOURIPV4ADDRESS:PORTNO]/index.html for eg: 192.168.1.105:5000/index.html
Hope this works, please comment and tag if you are stuck.

Can I host a HTML site on a server without php and database? [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 2 years ago.
Improve this question
At the moment I am working at a HTML page and I want to host it on a server, so I need a database or php for this?
Just put your file(s) in the correct directory. What's your web server ? If nothing is changed:
If you use Apache, your html goes in the directory configured in HttpConf as DocumentRoot.
In case of IIS, put your html in C:\inetpub\wwwroot
You can then access your html in a browser using http://yoururl/yourfile.html
No, you can use something like nginx for that. This is a reverse proxy but it can be used to host a directory.

Why cannot load the js/css file? [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 5 years ago.
Improve this question
I download the project in here
Then I opened the index.html, got these error. I checked, url for files are correct.
Updated: I often faced this problem, but I do not know why. I believe the url for the files are correct. I hope someone can download that project and run and let me know the reason. And how to solve the problem I have. I appreciate, so I know how to fix in the future.
I think angularJS's project do not need the localhost server, right?
I followed this tutorial: https://www.sitepoint.com/creating-crud-app-minutes-angulars-resource/
Try running a localhost server instead of directly loading the html from your file browser on your computer (in terminal run a localhost with http-simple server )see if you still get that error. also double check your code to make sure the directory pointing are correct.

How do I deploy to a Server? [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 have created an App with the AppConKit 3 and tested it locally on my Computer, running from the AppConDeveloper. Now i'd like to deploy it to a tomcat server. How do I do that? I've the Eclipse Java Perspective open.
If you are that far, it's fairly simple.
right click on your _server project and select "Export"-> "Export..."
In the new window, unfold "Web" and select "War" File
(If you have the Java EE perspective open, your can directly select Export->War)
Set the Destination of the War file accordingly (ideally, set the name to Appname.war, not Appname_server.war) and click Finish.
All you have left to do is to deploy this .war to your Java Application Server. If you have a tomcat server, go to http://YourServerIp:8080/manager/html/ (you will need a username & password) and find the section at the bottom of the page that says "WAR file to deploy". Click on Browser and locate the saved war above. Click on Upload.
When your upload is through, you can reach your server at http://YourServerIp:8080/Warfilename .

magento - webserver question [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I've uploaded the Magento installation file to my hosting and I've been told to go to the URL you uploaded it to using you browser, then the installation wizard will run you through the processes.
I uploaded to /home/domain/public_html/magneto
What URL should I use to access it?
Thanks in advance
The URL you should type should be:
http://www.YOUROWNDOMAINNAME.COM/magento if you have your own domain name which is hosted by yourhost.
yourhost.com/magento
If you're running the server locally, you can go to localhost/magento
You can access it using
yourhost.com/magento
Also you can use Magento downloader for installation. Go here to download it
The URL would be www.yourdomain.com/magento
If you want the site to work at www.yourdomain.com without the "/magento" you need to move all the files in the magento folder to the public_html folder BEFORE you run the installer.