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

2013-09-29 Thread Tim Dunphy
Hi Aziz, Thank you for getting back to me! I appreciate you spotting that error. So I corrected that deleteObject(array( 'Bucket' => $bucket_name ));* // The response comes back as a Simple XML Object // In this case we just want to know if everything was okay. // If not, report the me

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

2013-09-29 Thread Tim Dunphy
in} 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 wrote: > Hi Tim, > > Is the call working? Does it actually get deleted? > > This

[PHP] delete S3 bucket with AWS PHP SDK

2013-09-29 Thread Tim Dunphy
7;); // @codeCoverageIgnoreEnd } Has anyone played around enough with the AWS SDK to know what I'm doing wrong here? Would anyone else be able to hazard a guess? Thanks Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

[PHP] Re: Apache

2013-09-23 Thread Tim Streater
On 23 Sep 2013 at 11:37, Domain 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/) To unsubscrib

[PHP] Re: Friday's Question

2013-09-20 Thread Tim Streater
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: Friday's Question

2013-09-20 Thread Tim Streater
rks 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: exec and system do not work

2013-08-26 Thread Tim Streater
o system("touch /var/www/orders.txt", $ret); >>> echo system("chmod 766 /var/www/orders.txt", $ret); >>> echo 'file2'; >>> echo file_exists("/var/www/orders.txt"); >>> } > If you would point out my syntax errors, I will

[PHP] Re: PHP vs JAVA

2013-08-21 Thread Tim Streater
lready know other languages. It's simple 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
on't > 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
ems 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
ent to PHP by apache, 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

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 wrote: > On 06 Jul 2013 at 23:27, Tim Dunphy wrote: > > > | You seem to spell the variable differently (1 'd' vs. 2 'd's)? > > > &g

[PHP] Re: mongo usage

2013-07-06 Thread Tim Streater
On 06 Jul 2013 at 23:27, Tim Dunphy 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; > >//$collectio

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 othe

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
>adresses; Thanks again! On Sat, Jul 6, 2013 at 2:57 PM, Jonathan Sundquist wrote: > You commented out the setting of yhe addresses variable > On Jul 6, 2013 1:42 PM, "Tim Dunphy" wrote: > >> Hey all, >> >> I'm trying to pick up some basic use of

Re: [PHP] mongo usage

2013-07-06 Thread Tim Dunphy
> > > > > > Mongo Test Page > > > > > > > > > $connection = new Mongo(); > > > > > > $db = $connection->jfdb; > > > > $collection = $db->addresses; > > > > //$adresses = $connection->jfdb->adresses; &

[PHP] mongo usage

2013-07-06 Thread Tim Dunphy
_name' => 'Peter', 'last_name' => 'Parker', 'address' => '175 Fifth Avenue', 'city' => 'New York', 'state' => 'NY', 'zip' => '10010',); var_dump($address); echo ''; $addresses->insert($address); ?> I'd appreciate any advice you might have. Thanks, Tim -- GPG me!! gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B

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

2013-06-23 Thread Tim Streater
r mysql_query *inside* the for loop. Then, what are you doing 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
RL 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
Sounds good! Thanks Ken. Very clear now. Tim Sent from my iPhone On May 27, 2013, at 1:57 PM, Ken Robinson wrote: > When you do validation of the form in the same script that shows the form, > the normal way to do this is > >if (isset($_POST['submit'])) { >

Re: [PHP] iterate javascript verification

2013-05-27 Thread Tim Dunphy
[] = " > value='$num_forms' />"; > > $tmp[] = " name='requestor_email' > > value='$requestor_email' />"; > > $tmp[] = ""; > > $tmp[] = ""; > > > > ?> > > > > > >

[PHP] iterate javascript verification

2013-05-24 Thread Tim Dunphy
f (d==null || d=="") { alert("User $counter address must be filled out."); return false; } var d=document.forms["ldap_accounts"]["phone_"].value; if (d==null || d=="") { alert("User $counter phone name must be filled out."); return false; } } "; echo ""; echo ""; echo ""; ?> 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 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 >> w

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
ce and free. I 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 Rafnews wrote: Hi, Is there a solution to generate onfly PDF from HTML page, and from data user typed in form (let&

[PHP] Re: Undefined index....

2013-03-15 Thread Tim Streater
1); } } } BTW it seems to me that you'll have the same problem with $included unless there's other code in includeXML 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: rather a HTML Q; however 2-FRAME

2013-03-15 Thread Tim Streater
7;s 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: Populate input from another form

2013-03-08 Thread Tim Streater
your page to get replaced by the form's action, CRTP_Query.php 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://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 wrote: > On Mon, Mar 04, 2013 at 05:39:00PM +0000, 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 s

[PHP] Re: Open form in new window

2013-03-04 Thread Tim Streater
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 example at http://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: Strip emails from a document

