[PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Tim Dunphy
a guess? Thanks Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Tim Dunphy
-deleteObject(Array) #5 {main} thrown in /var/www/awssdk/services/s3.class.php on line 548 I hope that clarifies my situation a bit. Sorry for not providing that sooner! Thanks Tim On Sun, Sep 29, 2013 at 1:09 PM, Aziz Saleh azizsa...@gmail.com wrote: Hi Tim, Is the call working? Does it actually

Re: [PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Tim Dunphy
/var/www/awssdk/delete_bucket.php(72): AmazonS3-deleteObject(Array) #5 {main} thrown in /var/www/awssdk/services/s3.class.php on line 548 Not sure if I'm getting closer here... but definitely appreciate any advice anyone may have. Thanks! Tim On Sun, Sep 29, 2013 at 5:04 PM, Aziz Saleh azizsa

[PHP] Re: Apache

2013-09-23 Thread Tim Streater
On 23 Sep 2013 at 11:37, Domain nikha.org m...@nikha.org wrote: The problem is the weak PHP upload mechanism! I'd have said the problem is weak metadata provision - overloading the filename for other purposes. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net

[PHP] Re: Friday's Question

2013-09-20 Thread Tim Streater
slightly better on the pad (covered in butterfly pix) than it would on the pine desktop. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Friday's Question

2013-09-20 Thread Tim Streater
most of these items are except the toothpaste. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: exec and system do not work

2013-08-26 Thread Tim Streater
/orders.txt, $ret); echo system(chmod 766 /var/www/orders.txt, $ret); echo 'file2br /'; echo file_exists(/var/www/orders.txt); } If you would point out my syntax errors, I will fix them. See above. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

[PHP] Re: PHP vs JAVA

2013-08-21 Thread Tim Streater
enough. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: how to see all sessions sets in server

2013-08-04 Thread Tim Streater
work correctly on Safari and iOS Safari. onbeforeunload works fine in Safari; I use it all the time. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Foreach and mydql_query problem

2013-07-22 Thread Tim Streater
clause. Seems to me you should make sure your WHERE is correct. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: htaccess

2013-07-08 Thread Tim Streater
, whether they contain any PHP code or not. Is that what you want? If I have an html file that contains some PHP code, I tend to use .phtml as suffix and so my AddType looks like: AddType application/x-httpd-php .php .phtml -- Cheers -- Tim -- PHP General Mailing List (http

[PHP] mongo usage

2013-07-06 Thread Tim Dunphy
', 'zip' = '10010',); var_dump($address); echo 'br /'; $addresses-insert($address); ? /body /html I'd appreciate any advice you might have. Thanks, Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
I'd appreciate any advice you might have. Thanks, Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
; Thanks again! On Sat, Jul 6, 2013 at 2:57 PM, Jonathan Sundquist jsundqu...@gmail.comwrote: You commented out the setting of yhe addresses variable On Jul 6, 2013 1:42 PM, Tim Dunphy bluethu...@gmail.com wrote: Hey all, I'm trying to pick up some basic use of MongoDB using PHP. I seem

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
| You seem to spell the variable differently (1 'd' vs. 2 'd's)? Thanks! Fixed the type-o. Still no change. $connection = new Mongo(); $db = $connection-jfdb; //$collection = $db-addresses; $adresses = $connection-jfdb-addresses; Any other suggestions? Appreciated. Tim

[PHP] Re: mongo usage

2013-07-06 Thread Tim Streater
On 06 Jul 2013 at 23:27, Tim Dunphy bluethu...@gmail.com wrote: | You seem to spell the variable differently (1 'd' vs. 2 'd's)? Thanks! Fixed the type-o. Still no change. $connection = new Mongo(); $db = $connection-jfdb; //$collection = $db-addresses; $adresses

Re: [PHP] Re: mongo usage

2013-07-06 Thread Tim Dunphy
Thanks. Sorry to bug you guys with this. That did it. sigh On Sat, Jul 6, 2013 at 6:49 PM, Tim Streater t...@clothears.org.uk wrote: On 06 Jul 2013 at 23:27, Tim Dunphy bluethu...@gmail.com wrote: | You seem to spell the variable differently (1 'd' vs. 2 'd's)? Thanks! Fixed the type-o

[PHP] Re: One more newbie question. About foreach..

2013-06-23 Thread Tim Streater
with the results of the mysql_query? Nothing? Also, why do you need the for loop anyway? What is it supposed to do? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] limit access to php page

