[PHP] cookie expiring with session

2002-12-13 Thread Andrea
I urgently need to store a cookie that expires with session. This cookie has to be read by a section written in jsp, therefore I don't think I can use $_SESSION variables. Can anyone help me? Andrea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Pass Array parameter by reference

2003-02-20 Thread Andrea
Hi! How can I pass an array parameter by reference? I tried something similar: function my_function($argument) { $argument[0]=test; } my_function($array); echo $array[0]; but the echo function returns Array. Can anybody help me? Thanks! Andrea -- PHP General Mailing List (http

[PHP] newbie - help with field variables in forms

2002-01-08 Thread Andrea Caldwell
for this and how would it be structured? Any help would be appreciated... thanks! Andrea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] how to send to URL on if statement?

2002-01-18 Thread Andrea Caldwell
Can anyone advise or direct me to the documentation that references how to send a user to a URL if an 'if' statement is satisfied? Thanks! Andrea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

Re: [PHP] how to send to URL on if statement?

2002-01-18 Thread Andrea Caldwell
Sorry, I'm new at this... I have already sent output... any way to do this? Thanks again, Andrea Ing. Daniel Manrique [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can anyone advise or direct me to the documentation that references how to sen

[PHP] Re: how to send to URL on if statement?

2002-01-18 Thread Andrea Caldwell
Thank you for all the responses! I really appreciate the support... I believe the Javascript solution should work. Andrea Caldwell [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Can anyone advise or direct me to the documentation that references how

[PHP] echo array and integrate two forms

2002-03-01 Thread Andrea Caldwell
Hope this doesn't sound too lame from the newbie I have a form, code shown here that has input fields for each row I'd like to do two things: 1) Change the REALNAME field to just echo the row not have an input field (I've tried to do this it just echoes my code back to me) 2) Integrate a

[PHP] just a link in php email

2002-03-08 Thread Andrea Caldwell
Hi All, I've been researching the mail() function and from what I've read, some people embed HTML into their mail() without using classes. All I need to do is add a link in an email... can anyone advise how I would do this? Which headers would I need? I was using: $headers = MIME-Version:

[PHP] php_oci8 Lib on win32

2002-04-04 Thread Talucci Andrea
in docs or src. Tx, andrea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Hello

2005-01-31 Thread louka . andrea
Please answer quickly! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] caching program...

2003-09-12 Thread Andrea Tricco
work as the Save as function (File menu) of any Web browser. Can anybody help me? Best regards. Andrea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] caching program

2003-09-12 Thread Andrea Tricco
as the Save as function (File menu) of any Web browser. Can anybody help me? Best regards. Andrea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] caching program

2003-09-12 Thread Andrea Tricco
/manual/it/ www.php.net/manual/it The reply of the server web is the same in the three cases. The input of the my program could be any paths between the mentioned ones. I need to poll out the path www.php.net/manual/it/ Best regards. Andrea - Original Message - From: Ryan Gibson [EMAIL

Re: [PHP] caching program

2003-09-12 Thread Andrea Tricco
/manual/it/ Best regards. Andrea - Original Message - From: Andrea Tricco [EMAIL PROTECTED] To: php-general [EMAIL PROTECTED] Sent: Wednesday, September 17, 2003 1:11 PM Subject: Re: [PHP] caching program For the images that don't contain http://; my program is already able to get them

Re: [PHP] problem with intval and !=

2003-10-23 Thread Andrea Pinnisi
why don't you use this?? http://it.php.net/manual/it/function.is-integer.php Cesar Cordovez ha scritto: This is getting weird by the minute. I changed the script: if ($number != $value) { echo Bad; } else { echo Good; // echoes Good!! } to: ($number != $value) ($number !==

[PHP] $_REQUEST non populated

2003-11-20 Thread Andrea Pinnisi
code, a year of work). Is there a php.ini option that can help me? Thanks Andrea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] $_REQUEST non populated

2003-11-20 Thread Andrea Pinnisi
Marek Kilimajer ha scritto: variables_order - usualy set to EGPCS It's already EGPCS, I'm waiting more info from the system administrator of that server. Is there any enviroment variable that may help to solve this problem? I don't want to post the entire phpinfo :-) Thanks Andrea -- PHP

[PHP] [semi OT] problem with php, cacti and rrdtool

2004-02-25 Thread Andrea Riela
/rrd.php on line 721 It's possible that I've forgotten something in my php.ini? or probably is a cacti's bug? thanks for you support, and patience Regards Andrea -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] built-in objects APC or serialization‏

2009-03-11 Thread Andrea Giammarchi
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

[PHP] FW: built-in objects APC or serializatio n‏

2009-03-12 Thread Andrea Giammarchi
... 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

RE: [PHP] Re: Multithreading in PHP

2009-03-18 Thread Andrea Giammarchi
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:

[PHP] Built-in objec ts APC or serializat ion‏‏

2009-03-18 Thread Andrea Giammarchi
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

RE: [PHP] how to make multiple sql run faster

2009-03-21 Thread Andrea Giammarchi
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 into

RE: [PHP] Problems with implode