2013-01-26 Thread Tim Streater
tand 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
> I expect: >> foo >> bar >> >> Is this documented? >> > > && takes precedence over = > > http://php.net/manual/en/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
sired character after 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 Maili

[PHP] Re: Switch - Case Statement Questions

2012-11-19 Thread Tim Streater
guy there who had removed the catalytic converter from his Scirocco and who though it clever to race up 280 from San Jose to SLAC at 100mph, sometimes slipstreaming behind another idiot doing the same. If I look in my rear-view mirror, I expect those I can see to be doing 70mph tops (that's

[PHP] Re: Switch - Case Statement Questions

2012-11-17 Thread Tim Streater
b of a programmer is not to be "clever" with a view to impress those who follow, but to achieve the desired outcome while at the same time 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
Switch it always execute the first > case ? As has been pointed out you need switch(true). That's a strange way of writing a switch, IMO. You should be using the if version. -- 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
That way, the unwanted cases don't clutter up the logic for the cases I do/might 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
On 10 Oct 2012 at 19:53, David McGlone wrote: > On Wednesday, October 10, 2012 07:36:00 PM Tim Streater wrote: >> On 10 Oct 2012 at 19:17, David McGlone wrote: >>>> BTW - in any of your other computer languages didn't they utilize a >>>> 'return'

[PHP] Re: limiting

2012-10-10 Thread Tim Streater
27;s a point of view. But more often that not it just leads to convoluted 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 -- T

[PHP] Re: limiting

2012-10-09 Thread Tim Streater
for JavaScript/HTML/CSS/SQLite) so 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,

[PHP] Re: Differences

2012-10-04 Thread Tim Streater
, the while loop goes round and round dealing with each filename you have in $matches, and echoes out each one. When the while loop has completed, the function returns, but returns nothing at all. 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
to add additional clauses to your while-conditional. Agree 100%. -- Cheers -- Tim

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

2012-10-01 Thread Tim Dunphy
Yes I am now using auto_increment, and that's what seemed to solve my issue. Looks like 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, Ji

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

2012-10-01 Thread Tim Dunphy
/more accurate error message? They take away from this for me was.. don't skimp on the error messages! The one I got was so clear that fixing the problem 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

[PHP] Re: PHP Re: PHP Bounce messages

2012-09-21 Thread Tim Streater
On 21 Sep 2012 at 20:56, tamouse mailing lists wrote: > On Fri, Sep 21, 2012 at 4:17 AM, Tim Streater wrote: >> On 21 Sep 2012 at 08:40, Lester Caine wrote: >> >>> I know that the php list are one of the 'reply to sender' email handling >>> ca

[PHP] Re: PHP Bounce messages

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

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

2012-09-19 Thread Tim Streater
at does any of this have to do 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 wrote: > 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 wrote: >>> >>> Hello there! We are looking for programmers and developers to create

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 wrote: > Hello there! We are looking for programmers and developers to create a > world wide system. Your comments are welcome. > -- GP

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

2012-07-20 Thread Tim Streater
ow easily your "whomever" can use 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
http://www.clothears.org.uk/examples-ajax.php to see a simple example of how 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
suggestions? You could use ajax to request the information 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 -- PH

Re: [PHP] Unexpected Notice message

