php-general Digest 28 Feb 2009 15:35:30 -0000 Issue 5984

Topics (messages 288968 through 288984):

Re: Converting PHP code to C#?
        288968 by: ariki

Re: Get a list of column field names from a MS Access table
        288969 by: Andrew Ballard
        288970 by: Andrew Ballard
        288976 by: Ashley Sheridan

Re: compiling php with libjpg64
        288971 by: Shawn McKenzie
        288980 by: Merlin Morgenstern

Re: How important is your Express or Web Edition database? Please weigh in--
        288972 by: Andrew Ballard
        288977 by: Ashley Sheridan

Re: make libphp5.so
        288973 by: Per Jessen
        288979 by: The Doctor

Re: "use strict" or similar in PHP?
        288974 by: Robert Cummings
        288983 by: Shawn McKenzie
        288984 by: Robert Cummings

Fast and Permanent Fat Loss Diet
        288975 by: Lagina Leichter

Re: Stupid is as Stupid does
        288978 by: Frank Stanovcak

Re: A puzzler (well, for me at least)
        288981 by: tedd

Re: non-auto increment question
        288982 by: tedd

Administrivia:

To subscribe to the digest, e-mail:
        [email protected]

To unsubscribe from the digest, e-mail:
        [email protected]

To post to the list, e-mail:
        [email protected]


----------------------------------------------------------------------
--- Begin Message ---
I go the same problem as well, how could I hardcode the iv and key, if
iv="abc" and key="123" in C#, what are the iv and key in PHP?