2013-05-29 Thread Tim Dunphy
of redirect.php into your browser you can hit the page regardless of the login process on index.php. How can I limit redirect.php so that it can only be reached once you login via the index page? Thank you! Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

Re: [PHP] iterate javascript verification

2013-05-27 Thread Tim Dunphy
): if(element.value.length == 0){ // handle 0 length value } I do agree with Ken that you SHOULD NOT perform JS validation. It is preferable to use php or the new HTML5 features. JS can be turned-off by the user which will make JS validation impossible. On Fri, May 24, 2013 at 8:07 PM, Tim Dunphy

Re: [PHP] iterate javascript verification

2013-05-27 Thread Tim Dunphy
Sounds good! Thanks Ken. Very clear now. Tim Sent from my iPhone On May 27, 2013, at 1:57 PM, Ken Robinson kenrb...@rbnsn.com wrote: When you do validation of the form in the same script that shows the form, the normal way to do this is ?php if (isset($_POST['submit

[PHP] iterate javascript verification

2013-05-24 Thread Tim Dunphy
; ? /body /html Thanks, Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

Re: [PHP] Question about session_id() and session_start()

2013-05-21 Thread Tim Schofield
On 20/05/2013, Maciek Sokolewicz maciek.sokolew...@gmail.com wrote: On 20-5-2013 22:14, Tim Schofield wrote: Matijn There are well over half a million lines of source code in PHP. It seems a little unhelpful to tell someone to go and read half a million lines of C when you could just tell

Re: [PHP] Question about session_id() and session_start()

2013-05-20 Thread Tim Schofield
Matijn There are well over half a million lines of source code in PHP. It seems a little unhelpful to tell someone to go and read half a million lines of C when you could just tell them the answer? Thanks Tim Course View Towers, Plot 21 Yusuf Lule Road, Kampala T +256 (0) 312 314 418 M +256 (0

[PHP] Re: generate onfly PDF

2013-05-05 Thread Tim Behrendsen
should say, I've used the Linux version. It looks like there's a Windows version, but I have no experience with that, if that's what you need. Tim Rafnewsraf.n...@gmail.com wrote: Hi, Is there a solution to generate onfly PDF from HTML page, and from data user typed in form (let's say like

[PHP] Re: rather a HTML Q; however 2-FRAME

2013-03-15 Thread Tim Streater
unlikely in any case that any feature will ever be removed from a browser. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Undefined index....

2013-03-15 Thread Tim Streater
that you've omitted. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Populate input from another form

2013-03-08 Thread Tim Streater
in this case. Hmm, although it looks like you want a frame to receive the new page rather than replace the page. You'd probably need JavaScript to do that. Do I need to use jquery? Avoid, IMO. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Open form in new window

2013-03-04 Thread Tim Streater
://www.clothears.org.uk -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Open form in new window

2013-03-04 Thread Tim Streater
On 04 Mar 2013 at 20:17, Paul M Foster pa...@quillandmouse.com wrote: On Mon, Mar 04, 2013 at 05:39:00PM +, Tim Streater wrote: Personally I never submit forms. I use ajax to communicate with PHP scripts and do something with the data that is returned by the script. You can see a simple

[PHP] Re: Strip emails from a document

2013-01-26 Thread Tim Streater
@example.com which I understand is also valid. You are welcome to it if you wish. Cheers, -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Boolean type forced on string assignment inside if statement

2013-01-02 Thread Tim Streater
/language.operators.precedence.php You may want to use brackets OP may want to avoid doing something unusual which may confuse a casual reader. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Strange string stuff -- maybe everything is ending...

2012-12-22 Thread Tim Streater
the string using square array brackets, as in $str[42]. Think of a string as an array of characters for this purpose. The functions substr() and substr_replace() can be used when you want to extract or replace more than 1 character. -- Cheers -- Tim -- PHP General Mailing List (http

[PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Tim Streater
on 280), not 100, and to make judgements accordingly. Equally, I have certain expectations when I see a switch statement; it trying hard to look like if-elseif-etc is not one of them. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread Tim Streater
making life easy for those who follow. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Switch - Case Statement Questions

2012-11-16 Thread Tim Streater
. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: appreciation

2012-10-12 Thread Tim Streater
want. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: limiting

2012-10-10 Thread Tim Streater
code in order to achieve that. The one time I *had* to use Pascal as that was the only option, I simply put a 999: label at the end of the function and did goto 999 wherever I wanted to do a return. Simples! -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: limiting

2012-10-10 Thread Tim Streater
On 10 Oct 2012 at 19:53, David McGlone da...@dmcentral.net wrote: On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: On 10 Oct 2012 at 19:17, David McGlone da...@dmcentral.net wrote: BTW - in any of your other computer languages didn't they utilize a 'return' statement? PHP's

[PHP] Re: limiting

2012-10-09 Thread Tim Streater
that must say something about the quality of the on-line documentation. Further, it is written in a straightforward way, not trying to be clever (unlike some languages I could mention), so I can recommend it. It's available in languages other than English, too. -- Cheers -- Tim -- PHP

[PHP] Re: Differences

2012-10-04 Thread Tim Streater
. So your original echo then does nothing at all. And so you see the observed behaviour. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: problem with my login script

2012-10-02 Thread Tim Streater
-conditional. Agree 100%. -- Cheers -- Tim

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Tim Dunphy
was easy at that point. But thanks again guys.. this list has been an indispensable source source of wisdom on my journey in learning PHP. Tim Thanks again guys, Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

Re: [PHP] Re: php can't insert data mysql table

2012-10-01 Thread Tim Dunphy
a simple omission in forgetting to use auto_increment and using primary key. I usually know better. I'll blame this one on the clonopin. lol thank you tim On Mon, Oct 1, 2012 at 12:30 PM, Jim Giner jim.gi...@albanyhandball.comwrote: On 10/1/2012 12:20 PM, Tim Dunphy wrote: hey thanks guys adding

[PHP] Re: PHP Bounce messages

2012-09-21 Thread Tim Streater
? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Re: PHP Bounce messages

2012-09-21 Thread Tim Streater
On 21 Sep 2012 at 20:56, tamouse mailing lists tamouse.li...@gmail.com wrote: On Fri, Sep 21, 2012 at 4:17 AM, Tim Streater t...@clothears.org.uk wrote: On 21 Sep 2012 at 08:40, Lester Caine les...@lsces.co.uk wrote: I know that the php list are one of the 'reply to sender' email handling

[PHP] Re: PHP Re: Programmers and developers needed

2012-09-19 Thread Tim Streater
with PHP? Nothing, I think. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Programmers and developers needed

2012-09-14 Thread Tim Dunphy
On Fri, Sep 14, 2012 at 3:00 PM, Robert Cummings rob...@interjinn.comwrote: On 12-09-13 06:10 PM, Ashley Sheridan wrote: On Thu, 2012-09-13 at 16:48 -0400, Tedd Sperling wrote: On Sep 13, 2012, at 3:45 AM, agbo onyador onya...@gmail.com wrote: Hello there! We are looking for programmers

Re: [PHP] Programmers and developers needed

2012-09-13 Thread Tim Dunphy
We are looking for programmers and developers to create a world wide system. Is it bigger than a bread box? On Thu, Sep 13, 2012 at 3:45 AM, agbo onyador onya...@gmail.com wrote: Hello there! We are looking for programmers and developers to create a world wide system. Your comments are

Re: [PHP] What do you call the end-user?

2012-07-20 Thread Tim Streater
your work efforts? In principle, yes. But that's a bit hard at the moment. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating drop-down menus

2012-07-17 Thread Tim Streater
to use AJAX. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Creating drop-down menus

2012-07-16 Thread Tim Streater
needed to load the second drop down. Once the user chooses their bank, then your JavaScript makes an ajax request to a PHP script that returns the clients list. You use this to populate the second drop down. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe

Re: [PHP] Unexpected Notice message

2012-07-04 Thread Tim Streater
On 04 Jul 2012 at 16:51, Marc Guay marc.g...@gmail.com wrote: Notice: Use of undefined constant QUERY_STRING - assumed 'QUERY_STRING' in I would guess that it's asking you to add quotes around QUERY_STRING...? As in: if (strlen($_SERVER['QUERY_STRING']) 0) { -- Cheers -- Tim -- PHP

Re: [PHP] embedding php inside of php

2012-07-01 Thread Tim Streater
On 01 Jul 2012 at 01:00, Tim Dunphy bluethu...@gmail.com wrote: I am trying to get the hang of php using some examples that I found in a book. I've been making progress lately, but one thing has me a bit stumped. In an HTML form that I am echoing through PHP I would like to embed smaller

[PHP] Re: show info from mysql db

2012-06-10 Thread Tim Dunphy
, Jun 10, 2012 at 1:15 AM, Tim Dunphy bluethu...@gmail.com wrote: hello list,  I tried designing a very basic couple of web pages tonight that was solely meant to build some php chops. intentionally cheesy. I got half the way there by designing a page that grabs some info from an html form

Re: [PHP] Re: show info from mysql db

2012-06-10 Thread Tim Dunphy
strategy .. have to try to remember that strategy before i go running for help.. :) tim On Sun, Jun 10, 2012 at 12:15 PM, Adam Richardson simples...@gmail.com wrote: On Sun, Jun 10, 2012 at 8:25 AM, Tim Dunphy bluethu...@gmail.com wrote: $dbc = mysqli_connect('127.0.0.1','admin',secret

Re: [PHP] Hungarian Notation interest with PHP

2012-06-04 Thread Tim Streater
in conflict because the colleague really argue about his Hungarian Notation. This simply adds far too much noise to code. If I need to know what type a variable has, I'll look at its declaration, if any. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] Re: Function size

2012-06-03 Thread Tim Streater
of unimportant functions cluttering the place up. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] errors not showing

2012-05-19 Thread Tim Dunphy
hello, list! I have 'error_reporting = E_ALL' set in my php.ini file. However when I run a php script that has errors in it all that happens is that the page WSODs. I am running Mac OS X 10.6. Any thoughts on why errors don't show up in the browser and how to correct this? Thanks Tim -- GPG

Re: [PHP] errors not showing

2012-05-19 Thread Tim Dunphy
@localhost:~/jf-current] #sudo apachectl restart [dunphy@localhost:~/jf-current] #uname -a Darwin localhost 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 i386 I was wondering if there might be something else I might've missed? Thanks Tim

Re: [PHP] url string being split

2012-04-27 Thread Tim Streater
would do that with JavaScript on the html page. This is not a PHP question. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] learning resources for PHP

2012-04-18 Thread Tim Dunphy
I've been having a lot of fun with Beginning PHP 5.3 by Matt Doyle. Covers basics nicely... Nice! I'll give that a try! Thanks for the suggestion! On Wed, Apr 18, 2012 at 6:18 PM, sono...@fannullone.us wrote: On Apr 18, 2012, at 1:30 PM, Henry Martinez wrote: I've been having a lot of fun

Re: [PHP] strftime silliness

2012-04-11 Thread Tim Streater
On 11 Apr 2012 at 01:47, Geoff Shang ge...@quitelikely.com wrote: On Wed, 10 Apr 2012, Tim Streater wrote: I want to format a date/time using a 12 hour representation of the time part. I can do this with, say, %d %b %Y %l:%M %p, where the first time format specifier is the lower-case L

Re: [PHP] php in windows

2012-04-11 Thread Tim Streater
. I exaggerate for effect. Sometimes I volunteer a small office that, inevitably, uses it. And when my dopey BiL downloaded iTunes and then asked me what to do next, I sent him to the Start menu. But I actively resist knowing more than I absolutely need to. -- Cheers -- Tim -- PHP General

Re: [PHP] php in windows

2012-04-10 Thread Tim Streater
expect to happen. Not that I can help, as I know nothing about Windows, but with that info perhaps another can. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] strftime silliness

2012-04-10 Thread Tim Streater
of an simple way to avoid it? There appears to be no specifier to do this. Of course, I can call strftime twice, once for the date portion and once for the time portion, trimming the latter, but that seems clumsy. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net

[PHP] Re: strftime silliness

2012-04-10 Thread Tim Streater
On Apr 10th, 2012 at 10:40pm, Tim Streater t...@clothears.org.uk wrote: I want to format a date/time using a 12 hour representation of the time part. I can do this with, say, %d %b %Y %l:%M %p, where the first time format specifier is the lower-case L. But, this gives me a leading space

[PHP] learning resources for PHP

2012-04-03 Thread Tim Dunphy
Hello list,  I am quite sure that you've heard this question at least a few times before. :) But I have been dabbling a bit in PHP for years and I've decided that its' high time that became serious about getting a solid grounding in it. Currently I work as a Sysadmin and have modest but reliable

Re: [PHP] Websocket using php

2012-04-01 Thread Tim Streater
the wheel. Is there anyone out there who has already written a websocket server in PHP and like to share the code? https://github.com/jam1401/PHP-Websockets-Server -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Got HTML5 History API + caching LICKED, I think, grin

2012-03-18 Thread Tim Streater
to sick to activate a menu. b) bright flashy distracting items on a website. Like the OP's menus. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Got HTML5 History API + caching LICKED, I think, grin

2012-03-18 Thread Tim Streater
On 18 Mar 2012 at 17:06, Tim Streater t...@clothears.org.uk wrote: I don't like: a) menus that just spring into life because you happen to mouse near them. You should have to sick to activate a menu. Damned autocorrect. s/sick/click/ -- Cheers -- Tim -- PHP General Mailing List (http

[PHP] Parse errors

2012-03-18 Thread Tim Streater
to it doesn't appear to be called. I was just surprised that the initial echo statement's output made it back to the JavaScript side. (I obviously don't expect to have parse errors show up in production, but having them nicely visible and logged during testing is useful) -- Cheers -- Tim

Re: [PHP] Parse errors

2012-03-18 Thread Tim Streater
places where an error might occur. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] questions about $_SERVER

2012-03-13 Thread Tim Streater
-- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] questions about $_SERVER