2012-07-04 Thread Tim Streater
On 04 Jul 2012 at 16:51, Marc Guay 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) { --

Re: [PHP] embedding php inside of php

2012-07-01 Thread Tim Streater
On 01 Jul 2012 at 01:00, Tim Dunphy 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 >

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

2012-06-10 Thread Tim Dunphy
'echo hello' test 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 wrote: > On Sun, Jun 10, 2012 at 8:25 AM, Tim Dunphy wrote: >> $dbc = mysqli_connect('127.0.0.1','admin

[PHP] Re: show info from mysql db

2012-06-10 Thread Tim Dunphy
or die ('Could not connect to database'); d'oh!! spelling counts!!! :) On Sun, Jun 10, 2012 at 1:15 AM, Tim Dunphy wrote: > hello list, > >  I tried designing a very basic couple of web pages tonight that was > solely meant to build some php chops. intentionally ch

Re: [PHP] Hungarian Notation interest with PHP

2012-06-04 Thread Tim Streater
; But we're 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

Re: [PHP] Re: Function size

2012-06-03 Thread Tim Streater
alls. I suppose I could break it up into five separate functions, more or less one for each case value, but then I'd have lots of unimportant local variables to pass around as argument values, and, what's worse, lots 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

Re: [PHP] errors not showing

2012-05-19 Thread Tim Dunphy
Syntax OK [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'

[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? Than

Re: [PHP] url string being split

2012-04-27 Thread Tim Streater
plit in two unless you encode the "Wiser Communication, LLC -& - Sprague Ave" portion. I 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, wrote: > On Apr 18, 2012, at 1:30 PM, Henry Martinez wrote: > >> I've been having a lot of fun with Beginning

Re: [PHP] php in windows

2012-04-11 Thread Tim Streater
;s quite an accomplishment. 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 --

Re: [PHP] strftime silliness

2012-04-11 Thread Tim Streater
On 11 Apr 2012 at 01:47, Geoff Shang 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 specif

[PHP] Re: strftime silliness

2012-04-10 Thread Tim Streater
On Apr 10th, 2012 at 10:40pm, 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. But, this gives me a leading space

[PHP] strftime silliness

2012-04-10 Thread Tim Streater
s space. Anyone know 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://w

Re: [PHP] php in windows

2012-04-10 Thread Tim Streater
t 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] 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 s

Re: [PHP] Websocket using php

2012-04-01 Thread Tim Streater
el like "reinventing 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] Parse errors

2012-03-18 Thread Tim Streater
t 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

[PHP] Parse errors

2012-03-18 Thread Tim Streater
he function I supply 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 tes

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

2012-03-18 Thread Tim Streater
On 18 Mar 2012 at 17:06, Tim Streater 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:/

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

2012-03-18 Thread Tim Streater
ould have 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] questions about $_SERVER

2012-03-13 Thread Tim Streater
amp;$x) -- or -- return $x by value. I would not have used a global, > > In any event, I seldom use globals anyway. This was more an academic > discussion. As was my example - and yes, it had a typo. Worse, trying it in a shell it doesn't exhibit the failure mode I thought I'

Re: [PHP] questions about $_SERVER

2012-03-12 Thread Tim Streater
On 12 Mar 2012 at 20:07, Tedd Sperling 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'

Re: [PHP] questions about $_SERVER

2012-03-11 Thread Tim Streater
ditionally, main script variables are not accessible out of scope (such as > in a function) unless one uses $GLOBALS to retrieve those values. In the following, $x is a global but not a super-global (AFAIK). -- 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
t; PHP5. > > All 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

[PHP] Variable number of arguments problem

2012-02-12 Thread Tim Streater
nce? There is some 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: Re: [PHP] What's Your Favorite Design Pattern?

2012-02-08 Thread Tim Streater
et a simpler intro. [1] In June 1982 (or was it '83?) I visited PARC with a small group from SLAC. We saw the Star or whatever it was, with bit-mapped display and mouse 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
t you're playing 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

[PHP] Re: Long Live GOTO

2012-02-06 Thread Tim Streater
ong to the app. So I have to check: a) whether this file is an SQLite database b) whether it has the two tables I expect to find there Last time I 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

Re: Re: [PHP] Long Live GOTO

2012-02-06 Thread Tim Streater
On 06 Feb 2012 at 09:48, Adam Richardson wrote: > On Mon, Feb 6, 2012 at 4:25 AM, Adam Richardson wrote: > >> On Mon, Feb 6, 2012 at 4:07 AM, Tim Streater wrote: >> I disagree that the nested function is a straw-man. I (just as the other >> authors I'd linked to d

Re: Re: [PHP] Long Live GOTO

2012-02-06 Thread Tim Streater
ough obviously 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: [PHP] Long Live GOTO

2012-02-06 Thread Tim Streater
tion and goto-ing to that. -- 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

[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
r other browser) open and put http://localhost/your-webpage.html 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
what? What you should be doing 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 <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 variable, but

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/m

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 Behrendsen 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 a bug in

[PHP] Strange foreach reference issue

2012-01-07 Thread Tim Behrendsen
hange the name of the reference variable from '$row' to '$rowx' (for example), things will work. So clearly there's some issue with $row 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: http://www.php.net/unsub.php

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 wrote: > On 1/4/12 14:34, "Tim Streater" 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

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 wrote: > On 1/4/12 13:33, "Tim Streater" 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, such as turning

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

2012-01-04 Thread Tim Streater
run 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:/

Re: Re: [PHP] Class instance pointers

2011-11-29 Thread Tim Streater
On 29 Nov 2011 at 17:01, cimodev 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 () >> { >> $

[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/) To

Re: [PHP] include

2011-11-21 Thread Tim Streater
On 21 Nov 2011 at 11:10, Tommy Pham wrote: > On Mon, Nov 21, 2011 at 2:56 AM, Tim Streater wrote: >> I'm looking for confirmation that: >> >>  include $fn; >> >> is an allowed form of the include statement. >> > > RTFM [1] example #6 ;)

Re: Re: [PHP] include

2011-11-21 Thread Tim Streater
On 20 Nov 2011 at 23:46, Tamara Temple wrote: > Tim Streater 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 havi

Re: Re: [PHP] include

2011-11-20 Thread Tim Streater
no way to do this then that is a data point. And here's another question. Can a child 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/unsub.php

  1   2   3   4   5   6   7   8   9   10   >