NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
New user with a bunch of questions


Joined: 21 Mar 2007
Posts: 18
Reply with quote
I’ve just downloaded the program yesterday and played with it a lot, and so far it’s a great editor. Coming from HTML-Kit that basically only color-codes (fairly well, although it gets confused with variables within quotes), it’s very nice to have proper editor features like code hints with user-created classes/functions/variables (a huge feature!), indicators for matching brackets, a robust color-coder, etc. Whether or not it’s worth paying money for partially depends on the answers to a few questions/problems/comments I have while evaluating it:

Questions:

  • I see that there’s a “phpdoc for PhpED” entry in the add/remove programs list. Does that mean it’s a special version somehow modified specifically for PhpED? Can phpdoc be swapped out for a newer version? If so, what’s the procedure for this? The version that comes with PhpED isn’t handling inline {@link} with PHP standard functions very well (it displays the URL instead of the string I tell it to display).
  • Does the DB Client connect to a MySQL DB on a shared hosting account? If so, what settings do I need to change?
  • Why does the Smart Upload get confused about which files need to be uploaded? I can do a full upload, then a couple minutes later without modifying any code I’ll do a Smart Upload and it’ll find 5 files to upload.
  • Is there a setting for an FTP project to automatically upload when I save locally?
  • Can settings be easily saved as a file so I can move the settings to another computer? I see another thread on here that mentions registry backups and such, which is not ideal.

I’m wording the following items as comments but please treat these as questions if I somehow missed an existing feature in v4.6.3—I’d love it if any of these features already exist. If somebody in the know can confirm that they do not exist, I’ll repost these as feature suggestions in the suggestions group:

  • It would be nice if within Tools -> Settings -> Editor, if there were buttons to reset settings within each window. For instance: a reset button just in the Editor Settings area, another reset button in the Syntax Colors area, etc.
  • Code folding, although I hear it’s coming in v.5
  • I want to change the Workspace font. I’ve changed the Editor font to make it bigger (17” laptop screen @ 1920x1200, 2 feet away = lots of squinting), but I can’t do that with the Workspace.
  • Provide more customization for auto-close brackets and auto-close quotes, or at least make them act the same. Right now, if I select text and press quote it puts quotes around the selected text, while if I do the same with parentheses it erases the selected text and replaces it with parentheses. It would be nice if both acted the same (keep selected text and put quotes/parentheses around it) or if there were further sub-options on how they should behave. Also, if you put a quote in front of existing code it knows not to immediately close it, while with parentheses it puts an immediate close parenthesis regardless of any trailing code. Once again, it would be nice if the parentheses behavior were brought in line with quote behavior. As it is now auto-close brackets is too frustrating so I turn it off, but would love to be able to turn it on if the behavior were different/configurable.
  • Tab behavior with existing code is a bit strange. Example: say I have a line of code indented 1 tab, and above it is a block of code indented 3 tabs, and I want to align the 1-tab line of code with the 3-tab indent of code above it. If I move the cursor to the beginning of the line and press tab it moves the cursor 3 tabs, which makes the code that already had 1 tab indented too much (4 tabs). The solution is easy: just put the cursor at the beginning of the code, not the beginning of the line, and it will work, but it still doesn’t seem right the way it does if you have the cursor at the beginning of the line.
  • More consistent shortcut keys. For instance: if Find is Ctrl-F then maybe Search in Files should be Ctrl-Shift-F. If Replace is Ctrl-R then Replace in Files should be Ctrl-Shift-R.

I could’ve sworn there were more, but I worked until the wee hours of the morning last night, and didn’t have the energy to write down all my comments. Maybe I’ll add more later on if I remember. Thanks for any help you can give me on these.
View user's profileFind all posts by MentatYPSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8342
Reply with quote
Quote:
I see that there’s a “phpdoc for PhpED” entry in the add/remove programs list. Does that mean it’s a special version somehow modified specifically for PhpED? Can phpdoc be swapped out for a newer version? If so, what’s the procedure for this? The version that comes with PhpED isn’t handling inline {@link} with PHP standard functions very well (it displays the URL instead of the string I tell it to display).

Feel free to override phpDocumentor installed in
C:\Program Files\nusphere\phped\phpDocumentor
with a new version.