2009-03-24 Thread Andrea Giammarchi
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)).')' ...

RE: [PHP] Problems with implode

2009-03-24 Thread Andrea Giammarchi
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: Dunno why you guys started

RE: [PHP] Problems with implode

2009-03-26 Thread Andrea Giammarchi
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

RE: [PHP] flushing AJAX scripts

2009-03-27 Thread Andrea Giammarchi
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

RE: [PHP] flushing AJAX scripts

2009-03-27 Thread Andrea Giammarchi
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

RE: [PHP] flushing AJAX scripts

2009-03-27 Thread Andrea Giammarchi
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

RE: [PHP] flushing AJAX scripts

2009-03-28 Thread Andrea Giammarchi
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: http://webreflection.blogspot.com/2008/04/phomet-changes-name-so-welcome-phico.html Regards

RE: [PHP] Calling function on the same line?

2009-03-28 Thread Andrea Giammarchi
I miss the utility to do stuff like that ... seriously ... but in any case: ?php echo ($f = 'str_replace') ? $f(a, b, aaa) : null; ? 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

RE: [PHP] Calling function on the same line?

2009-03-28 Thread Andrea Giammarchi
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: ?= is deprecated since dunno how long ago ... strongly not suggested Date: Sun, 29 Mar 2009 01:06:16 +0800 Subject: Re: [PHP] Calling function on the same line? From:

RE: [PHP] Calling function on the same line?