Symbian wrote:
> 
> 
> 
> mike-22 wrote:
>> 
>> i'm pretty sure the IV mattered in our stuff.
>> 
>> and remember i used CBC i think not EBC, and it worked fine. not sure
>> if you want to try that and make it work for you or not without any
>> warnings :)
>> 
> 
> Ah! We're using EBC, also I realised that I needed to implement the
> eqivalent of the pack function in PHP which we use, so I finally have the
> correct (MD5'd both the PHP and C# bits) string going *into* the function. 
> 
> Now I have to wrestle with the Rijndael class again:(
> 
>             Rijndael r = Rijndael.Create();
>             r.Mode = CipherMode.ECB;
>             r.Padding = PaddingMode.None;
>             r.Key = Encoding.ASCII.GetBytes(KEY);
>             ICryptoTransform de = r.CreateDecryptor();
>             byte[] output = CryptoTransform(input, de);
> 
> Sym
> 

-- 
View this message in context: 
http://www.nabble.com/Converting-PHP-code-to-C---tp12541304p22258550.html
Sent from the PHP - General mailing list archive at Nabble.com.


--- End Message ---
--- Begin Message ---
On Fri, Feb 27, 2009 at 4:58 PM, Bastien Koert <[email protected]> wrote:
> On Thu, Feb 26, 2009 at 4:01 PM, revDAVE <[email protected]> wrote:
>
>> Newbie question:
>>
>> I would like to get a list of column field names from a MS Access table and
>> hopefully get them returned in the ORIGINAL order (as they appear in
>> access)
>>
>> Is there a sql query I could do to get this result?
>>
>>
>>
>>
>> --
>> Thanks - RevDave
>> Cool @ hosting4days . com
>> [db-lists 09]
>>
>>
>>
>>
>> --
>> PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
> A dirty way is to query the table where 1=2 to return no results
>
> select * from table where 1=2
>
> --
>
> Bastien
>
> Cat, the other other white meat
>

I thought (and almost replied) the same, but the more I think about
it, I'm not sure it would work. The query would return no results, so
there wouldn't even be an array of empty values.

Andrew

--- End Message ---
--- Begin Message ---
On Fri, Feb 27, 2009 at 7:41 PM, Ashley Sheridan
<[email protected]> wrote:
> On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote:
>> On Thu, Feb 26, 2009 at 4:01 PM, revDAVE <[email protected]> wrote:
>>
>> > Newbie question:
>> >
>> > I would like to get a list of column field names from a MS Access table and
>> > hopefully get them returned in the ORIGINAL order (as they appear in
>> > access)
>> >
>> > Is there a sql query I could do to get this result?
>> >
>> >
>> >
>> >
>> > --
>> > Thanks - RevDave
>> > Cool @ hosting4days . com
>> > [db-lists 09]
>> >
>> >
>> >
>> >
>> > --
>> > PHP General Mailing List (http://www.php.net/)
>> > To unsubscribe, visit: http://www.php.net/unsub.php
>> >
>> >
>> A dirty way is to query the table where 1=2 to return no results
>>
>> select * from table where 1=2
>>
> That'll just return an empty result set, as in empty and with no fields
> output! In MySQL you can do this:
>
> SELECT column_name FROM information_schema.columns WHERE table_name =
> 'table_name'
>
> this might help with doing the same for M$Access?
>
>
> Ash
> www.ashleysheridan.co.uk
>

I haven't ever seen information_schema in M$ Access.

Andrew

--- End Message ---
--- Begin Message ---
On Sat, 2009-02-28 at 00:40 -0500, Andrew Ballard wrote:
> On Fri, Feb 27, 2009 at 7:41 PM, Ashley Sheridan
> <[email protected]> wrote:
> > On Fri, 2009-02-27 at 16:58 -0500, Bastien Koert wrote:
> >> On Thu, Feb 26, 2009 at 4:01 PM, revDAVE <[email protected]> wrote:
> >>
> >> > Newbie question:
> >> >
> >> > I would like to get a list of column field names from a MS Access table 
> >> > and
> >> > hopefully get them returned in the ORIGINAL order (as they appear in
> >> > access)
> >> >
> >> > Is there a sql query I could do to get this result?
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > Thanks - RevDave
> >> > Cool @ hosting4days . com
> >> > [db-lists 09]
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > PHP General Mailing List (http://www.php.net/)
> >> > To unsubscribe, visit: http://www.php.net/unsub.php
> >> >
> >> >
> >> A dirty way is to query the table where 1=2 to return no results
> >>
> >> select * from table where 1=2
> >>
> > That'll just return an empty result set, as in empty and with no fields
> > output! In MySQL you can do this:
> >
> > SELECT column_name FROM information_schema.columns WHERE table_name =
> > 'table_name'
> >
> > this might help with doing the same for M$Access?
> >
> >
> > Ash
> > www.ashleysheridan.co.uk
> >
> 
> I haven't ever seen information_schema in M$ Access.
> 
> Andrew
> 
I guess then you could do something like this:

$row_names = Array();
$query = "SELECT TOP 1 * FROM table_name";
$result = mssql_query($query);
while($row = mssql_fetch_array($result))
{
    foreach($row as $key => $value)
    {
        $row_names[] = $key;
    }
}

I know it's a little messy there with the double loop, and I'm sure we
can get rid of the while, but I've just woken up, so I'm not too compos
mentis just yet!


Ash
www.ashleysheridan.co.uk


--- End Message ---
--- Begin Message ---
Ashley Sheridan wrote:
> On Fri, 2009-02-27 at 12:43 -0600, Shawn McKenzie wrote:
>> Merlin Morgenstern wrote:
>>> Hi there,
>>>
>>> I am trying to get a 64 bit suse 10.3 system to run with php 5. Somehow
>>> it does not recognize the libjpg which is definatelly in place:
>>>
>>> server:/home/sw/php-5.2.9 # './configure' '--enable-fastcgi'
>>> '--with-mysql=/usr/local/mysql' '--prefix=/usr/local/php'
>>> '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-mbstring'
>>> '--with-pdo-mysql=/usr/local/mysql/' '--enable-soap'
>>> '--with-zlib-dir=/usr/lib64' '--with-freetype-dir=/usr/lib64'
>>> '--with-gd' '--with-jpeg-dir=/usr/lib64' '--with-png-dir=/usr/lib64'
>>> '--enable-exif' '--with-pdflib=/usr/local' > configure.txt
>>>
>>> configure: warning: bison versions supported for regeneration of the
>>> Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found:
>>> none).
>>> configure: warning: flex versions supported for regeneration of the
>>> Zend/PHP parsers: 2.5.4  (found: 2.5.33)
>>> configure: warning: You will need re2c 0.13.4 or later if you want to
>>> regenerate PHP parsers.
>>> configure: error: libjpeg.(a|so) not found.
>>>
>>> but:
>>> # locate libjpeg.so
>>> /usr/lib64/libjpeg.so
>>> /usr/lib64/libjpeg.so.62
>>> /usr/lib64/libjpeg.so.62.0.0
>>>
>>> # locate libjpeg.a
>>> /usr/lib64/libjpeg.a
>>>
>>> I am kind of lost with this one. I can not find the error. Has somebody
>>> an idea how to fix this?
>>>
>>> Thank you for any help, Merlin
>> Might try adding:  --with-libdir=lib64
>>
>> -- 
>> Thanks!
>> -Shawn
>> http://www.spidean.com
>>
> I've got Suse10.3 on my laptop, all 64-bit, and running the correct
> graphics libraries which I use for GD. I used Yast to install the whole
> thing, as it sorts out everything for me. For Suse, I'd recommend it, as
> it really is a great admin tool, albeit a little slow when building
> repository lists when you install things!
> 
> 
> Ash
> www.ashleysheridan.co.uk
> 

Yes, I always use a package from whatever distro (ubuntu for my desktop
for several years and fedora on my web host).  I've never needed to
compile apache/php/mysql or most anything else.  Sometimes there's
something that I want that you can only get from source, but normally
that builds easily for me.

-- 
Thanks!
-Shawn
http://www.spidean.com

--- End Message ---
--- Begin Message ---
Hi everybody,

I have to compile from source for several reasons. Any idea on how to fix this particular problem with the lib64?

Regards, merlin

Shawn McKenzie schrieb:
Ashley Sheridan wrote:
On Fri, 2009-02-27 at 12:43 -0600, Shawn McKenzie wrote:
Merlin Morgenstern wrote:
Hi there,

I am trying to get a 64 bit suse 10.3 system to run with php 5. Somehow
it does not recognize the libjpg which is definatelly in place:

server:/home/sw/php-5.2.9 # './configure' '--enable-fastcgi'
'--with-mysql=/usr/local/mysql' '--prefix=/usr/local/php'
'--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-mbstring'
'--with-pdo-mysql=/usr/local/mysql/' '--enable-soap'
'--with-zlib-dir=/usr/lib64' '--with-freetype-dir=/usr/lib64'
'--with-gd' '--with-jpeg-dir=/usr/lib64' '--with-png-dir=/usr/lib64'
'--enable-exif' '--with-pdflib=/usr/local' > configure.txt

configure: warning: bison versions supported for regeneration of the
Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found:
none).
configure: warning: flex versions supported for regeneration of the
Zend/PHP parsers: 2.5.4  (found: 2.5.33)
configure: warning: You will need re2c 0.13.4 or later if you want to
regenerate PHP parsers.
configure: error: libjpeg.(a|so) not found.

but:
# locate libjpeg.so
/usr/lib64/libjpeg.so
/usr/lib64/libjpeg.so.62
/usr/lib64/libjpeg.so.62.0.0

# locate libjpeg.a
/usr/lib64/libjpeg.a

I am kind of lost with this one. I can not find the error. Has somebody
an idea how to fix this?

Thank you for any help, Merlin
Might try adding:  --with-libdir=lib64

--
Thanks!
-Shawn
http://www.spidean.com

I've got Suse10.3 on my laptop, all 64-bit, and running the correct
graphics libraries which I use for GD. I used Yast to install the whole
thing, as it sorts out everything for me. For Suse, I'd recommend it, as
it really is a great admin tool, albeit a little slow when building
repository lists when you install things!


Ash
www.ashleysheridan.co.uk


Yes, I always use a package from whatever distro (ubuntu for my desktop
for several years and fedora on my web host).  I've never needed to
compile apache/php/mysql or most anything else.  Sometimes there's
something that I want that you can only get from source, but normally
that builds easily for me.


--- End Message ---
--- Begin Message ---
On Fri, Feb 27, 2009 at 7:32 PM, Ashley Sheridan
<[email protected]> wrote:
> On Fri, 2009-02-27 at 16:41 -0600, Boyd, Todd M. wrote:
>> > -----Original Message-----
>> > From: Andrew Ballard [mailto:[email protected]]
>> > Sent: Friday, February 27, 2009 3:26 PM
>> > To: Bastien Koert
>> > Cc: Shawn McKenzie; [email protected]
>> > Subject: Re: [PHP] Re: How important is your Express or Web Edition
>> > database? Please weigh in--
>> >
>> > On Fri, Feb 27, 2009 at 4:21 PM, Bastien Koert <[email protected]>
>> > wrote:
>> > > On Fri, Feb 27, 2009 at 4:01 PM, Shawn McKenzie
>> > <[email protected]>wrote:
>> > >
>> > >> Stan Stadelman wrote:
>> > >> > Hello All:
>> > >> >
>> > >> > I'm trying to see how Web Edition databases are being used in your
>> > >> company
>> > >> > for PHP-driven web-apps.  Our strategy team thought that free and
>> > >> community
>> > >> > editions would be dominant, but we interviewed Zend Framework
>> > developers
>> > >> > using Oracle, IBM, Microsoft, MySQL, PostgreSQL, and it looks
>> > >> > like--surprise--that each vendors' market share is about the same
>> > as in
>> > >> the
>> > >> > broad commercial market.
>> > >> >
>> > >> > We think this means that you--the PHP developer community--aren't
>> > >> actually
>> > >> > using the lightweight Web/Express Edition for your corporate web-
>> > app
>> > >> > deployment, and instead are building out on the licenses for
>> > databases
>> > >> your
>> > >> > company is already running.
>> > >> >
>> > >> > Is the Express/Community/Web Edition important for you at work? Is
>> > it a
>> > >> > critical sandboxing step for you? Do you run it live for internal
>> > >> > applications?
>> > >> >
>> > >> > Answering these 10 multiple choice questions--should take about 90
>> > >> > seconds--will help us understand what databases you need in your
>> > >> > professional life, and how to deliver them to you.
>> > >> >
>> > >> > Happy cooking, and thanks!
>> > >> >
>> > >> >
>> > http://www.surveymonkey.com/s.aspx?sm=Jro0rkoIGJKuQNpfWZV_2bBQ_3d_3d
>> > >> >
>> > >>
>> > >> What exactly are, Express or Web Edition databases?
>> > >>
>> > >> --
>> > >> Thanks!
>> > >> -Shawn
>> > >> http://www.spidean.com
>> > >>
>> > >>
>> > > Just another marketing tool to sell a limited toolset db to punters
>> > who like
>> > > marketing hype
>> > >
>> > >
>> > > --
>> > >
>> > > Bastien
>> >
>> > I thought they were free. Limited, but free. (reduced functionality or
>> > limited number of connections compared to the commercial versions of
>> > the products) I've not heard of "Web Edition", but I have heard of
>> > both SQL Server and Oracle Express. I haven't used them, but I guess
>> > the idea I have in mind is of products that are supposed to be just
>> > good enough to use in either embedded apps or else to entice
>> > developers into wanting the full version for server apps.
>>
>> I use SQLExpress (SQL Server Express) all the time at work for prototyping 
>> and such... although, I have to say--if my company hadn't installed it on my 
>> machine to begin with, and they weren't running SQL Server 2005 on the 
>> production servers, I would rather just use a private MySQL installation for 
>> prototyping and then push to a MySQL production server. Alas...
>>
>>
>> // Todd
> For me it's MySQL all the way. My company is too cheap to pay for later
> versions of MS SQL Server, so the versions we have there are *very*
> limited in features (for example, no limit function!) MySQL also seems a
> lot faster for me too. I regularly deal with large databases (think
> millions of records) and MSSQL is a real bottleneck here, whereas MySQL
> seems fine (althogh, it is running on Linux, which frees up more
> resources for actually getting stuff done!)
>
> Oh, funny thing. I filled in the questionnaire above, and when it got to
> the final 'thanks' page, I clicked the button, and it bombed out to a
> completely blank page. Doesn't bode too well for a company attempting to
> sell a product for use in enterprise situations!
>
>
> Ash
> www.ashleysheridan.co.uk
>

It all depends on what you need. I know from your previous posts that
you're not very well disposed to SQL Server, but I've used it quite a
bit now for the last 8 years and haven't really had any problems with
performance. I'll grant that it doesn't have the LIMIT clause (Is it
part of the actual ANSI SQL spec, or is it something handy that MySQL
added to their product?) The newer versions offer a row number
function that can be used to provide the the same functionality, but
I'll admit it is not nearly as simple as being able to say LIMIT 25,
50.

While I like MySQL, it has its oddities as well. I've run into
situations where I had to add ORDER BY clauses to UPDATE statements
(I'm not sure that's really valid SQL either) because it updated the
rows sequentially and validated a unique index after each row rather
than after all the rows were processed. I wish it would support CHECK
constraints. And as convenient as I've found the SET and ENUM
datatypes in simple databases, I'm coming to the notion that they are
not a good idea in most situations. And while the availability of
different engines has benefits, it can also cause issues.


Andrew

--- End Message ---
--- Begin Message ---
On Sat, 2009-02-28 at 01:04 -0500, Andrew Ballard wrote:
> On Fri, Feb 27, 2009 at 7:32 PM, Ashley Sheridan
> <[email protected]> wrote:
> > On Fri, 2009-02-27 at 16:41 -0600, Boyd, Todd M. wrote:
> >> > -----Original Message-----
> >> > From: Andrew Ballard [mailto:[email protected]]
> >> > Sent: Friday, February 27, 2009 3:26 PM
> >> > To: Bastien Koert
> >> > Cc: Shawn McKenzie; [email protected]
> >> > Subject: Re: [PHP] Re: How important is your Express or Web Edition
> >> > database? Please weigh in--
> >> >
> >> > On Fri, Feb 27, 2009 at 4:21 PM, Bastien Koert <[email protected]>
> >> > wrote:
> >> > > On Fri, Feb 27, 2009 at 4:01 PM, Shawn McKenzie
> >> > <[email protected]>wrote:
> >> > >
> >> > >> Stan Stadelman wrote:
> >> > >> > Hello All:
> >> > >> >
> >> > >> > I'm trying to see how Web Edition databases are being used in your
> >> > >> company
> >> > >> > for PHP-driven web-apps.  Our strategy team thought that free and
> >> > >> community
> >> > >> > editions would be dominant, but we interviewed Zend Framework
> >> > developers
> >> > >> > using Oracle, IBM, Microsoft, MySQL, PostgreSQL, and it looks
> >> > >> > like--surprise--that each vendors' market share is about the same
> >> > as in
> >> > >> the
> >> > >> > broad commercial market.
> >> > >> >
> >> > >> > We think this means that you--the PHP developer community--aren't
> >> > >> actually
> >> > >> > using the lightweight Web/Express Edition for your corporate web-
> >> > app
> >> > >> > deployment, and instead are building out on the licenses for
> >> > databases
> >> > >> your
> >> > >> > company is already running.
> >> > >> >
> >> > >> > Is the Express/Community/Web Edition important for you at work? Is
> >> > it a
> >> > >> > critical sandboxing step for you? Do you run it live for internal
> >> > >> > applications?
> >> > >> >
> >> > >> > Answering these 10 multiple choice questions--should take about 90
> >> > >> > seconds--will help us understand what databases you need in your
> >> > >> > professional life, and how to deliver them to you.
> >> > >> >
> >> > >> > Happy cooking, and thanks!
> >> > >> >
> >> > >> >
> >> > http://www.surveymonkey.com/s.aspx?sm=Jro0rkoIGJKuQNpfWZV_2bBQ_3d_3d
> >> > >> >
> >> > >>
> >> > >> What exactly are, Express or Web Edition databases?
> >> > >>
> >> > >> --
> >> > >> Thanks!
> >> > >> -Shawn
> >> > >> http://www.spidean.com
> >> > >>
> >> > >>
> >> > > Just another marketing tool to sell a limited toolset db to punters
> >> > who like
> >> > > marketing hype
> >> > >
> >> > >
> >> > > --
> >> > >
> >> > > Bastien
> >> >
> >> > I thought they were free. Limited, but free. (reduced functionality or
> >> > limited number of connections compared to the commercial versions of
> >> > the products) I've not heard of "Web Edition", but I have heard of
> >> > both SQL Server and Oracle Express. I haven't used them, but I guess
> >> > the idea I have in mind is of products that are supposed to be just
> >> > good enough to use in either embedded apps or else to entice
> >> > developers into wanting the full version for server apps.
> >>
> >> I use SQLExpress (SQL Server Express) all the time at work for prototyping 
> >> and such... although, I have to say--if my company hadn't installed it on 
> >> my machine to begin with, and they weren't running SQL Server 2005 on the 
> >> production servers, I would rather just use a private MySQL installation 
> >> for prototyping and then push to a MySQL production server. Alas...
> >>
> >>
> >> // Todd
> > For me it's MySQL all the way. My company is too cheap to pay for later
> > versions of MS SQL Server, so the versions we have there are *very*
> > limited in features (for example, no limit function!) MySQL also seems a
> > lot faster for me too. I regularly deal with large databases (think
> > millions of records) and MSSQL is a real bottleneck here, whereas MySQL
> > seems fine (althogh, it is running on Linux, which frees up more
> > resources for actually getting stuff done!)
> >
> > Oh, funny thing. I filled in the questionnaire above, and when it got to
> > the final 'thanks' page, I clicked the button, and it bombed out to a
> > completely blank page. Doesn't bode too well for a company attempting to
> > sell a product for use in enterprise situations!
> >
> >
> > Ash
> > www.ashleysheridan.co.uk
> >
> 
> It all depends on what you need. I know from your previous posts that
> you're not very well disposed to SQL Server, but I've used it quite a
> bit now for the last 8 years and haven't really had any problems with
> performance. I'll grant that it doesn't have the LIMIT clause (Is it
> part of the actual ANSI SQL spec, or is it something handy that MySQL
> added to their product?) The newer versions offer a row number
> function that can be used to provide the the same functionality, but
> I'll admit it is not nearly as simple as being able to say LIMIT 25,
> 50.
> 
> While I like MySQL, it has its oddities as well. I've run into
> situations where I had to add ORDER BY clauses to UPDATE statements
> (I'm not sure that's really valid SQL either) because it updated the
> rows sequentially and validated a unique index after each row rather
> than after all the rows were processed. I wish it would support CHECK
> constraints. And as convenient as I've found the SET and ENUM
> datatypes in simple databases, I'm coming to the notion that they are
> not a good idea in most situations. And while the availability of
> different engines has benefits, it can also cause issues.
> 
> 
> Andrew
> 
I absolutely love enum datatypes; they allow you to use string values
but internally stores them as numbers, and prevents the wrong data from
being inserted. Much simpler than joining extra tables of values onto
it.

As for mssql server, well, it's a bit of a hate/accept relationship. I'm
forced to use it at work, and the Enterprise Manager tools we use to
deal with it are slow and clumsy, and often do the strangest things. I'm
generally not a fan of Windows much now, as I have seen what open source
alternatives can really do.


Ash
www.ashleysheridan.co.uk


--- End Message ---
--- Begin Message ---
The Doctor wrote:

> I am running into problems compiling a shared module on
> BSD/OS 4.3.1 .
> 

You neglected to mention _which_ problems. 

[snip]
> I want to surpress static maode and fully concentrate only in the so.

disable-static, enabled-shared ? 



-- 
Per Jessen, Zürich (2.7°C)


--- End Message ---
--- Begin Message ---
On Sat, Feb 28, 2009 at 09:27:41AM +0100, Per Jessen wrote:
> The Doctor wrote:
> 
> > I am running into problems compiling a shared module on
> > BSD/OS 4.3.1 .
> > 
> 
> You neglected to mention _which_ problems. 
> 
> [snip]
> > I want to surpress static maode and fully concentrate only in the so.
> 
> disable-static, enabled-shared ? 
>

I am interested only in compling a shared module and not a statis mdule.
 
> 
> 
> -- 
> Per Jessen, Zürich (2.7°C)
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> -- 
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
> 

-- 
Member - Liberal International  This is [email protected]
Ici [email protected] God, Queen and country! Beware Anti-Christ rising!
Never Satan President Republic!
Christian(n): A Jew that believe Christ is Messiah and Saviour and alive

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


--- End Message ---
--- Begin Message ---
On Sat, 2009-02-28 at 00:11 +0000, Ashley Sheridan wrote:
> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote:
> > On Sat, 2009-02-28 at 00:02 +0600, 9el wrote:
> > > -----------------------------------------------------------------------
> > > Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
> > > a Free CD of Ubuntu mailed to your door without any cost. Visit :
> > > www.ubuntu.com
> > > ----------------------------------------------------------------------
> > > 
> > > 
> > > On Fri, Feb 27, 2009 at 11:46 PM, Robert Cummings 
> > > <[email protected]>wrote:
> > > 
> > > > On Fri, 2009-02-27 at 09:28 -0700, LuKreme wrote:
> > > > > On Feb 27, 2009, at 6:12, Hans Schultz <[email protected]> wrote:
> > > > >
> > > > > > Hahahah,I was thinking the same thing
> > > > >
> > > > > >>
> > > > > >>
> > > > > >
> > > > > The trouble is most people mean "compile a source file to an
> > > > > executable binary" when they sat compile. By this measure, PHP does
> > > > > not compile.
> > > >
> > > > I add the following to the top of my PHP shell scripts:
> > > >
> > > >    #!/usr/bin/php -qC
> > > >
> > > > Then I do the following:
> > > >
> > > >    chmod 775 script.php
> > > >
> > > > Then I run it as follows:
> > > >
> > > >    ./script.php
> > > >
> > > > Look... and executable binary :) Don't say it's not binary. All data on
> > > > a hard disk is binary (although I do know what you mean ;)
> > > 
> > > 
> > > Well you are running shell script style execution its not example of
> > > Compiled code or Binary
> > > 
> > > The data in the file is ASCII or UTF text :)
> > 
> > Which are subsets of binary representation ;)
> > 
> > > Compilation happens when its zendOptimized or OpCoded. Its then is 
> > > converted
> > > into binary content file.
> > 
> > But one could probably quite easily set up a system whereby eAccelerator
> > or APC or Zend Optimizer cache bytecodes are torn from a file run
> > similarly. As I said in an earlier post... the line between the
> > definition of interpreted language and compiled language is quite blurry
> > these days.
> > 
> > Cheers,
> > Rob.
> > -- 
> > http://www.interjinn.com
> > Application and Templating Framework for PHP
> > 
> > 
> ASCII is only a subset of binary in a pedantic, literal sense. When
> people say binary file, they mean one that contains characters which are
> outside the normal display spectrum, such as chr(0), etc.

