On 07 Jun 2011 at 11:35, Richard Quadling wrote:
> What do you get for ...
>
> php -r "var_dump(realpath(null));"
OS X: string(10) "/Users/tim"
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 6/15/2011 11:37 AM, Byron Como wrote:
Does the precompiled windows binary work on win 7 64?
It does, however if you're using Apache as your webserver, for PHP 5.3+
you won't be able to use the binaries from apache.org for Windows.
There is a link to Apache Lounge found here:
http://window
rks, but the value never gets into the form.
So where is jq_test.php? And why do you seem to be referring to it both in what
looks like an ajax request (I've never ever looked at jquery, so I'm guessing
here) and also as the action of a form?
--
Cheers -- Tim
--
PHP General Mailing Li
On 22 Jun 2011 at 20:56, Jim Lucas wrote:
> On 22/6/2011 12:43 PM, Tim Streater wrote:
>> On 22 Jun 2011 at 19:44, Ethan Rosenberg wrote:
>>
>>> I have a PHP program which will generate a chess board with a form in
>>> the program. I wish to fill the form by cl
cell, the onclick handler can
write the cell's id into the form, seems to me. Why use ajax for that?
BTW, I'm replying via the list (even though so far this has minimal PHP
content) because my mail host at clothears appears to be on earthlink's
shitlist.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
27;s id into the form, seems to me. Why use
>> ajax for that?
> Please tell me how to do that [write cell's id into form].
Something like (e.g.):
Move From:
and then in your onclick handler:
document.getElementById("xyz").textContent = this.id;
I'd say also that you ne
. And why does
it matter, anyway?
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ion :)
>>
>>
> Tamara, kind of like this one?
>
> http://ca3.php.net/manual/en/control-structures.goto.php
I haven't used a goto since I stopped writing FORTRAN in 1978.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 28 Jun 2011 at 22:39, David Soria Parra wrote:
> You can read more information about this release here:
> http://www.php.net/archive/2011.php#id2011-06-28-1
Not quite yet, perhaps?
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
On 29 Jun 2011 at 17:25, Richard Quadling wrote:
> And UTC is not the same as GMT. Ish.
Yes it is.
> GMT is only valid for 6 months of the year. Then, due to DST, it becomes BST.
No, the UK is on GMT for 5 months a year and then on BST (GMT+1) for 7 months.
--
Cheers -- Tim
-
FC is an internal link which makes finding things in the RFC rather easier.
The following list of RFCs is the set I consulted when writing my own email
client:
a) RFC 5034 POP3
b) RFC 2821 SMTP
c) RFC 5322 Internet Message Format
d) RFC 2045, 2046, 2047, 2048, 2049, (MIME), and 2183
--
ll down to the bottom of the email and it considers that to be
> an adjustment to the original email, plus I have to manually write my
> signature block.
What is meant by "an adjustment to the original mail"? You could try switching
to another email client.
--
Cheers -- Ti
esian filter for my e-mail app.
Let the spammer, by sending you the mail, indicate what is spam and what is not.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
aware that is listed but cannot get to the bottom of why it is
flagged.
Frankly, I don't know why you are getting mail from me - I'm not sending you
any.
As for your solution to spam. What is Postfix?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.ph
Looking over the definition of a function today I see:
Function names follow the same rules as other labels in PHP.
but I can't find the definition of a label anywhere. I can't see it listed in
the contents - have I overlooked it? If not, how can I request the the doccy be
upd
ssed thus: '[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*'
Except that variables are case-sensitive whereas function names are not. And if
there's going to be a formal or "programmatic" definition, then I think I'd
prefer BNF to a regexp.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of the content
> will
> be deleted? A number of the -ve's I'd personally flag as +ve's and complain if
> anybody changed them ...
> Generally I'd say the whole page simply sucks :)
Particularly as it's written by a fathead who thinks that "lose"
nvert to £xxx.xx for external display. Then just use integer arithmetic for
the calculations.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 7/20/2011 6:19 AM, Ashley Sheridan wrote:
Louis Huppenbauer wrote:
got the same problem today
mayhabs gmail had a small problem... who knows ;)
2011/7/20 Lester Caine
Tamara Temple wrote:
Um... what's going on here? Why would google mail be bouncing??
Happens quite often ... just me
So, if my text string is
in $line, I ought to be able to do something like:
$line = preg_replace ($pattern, $replacement, $line);
But, since all regexps are to me, like TECO commands, no better than
line-noise, how do I make up $pattern and $replacement from the proffered
regexps?
Thanks
On 24 Jul 2011 at 19:35, Dajka Tamás wrote:
> I lost trail, what do you want to do?
>
> You want to convert
>
>>>> From
>
> to this:
>
>>> From
The number of > in front of "From " is not known. I want to be able to add or
remove one.
','>$1', $line)
>
> Removing one '>':
>
> preg_replace('/(^>([>]+From )/','$1', $line)
Thanks, I'll try that.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
tarts at the start of the
line. So, I experimented a bit and the following works:
$onemore = preg_replace ('/^(>*From )/', '>$1', $line);
$oneless = preg_replace ('/^>(>*From )/', '$1', $line);
Thanks for the help.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Is it to be expected that, if a file has no extension, and I do this:
$info = pathinfo ($myfile);
that I will get an error if I try to reference $info["extension"] ??
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 26 Jul 2011 at 23:55, Micky Hulse wrote:
> On Tue, Jul 26, 2011 at 3:47 PM, Tim Streater wrote:
>> that I will get an error if I try to reference $info["extension"] ??
>
> From what I can tell via reading the docs:
>
> "The following associative
On 27 Jul 2011 at 11:09, Mike Ford wrote:
>> -Original Message-
>> From: Tim Streater [mailto:t...@clothears.org.uk]
>> Seems to me that's the case. However the doc is ambiguous,
>> especially as I *asked* for that key to be returned. IMO it should
>&g
On 04 Aug 2011 at 15:48, Jim Giner wrote:
> Sounds like time for me to move on.
> Thanks for the info Dan.
Say Jim,
Why don't you pick it up as mail like the rest of us?
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
to do
that.
2) Having created $sql, echo it out. That way you could see whether it's
correct or not.
Doing (1) and (2) will make it a damn sight easier to see what you are
*actually* creating.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
classes can. I have successfully used the technique to
> catch run-time errors of wrong object types when testing, but am
> surprised that I can't use it to trap unexpected basic types - or at
> least to document what is expected.
This is PHP, not FORTRAN IV.
Personally I see it as
eed what you want.
But can you put a inside a table cell? (I don't know that you
can't, but it seems an odd thing to do).
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 10 Aug 2011 at 22:07, Chris Stinemetz wrote:
>>
>> Use HTML 'pre' tags:
>>
>>
>>
>
> I just tried that and that puts all the text on a single line.
You could write the string into another textarea, which you could make readonly
ound the inner
loop 5 times. What is the value of $num when you then exit the inner loop in
order to do the test against 1 in the outer loop?
You need to rework that logic.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
d what happens if your "if" doesn't evaluate to true? What do you return then?
> * *
> *
> *if (loggedin==true)*
> *{*
Should this be:
if ($loggedin==true) ...
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ere some way to let an javascript event trigger some ajax to store
> an exit time into my DB or make it mandatory to at least visit the
> logout.php before someone can surf away?
Use the onbeforeunload event.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To uns
/printing.
> And, I already add a comment to confirm the end brace:
>
> } // end if($myVar)
>
> to clarify any long nests.
The fact that you feel the need to do that is a giveaway.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
... Whitesmith's is -GLEE! ;)
>>
>> Beauty is in the eye of the beholder.
>
> So I think we've all established that Whitesmith's is the way to go,
I've been using the Whitesmith's style since I started coding in BCPL in the
mid-70s. Having the
> $myFile = "B01C001.htm";
> $lines = file($myFile);
> foreach ($lines as $line_num => $theData) {
>
> Is there a way PHP will open each file in the directory ending in “.htm”,
> one file at a time, without me specifying the file name?
You can use opendir() and readdir
me 5 minutes to find out how to use it. I didn't need teaching
about it or to have a manual. So IMO, emacs, vi, and all their ilk belong in
the dustbin of history.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
among foreign machines and networks
Yes, this is entirely valid IMO. I still have my ultrix vi summary card for
such occasions.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
has been known ever
since the first such hardware in the mid-1950's, in fact.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
At the moment, I'm doing this:
$start = stripos ($body, "--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 9/19/2011 5:08 PM, Tedd Sperling wrote:
As such, I need information regarding how wide-spread PHP is (i.e., number of
installations), who's using it (i.e., companies, organizations), and how it
compares with other Web Languages (i.e., ASP, Ruby, etc.).
Since it's a school, you might also wan
n my local; however, what i really want is
> https://127.0.0.1:9090/login, it is missing ":9090". I also have tried to
> use $_SERVER['SERVER_PORT'], but $_SERVER['SERVER_PORT'] doesn't give me
> 9090, it gives me 80.
Where does the 9090 come from?
--
Che
a big mess of single and double quotes to me. Why don't you go
through it very carefully? I'd be inclined to make a small test program
separate from the web page stuff and do things like:
http://mydomain.com/files/".$_POST['trakname']."','/".$_POST['dirname']."/".$_POST['trakname']."';
echo $myvar;
?>
and fiddle until that works.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
er_$correct_answer;
>
> $trivia_answer_1 = “1,000”;
> $trivia_answer_2 = “1,250”;
> $trivia_answer_3 = “2,500”;
> $trivia_answer_4 = “5,000”;
Not completely obvious to me what you're trying to do but I assume its:
echo '\$trivia_answer_' . $correct_answer . " = \&
could confirm that.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
inspect, then as Jim mentioned, PHP is
> not for you and something like java may be better suited, although I'm not
> sure how much power an applet has in this area.
Nothing wrong with using PHP client-side, I run plenty of PHP scripts that way.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 11 Oct 2011 at 03:03, Paul M Foster wrote:
> On Mon, Oct 10, 2011 at 04:14:00PM +0100, Tim Streater wrote:
>
>> I would like to use the SQLite3 (not PDO) interface to SQLite, and I
>> would like to be able to supply a string containing several SQL
>> statements an
On 11 Oct 2011 at 10:47, David Robley wrote:
> Tim Streater wrote:
>
>> On 11 Oct 2011 at 03:03, Paul M Foster wrote:
>>
>>> On Mon, Oct 10, 2011 at 04:14:00PM +0100, Tim Streater wrote:
>>>
>>>> I would like to use the SQLite3 (not PDO) interfac
On 11 Oct 2011 at 11:25, David Robley wrote:
> Tim Streater wrote:
>> On 11 Oct 2011 at 10:47, David Robley wrote:
>>> Tim Streater wrote:
>>>> On 11 Oct 2011 at 03:03, Paul M Foster wrote:
>>>>> On Mon, Oct 10, 2011 at 04:14:00PM +0100, Tim St
Var;
> // and then using $myVar
> }
>
> or
>
> myFunction
> {
> $myVar = $GLOBAL['myVar']
> // and then using $myVar
> }
But presumably these are not *quite* equivalent, as modifying $myVar will
change the global in the first but not in the second.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 14 Oct 2011 at 16:46, Tedd Sperling wrote:
> On Oct 13, 2011, at 11:37 AM, Tim Streater wrote:
>> On 13 Oct 2011 at 16:25, Tedd Sperling wrote:
>>> So, if you want a main script variable (i.e., $myVar) to be accessed by a
>>> function, you can do it by
Could also try running a
Linux distro in a VM on your computer - many will come pre-configured
with Apache and PHP, or provide an easy installer/command line to get
you up and running. Ubuntu is very beginner friendly.
HTH,
-Tim
text file. Resave it as
> a plain text file.
Sounds like you should also use a text editor rather that Word or similar for
editing your program files. Use Notepad or whatever they have or Windows
machines.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 21 Oct 2011 at 17:27, Daniel Brown wrote:
> I'll get this week's Friday distraction kicked off here with
> something shared with me by a Facebook friend. If you're on Facebook,
> try this.
Well, I'm not. I took one look at their Ts&Cs and thought "S
has a royalty-free non-exclusive licence to all your data anyway.
Once you put it up there, they can use it any way they like.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on B (shows full details). Then click on Search, and
scroll down to look at the results. You need to look at the inetnum object that
contains the IP address of interest, then see Country.
Be aware that what this tells you is where an IP block is registered. Nothing
to stop the entity using
following:
#!/usr/bin/php
then you can run it at the command line by typing its name at the prompt - but
wiggy will need to have execute permission set.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
email with images to this list. That is a
waste of time (images are stripped). You'll need to send another email
formatted as text-only. As it stands your mail made no sense at all.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ally, which it does but not
always (sometimes goes straight to disk). But if it shows in the browser window
then there are buttons to save or open in Preview. I've not needed Acrobat on a
Mac for years.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, v
I find I need to do this:
date_default_timezone_set (@date_default_timezone_get ());
in all my scripts since 5.x.x to avoid rude messages.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
es when I can't be bothered to fire up
Elements.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
you to
download this PDF and "needs Acrobat Reader" which is complete cock.
> Anyway, I realize this topic is now slightly off list.
True but I think you needed a rant :-)
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
there any particular benefit to using that form? Or if not, what
do they mean?
(I've read up about variable variables).
Thanks,
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> Oh. I've fixed the layout bug for
> http://docs.php.net/manual/en/language.types.string.php#example-70.
Ah *that's* where it was hiding. Thanks - got it now.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 16 Nov 2011 at 16:30, Geoff Shang wrote:
> On Wed, 15 Nov 2011, Tim Streater wrote:
>
>> I find I need to do this:
>>
>> date_default_timezone_set (@date_default_timezone_get ());
>>
>> in all my scripts since 5.x.x to avoid rude messages.
>
> Apart
omplete, I wouldn't expect there to
be any data if the client hasn't sent any. Is there a way to wait with timeout
on data showing up at a socket?
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
ientific
creationism".
> Thus before the big bang
> is perfectly valid whether we could perceive it or not.
Not really. It's as meaningless as asking what's north of the North Pole.
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
refore take it that there
is none? Failing that, is there a good way to dynamically replace parts of a
PHP program, possibly using runkit?
--
Cheers -- Tim
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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
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 ;)
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 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 ()
>> {
>> $
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 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
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
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 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
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/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
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
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
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
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
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
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
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
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
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
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
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
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
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
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'
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'
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
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:/
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
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
801 - 900 of 1118 matches
Mail list logo