[PHP] Re: Sort problem

2011-09-15 Thread yeer tai
use natsort.

Re: [PHP] Re: Sort problem

2011-09-15 Thread Marc Guay
use natsort. For the repetitive answers specialists: Is it possible that 15 hours later someone is still only seeing the original question? Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Sort problem

2011-09-15 Thread yeer tai
Yeah well, it is indeed sometimes, for someone a bit sleepy yet rather responsible hehe. Btw, m new here, need to get my head around soon i guess. Cheers. From: marc.g...@gmail.com Date: Thu, 15 Sep 2011 07:54:00 -0400 CC: php-general@lists.php.net Subject: Re: [PHP] Re: Sort problem

[PHP] Re: nl2br problem

2011-02-02 Thread Al
On 2/1/2011 2:42 PM, Donovan Brooke wrote: Hello, I have CMS form that allows HTML for the body of a site. To keep the form somewhat WYSIWYG, I am using the nl2br() function for displaying: nl2br($t_body) This works great for normal stuff.. but for pages with tables etc.. it creates a lot

Re: [PHP] Re: nl2br problem

2011-02-02 Thread Donovan Brooke
Al wrote: [snip] You have an example of a page you'd like to control that we can see? On the surface, it appears you may be able to control the rendering with advanced CSS2/3 selectors. Thus, the browsers will do the work for you. Al.. Hello, yes and no.. ;-) Right now browsers

[PHP] Re: Session problem

2010-12-21 Thread Walter Caielli
I've fixed the problem. I don't know why, but suddenly windows prevents PHP from writing into C:\windows\temp directory. Moving the session and log files to another directory solved the problem. Until few days ago it worked. I've now to discovered what was changed in windows configuration.

Re: [PHP] Re: Session problem

2010-12-21 Thread Ravi Gehlot
Walter, Session variables may be using cookies which in turn create temp files for storing such cookies. Ravi. On Tue, Dec 21, 2010 at 11:32 AM, Walter Caielli walter.caie...@ars21.netwrote: I've fixed the problem. I don't know why, but suddenly windows prevents PHP from writing into

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Michelle Konzack
Hello Jan G.B., Am 2010-04-26 11:52:02, hacktest Du folgendes herunter: I would recommend not to let any user input to your shell. This piece of code is very insecure as any client may manipulate the shell command at will. It is ony a simplified example... The original shell_exec() is

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Michelle Konzack
Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: var_dump($isfile); Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed even using var_dump(str_replace(' ', '', $isfile); if I put a

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Pete Ford
On 26/04/10 16:56, Michelle Konzack wrote: Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: var_dump($isfile); Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed even using

Re: [PHP] Re: Weird problem with is_file()

2010-04-26 Thread Ashley Sheridan
On Mon, 2010-04-26 at 17:56 +0200, Michelle Konzack wrote: Hello Peter, Am 2010-04-26 09:28:28, hacktest Du folgendes herunter: var_dump($isfile); Don't make assumptions of what the value is, just check it. Yes and grmpf! The filename has a space at the end but it can not removed

[PHP] Re: Weird problem with is_file()

2010-04-26 Thread Michelle Konzack
Hello Pete, Am 2010-04-26 17:04:32, hacktest Du folgendes herunter: Is it possible that the space is a new-line (or a carriage-return) ? grmpf! -- That it was... preg_replace('/\s+$/','',$FILE); Works now! Thanks, Greetings and nice Day/Evening Michelle Konzack

[PHP] Re: Time Problem: always ten past xx

2009-10-06 Thread Carsten Wiedmann
Matthias Laug schrieb: var_dump(strftime(%d.%m.%Y %H:%m,$time)); ---^ The minutes are always 10, no matter what time I get. %m = month %M = minute Regards, Carsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: file_put_contents problem

2009-09-14 Thread Andres Gonzalez
This is on a Ubuntu 9.04 box. I did not try to open the file but just listing out the directory gives the size and it is 0. If I try to cat out the contents, there is nothing (I guess that does an open on it) -Andres Ralph Deffke wrote: it would be interesting on what os u are working as

[PHP] Re: file_put_contents problem

2009-09-14 Thread Ralph Deffke
it would be interesting on what os u are working as well. did u try to open the file? on windows often a file is reported as 0 bytes as of failing the refresh in explorer. ralph_def...@yahoo.de Andres Gonzalez and...@packetstorm.com wrote in message news:4aae510e.8030...@packetstorm.com... I

[PHP] Re: parse_ini_file problem

2009-08-27 Thread Ralph Deffke
Is it that some code, creating this error u talking about, is reading the init file? I would guess so, to me it looks like if u open the file dirctly the scrupt is suppost to die. that seems like a little funny protection not no show the init parameters. if thats the case u got to send the code

[PHP] Re: Calendar Problem

2009-08-11 Thread Shawn McKenzie
tedd wrote: Hi gang: I want to show the dates for all Fridays +-30 days from a specific date. For example, given today's date (8/11/2009) the Fridays that fall +-30 days are July 17, July 24, July 31, Aug 7, Aug 14, Aug 21, Aug 28, and Sept 4. I'm curious, how would you guys solve

[PHP] Re: Calendar Problem

2009-08-11 Thread Shawn McKenzie
Shawn McKenzie wrote: tedd wrote: Hi gang: I want to show the dates for all Fridays +-30 days from a specific date. For example, given today's date (8/11/2009) the Fridays that fall +-30 days are July 17, July 24, July 31, Aug 7, Aug 14, Aug 21, Aug 28, and Sept 4. I'm curious, how would

[PHP] Re: Regex Problem

2009-07-31 Thread Igor Escobar
The solution don't need to be with regex, if anyone can solve this with other way will be very helpfull . Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On Fri, Jul 31, 2009 at 2:23 PM, Igor

[PHP] Re: Regex Problem

2009-07-31 Thread Shawn McKenzie
Igor Escobar wrote: The solution don't need to be with regex, if anyone can solve this with other way will be very helpfull . Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar (twitter) On

Re: [PHP] Re: Regex Problem

2009-07-31 Thread Shawn McKenzie
Igor Escobar wrote: No no, i need to make an regex to match the bold areas in my string. Anything between single quotes or double quotes (including quotes and double quotes). Understand? Regards, Igor Escobar Systems Analyst Interface Designer + http://blog.igorescobar.com +

Re: [PHP] Re: Regex Problem

2009-07-31 Thread Shawn McKenzie
Shawn McKenzie wrote: Igor Escobar wrote: No no, i need to make an regex to match the bold areas in my string. Anything between single quotes or double quotes (including quotes and double quotes). Understand? Regards, Igor Escobar Systems Analyst Interface Designer +

Re: [PHP] Re: preg_replace problem

2009-06-14 Thread Mark Kelly
Hi. On Saturday 13 June 2009, Al wrote: I may not have been very clear. Feed it just test with the quotes. You should get back, test the same as you gave it. Instead, I get back quote;testquote; Like Shawn, I have tried your code in isolation and only get the expected results. I

Re: [PHP] Re: preg_replace problem

2009-06-14 Thread Andrew Ballard
On Sat, Jun 13, 2009 at 5:16 PM, Aln...@ridersite.org wrote: Al wrote: This preg_replace() should simply replace all with amp; unless the value is already amp; But; if $value is simple a quote character [] I get quote. e.g., test = quote;testquote; Search string and replace works as it

[PHP] Re: preg_replace problem

2009-06-13 Thread Shawn McKenzie
Al wrote: This preg_replace() should simply replace all with amp; unless the value is already amp; But; if $value is simple a quote character [] I get quote. e.g., test = quote;testquote; Search string and replace works as it should in Regex_Coach. echo $value.'br /';

[PHP] Re: preg_replace problem

2009-06-13 Thread Al
Shawn McKenzie wrote: Al wrote: This preg_replace() should simply replace all with amp; unless the value is already amp; But; if $value is simple a quote character [] I get quote. e.g., test = quote;testquote; Search string and replace works as it should in Regex_Coach. echo $value.'br

[PHP] Re: preg_replace problem

2009-06-13 Thread Al
Shawn McKenzie wrote: Al wrote: This preg_replace() should simply replace all with amp; unless the value is already amp; But; if $value is simple a quote character [] I get quote. e.g., test = quote;testquote; Search string and replace works as it should in Regex_Coach. echo $value.'br

[PHP] Re: preg_replace problem

2009-06-13 Thread Al
Al wrote: This preg_replace() should simply replace all with amp; unless the value is already amp; But; if $value is simple a quote character [] I get quote. e.g., test = quote;testquote; Search string and replace works as it should in Regex_Coach. echo $value.'br /';

[PHP] Re: forms problem

2009-06-04 Thread Al
PJ wrote: The code: ...snip div id=loginbox form name=login method=post action=? echo $_SERVER['PHP_SELF'] ? h2accegrave;s client br /input type=text name=title value=? echo $user; ? size=10 /br / mot de passe br /input type=text name=title value=? echo $passwd;

Re: [PHP] Re: forms problem

2009-06-04 Thread Michael A. Peters
Al wrote: I also use the HTML Validator extension. Leave it active and as you develop and test your resultant html code, it'll check your pages on the fly. When you see the red circle, with a cross, click the circle and get an error report in detail. Hey wow - that's nifty. I've got

Re: [PHP] Re: forms problem

2009-06-04 Thread Al
Michael A. Peters wrote: Al wrote: I also use the HTML Validator extension. Leave it active and as you develop and test your resultant html code, it'll check your pages on the fly. When you see the red circle, with a cross, click the circle and get an error report in detail. Hey wow

Re: [PHP] Re: forms problem

2009-06-04 Thread Michael A. Peters
Al wrote: Michael A. Peters wrote: Al wrote: I also use the HTML Validator extension. Leave it active and as you develop and test your resultant html code, it'll check your pages on the fly. When you see the red circle, with a cross, click the circle and get an error report in detail.

[PHP] Re: forms problem

2009-06-03 Thread Shawn McKenzie
PJ wrote: PROBLEM 1 solved: errant divs removed; strange that they were inhibiting entry of data into form field? PROBLEM 2 not resolved: but the form was off the page and clipped in upper right hand corner. What can be done to get it to show correctly? Remove the link to any stylesheets

[PHP] Re: class problem :(

2009-05-28 Thread Shawn McKenzie
Luke wrote: Right I've read the manual on this and all that so hopefully you find people can help. I have an abstract class with three children. The abstract is ForumObject and the three children are Thread, Category and Post and each have their own table so I wrote the following: abstract

Re: [PHP] Re: class problem :(

2009-05-28 Thread Luke
2009/5/29 Shawn McKenzie nos...@mckenzies.net Luke wrote: Right I've read the manual on this and all that so hopefully you find people can help. I have an abstract class with three children. The abstract is ForumObject and the three children are Thread, Category and Post and each have

[PHP] Re: Urgent problem PCRE or DOM help

2009-05-13 Thread Lenin
No one willing to help?

Re: [PHP] Re: Urgent problem PCRE or DOM help

2009-05-13 Thread Daniel Brown
On Wed, May 13, 2009 at 08:48, Lenin le...@phpxperts.net wrote: No one willing to help? Please don't bump your own threads on here. It creates unnecessary traffic. Someone will respond to you when they can, or you can explore one of the thousands of other avenues for support on the

[PHP] Re: Weird problem with T_gettext()

2009-04-04 Thread Michelle Konzack
Am 2009-04-04 10:13:52, schrieb Per Jessen: Michelle Konzack wrote: Now selecting de as prefered language is working, but if I select de_DE in Firefox, the second term About Us is something like Über Uns insteed Über Uns because the Website is UTF-8. Indeed. I'll

Re: [PHP] Re: Intermittent problem sending mail with PHP

2009-03-06 Thread Stephen Hutchison
thanks Jim - I change over to SwiftMailer and its working well. Jim Lucas li...@cmsws.com wrote in message news:49ae0375.2040...@cmsws.com... Stephen Hutchison wrote: I'll check with my ISP but if is that then it's a very low limit. I'm finding it's only allowing two or three through before

[PHP] Re: Intermittent problem sending mail with PHP

2009-03-03 Thread Stephen Hutchison
This appears to by a problem with the mail function. When I comment out the lines: if (mail($recipient, $subject, $message, $headers)) echo 'Succeededbr'; else echo 'Error - please check your e-mail addressbr'; and replace them with: echo $recipient . 'brbr'; echo $subject .

Re: [PHP] Re: Intermittent problem sending mail with PHP

2009-03-03 Thread Chris
Stephen Hutchison wrote: This appears to by a problem with the mail function. When I comment out the lines: if (mail($recipient, $subject, $message, $headers)) echo 'Succeededbr'; else echo 'Error - please check your e-mail addressbr'; More likely a mail server issue rather than the

Re: [PHP] Re: Intermittent problem sending mail with PHP

2009-03-03 Thread Stephen Hutchison
I'll check with my ISP but if is that then it's a very low limit. I'm finding it's only allowing two or three through before hanging. Is there something i can put in my code so that it at least fails gracefully? It's not a good look just hanging like that. Thanks Stephen Chris

Re: [PHP] Re: Intermittent problem sending mail with PHP

2009-03-03 Thread Jim Lucas
Stephen Hutchison wrote: I'll check with my ISP but if is that then it's a very low limit. I'm finding it's only allowing two or three through before hanging. Is there something i can put in my code so that it at least fails gracefully? It's not a good look just hanging like that. Thanks

[PHP] Re: APC problem with PHP

2009-02-11 Thread Colin Guthrie
'Twas brillig, and Nathan Nobbe at 11/02/09 00:10 did gyre and gimble: a lot of php extensions are not thread safe, perhaps apc is one of them. most people compile apache w/ mpm_prefork rather than mpm_worker for this reason. I know the problem is solved now but I think APC is pretty solid

[PHP] Re: move_uploaded_file() problem

2009-02-07 Thread Dušan Novaković
Hi, I'm having problem with function move_uploaded_file() under Linux (Slackware 12.2). It simply won't execute only that function in php file. So maybe I should add something to http.config file or ? I tried to execute that php file under Windows and it's working just fine (I've copied

Re: [PHP] Re: move_uploaded_file() problem

2009-02-07 Thread Alpár Török
2009/2/7 Dušan Novaković ndu...@gmail.com Hi, I'm having problem with function move_uploaded_file() under Linux (Slackware 12.2). It simply won't execute only that function in php file. So maybe I should add something to http.config file or ? I tried to execute that php file under

Re: [PHP] Re: move_uploaded_file() problem

2009-02-07 Thread Dušan Novaković
On Sat, Feb 7, 2009 at 12:29 PM, Alpár Török torokal...@gmail.com wrote: 2009/2/7 Dušan Novaković ndu...@gmail.com Hi, I'm having problem with function move_uploaded_file() under Linux (Slackware 12.2). It  simply won't execute only that function in php file. So maybe I should add

Re: [PHP] Re: move_uploaded_file() problem

2009-02-07 Thread Chris
if($_FILES['file']['name'] $_FILES['file']['size']55){ $file_name = news_.$_FILES['file']['name']; $image=../_img/news/.$file_name;

Re: [PHP] Re: move_uploaded_file() problem

2009-02-07 Thread Carlos Medina
Chris schrieb: if($_FILES['file']['name'] $_FILES['file']['size']55){ $file_name = news_.$_FILES['file']['name']; $image=../_img/news/.$file_name; //Upload file

Re: [PHP] Re: move_uploaded_file() problem

2009-02-07 Thread Ashley Sheridan
On Sat, 2009-02-07 at 14:03 +0100, Carlos Medina wrote: Chris schrieb: if($_FILES['file']['name'] $_FILES['file']['size']55){ $file_name = news_.$_FILES['file']['name']; $image=../_img/news/.$file_name;

Re: [PHP] Re: move_uploaded_file() problem

2009-02-07 Thread Alpár Török
2009/2/7 Dušan Novaković ndu...@gmail.com On Sat, Feb 7, 2009 at 12:29 PM, Alpár Török torokal...@gmail.com wrote: 2009/2/7 Dušan Novaković ndu...@gmail.com Hi, I'm having problem with function move_uploaded_file() under Linux (Slackware 12.2). It simply won't execute only that

Re: [PHP] Re: move_uploaded_file() problem

2009-02-07 Thread German Geek
make sure the permissions on the folders are right, so at least read for the httpd in the tmp folder and write in the destination folder. since its moving i would make them both writeable to the webserver daemon user. permissions can be annoying are necessary though... They caught me quite a few

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log http://www.emdebian.org/buildd/b/base-passwd/trunk/base-passwd-arm-1221459903.log and if

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Shawn McKenzie wrote: Michelle Konzack wrote: Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Shawn McKenzie wrote: Michelle Konzack wrote: Hello, currently I am coding a RSS feeder for the Emdebian buildd-log and for testing I use two files: http://www.emdebian.org/buildd/a/apt/trunk/apt-arm-1233120802.log

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Hello Shawn, Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Thanks for it, now I have an array but the |head -n 11 is ignored and my arrays have up to several 10.000

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Forgotten one thing: If I continue to process the array() with, e.g., $POS=strpos(stripcslashes($TMP_DATA['0']), :

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Michelle Konzack
Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: Actually though, instead of exec() why not something like: $TMP_DATA = explode(\n, $BUILDLOG, 11); Tried... but now I have 11 elements wher in the last element is the whole rest of the BUILD-Log... continue trying! Thanks, Greetings and

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: Am 2009-01-29 16:09:00, schrieb Shawn McKenzie: Actually though, instead of exec() why not something like: $TMP_DATA = explode(\n, $BUILDLOG, 11); Tried... but now I have 11 elements wher in the last element is the whole rest of the BUILD-Log... continue

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: Hello Shawn, Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Thanks for it, now I have an array but the |head -n 11 is ignored and my arrays

[PHP] Re: Weird problem while reading in a file to an Array

2009-01-29 Thread Shawn McKenzie
Michelle Konzack wrote: Am 2009-01-29 15:34:41, schrieb Shawn McKenzie: exec(escapeshellcmd(echo '$BUILDLOG' | head -n 11), $TMP_DATA); There are quotes or backticks or something in $BUILDLOG. Forgotten one thing: If I continue to process the array() with, e.g.,

[PHP] Re: phpMailer Problem!

2009-01-19 Thread Al
shahrzad khorrami wrote: hi all, I want to send email using SMTP Authentication with PHPMailer, I searched more and more but I can't find anything of my problem /// include_once('class.phpmailer.php');

Re: [PHP] Re: imap_rfc822_parse_adrlist problem

2008-12-29 Thread Ben Stuyts
Hi, On 29 dec 2008, at 08:57, c...@l-i-e.com wrote: File a bug report at http://bugs.php.net You have a pretty clear-cut case of a built-in function gone awry, and it will probably be fixed pretty fast. I also rely on this function quite a bit, so it needs to work right when I end up at

RE: [PHP] Re: imap_rfc822_parse_adrlist problem

2008-12-28 Thread ceo
:-) From: Ben Stuyts [...@altesco.nl] Sent: Sunday, December 21, 2008 7:12 AM To: Manuel Lemos Cc: php-general@lists.php.net Subject: Re: [PHP] Re: imap_rfc822_parse_adrlist problem Hi, On 21 dec 2008, at 03:41, Manuel Lemos wrote: on 12/20/2008 09:34 PM Ben Stuyts said

Re: [PHP] Re: imap_rfc822_parse_adrlist problem

2008-12-21 Thread Ben Stuyts
Hi, On 21 dec 2008, at 03:41, Manuel Lemos wrote: on 12/20/2008 09:34 PM Ben Stuyts said the following: Hi, Since upgrading to php 5.2.8 I have a problem with imap_rfc822_parse_adrlist. When I run the example given on the manual page at http://nl3.php.net/imap_rfc822_parse_adrlist: ... So

Re: [PHP] Re: imap_rfc822_parse_adrlist problem

2008-12-21 Thread Manuel Lemos
Hello, on 12/21/2008 11:12 AM Ben Stuyts said the following: Since upgrading to php 5.2.8 I have a problem with imap_rfc822_parse_adrlist. When I run the example given on the manual page at http://nl3.php.net/imap_rfc822_parse_adrlist: ... So the host part isn't filled in correctly. I have

[PHP] Re: imap_rfc822_parse_adrlist problem

2008-12-20 Thread Manuel Lemos
Hello, on 12/20/2008 09:34 PM Ben Stuyts said the following: Hi, Since upgrading to php 5.2.8 I have a problem with imap_rfc822_parse_adrlist. When I run the example given on the manual page at http://nl3.php.net/imap_rfc822_parse_adrlist: $adds = 'ian eiloart i...@example.ac.uk,

[PHP] Re: imap_rfc822_parse_adrlist problem

2008-12-20 Thread Manuel Lemos
Hello, on 12/20/2008 09:34 PM Ben Stuyts said the following: Hi, Since upgrading to php 5.2.8 I have a problem with imap_rfc822_parse_adrlist. When I run the example given on the manual page at http://nl3.php.net/imap_rfc822_parse_adrlist: $adds = 'ian eiloart i...@example.ac.uk,

[PHP] Re: Weird problem with HTML form and $_POST

2008-11-07 Thread Michelle Konzack
Am 2008-11-05 08:49:02, schrieb Oscar Gosdinski: On Wed, Nov 5, 2008 at 8:47 AM, Oscar Gosdinski [EMAIL PROTECTED] wrote: Name the select tag as sub_projects[], then in PHP you can read the $sub_project variable as an array. Oops, my error... you have to use the $_POST['sub_projects']

[PHP] Re: Weird problem with HTML form and $_POST

2008-11-05 Thread Lupus Michaelis
Michelle Konzack a écrit : and as you can see, there are three items taged... So, this part is working fine, but if I select an additional item and hit SUBMIT I get only: How do you select it ? By a click or a ctrl-click ? -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org --

[PHP] Re[2]: Problem changing file encoding

2008-10-29 Thread ANR Daemon
Greetings, Nathan Rixham. In reply to Your message dated Wednesday, October 22, 2008, 20:54:22, made this a while back.. might help :) http://programphp.com/iconv.phps Sorta... would be wise to have results of this detector cached in some way to reduce startup times. But it's nice, very nice

[PHP] Re: strtotime problem

2008-10-08 Thread Nathan Rixham
Thodoris wrote: I know that *strtotime*() only recognises the formats mm/dd/, -mm-dd and mmdd for numeric months but I need do something like that: function dateWebToMysql($webdate){ $format = 'Y-m-d'; $timestamp = strtotime($webdate); return

Re: [PHP] Re: strtotime problem

2008-10-08 Thread Stut
On 8 Oct 2008, at 12:42, Nathan Rixham wrote: Thodoris wrote: I know that *strtotime*() only recognises the formats mm/dd/, -mm-dd and mmdd for numeric months but I need do something like that: function dateWebToMysql($webdate){ $format = 'Y-m-d'; $timestamp =

[PHP] Re: Re: Problem with sorting

2008-09-26 Thread Michelle Konzack
Am 2008-09-21 14:34:18, schrieb Eric Butera: Cute, get gmail and you won't have such problems. I can not use gmail by law... I am mot willing to share my self informations with the NSA/CIA or any other US American Organizations, lso I am spamed masively by gmail and googlemail and will never

[PHP] Re: Re: Problem with sorting

2008-09-26 Thread Michelle Konzack
Am 2008-09-21 15:21:51, schrieb Eric Butera: I could also always bcc replies to you so you get three. How great would that be? :D I could setup a botnet and subscribe you to 100.000 usenet groups... Thanks, Greetings and nice Day/Evening Michelle Konzack Systemadministrator 24V

Re: [PHP] Re: Re: Problem with sorting

2008-09-26 Thread Eric Butera
On Thu, Sep 25, 2008 at 3:12 PM, Michelle Konzack [EMAIL PROTECTED] wrote: Am 2008-09-21 15:21:51, schrieb Eric Butera: I could also always bcc replies to you so you get three. How great would that be? :D I could setup a botnet and subscribe you to 100.000 usenet groups... Thanks,

SV: [PHP] Re: Buffering problem

2008-08-16 Thread Anders Norrbring
Anders Norrbring a écrit : I'm running out of ideas to where to look for this, so can you please give me some pointers? I guess it is that you're seeking for : http://fr.php.net/manual/en/outcontrol.configuration.php#ini.implicit- flush Thank you! Worked just as I want.. Anders

[PHP] Re: Buffering problem

2008-08-15 Thread Lupus Michaelis
Anders Norrbring a écrit : I'm running out of ideas to where to look for this, so can you please give me some pointers? I guess it is that you're seeking for : http://fr.php.net/manual/en/outcontrol.configuration.php#ini.implicit-flush -- Mickaël Wolff aka Lupus Michaelis

[PHP] Re: iconv() problem

2008-06-26 Thread Stefano Noffke
Nevermind... I made a mistake. I was actually parsing the string two times; therefore, the source string was not encoded as ISO-8859 anymore the second time. It is working fine now... Stefano Stefano Noffke ha scritto: Greetings, I have a problem with iconv(), and I need help solving it.

[PHP] Re: Include Problem

2008-06-24 Thread Shawn McKenzie
Shaun wrote: Hi, I am having problems with an include statement, i am using the following statement in an effort to include a footer file on my page: include(/cms/templates/footer.php); However I get the following error: Warning: main(/cms/templates/footer.php): failed to open stream: No

Re: [PHP] Re: stream_select problem with signals

2008-02-17 Thread Marcos Lois Bermúdez
Nathan Rixham escribió: socket_strerror(socket_last_error()) maybe? That i can see in PHP manual socket functions sre not bundled by default in PHP 5.3.0 and above, so if i'm using the stream implementation, how i can determine if a signal interrupt a stream_select call, the stream not will

[PHP] Re: stream_select problem with signals

2008-02-15 Thread Nathan Rixham
Marcos Lois Bermúdez wrote: I'm rewriting an API to access OneWire Net, i have a problem with select and signals. The class will support both types of sockets, trought BSD sockets and with streams. My problem is that when the PHP app is in socket select and a signal arrives it threat it as a

[PHP] Re: session.cookie_path problem

2007-06-10 Thread Lasse Brandt
Am I missing something obvious? I am so sorry - I was missing something obvious. At some early stage of my test, I had a /index.php on my test website doing a: session_start() And the apparently made my session work in both sub directories and thus poisoning my test result. After closing my

[PHP] Re: ftp_put() problem??

2007-05-24 Thread Al
Can anyone explain what's going on. This works; but, I don't understand it. Two folks pointed out I had my $remote and $local files reversed. I fixed that; but, it still didn't work. This does work: $source_dir is the absolute path i.e., /home/x/public_html/EditPage

Re: [PHP] Re: Upload problem - final size is different

2007-05-10 Thread Eric Trahan
Thank you all for your tips and solutions !! I use chmod and my upload form works fine ;) Eric Le 2007-05-09 à 10:23, Daniel Brown a écrit : PHP has two functions that may help you here, Eric --- chmod() and chown(). http://php.net/chmod http://php.net/chown It should be

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Eric Trahan
After some other tests, I think the problem is with the rights of the file. I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/ 4.4.4. Settings in PHP: file_uploads: On upload_tmp_dir: no value (so it uploads in /var/tmp/) upload_max_filesize: 2M My destination folder

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Daniel Brown
PHP has two functions that may help you here, Eric --- chmod() and chown(). http://php.net/chmod http://php.net/chown It should be enough to chmod($filename,0644); the file if it's just an image, or chmod($filename,0755); the file if it's a script. On 5/9/07, Eric Trahan [EMAIL

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Richard Davey
Eric Trahan wrote: Is there a way to change the owner or the group of a file in PHP. http://uk2.php.net/chown But remember the chown will fail if the user Apache is running under does not have sufficient rights to perform the task. Cheers, Rich -- Zend Certified Engineer

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Richard Lynch
On Wed, May 9, 2007 9:15 am, Eric Trahan wrote: After some other tests, I think the problem is with the rights of the file. I made tests on my personnal Mac that runs Apache/1.3.33 (Darwin) PHP/ 4.4.4. Settings in PHP: file_uploads: On upload_tmp_dir: no value (so it uploads in /var/tmp/)

Re: [PHP] Re: Upload problem - final size is different

2007-05-09 Thread Daniel Brown
I was thinking the same thing, Richard, but didn't say anything because of my limited experience with MacOS. I know it's built on BSD, but to be honest, I have no clue what may have changed over the years. On 5/9/07, Richard Lynch [EMAIL PROTECTED] wrote: On Wed, May 9, 2007 9:15 am, Eric

[PHP] Re: Upload problem - final size is different

2007-05-08 Thread itoctopus
Have you tried your code on another server? -- itoctopus - http://www.itoctopus.com Eric Trahan [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have a form to upload file on my web server, so user can upload their images. The upload work. The user file is uploaded to my

Re: [PHP] Re: Upload problem - final size is different

2007-05-08 Thread Daniel Brown
Eric, If you're checking the filesize via FTP, a web-based file manager, or even the shell if it's a cross-platform upload, it can give bad data. Try downloading the file and seeing if it's still working. If it does, try uploading it via FTP and having a script check the md5 hash on the

Re: [PHP] Re: A problem with passing $_GET in an url

2007-05-04 Thread Richard Lynch
On Thu, May 3, 2007 8:15 pm, Davis Chan wrote: I also have a question about using this newsgroup, why is messages I got from using Thunderbird not as update as the digest I got via email? Because PHP's nntp server has fewer gerbils. -- Some people have a gift link here. Know what I want? I

Re: [PHP] Re: A problem with passing $_GET in an url

2007-05-03 Thread Dan Shirah
Could you please post your code. It sounds like you have a submit button that when clicked goes to a javascript function which pops up a confirmation box. Is that correct? On 5/3/07, Travis Moore [EMAIL PROTECTED] wrote: If you're using window.location=./script.php?var=value, it's not

Re: [PHP] Re: A problem with passing $_GET in an url

2007-05-03 Thread Richard Lynch
On Thu, May 3, 2007 6:45 am, Dan Shirah wrote: ... On 5/3/07, Travis Moore [EMAIL PROTECTED] wrote: If you're using window.location=./script.php?var=value, it's not actually using a variable, it's using a string. If you're just using the above as an example, then could you please post the

[PHP] Re: A problem with passing $_GET in an url

2007-05-03 Thread Davis Chan
Hi! Everyone, here is the javascript function: function Ask_Confirm() { response = confirm(Are you sure?); if(response == true) { to_url = ./admin.php?to_be_rm= + document.forms[1].to_be_rm.value; // alert(to_url); window.location = to_url; } else { // Do

[PHP] Re: A problem with passing $_GET in an url

2007-05-03 Thread Davis Chan
(sorry if you see 2 posts, I was trying to cancel a post, edit, and repost) Hi! Everyone, Dan is right, after submit button is clicked, the javascript function below is called. I am trying here is the javascript function: function Ask_Confirm() { response = confirm(Are you sure?);

[PHP] Re: A problem with passing $_GET in an url

2007-05-02 Thread Travis Moore
If you're using window.location=./script.php?var=value, it's not actually using a variable, it's using a string. If you're just using the above as an example, then could you please post the line of javascript for redirecting. Travis. Davis Chan wrote: Hi! New to this newsgroup and is

[PHP] Re: Curious Problem with $_POST

2007-04-10 Thread Steve
Is it possible that your zip file is bigger than your max filesize allots? Most likely isn't the problem, but worth doublechecking. Stephen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a form for uploading files. It is intended to upload photos. I have it listed at the end.

[PHP] Re: Curious Problem with $_POST

2007-04-09 Thread itoctopus
You should check $_FILES, and your form tag should be like this form action='yoursubmitfile' method='post' enctype='multipart/form-data' -- itoctopus - http://www.itoctopus.com Stephen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I have a form for uploading files. It is intended to

  1   2   3   4   5   >