Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » [Solved] Eclipse JavaScript, executing php file from wrong location.
[Solved] Eclipse JavaScript, executing php file from wrong location. [message #1821330] Mon, 10 February 2020 22:38
Nik Tes is currently offline Nik TesFriend
Messages: 5
Registered: February 2020
Junior Member
As you may know, for a PHP file to execute, it must be located in the directory specified by the web server.

I use xampp, and have it set to the directory:
C:\xampp\htdocs

As such, the php file is located in:
C:\xampp\htdocs\RobinNixon_JS_2\17

When I right click the file in Eclipse, it displays the following:
http://i.imgur.com/Lgvx8wjl.png

This is what the PHP looks like when I run it from Eclipse
http://i.imgur.com/GPVVTrwl.png

Changing the url at launch time, was able to solve the problem, after right clicking on project file in eclipse → properties → launch configuration box → edit or delete:
http://i.imgur.com/fi4LA1Ml.png

[Updated on: Mon, 10 February 2020 23:55]

Report message to a moderator

Previous Topic:Eclipse Install Java error
Next Topic:Error when trying to install/update JavaFX
Goto Forum:
  


Current Time: Tue Sep 24 22:05:18 GMT 2024

Powered by FUDForum. Page generated in 0.07924 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top