|
|
 |
|
|
Working with PhpED questions Q&A
1. FAQ: I don't see parameters defined in URL, what's wrong ?
You probably forgot that when register_globals setting is off php does not add neither HTTP/GET nor HTTP/POST parameters to the GLOBAL scope. So if you run
myscript.php?myvar1=myval1&myvar2=myval2
you won't see neither $myvar1 nor $myvar2. If the setting is on the variables will be added automatically and you will see them with their proper values. But the setting is off by default.
On the other hand, it does not mean that you only have to set register_globals = on. Setting should be kept off and php community adviced to keep it off because of security reasons. To access the parameters you have to use superglobal arrays such as $_GET[] and $_POST[], for example
$_GET['myvar1'].
See PHP Manual: Using Register Globals for further details.
2. FAQ: How to work with PHP Documentor
Create a project, open project properties dialog, switch to Custom tab,
set phpdoc_target_dir setting to point to a directory where you need your documentation to be placed in.
Right-click on the project in workspace window and select PHP Documentor.
See php documentor site for further details on how to form your php code to get proper documentation.
3. FAQ: I don't see parameters posted to my script, what's wrong ?
I have a form like below
<form action="myscript.php" method="post">
<input type="hidden" name="submitted" value="true" />
<input type="submit" name="post" value=" POST " />
</form>
and whenever I debug this script in phped IDE I see $submitted undefined while outside of the IDE everything works fine
It is the same problem as described here.
PhpED IDE comes with php-4.3.x and register_globals is OFF by default.
See PHP Manual: Using Register Globals for further details on why this setting is turned OFF and should be kept OFF.
4. FAQ: I get "Call to undefined function, ....". What's up?
I am trying to use xxxx functions in phpEd. However, when debugging, I get an error message saying: \"Call to undefined function, ....\".
"."It says in the manual that phpEd is using version 4.3.6 of php, so the xxx functionality should be there - right?
PhpED comes with many php extensions but most of them are not loaded by default. If you need XXX functions, please first find what particular extension they belong to, then make sure the extension is loaded in php.ini via extension= statement. Don't forget to make sure you work with proper php.ini file. To do it just run phpinfo() and see full file name of php.ini in the topmost header.
5. FAQ: File is marked as "modified" without any changes, why?
It may happen if "Optimal Fill" checkbox is checked and/or "Keep trailing blanks" is not checked. See Tools->Settings->Editor settings.
When Optimal Fill checkbox is checked, editor _modifies_ the file for you to get all indented spaces optimally filled with tabs (if Use Tab Character is enabled) or with spaces (if Tabs are not enabled).
When "Keep trailing blanks" is not checked, editor does also _modify_ the file for you when removes these trailing blanks.
Both actions are performed by the editor on the line you were in when you move cursor to another line.
6. I could not edit chinese characters correctly in phped editor. Its rendering looks like half a char is hidden, another is shown.
Chinese characters are represented with so-called DOUBLE WIDTH cells. To get them rendered correctly please open Tools->Settings->Editor->Appearance, uncheck "Monospaced fonts" checkbox, select whatsoever character set suitable for your chinese characters, for example GB2312 or CHINESE BIG5, then select appropriate font capable to show Chinese, such as MingLiU.

You may also want to take alook at this TIP: Chinese, Japanese and other "wide" characters.
|
|
|  |
|