Jump to content

notepad++ console output

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
16 replies to this topic

#1
ged25

ged25

    Learning Programmer

  • Members
  • PipPipPip
  • 51 posts
I'm trying to code php in notepad++. How do I get the compiler result to show up in the console output window ?

#2
WingedPanther

WingedPanther

    A spammer's worst nightmare

  • Moderators
  • 16,831 posts
You'll need to use something like XAMPP to send the result to your browser.
Programming is a branch of mathematics.
My CodeCall Blog | My Personal Blog

#3
ged25

ged25

    Learning Programmer

  • Members
  • PipPipPip
  • 51 posts
I'm afraid I don't get you. I don't want anything sent to the browser. I just want the results (how many errors etc) shown in the console output window in notepad++.

#4
BlaineSch

BlaineSch

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 2,448 posts
I don't think you can. You'd have to open the file yourself inside of a browser either using xampp like WP said or some other hosting. Then run the file from your browser.

#5
semprance

semprance

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
You don't compile PHP, it's interpreted by your webserver.

If you open up your PHP file in a web browser, it will return any errors to the page itself.

#6
James.H

James.H

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 866 posts
The best way to test PHP is to either use a webhost (internet) or local host (xampp like WP said above). The cheaper way is xampp as it's free and it's very easy to set up, just google xampp to create your own local server.

#7
ged25

ged25

    Learning Programmer

  • Members
  • PipPipPip
  • 51 posts
I have WAMP installed on my computer. You can run php from command line.
You can read about it here.
I have the program on my system and I am able to compile a file using command prompt. I just need the output to be piped to notepad++ console output.
This, I guess, is a general question. I need it specifically for php but there should be a way to do this in any language. It looks like I'm missing some setting that I should select.

#8
Sphexa

Sphexa

    Newbie

  • Members
  • PipPip
  • 21 posts
WAMP is a good software.

#9
tossy

tossy

    Programmer

  • Members
  • PipPipPipPipPip
  • 202 posts
I feel only administrator privileges can install the WAMP .....I used; it works good.
Microsoft: "You've got questions. We've got dancing paperclips

#10
articleworlddb

articleworlddb

    Newbie

  • Members
  • Pip
  • 2 posts
Hi,
You need to use XAMP, WAMP servers to see PHP result. You can also get help from the articles on ArticleWorlddb - Submit Quality Articles

kate

#11
Mathew303

Mathew303

    Newbie

  • Members
  • Pip
  • 2 posts
To the OP: have you already found how to do it? (and to everybody else, you don't need a web server to run a php script)

#12
semprance

semprance

    Programmer

  • Members
  • PipPipPipPip
  • 126 posts
How is the PHP script supposed to run without a server on which to run it?