And the argument that PHP is not compiled requires a certain level of
pedantry and it is still an incorrect argument since it most certainly
is compiled to an intermediary virtual machine code.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
Robert Cummings wrote:
> On Sat, 2009-02-28 at 00:11 +0000, Ashley Sheridan wrote:
>> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote:
>>> On Sat, 2009-02-28 at 00:02 +0600, 9el wrote:
>>>> -----------------------------------------------------------------------
>>>> Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
>>>> a Free CD of Ubuntu mailed to your door without any cost. Visit :
>>>> www.ubuntu.com
>>>> ----------------------------------------------------------------------
>>>>
>>>>
>>>> On Fri, Feb 27, 2009 at 11:46 PM, Robert Cummings 
>>>> <[email protected]>wrote:
>>>>
>>>>> On Fri, 2009-02-27 at 09:28 -0700, LuKreme wrote:
>>>>>> On Feb 27, 2009, at 6:12, Hans Schultz <[email protected]> wrote:
>>>>>>
>>>>>>> Hahahah,I was thinking the same thing
>>>>>>>>
>>>>>> The trouble is most people mean "compile a source file to an
>>>>>> executable binary" when they sat compile. By this measure, PHP does
>>>>>> not compile.
>>>>> I add the following to the top of my PHP shell scripts:
>>>>>
>>>>>    #!/usr/bin/php -qC
>>>>>
>>>>> Then I do the following:
>>>>>
>>>>>    chmod 775 script.php
>>>>>
>>>>> Then I run it as follows:
>>>>>
>>>>>    ./script.php
>>>>>
>>>>> Look... and executable binary :) Don't say it's not binary. All data on
>>>>> a hard disk is binary (although I do know what you mean ;)
>>>>
>>>> Well you are running shell script style execution its not example of
>>>> Compiled code or Binary
>>>>
>>>> The data in the file is ASCII or UTF text :)
>>> Which are subsets of binary representation ;)
>>>
>>>> Compilation happens when its zendOptimized or OpCoded. Its then is 
>>>> converted
>>>> into binary content file.
>>> But one could probably quite easily set up a system whereby eAccelerator
>>> or APC or Zend Optimizer cache bytecodes are torn from a file run
>>> similarly. As I said in an earlier post... the line between the
>>> definition of interpreted language and compiled language is quite blurry
>>> these days.
>>>
>>> Cheers,
>>> Rob.
>>> -- 
>>> http://www.interjinn.com
>>> Application and Templating Framework for PHP
>>>
>>>
>> ASCII is only a subset of binary in a pedantic, literal sense. When
>> people say binary file, they mean one that contains characters which are
>> outside the normal display spectrum, such as chr(0), etc.
> 
> And the argument that PHP is not compiled requires a certain level of
> pedantry and it is still an incorrect argument since it most certainly
> is compiled to an intermediary virtual machine code.
> 
> Cheers,
> Rob.

Still, in PHP $compile_time == $run_time.

-- 
Thanks!
-Shawn
http://www.spidean.com

--- End Message ---
--- Begin Message ---
On Sat, 2009-02-28 at 09:04 -0600, Shawn McKenzie wrote:
> Robert Cummings wrote:
> > On Sat, 2009-02-28 at 00:11 +0000, Ashley Sheridan wrote:
> >> On Fri, 2009-02-27 at 14:32 -0500, Robert Cummings wrote:
> >>> On Sat, 2009-02-28 at 00:02 +0600, 9el wrote:
> >>>> -----------------------------------------------------------------------
> >>>> Use FreeOpenSourceSoftwares, Stop piracy, Let the developers live. Get
> >>>> a Free CD of Ubuntu mailed to your door without any cost. Visit :
> >>>> www.ubuntu.com
> >>>> ----------------------------------------------------------------------
> >>>>
> >>>>
> >>>> On Fri, Feb 27, 2009 at 11:46 PM, Robert Cummings 
> >>>> <[email protected]>wrote:
> >>>>
> >>>>> On Fri, 2009-02-27 at 09:28 -0700, LuKreme wrote:
> >>>>>> On Feb 27, 2009, at 6:12, Hans Schultz <[email protected]> wrote:
> >>>>>>
> >>>>>>> Hahahah,I was thinking the same thing
> >>>>>>>>
> >>>>>> The trouble is most people mean "compile a source file to an
> >>>>>> executable binary" when they sat compile. By this measure, PHP does
> >>>>>> not compile.
> >>>>> I add the following to the top of my PHP shell scripts:
> >>>>>
> >>>>>    #!/usr/bin/php -qC
> >>>>>
> >>>>> Then I do the following:
> >>>>>
> >>>>>    chmod 775 script.php
> >>>>>
> >>>>> Then I run it as follows:
> >>>>>
> >>>>>    ./script.php
> >>>>>
> >>>>> Look... and executable binary :) Don't say it's not binary. All data on
> >>>>> a hard disk is binary (although I do know what you mean ;)
> >>>>
> >>>> Well you are running shell script style execution its not example of
> >>>> Compiled code or Binary
> >>>>
> >>>> The data in the file is ASCII or UTF text :)
> >>> Which are subsets of binary representation ;)
> >>>
> >>>> Compilation happens when its zendOptimized or OpCoded. Its then is 
> >>>> converted
> >>>> into binary content file.
> >>> But one could probably quite easily set up a system whereby eAccelerator
> >>> or APC or Zend Optimizer cache bytecodes are torn from a file run
> >>> similarly. As I said in an earlier post... the line between the
> >>> definition of interpreted language and compiled language is quite blurry
> >>> these days.
> >>>
> >>> Cheers,
> >>> Rob.
> >>> -- 
> >>> http://www.interjinn.com
> >>> Application and Templating Framework for PHP
> >>>
> >>>
> >> ASCII is only a subset of binary in a pedantic, literal sense. When
> >> people say binary file, they mean one that contains characters which are
> >> outside the normal display spectrum, such as chr(0), etc.
> > 
> > And the argument that PHP is not compiled requires a certain level of
> > pedantry and it is still an incorrect argument since it most certainly
> > is compiled to an intermediary virtual machine code.
> > 
> > Cheers,
> > Rob.
> 
> Still, in PHP $compile_time == $run_time.

No, compile time is usually a fraction of run time. And with a bytecode
cache like eAccelerator or APC then it's not even considerable.

Cheers,
Rob.
-- 
http://www.interjinn.com
Application and Templating Framework for PHP


--- End Message ---
--- Begin Message ---
Dear Friend,

I'm here to tell you my story. I am a real woman who has followed her passion 
for nutrition to help hundreds of people achieve real, long term weight loss 
success. Most importantly, I am a daughter who wanted more for herself and her 
mother than a life of overweight and diabetic misery.

In my own quest to find answers to mine and my mother's weight loss struggles, 
I discovered a lot of diet schemes and gimmicks that did not work, as well as 
discovering exactly what does work. I found professionals and real world people 
that had gotten the exact results I was looking for and studied their precise 
methods for achieving long term weight loss and vibrant health.

When I applied these revolutionary principles to my own life, I lost 30 lbs, 
cleared up my chronic acne, and began to live life with a greater level of 
energy than ever before. These results were nothing short of amazing. Years 
later, my mother followed my lead, lost 40 lbs and completely regulated her out 
of control diabetes. 

Now is the time that you try it too. You don't have nothing to lose, because 
what is offered in the moment, are these amazing FREE TRIALS available(you just 
have to make it fast, before the free trials expire).

Send an answer to [email protected] if you are interested, so you 
can receive information on how to proceed further!

Best Regards











------------------------------------------------------------------
This email has been written and proved to be in compliance with the recently 
established can-spam act law in US. We are not provoking or forcing any person 
in any way to participate in our programs. To participate is your own decision 
and you carry the responsibility of taking further part in this promotion. 
Anyway, if you don't want to receive more good offers from us, you can simply 
Unsubscribe by sending us a notification email to [email protected] 
with a mail-subject and text "Unsubscribe me", and we will get your email out 
of our list within 10 days.

This message is STRICTLY CONFIDENTIAL and is solely for the individual or 
organisation to whom it is addressed. It may contain PRIVILEGED and 
CONFIDENTIAL information. If you are not the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this communication 
and its contents is strictly prohibited. If you are not interested in the 
offered promotions, please just don't answer. If you think you have received 
this message and its contents in error, please delete it from your computer, or 
follow the unsubscribing procedure shown above.
------------------------------------------------------------------
                

--- End Message ---
--- Begin Message ---
""Michael A. Peters"" <[email protected]> wrote in message 
news:[email protected]...
> As my web app is coming to completion, I added a means to search records 
> (different from site search).
>
> This involves reading post input and is many cases converting it to an 
> integer.
>
> Damn I feel dumb.
>
> The search app wasn't working, so I did what I often do when 
> troubleshooting crap - I put a die($variable) at various points to see if 
> the variable is what it is suppose to be.
>
> I kept getting blank returns from die after the conversion from a post 
> string to an integer. I looked in the apache logs, system logs, I even 
> tried rebooting - I couldn't figure why the smurf the variable wasn't 
> converting to integer.
>
> I even turned off eaccelerator in case that was causing it, though it 
> never has given me issue before (except once when I was doing something in 
> a really shoddy way - cleaned up my method and it behaved)
>
> After several hours contemplating if I had bad RAM, an issue with the CPU, 
> verifying my RPMs were good, wondering why I wasn't getting anything in 
> the logs, it dawned on me.
>
> If variable is an integer, die($var) returns nothing and is suppose to 
> return nothing, it takes a string as an argument to echo on death - 
> die("$var") is what I wanted.
>
> I need sleep.
>
> I did finally find the error and fix the record search problem.

Meh...just replace the muffler bearings, and be done with it.

Frank...what's sleep? 



--- End Message ---
--- Begin Message ---
At 10:06 AM -0500 2/26/09, Robert Cummings wrote:
As for funny... some people have no sense of humour and to them I
pointedly point my tongue.

Cheers,
Rob.

Ain't that the truth -- there are people who have no sense of humor.

While "wash your hands", with respect to time on them, was not as funny as it could have been in the right setting, it was indeed humorous. How people can not see that is beyond me.

Cheers,

tedd


--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---
--- Begin Message ---
At 10:02 PM +0000 2/26/09, Ashley Sheridan wrote:

Only in America!

Ash

Not true -- I never thought otherwise.

Cheers,

tedd

--
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com

--- End Message ---

Reply via email to