2012-03-12 Thread Tim Streater
On 12 Mar 2012 at 20:07, Tedd Sperling tedd.sperl...@gmail.com wrote: Tim: I read somewhere that using: global $x; is not recommended. Whereas, it is recommended to use: $x = $GLOBALS['x']; echo $x; Tedd, That may well be, although as I write I can't recollect having seen

Re: [PHP] questions about $_SERVER

2012-03-11 Thread Tim Streater
) unless one uses $GLOBALS to retrieve those values. In the following, $x is a global but not a super-global (AFAIK). ?php function echox () { global $x; echo $x; } $x = Hello world\n; echox (); ? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net

[PHP] Variable number of arguments problem

2012-02-12 Thread Tim Streater
reference to this in the docs and the user notes but it's a little unclear. Or is there another reason? Thanks, -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Variable number of arguments problem

2012-02-12 Thread Tim Streater
the relevant details are here: http://php.net/functions.arguments Thanks, I do see an example now, although it's not stated explicitly. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Re: [PHP] What's Your Favorite Design Pattern?

2012-02-08 Thread Tim Streater
pointer. Whoosh !! (Well, to be fair, we'd gone along to look into XNS). -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] What's Your Favorite Design Pattern?

2012-02-07 Thread Tim Streater
Mornington Crescent (q.v.), on a non-standard board. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Long Live GOTO

2012-02-06 Thread Tim Streater
-ing to that. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Long Live GOTO

2012-02-06 Thread Tim Streater
I'll have to put up with it. Anyway, discussions of this sort tend to be, or become, futile. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Long Live GOTO

2012-02-06 Thread Tim Streater
On 06 Feb 2012 at 09:48, Adam Richardson simples...@gmail.com wrote: On Mon, Feb 6, 2012 at 4:25 AM, Adam Richardson simples...@gmail.comwrote: On Mon, Feb 6, 2012 at 4:07 AM, Tim Streater t...@clothears.org.uk wrote: I disagree that the nested function is a straw-man. I (just as the other

[PHP] Re: Long Live GOTO

2012-02-06 Thread Tim Streater
checked the SQLite API in question, it looked as though try/catch was my only option. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Looking for the string functions

2012-02-01 Thread Tim Streater
I'm keen to look at the C source of such as substr_replace() and stripos(). I've downloaded the 5.3.9 PHP source, but am having difficulty locating the string functions. Could someone point me at the right directory or .c file? Thanks, -- Cheers -- Tim -- PHP General Mailing List (http

[PHP] Measuring CPU time

2012-01-15 Thread Tim Streater
I haven't found a function to allow me to see elapsed CPU time to date in a function. Am I right in thinking none such exists? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RE: RE: [PHP] passing variables to php script

2012-01-13 Thread Tim Streater
into the browser's address bar. Further, both the webpage and PHP file need to be in your document-root. Look in your apache config file for that). -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: RE: [PHP] passing variables to php script

2012-01-12 Thread Tim Streater
is putting http://localhost/your-file.html in the IE address bar. What is your document-root? Is the Q:\thingy part of it? -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Strange foreach reference issue

2012-01-09 Thread Tim Behrendsen
On 1/9/2012 10:35 AM, David Harkness wrote: On Sat, Jan 7, 2012 at 5:01 PM, Tim Behrendsen t...@behrendsen.com mailto:t...@behrendsen.com wrote: The first loop is leaving a reference to the final element. But then the second foreach is doing a straight assignment to the $row

[PHP] Strange foreach reference issue

2012-01-07 Thread Tim Behrendsen
being previously used as a reference that's contaminating the subsequent use of $row in the foreach. If there's some logic to this, it's escaping me. Any insight on this would be appreciated. Regards, Tim Behrendsen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] Strange foreach reference issue

2012-01-07 Thread Tim Behrendsen
On 1/7/2012 4:18 PM, Matijn Woudt wrote: On Sun, Jan 8, 2012 at 12:29 AM, Tim Behrendsent...@behrendsen.com wrote: Hello, This sure looks like a bug, but maybe there's some subtlety going on that I don't understand, so I would appreciate some insight. After much debugging, I tracked down

Re: [PHP] Strange foreach reference issue

2012-01-07 Thread Tim Behrendsen
On 1/7/2012 4:44 PM, Stephen wrote: On 12-01-07 07:30 PM, Tim Behrendsen wrote: When you use an ampersand on the variable, that creates a reference to the array elements, allowing you to potentially change the array elements themselves (which I'm not doing here). http://www.php.net/manual

Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread Tim Streater
on the user's machine) don't use anything except what comes with the standard OS X distribution, so to fix the date time issue I do: date_default_timezone_set (@date_default_timezone_get ()); systematically in my scripts. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net

Re: Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread Tim Streater
On 04 Jan 2012 at 21:01, Robert Williams rewilli...@thesba.com wrote: On 1/4/12 13:33, Tim Streater t...@clothears.org.uk wrote: Also, if I remember right, Apple sets up Apache so that each user has his/her own config file inside the conf folder. You should make any config changes

Re: Re: [PHP] New to mac and trying to define a php.ini file.

2012-01-04 Thread Tim Streater
On 04 Jan 2012 at 21:59, Robert Williams rewilli...@thesba.com wrote: On 1/4/12 14:34, Tim Streater t...@clothears.org.uk wrote: As I hinted in my previous mail, client and server side of my app are always on the user's machine. When the user starts the app, I create an apache config file

[PHP] Class instance pointers

2011-11-29 Thread Tim Streater
Is there any benefit to setting a pointer to a class instance to null before returning from a function? As in: function myfunc () { $p = new myclass (); // do stuff $p = null; } Thanks. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net

Re: Re: [PHP] Class instance pointers

2011-11-29 Thread Tim Streater
On 29 Nov 2011 at 17:01, cimodev cimo...@googlemail.com wrote: Am 29.11.2011 16:56, schrieb Tim Streater: Is there any benefit to setting a pointer to a class instance to null before returning from a function? As in: function myfunc () { $p = new myclass (); // do stuff

Re: Re: [PHP] include

2011-11-21 Thread Tim Streater
On 20 Nov 2011 at 23:46, Tamara Temple tamouse.li...@tamaratemple.com wrote: Tim Streater t...@clothears.org.uk wrote: At the moment I'm using an instance of apache to run PHP scripts, as and when required via AJAX. Having got some understanding of web sockets, I'm minded to look at having

Re: [PHP] include

2011-11-21 Thread Tim Streater
On 21 Nov 2011 at 11:10, Tommy Pham tommy...@gmail.com wrote: On Mon, Nov 21, 2011 at 2:56 AM, Tim Streater t...@clothears.org.uk wrote: I'm looking for confirmation that:  include $fn; is an allowed form of the include statement. RTFM [1] example #6 ;) [1] http://php.net

Re: Re: [PHP] include

2011-11-20 Thread Tim Streater
forked by pcntl_fork() use a socket that the parent obtained? Reading the socket stuff in the PHP doc, there are a number of user-supplied notes hinting this might be problematic. -- Cheers -- Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

  1   2   3   4   5   6   7   8   9   10   >