I have asked several questions about the eclipse (epp3) and notepad ++ tools. I used dw to develop asp. recently I want to learn php. The php development environment has been configured.
I plan to use these two tools, but some of them are not quite clear.
1. eclipse's workspace path problem. The DOCUMENT_ROOT directory of my php is the d:/www folder, which defines the eclipse workspace under the www folder, and then writes the code to output it.
However, if I create a new workspace and do not want to put the path under www and put it elsewhere, such as d:/aa or e:/bb, what should I configure for normal browsing ??
2. I don't understand how to use notepad ++. now I just want to write a piece of code and then run it. what should I do?
For example, I want to write a php code segment and view it in the browser.
Open notepad ++ ?? Language selection php (this one )? Then write the code -- and then run it? I found it on the Internet and wrote some commands. Do I have to write different commands in different languages?
3. do you use UTF-8 when developing php? I used to use gb when I was doing asp, and I felt that I was not used to looking at the UTF-8...
Thanks.
Reply to discussion (solution)
1. configure the virtual host and search for "apache configure virtual host"
2. notepad ++ is just an IDE. you can run it in your browser.
3. if you want to use generic functions, use UTF-8. If your website only supports Chinese and English, use gbk.
1. configure the virtual host and search for "apache configure virtual host"
2. notepad ++ is just an IDE. you can run it in your browser.
3. if you want to use generic functions, use UTF-8. If your website only supports Chinese and English, use gbk.
Thank you very much,
1. is it possible to configure a virtual host as long as the workspace is not in the root directory? How many configurations are available? For example, e:/aa, e:/bb, f:/ee and so on, I will add three virtual hosts in the httpd-vhost.conf file. That's what it means.
2. I don't understand this problem. I just want notepad ++ to create a file, write code, and run it in a browser like dw, but I don't understand it. For example, if I want to run a piece of php code, the process is: open the software (there is a new 0 interface)-select the language php-and then click Run to let me select a program, after I select a browser, I directly run the browser ....
Can you tell me how to do this? Or what should I look? Please.
Thank you!
To configure a VM, you need to configure the virtual domain name.
It is easier to configure virtual directories.
1. yes
2. there is no running button for notepad ++ by default. you just need to use it to edit the code and run php in a browser.
Notepad ++ can install a plug-in nppexec, add the php runtime module, and set the shortcut key to run on notepad ++.
Notepad ++ is too backward. No project management
1. yes
2. there is no running button for notepad ++ by default. you just need to use it to edit the code and run php in a browser.
Thank you.
Can I only save the file to the root directory (that is, the directory that can be run) after writing the code, and then run it on the browser? Is there a function similar to dw that can run directly and manage websites, that is, to see other files on the entire website?
1,
Can I only save the file to the root directory (that is, the directory that can be run) after writing the code, and then run it on the browser?
The default notepad ++ is like this, but you don't know how to install the plug-in.
2. is there a function similar to dw that can run directly and manage websites, that is, to see other files on the entire website?
I don't know. do you have epp? zend studio doesn't work.