I'm having a problem with a brand new installation of pmwiki. I've not
encountered this before so I'm unsure why this is happening. The
following two warnings are presented at the top of each page:
Warning: session_write_close() [function.session-write-close]: open(/
var/lib/php/session/sess
> -Original Message-
> From: Simon J Welsh [mailto:si...@welsh.co.nz]
> Sent: Thursday, July 14, 2011 7:29 PM
> To: Daevid Vincent
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] is_null() and is_string() reversed when using in switch
> case statements...
>
> On 15/07/2011, at 1:58 PM
On 15/07/2011, at 1:58 PM, Daevid Vincent wrote:
> function test($v)
> {
> var_dump($v);
>
> if (is_string($v)) echo "FOUND A STRING.\n";
> if (is_null($v)) echo "FOUND A NULL.\n";
>
> switch ($v)
> {
> case is_string($v):
> echo
Can someone double check me here, but I think I found a bug...
int 1
1 => int 2
2 => int 3
3 => int 4
4 => int 5
I think v is an array [1,2,3,4,5]
*/
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Thu, Jul 14, 2011 at 4:19 PM, George Langley wrote:
> He gave you a beautiful hint:
:: slaps self on forehead ::
I should've known!!! :D
Thanks!
Micky
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- Original Message -
From: Micky Hulse
> On Thu, Jul 14, 2011 at 4:02 AM, Richard Quadling
> wrote:
> > My daughter (6 or 7 at the time) came up with T, M and E. I was
> > abso-bloody-lutely amazed she managed to find a word starting
> with T,
> > M and E.
>
> What was the word?
-
On 07/13/2011 04:03 PM, Karl DeSaulniers wrote:
>
> Thanks Shawn,
> I had actually found the same thing myself..
>
> $subCc = array_map('trim',explode(",",$subCc));
>
> But I could not find my post last night to make a new comment about it.
> Thank you for yours though.. I did not think of the i
Lol.. thanks Shawn..
You just caught me trying to hide my actually variable names.
guess I missed some. :P
They are actually the same in my code
*blushing*
Any clue why the if(){ statement would make the variables $email and
$reply loose their value?
That was the chunk of it. Thanks for the e
On Jul 14, 2011, at 3:54 PM, Karl DeSaulniers wrote:
Can anyone explain this to me.
function sendEmail($uname,$subjField,$firstname,$lastname,$email,
$reply,$e_cc,$e_bcc,$comments,$ip,$Date,$time){
$uname = trim($uname);
$subjField = trim($subjField);
$firstname = trim($firstname);
On 07/14/2011 03:54 PM, Karl DeSaulniers wrote:
> Can anyone explain this to me.
I can't read through all that crap, but I notice multiple times that you
use undefined variables, due to typo or just not remembering what they are.
You pass in $subjField but later try and use $subjectField. You pa
I'm having a problem with a brand new installation of pmwiki. I've not
encountered this before so I'm unsure why this is happening. The
following two warnings are presented at the top of each page:
Warning: session_write_close() [function.session-write-close]: open(/
var/lib/php/session/sess
Can anyone explain this to me.
function sendEmail($uname,$subjField,$firstname,$lastname,$email,
$reply,$e_cc,$e_bcc,$comments,$ip,$Date,$time){
$uname = trim($uname);
$subjField = trim($subjField);
$firstname = trim($firstname);
$lastname = trim($lastname);
$email = trim($
On Thu, Jul 14, 2011 at 4:02 AM, Richard Quadling wrote:
> My daughter (6 or 7 at the time) came up with T, M and E. I was
> abso-bloody-lutely amazed she managed to find a word starting with T,
> M and E.
What was the word?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visi
On 07/13/2011 11:20 PM, Ron Piggott wrote:
>
> Is there a way to stream line this:
>
> if ( ( $val <> "with" ) AND ( $val <> "from" ) ) {
>
> Ron
>
> The Verse of the Day
> “Encouragement from God’s Word”
> http://www.TheVerseOfTheDay.info
>
Depends on what you mean by streamlined. If it w
The third and hopefully final release candidate of 5.3.7 was just
released for testing and can be downloaded here:
https://downloads.php.net/ilia/php-5.3.7RC3.tar.bz2 (md5sum:
0ad46340ca3d4319ab10eac4a3978ae0)
https://downloads.php.net/ilia/php-5.3.7RC3.tar.gz (md5sum:
eab0329078f74f6c8fe5abcf6943
On 2011-07-14, at 4:36 AM, Ashley Sheridan wrote:
>
> That's a massive pet hate of mine, along with using here/hear in the wrong
> way and those who have no idea of the difference between "there", "their" &
> "they're". Makes me want to beat them upside the head with a dictionary :)
---
On Wed, Jul 13, 2011 at 16:57, Tim Streater wrote:
> 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?
> 4 - And just found it. WordPad comes with Windows, so, maybe
> PHP+COM+WordPad
> (http://msdn.microsoft.com/en-us/library/51y8h3tk(v=vs.80).aspx) could
> be another option here. I think WordPad is just a visual wrapper for
> the RichEdit20 ActiveX component which is controllable via COM.
>
> By u
On 14 July 2011 13:37, Steve Staples wrote:
>> A valid variable name starts with a letter or underscore
>
> If I am not mistaken, $_1 is not a valid variable name.
[2011-07-14 13:19:18] [Z:\] [\\richardquadling\scratch$ ] >php -r "$_1
= 'one'; echo $_1;"
one
It starts with an undercore and is, t
On Thu, 2011-07-14 at 13:39 +0100, Stuart Dallas wrote:
> On Thu, Jul 14, 2011 at 1:37 PM, Steve Staples wrote:
>
> > On Wed, 2011-07-13 at 23:27 +0100, Tim Streater wrote:
> > > A valid variable name starts with a letter or underscore
> >
> > If I am not mistaken, $_1 is not a valid variable nam
On Thu, Jul 14, 2011 at 1:37 PM, Steve Staples wrote:
> On Wed, 2011-07-13 at 23:27 +0100, Tim Streater wrote:
> > A valid variable name starts with a letter or underscore
>
> If I am not mistaken, $_1 is not a valid variable name.
You are mistaken. Try it.
-Stuart
--
Stuart Dallas
3ft9 Ltd
On Wed, 2011-07-13 at 23:27 +0100, Tim Streater wrote:
> On 13 Jul 2011 at 22:39, Micky Hulse wrote:
>
> > They must mean labels as in "general naming convention rules for
> > programming"... Like not naming a variable/function "label" with a number at
> > the front.
> >
> > Here's a page about
> On 14 July 2011 11:36, Ashley Sheridan wrote:
> Makes me want to beat them upside the head with a dictionary :)
In our house, our Big Red Book _IS_ a massive Oxford Dictionary.
We play a game with the kids. Think of 3 random letters and find a
word starting with it.
My daughter (6 or 7 at the
On 14 July 2011 11:36, Ashley Sheridan wrote:
> That's a massive pet hate of mine, along with using here/hear in the wrong
> way and those who have no idea of the difference between "there", "their" &
> "they're". Makes me want to beat them upside the head with a dictionary :)
> Thanks,
> Ash
I
>Particularly as it's written by a fathead who thinks that "lose" is
>spelt "loose".
>
>--
>Cheers -- Tim
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
That's a massive pet hate of mine, along with using here/hear in the wrong way
On 14 July 2011 05:15, Negin Nickparsa wrote:
> if the problem is only the assigning it's an example:
> in mysql you can have this one:
> create table store_list(id_markets int auto_increment,store_type int,primary
> key(id_markets));
>
> and for page this one:
>
>
>
>
> Store
>
>
> $connecti
On 12 July 2011 18:45, Marc Guay wrote:
> Hi folks,
>
> I'm working on a project that will only be run locally on a WAMP
> server. A mobile browser/app will call a certain page which should
> silently trigger a print job to a printer connected to the printer.
> Does anyone have advice on how to a
On 2011-07-14, at 12:50 AM, Midhun Girish wrote:
>
>
> On Thu, Jul 14, 2011 at 11:18 AM, George Langley
> wrote:
> On 2011-07-13, at 11:20 PM, Midhun Girish wrote:
>
> > Hi,
> >
> >
> > - Browsers generally have a 5 minute time-out. If you send the PDF directly
> > to the browser and reach
On 14 Jul 2011 at 01:59, Lester Caine wrote:
> Daevid Vincent wrote:
>> (at the risk of starting another $h!t storm like the last time)
>>
>> http://wiki.theory.org/YourLanguageSucks#PHP_sucks_because:
>
> Perhaps when they get around to checking the facts ... most of the content
> will
> be del
That's already pretty streamlined...
On Jul 13, 2011 11:22 PM, "Ron Piggott"
wrote:
>
> Is there a way to stream line this:
>
> if ( ( $val <> "with" ) AND ( $val <> "from" ) ) {
>
> Ron
>
> The Verse of the Day
> “Encouragement from God’s Word”
> http://www.TheVerseOfTheDay.info
30 matches
Mail list logo