Quote:
Does the DB Client connect to a MySQL DB on a shared hosting account? If so, what settings do I need to change?

it does connect, but
a) you need to make sure that libmysql.dll installed with phped (C:\Program Files\nusphere\phped) or the one that might be already installed in your windows\system32 directory matches mysql version. What comes with PhpED is v3.23.
There are many posts on the forum dedicated to the update procedure.
b) you need to make mysql accessible. By default mysql daemon opens TCP/3306 port bound to localhost. In other words it accepts only local connections (it means that locally running php will connect while the one running on any other host won't). It's done for security reasons (to avoid connections from outside). If still you need to connect to it from the IDE, there two ways:
1. have mysql bound to 0.0.0.0 (it means listen on all addresses) and update firewall rules to permit incoming connections on TCP/3306 from your workstation.
2. setup ssh tunnel using ssh tools. With this tool you will forward local connections on TCP/3306 (on your workstation machine) to the server's TCP/3306 without any changes in server configuration settings related to security. For example with openssh version the command line will be
ssh -L localhost:3306:localhost:3306 sshaccountname@yourhostaddress
c) settings in the IDE depend on the way you connect to mysql. In the first case you will need to use your server host name (or IP adress), in latter one you need to use localhost.
d) additional SQL grants might be required for mysql. By default mysql distinguishes pair of username/hostname. For example it treats root connecting from localhost as different user than the same root connected from another location.


Quote:
Why does the Smart Upload get confused about which files need to be uploaded? I can do a full upload, then a couple minutes later without modifying any code I’ll do a Smart Upload and it’ll find 5 files to upload.

Check if your host time matches your workstation time or appripriate time offset is configured in the DB account settings.

Quote:
Is there a setting for an FTP project to automatically upload when I save locally?

There is a drop down on the toolbar that has Upload File item. You may customize toolbar and put it as a button. Also you may update shortcut for this as you wish.
When you click "file upload" it also saves file locally.

Quote:
Can settings be easily saved as a file so I can move the settings to another computer? I see another thread on here that mentions registry backups and such, which is not ideal.

Some settings are in the registry, some are in couple of cfg files in phped's directory.

regarding the remaining suggestions, please post them to the 'feature requests for phped' form.

_________________
The PHP IDE team
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 21 Mar 2007
Posts: 18
Reply with quote
Thanks for all the answers. I'll wait to repost those suggestions to the suggestions board--I might have more or change my mind in the next few days.

I'm still having issues with remote MySQL, so I'll repost that as a separate post.
View user's profileFind all posts by MentatYPSend private message


Joined: 01 Aug 2007
Posts: 1
Reply with quote
Quote:
it does connect, but
a) you need to make sure that libmysql.dll installed with phped (C:\Program Files\nusphere\phped) or the one that might be already installed in your windows\system32 directory matches mysql version. What comes with PhpED is v3.23.
There are many posts on the forum dedicated to the update procedure.
b) you need to make mysql accessible. By default mysql daemon opens TCP/3306 port bound to localhost. In other words it accepts only local connections (it means that locally running php will connect while the one running on any other host won't). It's done for security reasons (to avoid connections from outside). If still you need to connect to it from the IDE, there two ways:
1. have mysql bound to 0.0.0.0 (it means listen on all addresses) and update firewall rules to permit incoming connections on TCP/3306 from your workstation.
2. setup ssh tunnel using ssh tools. With this tool you will forward local connections on TCP/3306 (on your workstation machine) to the server's TCP/3306 without any changes in server configuration settings related to security. For example with openssh version the command line will be
ssh -L localhost:3306:localhost:3306 sshaccountname@yourhostaddress
c) settings in the IDE depend on the way you connect to mysql. In the first case you will need to use your server host name (or IP adress), in latter one you need to use localhost.
d) additional SQL grants might be required for mysql. By default mysql distinguishes pair of username/hostname. For example it treats root connecting from localhost as different user than the same root connected from another location.


I'd personally like to see more details on this subject. I am a new user with the trial version and have spent half a day trying to connect to aMySQL server of a shared host. I'm sure this is a great software; but if it's difficult to setup, then I need to move to another.

Thanks
View user's profileFind all posts by mrbafflSend private message
New user with a bunch of questions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic