Thank you Ruan!
This is just what I was looking for!
Anthony
"Ryan Sun" wrote in message
news:f7f19ac21001081308r4b202d45vedaf3561536ad...@mail.gmail.com...
Yup,
you put result in an array
$result = array('status' => 'good');
and return encoded string
return Json_Encode($result);
your clie
tedd wrote:
> At 12:24 PM -0800 1/8/10, Daevid Vincent wrote:
>>What do you guys all do?
>
> I always close my code.
>
> I have never had a problem in doing so.
>
> I shall continue to close my code until it trips me up. At such time,
> I'll figure out what the problem is and fix it. Then I'll
Mattias Thorslund wrote:
Hadn't paid much attention to the issue until reading a previous
discussion on the topic, here on this list. After that, I decided to be
consistent and leave the closing ?> out in all include files.
To my eyes, ?> means "look there is more content coming", which seems
I would leave this to personal preference, whether there is a closing ?> or
not wouldn't bother me. I could argue both ways:
Pro: You should put a final ?> for neatness and XML compatibility.
Con: It makes the script fractionally slower because 2 more characters have
to be processed and there migh
Hadn't paid much attention to the issue until reading a previous
discussion on the topic, here on this list. After that, I decided to be
consistent and leave the closing ?> out in all include files.
To my eyes, ?> means "look there is more content coming", which seems
kind of silly when there
Ok... more info on the problem...
I started with a clean untarred archive, ad just ran ./configure, make, make
test I get a core dump.
After running gdb on the core dump I noticed it was the sqlite stuff that
was dumping, so I re-ran configure with --without-sqlite
--without-pdo-sqlite --with
I'm trying to build a clean version of php 5.2.12 on my FreeBSD 6.1 box and
even with NO OPTIONS, php core dumps during the make test phase.
How do I go about tracking down what is causing this problem?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
At 12:24 PM -0800 1/8/10, Daevid Vincent wrote:
What do you guys all do?
I always close my code.
I have never had a problem in doing so.
I shall continue to close my code until it trips me up. At such time,
I'll figure out what the problem is and fix it. Then I'll probably
still close my co
On 8 Jan 2010, at 21:38, Ashley Sheridan wrote:
> On Fri, 2010-01-08 at 21:30 +, Stuart Dallas wrote:
>> On 8 Jan 2010, at 20:49, LinuxManMikeC wrote:
>>
>> >
>> http://framework.zend.com/manual/en/coding-standard.html#coding-standard.overview.scope
>>
>> > "This document provides guidelines
On Fri, 2010-01-08 at 21:30 +, Stuart Dallas wrote:
> On 8 Jan 2010, at 20:49, LinuxManMikeC wrote:
>
> > http://framework.zend.com/manual/en/coding-standard.html#coding-standard.overview.scope
> > "This document provides guidelines for code formatting and
> > documentation to individuals and
On 8 Jan 2010, at 20:49, LinuxManMikeC wrote:
> http://framework.zend.com/manual/en/coding-standard.html#coding-standard.overview.scope
> "This document provides guidelines for code formatting and
> documentation to individuals and teams contributing to Zend
> Framework."
>
> So as far as anythin
if you use the newest PDT, you will find that a new php file has no final ?>
I vote for your co-worker [?]
On Fri, Jan 8, 2010 at 3:49 PM, LinuxManMikeC wrote:
>
> http://framework.zend.com/manual/en/coding-standard.html#coding-standard.overview.scope
> "This document provides guidelines for code
Yup,
you put result in an array
$result = array('status' => 'good');
and return encoded string
return Json_Encode($result);
your client will get a string
'{"status": "good"}'
and you use your client tech(eg. javascrpt) to decode this string and finall
get an object
On Fri, Jan 8, 2010 at 3:43 PM
I'm developing a basic webservice to compliment a mobile application I'm
developing or iPhone. While I know how to encode simple variables and
arrays, I'm not sure how to do what I'm needing to do. Basically, I want to
encode a status message to return to the mobile client. Something like
"sta
On Jan 8, 2010, at 10:44 AM, Andrew Ballard wrote:
On Thu, Jan 7, 2010 at 10:48 PM, Robert Cummings
wrote:
...
They almost always make your shit run faster.
You know they make medicine for that? ;-)
Andrew
--
Tacos?
Bastien
Sent from my iPod
--
PHP General Mailing List (http:
http://framework.zend.com/manual/en/coding-standard.html#coding-standard.overview.scope
"This document provides guidelines for code formatting and
documentation to individuals and teams contributing to Zend
Framework."
So as far as anything other than code being contributed to Zend
Framework, its
On Fri, 2010-01-08 at 12:24 -0800, Daevid Vincent wrote:
> I'm having a debate with a co-worker about adding the final ?> on a PHP
> page...
>
> To be honest, I am the lead, and I could pull rank and be done with the
> discussion, however I don't like to be that way. I would rather do the
> right
I'm having a debate with a co-worker about adding the final ?> on a PHP
page...
To be honest, I am the lead, and I could pull rank and be done with the
discussion, however I don't like to be that way. I would rather do the
right thing. If my way of thinking is old-school (I've been coding since
PH
Sorry forgot to mention that we used APC with apc.stat turned off
which will give a little bit more performance gain, but it does mean
flushing the cache on every code push (which is trivial).
Ravi
On Fri, Jan 8, 2010 at 11:30 AM, J Ravi Menon wrote:
> Hi,
>
> A note on bytecode caching and inc
Hi,
A note on bytecode caching and include/include_once performance. A
while ago when we were profiling our code, we did notice that file
includes do take a noticeable percentage of overall overhead (enough
for us to look into it more deep). We are using apc cache on a
standard LAMP platform (linu
clanc...@cybec.com.au wrote:
On Thu, 07 Jan 2010 22:48:59 -0500, rob...@interjinn.com (Robert Cummings)
wrote:
clanc...@cybec.com.au wrote:
Thank you all for your comments. I did not know about bytecode caches. They're
an
interesting concept, but if I am interpreting the paper
http://itst.ne
Graham Cossey wrote:
On Fri, Jan 8, 2010 at 3:48 AM, Robert Cummings wrote:
They almost always make your shit run faster.
I love your final statement Robert!
A reply of good grammar and vocabulary summarised most succinctly.
:)
--
http://www.interjinn.com
Application and Templating Frame
Op 1/8/10 1:41 PM, Rene Veerman schreef:
> I'm working on a better var_dump (http://mediabeez.ws/htmlMicroscope/,
> LGPL), and want to launch my kate editor when i click in the browser on a
> line in my trace-log.
>
> I'm trying to exec() this line, but it returns 1 (which is i believe a
> general
On Thu, Jan 7, 2010 at 10:48 PM, Robert Cummings wrote:
> ...
> They almost always make your shit run faster.
You know they make medicine for that? ;-)
Andrew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
hmm. after a nap i'm gonna try to start the editor directly from the browser
instead, with ssh:// hopefully to get/write the file on the server.
-- Forwarded message --
From: Rene Veerman
Date: Fri, Jan 8, 2010 at 2:29 PM
Subject: Re: [PHP] trying to launch kate from the browser
To: Bob McConnell
A: str_replace() ;) maybe a preg_replace() but i dont think thats even
necessary.
B: the sudo (see my last mails) is succ
$str = ''echo "blah" | sudo -u rene -S /bin/sh -c "export HOME=/home/rene/
&& export"'';
exec($str,$o,$r);
$r === 0.
$o =
array
0 => 'export HOME='/home/rene/''
.more.
From: Rene Veerman
> From: Rene Veerman
>
> Yep, i also just thought of using ssh/ftp to remotely edit files.
> I can probably configure any web-browser to open certain links with
any
> local program.
>
> But for now, i'd just like to consider the case where the browser is
on the
> same machine
oh,
echo "blah" | sudo -u rene -S /bin/sh -c "export HOME=/home/rene/"
exec($str,$o,$r);
$r === 0.
so that works.
therefore, it must be kate itself that refuses to start up from apache's
context.
too bad $o === empty array.
any ideas are most welcome.
-- Forwarded message --
From: Rene Veerman
Date: Fri, Jan 8, 2010 at 1:58 PM
Subject: Re: [PHP] trying to launch kate from the browser
To: a...@ashleysheridan.co.uk
Yep, i also just thought of using ssh/ftp to remotely edit files.
I can probably configure any web-browser to o
On 8 Jan 2010, at 12:48, Rene Veerman wrote:
> Thanks for the reply..
>
> I only need this to work locally on the web-server for now..
>
> So i'm calling a script through ajax routines, which would do the exec().
> Since it's on the local webserver, that should work, right?
No. When the web ser
On Fri, 2010-01-08 at 13:48 +0100, Rene Veerman wrote:
> Thanks for the reply..
>
> I only need this to work locally on the web-server for now..
>
> So i'm calling a script through ajax routines, which would do the
> exec().
> Since it's on the local webserver, that should work, right?
No, the
Thanks for the reply..
I only need this to work locally on the web-server for now..
So i'm calling a script through ajax routines, which would do the exec().
Since it's on the local webserver, that should work, right?
On Fri, 2010-01-08 at 13:41 +0100, Rene Veerman wrote:
> I'm working on a better var_dump (http://mediabeez.ws/htmlMicroscope/,
> LGPL), and want to launch my kate editor when i click in the browser on a
> line in my trace-log.
>
> I'm trying to exec() this line, but it returns 1 (which is i beli
r...@ekster:~$ uname -a
Linux ekster 2.6.31-17-generic #54-Ubuntu SMP Thu Dec 10 16:20:31 UTC 2009
i686 GNU/Linux
r...@ekster:~$ apache2 -v
Server version: Apache/2.2.12 (Ubuntu)
Server built: Nov 12 2009 22:49:46
r...@ekster:~$ php -v
PHP 5.2.10-2ubuntu6.3 with Suhosin-Patch 0.9.7 (cli) (built
I'm working on a better var_dump (http://mediabeez.ws/htmlMicroscope/,
LGPL), and want to launch my kate editor when i click in the browser on a
line in my trace-log.
I'm trying to exec() this line, but it returns 1 (which is i believe a
general error)
echo "hhh" | sudo -u rene -S /bin/sh -c
On Fri, Jan 8, 2010 at 3:48 AM, Robert Cummings wrote:
>
> They almost always make your shit run faster.
I love your final statement Robert!
A reply of good grammar and vocabulary summarised most succinctly.
--
Graham
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
2010/1/8 Dušan Novaković :
> I've been programing for some time, but I never tried to write code
> for two different application in same way. How when I work with more
> programmers it's even worse. Everyone is forcing it's way of writing
> functions inside classes or writing variables, etc. My id
Hi,
I've been programing for some time, but I never tried to write code
for two different application in same way. How when I work with more
programmers it's even worse. Everyone is forcing it's way of writing
functions inside classes or writing variables, etc. My idea is to code
according to the
39 matches
Mail list logo