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
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
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
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
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
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
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
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
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
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
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
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
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
| 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
>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
> >
> >
> > Mongo Test Page
> > >
> >
> >
> > $connection = new Mongo();
> >
> >
> > $db = $connection->jfdb;
> >
> > $collection = $db->addresses;
> >
> > //$adresses = $connection->jfdb->adresses;
&
_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
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
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
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'])) {
>
[] = " > value='$num_forms' />";
> > $tmp[] = " name='requestor_email'
> > value='$requestor_email' />";
> > $tmp[] = "";
> > $tmp[] = "";
> >
> > ?>
> >
> >
> >
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
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
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
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&
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
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
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
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
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
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
> 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
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
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
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
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
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
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'
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
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,
, 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
to add additional clauses to your while-conditional.
Agree 100%.
--
Cheers -- Tim
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
/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
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
hing else?
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
> 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
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
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
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
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) {
--
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
>
'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
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
; 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
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
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'
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
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
> 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
;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 --
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
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
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
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
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
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
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
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
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:/
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
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'
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'
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:/
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 ()
>> {
>> $
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
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 ;)
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
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 - 100 of 1118 matches
Mail list logo