Hi everybody,
I am a Certified Zend Engineer with almost 10 years of PHP development
experience but for some reason I've never asked question to this ML.
As subject says, I would like to know if there a generic extension/3rd
parts/solution to save the state of a built-in PHP object.
I per
... nobody a clue? ...
Hi everybody,
I am a Certified Zend Engineer with almost 10 years of PHP development
experience but for some reason I've never asked question to this ML.
As subject says, I would like to know if there a
If anybody interested, this is my "old" comet implementation in PHP:
http://webreflection.blogspot.com/2008/04/phomet-changes-name-so-welcome-phico.html
P.S. Hi Manuel, ages I do not read you ( ages I do not post my classes in
phpclasses.org :-) )
> Date: Tue, 17 Mar 2009 17:43:03 -0300
> From:
I think I had some problem with this ML ... so I try again to write down my
question:
I would like to know if there a generic extension/3rd
parts/solution to save the state of a built-in PHP object.
I perfectly know that __sleep and __wakeup or ... implements
Serializable { ... } could allow me
Usually a single transaction is faster than an insert a time (with or without
union)
> Date: Sat, 21 Mar 2009 12:05:18 +
> From: andrew4willi...@gmail.com
> To: php-general@lists.php.net
> Subject: [PHP] how to make multiple sql run faster
>
> Hi all,
>
> I am inserting more than 5000 rows
Dunno why you guys started talk about utf-8 problems, he has a list of ids
which should contain only unsigned integers, otherwise I do not get how that
query could work with an implode(',', $whatever) rather than 'id in
("'.implode('","', array_map('mysql_real_escape_string', $whatever)).'")' .
What about MySQL max_allowed_packet setting? is it bigger than produced string?
> To: php-general@lists.php.net
> Date: Tue, 24 Mar 2009 15:23:20 +0100
> From: t...@ezl-data.dk
> Subject: Re: [PHP] Problems with implode
>
> Per Jessen skrev:
> > Andrea Giammarchi wrote:
The "mail" problem came out later or I missed some post about it.
So yes, I would pass that implode via wordwrap then
wordwrap(implode(', ', $list), 100, "\n", false);
please note the space after the coma, to avoid truncated id.
@Tom Worster
I hope on daily basis you do NOT create arrays with s
Some browser would like to receive at list N characters (bytes) even if
you force the flush, before the browser will show those characters.
In
any case, the Ajax request will not be completed until its readyState
will be 4, which means the page execution on the server has finished
(released, php h
Sorry, Kim, but why on earth you are polling with a second request to know when
the first one has finished?
I mean, when the first request inserts data in the database that's it, you'll
manage the end of the request.
$A ---> do stuff; do stuff; do stuff; report ready;
$B ---> report ready?
$B
Sorry Jim, I meant Jim when I wrote Kim ... and
Phico:
http://webreflection.blogspot.com/2008/04/phomet-changes-name-so-welcome-phico.html
Regards
> From: an_...@hotmail.com
> To: php-general@lists.php.net
> Date: Fri, 27 Mar 2009 15:55:28 +0100
> Subject: RE: [PHP] flushing AJAX scripts
>
>
n take
> 10 seconds or 10 minutes to create. Doing it this way I can still load
> the report even if the original request shuts down after 3-4 minutes.
>
> Jim
>
> Andrea Giammarchi wrote:
> > Sorry Jim, I meant Jim when I wrote Kim ... and
> > Phico:
> > ht
I miss the utility to do stuff like that ... seriously ... but in any case:
where echo is optional.
Regards
> Date: Sat, 28 Mar 2009 15:26:18 +0300
> From: danondan...@gmail.com
> To: php-general@lists.php.net
> Subject: [PHP] Calling function on the same line?
>
> Is there any way to do so
I don't , I mean if the function is not str_replace you do not necesary need
the echo (array_push, as example)
This notation:
Date: Sun, 29 Mar 2009 01:06:16 +0800
> Subject: Re: [PHP] Calling function on the same line?
> From: virgilio.quila...@gmail.com
> To: an_...@hotmail.com
> CC: php-gener
tmail.com
Thank you for trying to help, But I am trying to do it without variables =[
On Sat, Mar 28, 2009 at 3:51 PM, Andrea Giammarchi wrote:
I miss the utility to do stuff like that ... seriously ... but in any case:
where echo is optional.
Regards
> Date: Sa
Directly from W3:
http://www.w3.org/International/questions/qa-utf8-bom.en.php
Notepad++ saves without BOM, it's fast, cool, and free ;)
> To: php-general@lists.php.net
> Date: Tue, 31 Mar 2009 06:32:41 +0200
> From: merli...@fastmail.fm
> Subject: [PHP] Working in UTF-8 - BOM trouble
>
> Hi t
The output buffer on or off does not matter. If there is nothing sent, there is
nothing sent.
If you have just a space, a new line, in one of included files and before
If that page generates an header you could have UTF-8 BOM problems, a prepended
file in the Apache configuration which is bro
nobody knows my last creation?
http://code.google.com/p/noswfupload/
full example with PHP back end in the zip.
P.S. ... just in case ... the first upload progress for PHP with Ajax and NO
APC ( ages ago, still me: http://www.devpro.it/upload_progress/ )
Flash FileReference porting ... still me
http://uk2.php.net/set_exception_handler
http://uk2.php.net/manual/en/function.set-error-handler.php
> Date: Thu, 23 Apr 2009 12:19:30 -0400
> From: wmo...@potentialtech.com
> To: php-general@lists.php.net
> Subject: [PHP] How can I detect an exception without using try/catch?
>
>
> Specifical
tialtech.com
> To: an_...@hotmail.com
> CC: php-general@lists.php.net
> Subject: Re: [PHP] How can I detect an exception without using try/catch?
>
> In response to Andrea Giammarchi :
> >
> > http://uk2.php.net/set_exception_handler
> > http://uk2.php.net/manual/e
var o = {
"a" : "b",
"c" : "d"
};
$o = array(
'a' => "b",
'c' => "d"
);
so I guess the problem is a couple of quotes, isn't it?
otherwise define object statically and externally and use json_decode ;-)
> Date: Thu, 30 Apr 2009 16:56:21 -0400
> From: f...@thefsb.org
> To: ph
ray {
// no way
}
Regards
> From: rob...@interjinn.com
> To: an_...@hotmail.com
> CC: f...@thefsb.org; php-general@lists.php.net
> Date: Fri, 1 May 2009 11:40:11 -0400
> Subject: RE: [PHP] object literals
>
> On Fri, 2009-05-01 at 17:36 +0200, Andrea Giammarchi wrote:
>
ooops sorry, two more ;-)
> having exactly the same number of characterss.aspx
_
Windows Live™: Keep your life in sync. Check it out!
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009
t; Date: Fri, 1 May 2009 12:14:21 -0400
>
> On Fri, 2009-05-01 at 17:52 +0200, Andrea Giammarchi wrote:
> > you are in PHP, not in JavaScript.
> >
> > In PHP arrays are like collections or hash tables.
> > if you strictly need object cause
> >
> > $o-
Finally somebody mentioned XSL Transformations. Time is relative because as you
need time to learn an API to produce quickly only after a while, thanks to
knowledge and confidence, XSL is the same with the advantage that you transform
a data structure, rather than work over raw programming lang
Moreover, you can transform XML into JSON via specific XSLT
True, I forgot to mention it in my post, XSL just transform, and similar
structures can use the same XSL so another reason to prefer it over php in the
html.
Regards
> Date: Wed, 27 May 2009 11:47:56 -0400
> From: aball...@gmail.com
>
Maybe somebody would be interested in my solution as well:
http://webreflection.blogspot.com/2009/09/php-53-singleton-fast-and-abstract.html
Regards
> Date: Wed, 2 Sep 2009 14:02:25 +0900
> From: koy...@hoge.org
> To: php-general@lists.php.net
> Subject: Re: [PHP] OO and "Singleton" class
>
> H
Which DB?
If it is MySQL, as example, you can simply use REGEXP syntax "^[a-zA-Z0-9]+$"
via SELECT
Regards
> From: sono...@fannullone.us
> To: php-general@lists.php.net
> Date: Wed, 2 Sep 2009 20:47:15 -0700
> Subject: [PHP] Searching on AlphaNumeric Content Only
>
> Is there is a way to
> Indeed you could do it via a regexp, but that uses up quite some memory.
> Every time you do a SELECT. You can simply add a table column with the
> stripped value and let the table update itself (with an ON UPDATE ON
> INSERT trigger, which takes the input value for the itemID and strips it
> Even if the REGEXP has to change with every query?
Ben, it does not matter, this is not a PHP problem but a DB
structure/select/insert/update problem.
Whatever REGEXP you use, a REGEXP is what you need to solve this problem,
certainly not a PHP loop over each row with operations for each row
stripping, stemming, spelling corrections ?
... uhm, that's probably why they invented regular expressions, isn't it?
As I said, at the end of the day, this will be a manual slow, potentially wrong
implementation of what we already have and use on daily basis.
But obviously, everybody is free
blog announcement:
http://webreflection.blogspot.com/2009/09/formaldehyde-ajax-php-error-debugger.html
I hope you'll appreciate the code, the concept, and the simplicity, but here I
am to know your concerns, or generally speaking, your opinion.
Best Regards,
Andrea
That is for IE and its silly FileName[N] rather than FileName
here a good old function to download:
http://www.devpro.it/code/72.html
Regards
> Date: Sun, 6 Sep 2009 15:43:27 -0300
> From: tapi...@gmail.com
> To: chris_pa...@danmangames.com
> CC: php-general@lists.php.net
> Subject: Re: [PHP] F
I do not know why php.net is not publishing yet the link I posted in specific
page, but if you want to resolve serialized recursion problem or you just want
to better understand the problem and possible solutions, you may be interested
in this post:
http://webreflection.blogspot.com/2009/09/ph
09/09/formaldehyde-ajax-php-error-debugger.html
I hope you'll appreciate the code, the concept, and the simplicity, but here I
am to know your concerns, or generally speaking, your opinion.
Best Regards,
Andrea Giammarchi
With Windows Live, you can organize, edit, and share y
400
> To: an_...@hotmail.com; php-general@lists.php.net
> From: tedd.sperl...@gmail.com
> Subject: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger
>
> At 11:35 PM +0200 9/10/09, Andrea Giammarchi wrote:
> >Being something nobody thought before I was expect
de] The Most Basic Ajax - PHP Error
> Debugger
>
> At 3:27 PM +0200 9/11/09, Andrea Giammarchi wrote:
> >That's a finished production site ... how did you debug during its
> >development? 'Cause Formaldehyde is for development, not for
> >production ... I gu
15:39:12 +0100
>
> On Fri, 2009-09-11 at 10:35 -0400, tedd wrote:
> > At 3:27 PM +0200 9/11/09, Andrea Giammarchi wrote:
> > >That's a finished production site ... how did you debug during its
> > >development? 'Cause Formaldehyde is for development, not for
Agreed, I have never said that, but I cannot even think about a modern website
developed without browser tools such Firebug or others. That is why I was kinda
surprised by zero reaction.
Your feedback will be more than welcome, thanks.
Regards
Date: Fri, 11 Sep 2009 20:39:21 +0530
From: muxic
> Date: Fri, 11 Sep 2009 12:37:30 -0400
> To: an_...@hotmail.com; php-general@lists.php.net
> From: tedd.sperl...@gmail.com
> Subject: RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error
> Debugger
> The only
> things that may go wrong are in the data I am sending to the ajax
> rou
Exactly Ben, except when PHP fails, even with a Fatal Error, the page has
status 200, we need to understand which call failed between hundreds of
potential calls in the debugger, and errors could pass silently.
With Formaldehyde, accordingly with your predefined error_reporting level,
above si
something I cannot find in any other library or framework.
Regards
> Date: Sat, 12 Sep 2009 00:20:58 -0400
> From: pa...@quillandmouse.com
> To: php-general@lists.php.net
> Subject: Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger
>
> On Sat, Sep 12, 200
Ajax interactions usually produces different results, 'cause an Ajax
interaction that returns an entire document does not make much sense.
Formaldehyde is for Ajax interaction, which "in my case" I always catch via
headers checks or special parameters.
Formaldehyde is client agnostic, FireBUG o
as margin note, the project page changed name, hopefully less ambiguous:
Formandehyde - Zero Config Ajax Based PHP Error Debugger
Regards
_
Drag n’ drop—Get easy photo sharing with Windows Live™ Photos.
http://www.microsoft.com/wi
Error Debugger
>
> Andrea Giammarchi wrote:
> > something I cannot find in any other library or framework.
>
> This should tell you something then...
>
> --
> Jim Lucas
>
> "Some men are born to greatness, some achieve greatness,
> and some have
p 2009 22:37:01 +0200
> To: php-general@lists.php.net
> Subject: Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger
>
> On Sat, Sep 12, 2009 at 8:47 PM, Jim Lucas wrote:
>
> > Andrea Giammarchi wrote:
> >
> >> something I cannot find in any
> Hello Andrea,
>
> I am developing with PHP since now 12 years (did a couple stuff in
> Zend Core), and was one of a few guy using and sharing about php when
> it was only an THE Apache mode in the world C++ CGI, I am not Zend
> Certified, I won't :), anyway those things make me smarter or giv
Hosting support, since it is 100% php with zero dependencies and zero config
effort plus the ability do debug directly via console, unit testing via
Selenium and/or others, and it does not require manual error catch after the
generic problemi, since it will simply be showed on the client side.
Right, errors should never be exposed, and error_reporting should be 0 in
production but log function and the fact you can move Formaldehyde with the
application means it does not require extra effort.
In few words, if in production Formaldehyde constant is false, and it must be
false, nothing
Sorry, I meant environment
> ... plus you'll have 1:1 production/development application
_
More than messages–check out the rest of the Windows Live™.
http://www.microsoft.com/windows/windowslive/
> No, display_errors should be turned off (with log_errors turned on)
> and error_reporting should be set to whatever standard you're coding
> to (preferably, E_ALL | E_STRICT, but a lot of people like to ignore
> E_NOTICE's).
yep, it should be a production environment
> So it's not zero confi
I am not sure why you ended up with Flash, but here there is a good old example
with APC:
http://webreflection.blogspot.com/2007/10/upload-progress-bar-with-php5-apc-and.html
Regards
> CC: php-general@lists.php.net
> From: phpl...@planetphred.com
> To: oorza...@gmail.com
> Date: Mon, 14 Sep 200
reat, perhaps you have some
> insight into my narrow APC problem.
>
> One other thing, Eddie was talking about APC not being thread-safe. I
> have heard this before, but also heard it refuted. Do you have any
> insight on this?
>
> I am going insane, so any help you can toss
The concept of my last link is this:
the instant before you do the upload you ask PHP to scan the tmp folder, or the
folder used to upload files (often the tmp) and you snap number of files, then
the upload starts, and it will create a temp file with a PHP predefined prefix,
you array_diff the
You are looking for me than, cool!
> Date: Mon, 14 Sep 2009 18:38:17 +0100
> From: jer...@cyber-duck.co.uk
> To: php-general@lists.php.net
> Subject: [PHP] PHP GURU NEEDED
>
> Hi All,
>
>
>
> Cyber-Duck are looking for a highly motivated PHP / CSS Guru to join our
> award-winning, London bas
I guess I got instantly fired with "than" rather than "then" ... nevermind
> From: an_...@hotmail.com
> To: jer...@cyber-duck.co.uk; php-general@lists.php.net
> Date: Mon, 14 Sep 2009 20:56:59 +0200
> Subject: RE: [PHP] PHP GURU NEEDED
>
>
> You are looking for me than, cool!
>
> > Date: Mon,
people, you need somehow to discuss with them,
> creating a relationship based on trust.
>
> Best,
>
> On Mon, Sep 14, 2009 at 12:09 PM, Andrea Giammarchi
> wrote:
> >
> > I guess I got instantly fired with "than" rather than "then" ... nevermind
&
Wht is exactly your problem?
If I am that bad I have simply removed myself from the list of possible
candidates, if I ever had a chance.
Keep blaming other feeling the ruler here does not put you in a better position
than a troll.
I am sorry for the original message 'cause I thought recruiters
e other thing, I looked at a canned media management web app ($875
> US) that will do this uploading, and it doesn't require APC, so there
> definitely is some way to do this with basic PHP.
>
> Thanks, Phred
>
>
>
> On Sep 14, 2009, at 1:55 PM, Andrea Gia
I have already said I am sorry and I explained the reason I replied in such
joking way.
Now, I am sure you can understand, since you say you use this ML for
recruitment as well, that it would be nice to leave this "subject" as
clear as possible.
I would even suggest authors to create a new
>
> While it's a joke, in all fairness, it does work.
only because you debugged before server side responses, and now, as I have
said, you have an alternative to speed up that process.
Finally, Formaldehyde JS had a typo so only today I realized it and I uploaded
the version 1.01 of Formalde
>
> While it's a joke, in all fairness, it does work.
only because you debugged before server side responses, and now, as I have
said, you have an alternative to speed up that process.
Finally, Formaldehyde JS had a typo so only today I realized it and I uploaded
the version 1.01 of Formalde
> The way I've always seen this approached before is by using the wget
> command, which can be asked to just return the headers for a page. In
> your case you'd be looking for all 200 codes, which means that all the
> sites are up. This is faster than asking to return a full image each
> time.
This is what I said, except if you want to grab the content you need to request
HEAD first and eventually GET, and this is slower than just GET parsing headers.
In any case, curl is the answer, imho.
Regards
Requesting only the headers is a lot faster than requesting the headers AND the
file
does JavaScript use the proper way to encode strings as encodeURIComponent is,
and for each sent key/value pair?
Is MySQL table charset ut8_general_ci ?
If not, do you convert sent UTF-8 charset into table charset?
In few words we miss the way/library used to send data, the default PHP
charset,
He has no utf-8 charset in the table, so the first point is valid and
htmlentities is the function (
http://uk.php.net/manual/en/function.htmlentities.php )
You need to remember that in this way you need to use htmlentities for
*everything*, specially for searches, otherwise ° against ° will b
> I don't recall him saying that a utf8 table was not an option or that he
> wasn't using one.
I know 'cause he replied directly to me rather than this ML
>
> Also, try not to top post ;)
I usually hate scroll 'till the end to find often a single row as reply ...
I'll try though
>
> Thanks
> If he´s really using a any other charset instead of utf8 table, why not
> using utf8_decode and utf8_decode in his php files to solve this?
let's say PHP could have a different charset than the one defined in that MySQL
table so this is not a portable solution, specially if you do not perfe
> Yeah, the rules say to snip out parts of the convo which aren't
> pertinent, but I know I don't exactly follow that one either! :-/
>
> Thanks,
> Ash
> http://www.ashleysheridan.co.uk
to be honest the problem is that I am in hotmail rather than gmail here, and
this page is not clever as gmai
> I wonder if massive uploads, like the ones you're coding for, really
> aren't that common. I can imagine hard-coding that 3600 myself, and
> thinking, "no way someone's going to be uploading a single file for
> longer than an hour, or even close to it."
me too, also because for a silly connect
I wonder what should happen if your customers will ask you PHP 3 applications
because their internal server is that old ... and I mean your *current*
application for PHP3 ... well, IE 6 has the same impact for the Web Development.
I am not saying we can dismiss its support, specially if we work
> At that point I would consider IE6 "broke".
Every standard conformance test can tell you since years that IE6 is broken. At
that point, you'll be exactly in the same situation, if your customers do not
want to update for same reason they are not doing right now, why would you
leave them "al
> I have to disagree Ash, you can pass js variable values to PHP but only
> through a page load. Then you could use $_REQUEST, $_POST, $_GET to retrieve
> it. I have done this before.
And I am sure Ash does it on daily basis, the problem is the used therm: I want
to *assign* ... not pass, assig
> In a lot of the work I do these days I have to support IE6 because it's
> the defacto browser in various government departments. It'll be sometime
> before it is completely ousted.
Rob, same is for me, I have to deal with this "browser" all problems it has
every single day, 'cause financial
> basicly is use hidden inputs as a container for php variables, and transform
> through js.
really? I though the other way round was extremely simple:
echo 'var
myPHPvar=eval("('.addslashes(json_encode($myPHPvar)).')");';
why would you use hidden input, plus DOM to get data, etc, etc?
_
Actually, it's even more simple ... forgive me:
echo 'var
myPHPvar='.json_encode($myPHPvar).';';
that's pretty much it
> From: an_...@hotmail.com
> To: jonathan.desarro...@gmail.com; mail2gautambha...@gmail.com
> CC: saeed@gmail.com; php-general@lists.php.net
> Date: Fri, 18 Sep 2009 13:01
> You can not pass this myPHPvar javascript var as an input in a form. if you
> want to change its value and maintein it, must to use an static var, and
> only can access to this values via javascript functions where an event is
> invoked (in case you want to read or write values)
with all due
> Maybe people really have started to rtfm!
>
> Ash
well, apparently not everybody, somebody put right now a header call in the
middle of the page declaring "there're no white space around, I've checked it!"
maybe other realized that a search in the manual takes less time than a mail
here ..
> I think this sort of issue arises particularly because of the
> misconception that PHP is embedded inside HTML pages. Once a person has
> that idea in their head, they will start to work with an HTML template
> and add PHP as necessary. While that can work, in cases such as this,
> it's best to
>
> Question I was Asked by Andrea- "mod_reqrite or .htaccess is the answer, but
> I wonder why you choose /user/username rather than just /username a la
> twitter."
>
> I will be using many other aspects of my users something like
> "/projects/username/"; "/gallery/username/".
well, it does
Unless PHP Gtk has a module able to create an interface able to capture
coordinates in a touchscreen device ... PHP is a web server programming
language and it usually works in the server specially suited for web based
applications.
Regards
> From: man...@dotzoo.net
> To: php-general@lists.ph
> $the_string = 'Марина
> Орлова';
did you actually wrote this or i tis the PHP ml that converted utf-8 chars?
I can read only an ASCII string with length 85 ... please tell me you are not
confusing HTML entities with UTF-8 encoded characters ...
__
> I have updated a php to version 5.2.11.
you should update the keyboard as well, it fires CTRL+V twice (subject, and I
am joking ..)
> When I run the following script:
> print date('d M Y, H:i');
> ?>
> It's returns a correct time.
correct accordingly with your local time zone, 'cause I am
> Several ways that I can think of:
>
> * use the file_get_contents() which like you said, could be
> overkill
> * shell out to wget to retrieve just the headers for the path.
> You'd be looking for a 200 return code, which indicates the URI
> exists.
>
And then you discover ===
$i = 0; $j = count ($names); while ($i < $j)
{ if ($names[$i] === $target) { break; }
++$i;
}
... regards
> To: php-general@lists.php.net
> From: clanc...@cybec.com.au
> Date: Sat, 3 Oct 2009 21:21:00 +1000
> Subject: [PHP] A really wacky design decision
>
> D
Do you want users download the file or the zip?
do you send other headers before the download?
It's
quite a common error to set a default header in PHP at the beginning of
whatever application, while header should be used as last exit point
and never in the middle, or at the beginning, of a resp
> ... and, in fact, that /is/ how C behaves. The following code:
>
> int a = 2;
> a = a++;
> printf("a = [%d]\n", a);
>
> Will output "a = [3]". At least on Ubuntu 9 using gcc 4.3.3.
>
> So I retract my initial terse reply and apologize for misunderstanding
> your question.
>
> Ben
It's not t
if we compare via "==" there is an implicit cast to the most primitive form.
These are all true, and all have a reason, and make sense:
// (int)'abc' is 0
var_dump('abc' == 0);
// 'abc' is not an empty string
var_dump('abc' == true);
// 2 is not 0, which would be casted into false, so it's tru
You introduced the word "suddenly", it's about 10 years I develop in PHP
Regards
> PHP allows you to do either. If I find myself being more strict in no
> way does that mean I'll suddenly jump to another language. It just means
> I have a bit of code that requires a bit more strictness. Shoul
> $a = 2260; $b = 226e1; $c = 2.26e3; $d = 2260.0;
>
> $a==$b==$c==$d,
>
> and
> $b===$c===$d
$b , $c, and $d are the same indeed ... they represent the floating point
2260.0 in I think every language ... it's like saying that 1.0 is not 1.
... both floating point numb
> All very messy!
there is nothing messy, the logic is well defined and for a loose type language
it's absolutely normal behavior.
Regards
_
Keep your friends updated—even when you’re no
> I'm thinking (hoping) there is already a php class somewhere for
> generating JavaScript object strings that I can instead of my ugly
> easily breakable way of doing it.
>
> Anyone know of one?
json_encode
http://uk3.php.net/manual/en/function.json-encode.php
Regards
> Header must come first (before you output anything) or you get a parse
> error
I try to better explain ...
HTTP works like this: you ask something, you receive something, html and texts
are just one option.
Your example page mess up html, zip, everything, because when you download a
file
> Afaik, the content length header is not necessary, but it will cause
> problems if it's set and it's wrong.
correct, missed Content-Length means the classic download with useless progress
bar and undefined estimation time, problematic for preloader as well in case of
images, swf, generic dat
quot;links" at the end of the
page ...
Regards
> Date: Sun, 4 Oct 2009 19:09:35 +0200
> From: php@emax.dk
> To: php-general@lists.php.net
> Subject: Re: [PHP] Header problem
>
> Hello Andrea
>
> Andrea Giammarchi wrote on 2009-10-04 18:49:
> >
> > &
> Thank you, worked beautifully.
just don't ignore this:
PHP 5 >= 5.2.0
if you are trying to create something portable, you should consider a Pear
fallback ...
if(!function_exists('json_encode')){
require_once 'JSON.phps';
// http://mike.teczno.com/JSON/JSON.phps
function json_en
Did the OS update changed the default locale settings or the default date
format?
> From: fres...@adex-intl.com
> To: php-general@lists.php.net
> Date: Sun, 4 Oct 2009 14:05:05 -0400
> Subject: [PHP] strtotime strangeness
>
> For some reason the strtotime is no longer returning the year
> por
saveXML and transform it via XSL
It should be simple since basically the only thing you have to do is to
replicate everything adding right at the beginning and nothing
else.
Is this solution suitable for your requirements?
Regards
> Date: Mon, 5 Oct 2009 01:45:03 -0700
> From: mpet...@mac.c
> search engines aren't case-sensitive!
... try to search php.net or PHP.NET in Google and you'll obtain exactly the
same result ... in PHP strtolower and strToLower are exactly the same, as the
same is DomDocument, DOMDocument, or DOMDOCUMENT, at least in PHP 5.3
If you used an early versio
My apologies I read search engines ARE case sensitive ... never mind, still
DomDocument and DOMDocument are the same.
Regards
> From: an_...@hotmail.com
> To: a...@ashleysheridan.co.uk; mickael+...@lupusmic.org
> CC: php-general@lists.php.net
> Date: Mon, 5 Oct 2009 13:59:43 +0200
> Subject: R
1 - 100 of 151 matches
Mail list logo