[PHP] Re: phpeclipse ide question

2005-01-18 Thread Benjamin Edwards
>>> David Robley <[EMAIL PROTECTED]> 01/18/05 01:38pm >>> On Wed, 19 Jan 2005 00:08, Benjamin Edwards wrote: >> >> After the discussion about editors I have installed phpeclipse. It seems >> to work well and looks great. However I am having slight probl

[PHP] phpeclipse ide question

2005-01-18 Thread Benjamin Edwards
After the discussion about editors I have installed phpeclipse. It seems to work well and looks great. However I am having slight problem. Whenever I save a file it seems to try to launch a browser, anyway it comes up with a message saying something like 'unable to launch external browser.

Re: [PHP] Finding first/last occurrence of a substring

2005-01-17 Thread Benjamin Edwards
You need to use regular expresions, I think there is a regex_replace frunction (or something like that). http://etext.lib.virginia.edu/helpsheets/regex.html is a fairly good introduction to regular expresions - learn to love them ;) >>> Vikram Vaswani <[EMAIL PROTECTED]> 01/17/05 03:27pm >>> Hi

[PHP] PHPED PHP IDE (wasRe: [PHP] php editor)

2005-01-17 Thread Benjamin Edwards
Whats the story with this. It seems too good to be true. A fully featured IDE/Debugger released under some sort of free software licence. The site you link to seems indicate that is is free software, it has a sourceforge.net logo at the botton. However nuspere are selling it for £299. what is

Re: [PHP] php editor

2005-01-17 Thread Benjamin Edwards
Or you could get phpeclipse for free which is a php IDE. It all depends on weather you are a web designer or a php developer. If you are both you will still want an IDE (Integrated Development Enviroment) and Probably a debugger (see my previous email about phped). If you can aford to throw y

Re: [PHP] client information

2005-01-11 Thread Benjamin Edwards
A couple of things that mey help. I think phpinfo() will display all the system varables. These varables come from the web server so your web server documentation may help. Another thing that may work is implode ( ',' $_SERVER ) which should give you a (, comma) seperated list of $_SERVER (No

Re: [PHP] 2 dimensional array processing

2005-01-11 Thread Benjamin Edwards
r loop like this: foreach ($insert as $table => $fields) { foreach($fields as $field => $value) { $fieldValuePairs[] = "$field = $value"; } $fieldValueStr = implode(',', $fieldValuePairs); echo "update $table set $fieldValueStr";

[PHP] 2 dimensional array processing

2005-01-11 Thread Benjamin Edwards
If I create the following 2 dimensional associative array:- $insert["tab2"]["fields1"] = "value1"; $insert["tab1"]["fields2"] = "value2"; $insert["tab2"]["fields5"] = "value3"; $insert["tab1"]["fields7"] = "value4"; how do I do 2 levels of nested loop with the first level looping through the fir

[PHP] $_REQUEST

2005-01-10 Thread Benjamin Edwards
Trying to get my head around relationship between/use of $_GET, $_POST and $_REQUEST. It seems to me that $_REQUEST is most useful as if it is used in place of $_POST/$_GET it would be possible to change posting method without changing the code. I am kind of assuming that $_REQUEST is and

[PHP] unpacking $_POST when example[1], example[2] in form.

2005-01-10 Thread Benjamin Edwards
If I have a form with elements like If example was not an array it would be accessed using $_POST["example"] But how do I access the varable if it is an array like above. Ben