Hello!
I've recently started to use Notepad++ to start writing really crappy websites and I'm really pleased with how good ths application is! Well done those involved! Anyway, back to the problem.
I'm fairly new to html, php and MySQL (using them for about 3 months) but I've managed to created some fuctional websites using thoses tools. I was using Dreamweaver up until its trail expiry date and now moved on to Notepad++. However, when I open and preview these .php pages in FireFox the php script doesn't work, but previewing them in FireFox via Dreamweaver does work. Same file, same folder, but different results depending where you launch FireFox from (doesn't work via Explorer either)
Any idea what's the problem?
Thanks!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2011-07-20
although this post is pretty old, i figure i should give a go at answering it.
disclaimer: i've only been using php for about a month, so there is a good chance that what i say is not correct…
i've never used Dreamweaver, but i would assume that Dreamweaver has a built-in "webserver" (i don't know the proper term) which will take the html, php, and mySQL files, execute them (that is, run the php scripts, mySQL code, etc.), and then output the result to the web browser.
now, assuming what i've said about Dreamweaver is correct (and that is a fairly large assumption on my part), when you take the .php files (which are being created in Notepad++ now) and open them in Firefox, there is no "webserver" in the middle to take your .php file and execute all the php code in that file, and output the "proper" result in the browser.
as far as getting the results you had with Dreamweaver, i would imagine it would take setting up a "webserver" to handle your .php files (which i'm sure you have figured out as well by now). how do you set one of these up? you're guess is as good as mine. /shrug
again, there have been many assumptions made by me above, so take that into consideration…
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello!
I've recently started to use Notepad++ to start writing really crappy websites and I'm really pleased with how good ths application is! Well done those involved! Anyway, back to the problem.
I'm fairly new to html, php and MySQL (using them for about 3 months) but I've managed to created some fuctional websites using thoses tools. I was using Dreamweaver up until its trail expiry date and now moved on to Notepad++. However, when I open and preview these .php pages in FireFox the php script doesn't work, but previewing them in FireFox via Dreamweaver does work. Same file, same folder, but different results depending where you launch FireFox from (doesn't work via Explorer either)
Any idea what's the problem?
Thanks!
although this post is pretty old, i figure i should give a go at answering it.
disclaimer: i've only been using php for about a month, so there is a good chance that what i say is not correct…
i've never used Dreamweaver, but i would assume that Dreamweaver has a built-in "webserver" (i don't know the proper term) which will take the html, php, and mySQL files, execute them (that is, run the php scripts, mySQL code, etc.), and then output the result to the web browser.
now, assuming what i've said about Dreamweaver is correct (and that is a fairly large assumption on my part), when you take the .php files (which are being created in Notepad++ now) and open them in Firefox, there is no "webserver" in the middle to take your .php file and execute all the php code in that file, and output the "proper" result in the browser.
as far as getting the results you had with Dreamweaver, i would imagine it would take setting up a "webserver" to handle your .php files (which i'm sure you have figured out as well by now). how do you set one of these up? you're guess is as good as mine. /shrug
again, there have been many assumptions made by me above, so take that into consideration…
The assumptions are correct, and using the PHP Automation plugin will bring the needed webserver in.
CChris