I am currently a student, and trying to learn PHP. This looks like a great IDE, first off, and thank you for the free software!
I'm having trouble executing my php code. Now I could be way out in left field with this one, I'm not sure, but I thought the PHP Developer would execute my php code locally on my machine, just as a web server would execute my php code.
This way, I thought I could edit/test/improve my code locally on my computer without having to upload files to webspace to test them.
Is this not the case? Must I run my PHP code on a webserver? I do not have Apache on my computer, is that required?
currently I have my "Local Web Server" set to C:\Program Files\Dev-php2\php\testing, and my "External Web Server" set to http://localhost.
One more quiick developing question I just thought of, do you guys find it better to develop your websites in html (or at least a skeleton html site) and then add your php, or is it best to create both the html and php coding concurrently?
Thank you for your time and efforts!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
you dont need a webserver, devphp has a builtin server. you must set the localpath (seems correct) and the port (example:8080) in the options dialog. also set the parser path to your php-cgi.exe (version 5) or php.exe (version4 of php) then you should be able to see in the local preview the output from the current file(press F9). The external Web server is for a real server in the internet. you dont need set this path for the internal preview.
about developing: both ways are possible and depend from the developer :)
if you need a dev-php with included php5 then you should download the full-package.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
important: you should not set the directory with your files in the same path with devphp2. If you deinstall the program, this path will be deleted without question. and make always copies form your work!!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Now, whenever I go to internal preview, down at the bottom, appears to act like a status bar, it says "Connecting to localhost" for a second or two, and then I get an error message that simply reads: "The connection was refused when attempting to contact localhost:8080". Any ideas how I could go about fixing this?
Thanks again!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
OS : XP (just windows firewall enabled)
Port : 8080
localseverpath : C:\Program Files\Dev-php2\php (I'll put my php files in another folder once i get it all working)
File attempting to access: ex5_PHP.php (located in the localserverpath)
Dev-PHP 2.0.11
preview with mozilla (I downloaded Mozilla Control 1.7.1 and successfully installed through Dev-PHP using the mozctlx.dll file)
Interesting note : if I attempt to change the localserverpath, I can type it in, or browse to a differnt path, but when I hit the button 'OK', it waits for about 4 to 5 seconds and I get a Dev-PHP IDE error, saying "Terminate Thread Timeout".
So, apparantly there is some thread that is in deadlock?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
kill all devphp.exe processes
kill all php.exe processes
set the parserpath in the options to "C:\Program Files\Dev-php2\php\php-cgi.exe"
this must be php-cgi.exe not php.exe nor php-win.exe
set the php.ini to C:\Program Files\Dev-php2\php\php.ini
if all this has no effect please try to install Dev-php to C:\Devphp\ !! without blanks in the path !! May be there is a bug with a path contain blanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
seems to be a bug from devphp. i try to fix for next version. for this moment the fix for you is to move the php directory from dev-php directory to a path without blanks and then change the paths from php-cgi.exe and php.ini in the optionsdialog.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello all,
I am currently a student, and trying to learn PHP. This looks like a great IDE, first off, and thank you for the free software!
I'm having trouble executing my php code. Now I could be way out in left field with this one, I'm not sure, but I thought the PHP Developer would execute my php code locally on my machine, just as a web server would execute my php code.
This way, I thought I could edit/test/improve my code locally on my computer without having to upload files to webspace to test them.
Is this not the case? Must I run my PHP code on a webserver? I do not have Apache on my computer, is that required?
currently I have my "Local Web Server" set to C:\Program Files\Dev-php2\php\testing, and my "External Web Server" set to http://localhost.
One more quiick developing question I just thought of, do you guys find it better to develop your websites in html (or at least a skeleton html site) and then add your php, or is it best to create both the html and php coding concurrently?
Thank you for your time and efforts!!
hi
you dont need a webserver, devphp has a builtin server. you must set the localpath (seems correct) and the port (example:8080) in the options dialog. also set the parser path to your php-cgi.exe (version 5) or php.exe (version4 of php) then you should be able to see in the local preview the output from the current file(press F9). The external Web server is for a real server in the internet. you dont need set this path for the internal preview.
about developing: both ways are possible and depend from the developer :)
if you need a dev-php with included php5 then you should download the full-package.
important: you should not set the directory with your files in the same path with devphp2. If you deinstall the program, this path will be deleted without question. and make always copies form your work!!
Thank you ursmaeder!
It's not working yet, but progress has been made.
Now, whenever I go to internal preview, down at the bottom, appears to act like a status bar, it says "Connecting to localhost" for a second or two, and then I get an error message that simply reads: "The connection was refused when attempting to contact localhost:8080". Any ideas how I could go about fixing this?
Thanks again!
please more informations about system (XP,win2k, SP?) local installed firewalls?
the file to preview must be in the local webserver path or in a directory included.
set the port to:?
localserverpath:?
which file you want preview(path):?
version of devphp:?
preview with mozilla or IE:?
System info:
OS : XP (just windows firewall enabled)
Port : 8080
localseverpath : C:\Program Files\Dev-php2\php (I'll put my php files in another folder once i get it all working)
File attempting to access: ex5_PHP.php (located in the localserverpath)
Dev-PHP 2.0.11
preview with mozilla (I downloaded Mozilla Control 1.7.1 and successfully installed through Dev-PHP using the mozctlx.dll file)
Interesting note : if I attempt to change the localserverpath, I can type it in, or browse to a differnt path, but when I hit the button 'OK', it waits for about 4 to 5 seconds and I get a Dev-PHP IDE error, saying "Terminate Thread Timeout".
So, apparantly there is some thread that is in deadlock?
Just in case you wish to see the php I am attempting to execute, it can be found at the followint url:
http://www.cs.pitt.edu/~ramirez/cs1520/php/ex5
kill all devphp.exe processes
kill all php.exe processes
set the parserpath in the options to "C:\Program Files\Dev-php2\php\php-cgi.exe"
this must be php-cgi.exe not php.exe nor php-win.exe
set the php.ini to C:\Program Files\Dev-php2\php\php.ini
if all this has no effect please try to install Dev-php to C:\Devphp\ !! without blanks in the path !! May be there is a bug with a path contain blanks.
oops found !!!!!!!!
you need to have php in filepath without blanks!!
seems to be a bug from devphp. i try to fix for next version. for this moment the fix for you is to move the php directory from dev-php directory to a path without blanks and then change the paths from php-cgi.exe and php.ini in the optionsdialog.
i have fixed the problem now. source is in the subversion-server an problem should not more be in future versions.