2009-03-28 Thread Andrea Giammarchi
trying to do it without variables =[ On Sat, Mar 28, 2009 at 3:51 PM, Andrea Giammarchi an_...@hotmail.com wrote: I miss the utility to do stuff like that ... seriously ... but in any case: ?php echo ($f = 'str_replace') ? $f(a, b, aaa) : null; ? where echo is optional. Regards

RE: [PHP] Working in UTF-8 - BOM trouble

2009-03-31 Thread Andrea Giammarchi
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 there,

RE: [PHP] Problem with header();

2009-03-31 Thread Andrea Giammarchi
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 ?php ... that will be considered an header sent (the default one, usually) every echo before the header will be considered an

RE: [PHP] Re: Suggestions of some good, simple file upload 'in progress' code?

2009-04-22 Thread Andrea Giammarchi
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

RE: [PHP] How can I detect an exception without using try/catch?

2009-04-24 Thread Andrea Giammarchi
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? Specifically,

RE: [PHP] How can I detect an exception without using try/catch?

2009-04-24 Thread Andrea Giammarchi
: wmo...@potentialtech.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 an_...@hotmail.com: http://uk2.php.net/set_exception_handler http://uk2.php.net/manual/en/function.set

RE: [PHP] object literals

2009-05-01 Thread Andrea Giammarchi
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:

RE: [PHP] object literals

2009-05-01 Thread Andrea Giammarchi
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: var o = { a : b, c : d }; $o = array( 'a' = b, 'c' = d ); so I guess

RE: [PHP] object literals

2009-05-02 Thread Andrea Giammarchi
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-stuff is better than $o['stuff'] having exactly the same number

RE: [PHP] templating engine options

2009-05-26 Thread Andrea Giammarchi
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

RE: [PHP] templating engine options

2009-05-27 Thread Andrea Giammarchi
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

RE: [PHP] OO and Singleton class

2009-09-02 Thread Andrea Giammarchi
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 Hi,

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
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 search

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
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

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
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

RE: [PHP] Searching on AlphaNumeric Content Only

2009-09-03 Thread Andrea Giammarchi
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

[PHP] [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-05 Thread Andrea Giammarchi
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 Giammarchi

RE: [PHP] File download question

2009-09-06 Thread Andrea Giammarchi
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] File

[PHP] Recursion And Serialization - Solved

2009-09-08 Thread Andrea Giammarchi
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:

[PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-10 Thread Andrea Giammarchi
/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 your photos

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread Andrea Giammarchi
...@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 expecting some comment ... zero Ajax developers

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread Andrea Giammarchi
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 guess you have implented your own error manager/debugger, right

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread Andrea Giammarchi
-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 production ... I guess you have implented your own error manager/debugger

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread Andrea Giammarchi
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:

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread Andrea Giammarchi
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 routine

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-11 Thread Andrea Giammarchi
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

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-12 Thread Andrea Giammarchi
Error Debugger On Sat, Sep 12, 2009 at 12:23:44AM +0200, Andrea Giammarchi wrote: 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

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-12 Thread Andrea Giammarchi
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 or

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-12 Thread Andrea Giammarchi
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.

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-13 Thread Andrea Giammarchi
That I created some fresh air or something new? Sure, thanks Date: Sat, 12 Sep 2009 11:47:27 -0700 From: li...@cmsws.com To: an_...@hotmail.com CC: pa...@quillandmouse.com; php-general@lists.php.net Subject: Re: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger Andrea

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-13 Thread Andrea Giammarchi
-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 li...@cmsws.com wrote: Andrea Giammarchi wrote: something I cannot find in any other library or framework. This should tell you something

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-13 Thread Andrea Giammarchi
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 give me

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-13 Thread Andrea Giammarchi
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.

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-13 Thread Andrea Giammarchi
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,

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-13 Thread Andrea Giammarchi
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/

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-13 Thread Andrea Giammarchi
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

RE: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Andrea Giammarchi
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 2009

RE: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Andrea Giammarchi
truly old alternative: http://www.devpro.it/upload_progress/ CC: php-general@lists.php.net From: phpl...@planetphred.com To: an_...@hotmail.com Subject: Re: [PHP] APC - Upload progress problem. apc Date: Mon, 14 Sep 2009 10:54:21 -0500 Hey Andrea: Ahhh yes, I've come full circle. I

RE: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Andrea Giammarchi
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

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Andrea Giammarchi
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 based digital

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Andrea Giammarchi
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, 14 Sep 2009

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Andrea Giammarchi
GURU NEEDED Hello Andrea, I think it was not the main reason, I am living in California and still do a lot of careless mistakes and English native people don't blame me for that, there are able to understand as well as, you are able to understand when people are doing such mistakes in your

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Andrea Giammarchi
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

RE: [PHP] APC - Upload progress problem. apc

2009-09-14 Thread Andrea Giammarchi
, got the problem? Regards CC: f...@thefsb.org; php-general@lists.php.net From: phpl...@planetphred.com To: an_...@hotmail.com Subject: Re: [PHP] APC - Upload progress problem. apc Date: Mon, 14 Sep 2009 15:21:40 -0500 Andrea: I see. That is a cool idea, but you are right, concurrency

RE: [PHP] PHP GURU NEEDED

2009-09-14 Thread Andrea Giammarchi
are the only one to thing so, and here the only guy who is riding a Donkey is you, I have no problem with Andrea is a smart guy, but just said it's kind of not a good point to troll when a recruiter is looking for someone and I am sorry I did not say you were trolling secondable I have 2 decates

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-14 Thread Andrea Giammarchi
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

RE: [PHP] RE: [Formaldehyde] The Most Basic Ajax - PHP Error Debugger

2009-09-14 Thread Andrea Giammarchi
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

RE: [PHP] best function to use ~ file_get_contents or ?

2009-09-16 Thread Andrea Giammarchi
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. but

RE: [PHP] best function to use ~ file_get_contents or ?

2009-09-16 Thread Andrea Giammarchi
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

RE: [PHP] Insert Symbol into Mysql

2009-09-16 Thread Andrea Giammarchi
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

RE: [PHP] Insert Symbol into Mysql

2009-09-16 Thread Andrea Giammarchi
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 #176;

RE: [PHP] Insert Symbol into Mysql

2009-09-16 Thread Andrea Giammarchi
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,

RE: [PHP] Insert Symbol into Mysql

2009-09-16 Thread Andrea Giammarchi
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

RE: [PHP] Insert Symbol into Mysql

2009-09-16 Thread Andrea Giammarchi
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 gmail one

RE: [PHP] APC - Upload progress problem. apc

2009-09-17 Thread Andrea Giammarchi
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 connection

RE: [PHP] ie6 memory could not be read help!

2009-09-17 Thread Andrea Giammarchi
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

RE: [PHP] ie6 memory could not be read help!

2009-09-17 Thread Andrea Giammarchi
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 alone

RE: [PHP] how i assign a js variable to a php variable

2009-09-17 Thread Andrea Giammarchi
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, assign!

RE: [PHP] ie6 memory could not be read help!

2009-09-17 Thread Andrea Giammarchi
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

RE: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Andrea Giammarchi
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 'script type=text/javascriptvar myPHPvar=eval(('.addslashes(json_encode($myPHPvar)).'));/script'; why would you use hidden input, plus

RE: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Andrea Giammarchi
Actually, it's even more simple ... forgive me: echo 'script type=text/javascriptvar myPHPvar='.json_encode($myPHPvar).';/script'; that's pretty much it From: an_...@hotmail.com To: jonathan.desarro...@gmail.com; mail2gautambha...@gmail.com CC: saeed@gmail.com;

RE: [PHP] how i assign a js variable to a php variable

2009-09-18 Thread Andrea Giammarchi
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

RE: [PHP] A little slow lately???

2009-09-18 Thread Andrea Giammarchi
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 ...

RE: [PHP] Re: PHP Header issue

2009-09-18 Thread Andrea Giammarchi
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

RE: [PHP] Best Practice to Create Dynamic URL's- With Username

2009-09-21 Thread Andrea Giammarchi
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 not matter

RE: [PHP] Usage of strlen(tuf8_decode()) and /u regex modifier

2009-09-21 Thread Andrea Giammarchi
$the_string = '#1052;#1072;#1088;#1080;#1085;#1072; #1054;#1088;#1083;#1086;#1074;#1072;'; 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

RE: [PHP] wrong time stamp in log filewrong time stamp in log file

2009-09-21 Thread Andrea Giammarchi
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: ?php print date('d M Y, H:i'); ? It's returns a correct time. correct accordingly with your local time zone, 'cause I am

RE: [PHP] webpage link validation

2009-09-21 Thread Andrea Giammarchi
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. *

  1   2   >