Re: [PHP] fpdf problem?

2013-08-09 Thread Tamara Temple
On Aug 9, 2013, at 10:50 AM, Jim Giner jim.gi...@albanyhandball.com wrote: I've been using fpdf to create pdf files for my site. All has been well for over a year. Suddenly I have a problem wherein IE 10 on W7 crashes when I try to print one of these pdfs created by my php scripts. The

Re: [PHP] fpdf problem?

2013-08-09 Thread Jim Giner
On 8/9/2013 12:06 PM, Tamara Temple wrote: On Aug 9, 2013, at 10:50 AM, Jim Giner jim.gi...@albanyhandball.com wrote: I've been using fpdf to create pdf files for my site. All has been well for over a year. Suddenly I have a problem wherein IE 10 on W7 crashes when I try to print one of

Re: [PHP] fpdf problem?

2013-08-09 Thread Jim Giner
On 8/9/2013 12:11 PM, Jim Giner wrote: On 8/9/2013 12:06 PM, Tamara Temple wrote: On Aug 9, 2013, at 10:50 AM, Jim Giner jim.gi...@albanyhandball.com wrote: I've been using fpdf to create pdf files for my site. All has been well for over a year. Suddenly I have a problem wherein IE 10 on

Re: [PHP] fpdf problem?

2013-08-09 Thread Jan Ehrhardt
Jim Giner in php.general (Fri, 09 Aug 2013 12:33:30 -0400): Good question and the answer is: it happens for other pdfs as well, so I guess it's not fpdf. Sorry for the mis-post here - I'll do more research on Adobe and IE. Update: Solved my print problem by unchecking an option in Adobe

Re: [PHP] fpdf problem?

2013-08-09 Thread Jim Giner
On 8/9/2013 1:56 PM, Jan Ehrhardt wrote: Jim Giner in php.general (Fri, 09 Aug 2013 12:33:30 -0400): Good question and the answer is: it happens for other pdfs as well, so I guess it's not fpdf. Sorry for the mis-post here - I'll do more research on Adobe and IE. Update: Solved my print

Re: [PHP] date problem

2013-01-03 Thread Jonathan Sundquist
1/3/2012 is in fact less then 9/16/2012. On Thu, Jan 3, 2013 at 3:57 PM, Marc Fromm marc.fr...@wwu.edu wrote: I am comparing to dates. define('WSOFFBEGIN','09/16/2012'); $jes = 01/03/2012; if ( date(m/d/Y, strtotime($jes)) date(m/d/Y, strtotime(WSOFFBEGIN)) ) { $error

Re: [PHP] date problem

2013-01-03 Thread Serge Fonville
Hi. date returns a string You should compare a different type for bigger/smaller than HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add TRUNCATE PARTITION in SQL Server

Re: [PHP] date problem

2013-01-03 Thread Ken Robinson
At 04:57 PM 1/3/2013, Marc Fromm wrote: I am comparing to dates. define('WSOFFBEGIN','09/16/2012'); $jes = 01/03/2012; if ( date(m/d/Y, strtotime($jes)) date(m/d/Y, strtotime(WSOFFBEGIN)) ) { $error = MUST begin after . WSOFFBEGIN . \n; } I cannot figure out why the $error

RE: [PHP] date problem

2013-01-03 Thread Marc Fromm
:05 PM To: Marc Fromm Cc: php-general@lists.php.net Subject: Re: [PHP] date problem Hi. date returns a string You should compare a different type for bigger/smaller than HTH Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Microsoft! They need to add

Re: [PHP] date problem

2013-01-03 Thread Jonathan Sundquist
)){ // bla bla } Thanks From: Serge Fonville [mailto:serge.fonvi...@gmail.com] Sent: Thursday, January 03, 2013 2:05 PM To: Marc Fromm Cc: php-general@lists.php.net Subject: Re: [PHP] date problem Hi. date returns a string You should compare a different type for bigger/smaller

RE: [PHP] date problem

2013-01-03 Thread Marc Fromm
Thanks Jonathan. I removed the date() syntax function and it works. From: Jonathan Sundquist [mailto:jsundqu...@gmail.com] Sent: Thursday, January 03, 2013 2:16 PM To: Marc Fromm Cc: Serge Fonville; php-general@lists.php.net Subject: Re: [PHP] date problem Marc, When you take a date and do

Re: [PHP] date problem

2013-01-03 Thread Jim Giner
On 1/3/2013 5:22 PM, Marc Fromm wrote: Thanks Jonathan. I removed the date() syntax function and it works. From: Jonathan Sundquist [mailto:jsundqu...@gmail.com] Sent: Thursday, January 03, 2013 2:16 PM To: Marc Fromm Cc: Serge Fonville; php-general@lists.php.net Subject: Re: [PHP] date problem

Re: [PHP] date problem

2013-01-03 Thread Jim Lucas
On 01/03/2013 01:57 PM, Marc Fromm wrote: $jes = 01/03/2012; # php -r echo 01/03/2012; 0.00016567263088138 You might want to put quotes around that value so it is actually a string and does not get evaluated. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP

Re: [PHP] Re: problem with my login script

2012-10-02 Thread Rodrigo Silva dos Santos
To break or not to break? that's the question... All that fight makes me (and, I think that Thomas too) learn a bit more about all of this. And for finish with all of it. I think that if something is not deprecated, is because it's is a good idea to use it somewhere. If the Language

Re: [PHP] A problem about sessions

2012-06-08 Thread As'ad Djamalilleil
i can't undersans much of your question,, but i think you supposed to write the statement to set the variable's value after the session_start() called, like this ... session_start(); . some codes $_SESSION['some_var']; --- don't put it before the session_start() On Thu, Jun 7, 2012 at

Re: [PHP] A problem about sessions

2012-06-08 Thread Tazio Ceri
Stuart Dallas stu...@3ft9.com ha scritto: On 8 Jun 2012, at 00:39, Tazio Ceri wrote: I have a PHP script that takes very long time to execute. I manage it using the following structure: ob_start(); // some code session_start(); // some code header(Content-length: .ob_get_length());

Re: [PHP] A problem about sessions

2012-06-07 Thread Stuart Dallas
On 8 Jun 2012, at 00:39, Tazio Ceri wrote: I have a PHP script that takes very long time to execute. I manage it using the following structure: ob_start(); // some code session_start(); // some code header(Content-length: .ob_get_length()); ob_end_flush(); // some other, very

Re: [PHP] NULL Problem

2012-04-24 Thread Matijn Woudt
On Tue, Apr 24, 2012 at 7:29 PM, David Stoltz dsto...@shh.org wrote: Here's my code (using MSSQL): $conn = new COM (ADODB.Connection)or die(Cannot start ADO); $conn-open($connStr); $query = SELECT * FROM TABLE WHERE id = .$id; $rs = $conn-execute($query); This code works fine, and I

Re: [PHP] NULL Problem

2012-04-24 Thread Serge Fonville
Have you considered the PHP MSSQL driver? http://www.microsoft.com/download/en/details.aspx?id=20098 Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Google!! They need to add GAL support on Android (star to agree)

RE: [PHP] NULL Problem

2012-04-24 Thread David Stoltz
Subject: Re: [PHP] NULL Problem On Tue, Apr 24, 2012 at 7:29 PM, David Stoltz dsto...@shh.org wrote: Here's my code (using MSSQL): $conn = new COM (ADODB.Connection)or die(Cannot start ADO); $conn-open($connStr); $query = SELECT * FROM TABLE WHERE id = .$id; $rs = $conn-execute($query

RE: [PHP] NULL Problem

2012-04-24 Thread David Stoltz
Woudt Cc: David Stoltz; php-general@lists.php.net Subject: Re: [PHP] NULL Problem Have you considered the PHP MSSQL driver? http://www.microsoft.com/download/en/details.aspx?id=20098 Kind regards/met vriendelijke groet, Serge Fonville http://www.sergefonville.nl Convince Google!! They need

Re: [PHP] Syntax problem PDO and bindvalue

2011-12-12 Thread FeIn
I don't think you're suppose to end your queries with a semicolon. Try: $sql = SELECT * FROM photographs WHERE photo_filename LIKE '%2%' LIMIT 0, :q; On Mon, Dec 12, 2011 at 1:49 PM, Stephen stephe...@rogers.com wrote: So I am getting this SQL error: Error selecting

Re: [PHP] Syntax problem PDO and bindvalue

2011-12-12 Thread Fatih P.
On Mon, Dec 12, 2011 at 4:22 PM, FeIn aci...@gmail.com wrote: I don't think you're suppose to end your queries with a semicolon. Try: you can end your queries with semicolon in prepared statements. How can I see the prepared SQL statement before it is executed? try- var_dump ($statement);

Re: [PHP] Re: Problem of load balance among php-cgi process

2011-10-20 Thread Jim Lucas
On 10/20/2011 5:20 AM, sean chen wrote: The red one is busy My email client is color blind. -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ http://www.bendsource.com/ C - (541) 408-5189 O - (541) 323-9113 H - (541) 323-4219 -- PHP General Mailing List

Re: [PHP] Sort problem

2011-09-14 Thread Marc Guay
Anyone know a smart way to order file names? Nope, but I know a natural way: http://ca.php.net/manual/en/function.natsort.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sort problem

2011-09-14 Thread Igor Escobar
Wow! Thank you! I completely forgot this method! Regards, Igor Escobar *Software Engineer * + http://blog.igorescobar.com + http://www.igorescobar.com + @igorescobar http://www.twitter.com/igorescobar On Wed, Sep 14, 2011 at 12:02 PM, Marc Guay marc.g...@gmail.com wrote: Anyone know a

Re: [PHP] array problem

2011-09-09 Thread Joshua Stoutenburg
The function fgetcsv() returns an array. http://php.net/manual/en/function.fgetcsv.php On Fri, Sep 9, 2011 at 9:00 AM, Marc Fromm marc.fr...@wwu.edu wrote: I am reading a csv file into an array. The csv file. users.csv file contents: w12345678,a w23456789,b w34567890,c

Re: [PHP] array problem

2011-09-09 Thread Steve Staples
On Fri, 2011-09-09 at 16:00 +, Marc Fromm wrote: I am reading a csv file into an array. The csv file. users.csv file contents: w12345678,a w23456789,b w34567890,c $csvfilename = users.csv; $handle = fopen($csvfilename, r);

Re: [PHP] array problem

2011-09-09 Thread Adam Balogh
hi, try to use print_r or var_dump to echo compound data type

Re: [PHP] array problem

2011-09-09 Thread Ashley Sheridan
You are echoing out an array. If you use something like print_r() or var_dump() you will see the array elements Thanks, Ash http://www.ashleysheridan.co.uk -- Sent from my Android phone with K-9 Mail. Please excuse my brevity. Marc Fromm marc.fr...@wwu.edu wrote: I am reading a csv file into an

Re: [PHP] caching problem

2011-06-28 Thread Stuart Dallas
On Tuesday, 28 June 2011 at 06:57, Fatih P. wrote: On Tue, Jun 28, 2011 at 7:40 AM, Nilesh Govindarajan cont...@nileshgr.com (mailto:cont...@nileshgr.com)wrote: On 06/28/2011 10:56 AM, Fatih P. wrote: Hi guys, the code files are being cached. and modifications in methods are

RE: [PHP] caching problem

2011-06-28 Thread admin
, time() + $offset) . GMT; //output the HTTP header Header($expire); Just a thought. Richard L. Buskirk -Original Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Tuesday, June 28, 2011 7:53 AM To: Fatih P. Cc: php-general@lists.php.net Subject: Re: [PHP] caching problem

Re: [PHP] caching problem

2011-06-28 Thread Stuart Dallas
On Tue, Jun 28, 2011 at 1:51 PM, Fatih P. fatihpirist...@gmail.com wrote: On Tue, Jun 28, 2011 at 1:52 PM, Stuart Dallas stu...@3ft9.com wrote: On Tuesday, 28 June 2011 at 06:57, Fatih P. wrote: On Tue, Jun 28, 2011 at 7:40 AM, Nilesh Govindarajan cont...@nileshgr.com

RE: [PHP] caching problem

2011-06-28 Thread admin
Message- From: Stuart Dallas [mailto:stu...@3ft9.com] Sent: Tuesday, June 28, 2011 9:18 AM To: Fatih P. Cc: PHP General Subject: Re: [PHP] caching problem On Tue, Jun 28, 2011 at 1:51 PM, Fatih P. fatihpirist...@gmail.com wrote: On Tue, Jun 28, 2011 at 1:52 PM, Stuart Dallas stu...@3ft9.com

Re: [PHP] caching problem

2011-06-28 Thread Fatih P.
On Tue, Jun 28, 2011 at 5:12 PM, ad...@buskirkgraphics.com wrote: Faith, I actually did read from the beginning of the message. That does not make sense. PHP files are cached intentionally, the system does not Cache PHP on its own. Sounds to me like you have an issue re-declaring an

Re: [PHP] caching problem

2011-06-28 Thread Stuart Dallas
On Tue, Jun 28, 2011 at 4:23 PM, Fatih P. fatihpirist...@gmail.com wrote: On Tue, Jun 28, 2011 at 5:12 PM, ad...@buskirkgraphics.com wrote: Faith, I actually did read from the beginning of the message. That does not make sense. PHP files are cached intentionally, the system does not

Re: [PHP] caching problem

2011-06-28 Thread Fatih P.
On Tue, Jun 28, 2011 at 5:30 PM, Stuart Dallas stu...@3ft9.com wrote: On Tue, Jun 28, 2011 at 4:23 PM, Fatih P. fatihpirist...@gmail.comwrote: On Tue, Jun 28, 2011 at 5:12 PM, ad...@buskirkgraphics.com wrote: Faith, I actually did read from the beginning of the message. That does

Re: [PHP] caching problem

2011-06-28 Thread Stuart Dallas
On Tue, Jun 28, 2011 at 5:12 PM, Fatih P. fatihpirist...@gmail.com wrote: On Tue, Jun 28, 2011 at 5:30 PM, Stuart Dallas stu...@3ft9.com wrote: Fatih, please explain what you mean by the code files are being cached. and modifications in methods are skipped and not executed. How are you

RE: [PHP] caching problem

2011-06-28 Thread admin
...@buskirkgraphics.com; PHP General Subject: Re: [PHP] caching problem On Tue, Jun 28, 2011 at 5:30 PM, Stuart Dallas stu...@3ft9.com wrote: On Tue, Jun 28, 2011 at 4:23 PM, Fatih P. fatihpirist...@gmail.comwrote: On Tue, Jun 28, 2011 at 5:12 PM, ad...@buskirkgraphics.com wrote: Faith, I actually did read

Re: [PHP] caching problem

2011-06-28 Thread Steve Staples
On Tue, 2011-06-28 at 17:34 +0100, Stuart Dallas wrote: On Tue, Jun 28, 2011 at 5:12 PM, Fatih P. fatihpirist...@gmail.com wrote: On Tue, Jun 28, 2011 at 5:30 PM, Stuart Dallas stu...@3ft9.com wrote: Fatih, please explain what you mean by the code files are being cached. and

Re: [PHP] caching problem

2011-06-28 Thread Fatih P.
On Tue, Jun 28, 2011 at 6:39 PM, ad...@buskirkgraphics.com wrote: Fatih, I am sorry spell check auto corrected your name, I was not changing your name on purpose. It was not my intension to piss you off. I understand your frustration, trust me. I am running 5.3.6 on Windows Server

Re: [PHP] caching problem

2011-06-28 Thread Micky Hulse
OP: Can we see the methods in question? Have you tried running the code on a different server/host? Have you added any scaffolding to your methods in order to test your caching theory? This would be the first thing I would try (i.e. create random number (or whatever), concat with variable vals

Re: [PHP] caching problem

2011-06-28 Thread Stuart Dallas
On Tue, Jun 28, 2011 at 5:53 PM, Fatih P. fatihpirist...@gmail.com wrote: On Tue, Jun 28, 2011 at 6:34 PM, Stuart Dallas stu...@3ft9.com wrote: On Tue, Jun 28, 2011 at 5:12 PM, Fatih P. fatihpirist...@gmail.comwrote: On Tue, Jun 28, 2011 at 5:30 PM, Stuart Dallas stu...@3ft9.com wrote:

Re: [PHP] caching problem

2011-06-27 Thread Nilesh Govindarajan
On 06/28/2011 10:56 AM, Fatih P. wrote: Hi guys, the code files are being cached. and modifications in methods are skipped and not executed. is there any parameter that i can pass it from ini file? this has been so annoying for me. restarting apache, windows, etc does not even help. im

Re: [PHP] caching problem

2011-06-27 Thread Fatih P.
On Tue, Jun 28, 2011 at 7:40 AM, Nilesh Govindarajan cont...@nileshgr.comwrote: On 06/28/2011 10:56 AM, Fatih P. wrote: Hi guys, the code files are being cached. and modifications in methods are skipped and not executed. is there any parameter that i can pass it from ini file? this

Re: [PHP] date problem

2011-04-02 Thread Louis Huppenbauer
Just try of March. Worked for me. print first: .date(d-m-Y H:i:s,strtotime('first Tuesday of March 2011')).\n; print second: .date(d-m-Y H:i:s,strtotime('second Tuesday of March 2011')).\n; print third: .date(d-m-Y H:i:s,strtotime('third Tuesday of March 2011')).\n; print fourth: .date(d-m-Y

Re: [PHP] date problem

2011-04-02 Thread Dan Dan
It seems different php versions have different outputs for this code: Fedora Core 14 (x86): first: 01-03-2011 00:00:00 second: 08-03-2011 00:00:00 third: 22-03-2011 00:00:00 fourth: 22-03-2011 00:00:00 fifth: 29-03-2011 00:00:00 Fedora Core11 (x86_64): first: 31-12-1969 16:00:00 second:

Re: [PHP] date problem

2011-04-01 Thread Dan Dan
I removed the day (1 before the March), but its still giving the same result, i.e. different days of month with and without the 'first'. Any further help ? print first Tuesday :.date(d-m-Y H:i:s,strtotime('March 2011 Tuesday')).\n; print first: .date(d-m-Y H:i:s,strtotime('March 2011 first

Re: [PHP] nl2br problem

2011-02-02 Thread Ashley Sheridan
On Tue, 2011-02-01 at 14:24 -0600, Donovan Brooke wrote: Daniel Brown wrote: [snip] Absolutely. Look into employing TinyMCE or CKEditor (or the older FCKEditor) so you don't have to do so much server-side processing. This will only apply to pages moving forward, mind you, not for

Re: [PHP] nl2br problem

2011-02-01 Thread Daniel Brown
On Tue, Feb 1, 2011 at 14:42, Donovan Brooke li...@euca.us 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

Re: [PHP] nl2br problem

2011-02-01 Thread David Hutto
If project names are indications of programmer's Freudian insights, then what is the FCKEditor? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] nl2br problem

2011-02-01 Thread Donovan Brooke
Daniel Brown wrote: [snip] Absolutely. Look into employing TinyMCE or CKEditor (or the older FCKEditor) so you don't have to do so much server-side processing. This will only apply to pages moving forward, mind you, not for displaying existing table data. You'll need to make the

Re: [PHP] nl2br problem

2011-02-01 Thread David Robley
David Hutto wrote: If project names are indications of programmer's Freudian insights, then what is the FCKEditor? Perhaps that questions should be asked of the lead developer's parents, who had the temerity to name him Frederico Caldeira Knabben. Cheers -- David Robley I need an

Re: [PHP]: permission problem www-data

2011-01-18 Thread Al
On 1/18/2011 4:44 AM, Moses wrote: Hi Everyone, I am creating a file in PHP script which takes a value from a form and writes it to a file. However, i don't have the mode permission for the file instead it is owned by www-data.What can i do to ensure that the file is owned by me. drwxr-xr-x

Re: [PHP] Array problem

2010-10-28 Thread Richard Quadling
On 27 October 2010 22:15, Kevin Kinsey k...@daleco.biz wrote: Marc Guay wrote: As Nicholas pointed out, the extra underscore in the key is the issue. That's way too easy a fix.  I think he should check to make sure his version of PHP was compiled with the right extensions and that the

RE: [PHP] Array problem

2010-10-28 Thread Bob McConnell
From: Richard Quadling On 27 October 2010 22:15, Kevin Kinsey k...@daleco.biz wrote: Marc Guay wrote: As Nicholas pointed out, the extra underscore in the key is the issue. That's way too easy a fix.  I think he should check to make sure his version of PHP was compiled with the right

Re: [PHP] Array problem

2010-10-27 Thread Kevin Kinsey
Marc Guay wrote: As Nicholas pointed out, the extra underscore in the key is the issue. That's way too easy a fix. I think he should check to make sure his version of PHP was compiled with the right extensions and that the browser isn't doing something unpredictably bizarre when submitting

RE: [PHP] hash problem.

2010-07-29 Thread Bob McConnell
From: João Cândido de Souza Neto I´ve got the setting in my /etc/login.defs file as bellow: # Use MD5 or DES to encrypt password? Red Hat use MD5 by default. MD5_CRYPT_ENAB no ENCRYPT_METHOD SHA512 So, when I try to get this: echo hash(sha512, $_POST[password]); It does not match

RE: [PHP] FW: Problem with ssh2_connect

2010-06-23 Thread Bob McConnell
From: Radek Krejca I am trying connect to freebsd. I have php 5.3.2 installed. I have to connect using public keys, but without succes. Function ssh2_connect throws me following error (then I have invalid resource for function ssh2_auth_pubkey_file)... PHP Warning: ssh2_connect(): Error

RE: [PHP] FW: Problem with ssh2_connect

2010-06-23 Thread Radek Krejča
Have you tried opening the connection from the command line with OpenSSL or similar tools? Do you know those credentials will actually work? Yes, It is my key (now I am testing), but I got this message before I run ssh2_auth_public... Radek -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] strange problem of mysql_query

2010-06-02 Thread Ashley Sheridan
On Wed, 2010-06-02 at 17:36 +0800, I am on the top of the world! Borlange University wrote: hey, i have a sql string like below: select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and szs_guige='48B32/14-1 1/8' and szs_tuhao='48B32 1 1/8' the problem is that using

Re: [PHP] strange problem of mysql_query

2010-06-02 Thread Jim Lucas
I am on the top of the world! Borlange University wrote: hey, i have a sql string like below: select szs_content from szs_gy_ca where szs_shengchanhao='09-s525' and szs_guige='48B32/14-1 1/8' and szs_tuhao='48B32 1 1/8' the problem is that using mysql_query to run this sql string returns

Re: [PHP] simplexml_load_file problem

2010-05-24 Thread shahrzad khorrami
by using of ' simplexml_load_string' instead of file, I solved my problem :) thanks

Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Peter Lind
On 25 April 2010 22:14, Michelle Konzack linux4miche...@tamay-dogan.net wrote: Hi, I have a code sniplet which does not work and I do not know why: 8--  $isfile=shell_exec(ls /tmp/tdphp-vserver/SESSION_ .

Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Jan G.B.
2010/4/25 Michelle Konzack linux4miche...@tamay-dogan.net: Hi, I have a code sniplet which does not work and I do not know why: 8--  $isfile=shell_exec(ls /tmp/tdphp-vserver/SESSION_ . $_SERVER['REMOTE_ADDR'] . _ .

Re: [PHP] Weird problem with is_file()

2010-04-25 Thread Karl DeSaulniers
Hi Michelle, Maybe try adding an error catch to see what you get. if(is_file($isFile)) or die(mysql_error()); On Apr 25, 2010, at 3:14 PM, Michelle Konzack wrote: if (is_file($isfile)) { Karl DeSaulniers Design Drumm http://designdrumm.com -- PHP General Mailing List

Re: [PHP] Weird problem with is_file()

2010-04-25 Thread Karl DeSaulniers
Oops, my apologies. That is a PHP MySQL solution. Wrong list. Please disregard that solution. Maybe find a way to get an error response from your session to see what the problem is. Karl On Apr 25, 2010, at 3:24 PM, Karl DeSaulniers wrote: Hi Michelle, Maybe try adding an error catch to

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-20 Thread Paul M Foster
On Fri, Mar 19, 2010 at 10:13:54PM +, Ashley Sheridan wrote: snip It's not really just that. In the csv format, a field value of 00123 (I don't really know what zip code formats are) is perfectly valid. ZIP codes are simply five digits. The starting digit (0-9) identifies a broad

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-20 Thread Paul M Foster
On Fri, Mar 19, 2010 at 06:01:38PM -0400, Jason Pruim wrote: snip But if you have a decent CASS software then it should add the zip back in hehe :) For the sake of those in Europe and elsewhere, CASS software is software certified by the US Postal Service which cleans up addresses to conform

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-19 Thread Jason Pruim
On Mar 18, 2010, at 1:26 PM, Andrew Ballard wrote: On Thu, Mar 18, 2010 at 1:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: [snip] And I believe that when MS Office saves a CSV out with a character other than a comma as the delimiter, it still saves it as a .csv by default.

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-19 Thread Ashley Sheridan
On Fri, 2010-03-19 at 18:01 -0400, Jason Pruim wrote: On Mar 18, 2010, at 1:26 PM, Andrew Ballard wrote: On Thu, Mar 18, 2010 at 1:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: [snip] And I believe that when MS Office saves a CSV out with a character other than a comma

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-19 Thread Andrew Ballard
On Fri, Mar 19, 2010 at 6:01 PM, Jason Pruim li...@pruimphotography.com wrote: On Mar 18, 2010, at 1:26 PM, Andrew Ballard wrote: On Thu, Mar 18, 2010 at 1:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: [snip] And I believe that when MS Office saves a CSV out with a character

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-19 Thread Andrew Ballard
On Fri, Mar 19, 2010 at 6:13 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Fri, 2010-03-19 at 18:01 -0400, Jason Pruim wrote: On Mar 18, 2010, at 1:26 PM, Andrew Ballard wrote: On Thu, Mar 18, 2010 at 1:00 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: [snip] And I

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 19:21 +0800, I am on the top of the world! Borlange University wrote: sounds good, i havnt checked out it with cvs format. thanks On Tue, Mar 16, 2010 at 8:15 PM, Ashley Sheridan a...@ashleysheridan.co.uk wrote: On Tue, 2010-03-16 at 20:16

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 12:56 +0100, Jochen Schultz wrote: Microsoft managed to basterdise this format a bit as well, and lets you use tabs, spaces and all sorts of other characters to delimit data fields. Someone obviously didn't mention to them that the file type is 'comma separated

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Jochen Schultz
Microsoft managed to basterdise this format a bit as well, and lets you use tabs, spaces and all sorts of other characters to delimit data fields. Someone obviously didn't mention to them that the file type is 'comma separated values'! Or maybe it is because someone told them, that there is

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Paul M Foster
On Thu, Mar 18, 2010 at 11:35:33AM +, Ashley Sheridan wrote: snip The .csv format is just a plain text format, so you won't get formatting or formulas in your 'sheets' (csv is also a sheetless format) but it's been used for years by many systems for data. A lot of database systems

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Jochen Schultz
AFAIK, there is no real standard out there for CSV file definition and since Microsoft and many others (me too btw) use other chars for field separation in so called CSV files, i think it is a good way to deal with it and let it be how it is (actually i have to look into every CSV file that is

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread tedd
At 11:35 AM + 3/18/10, Ashley Sheridan wrote: The .csv format is just a plain text format, so you won't get formatting or formulas in your 'sheets' (csv is also a sheetless format) but it's been used for years by many systems for data. A lot of database systems will let you import csv files

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Tommy Pham
On Thu, Mar 18, 2010 at 8:40 AM, tedd tedd.sperl...@gmail.com wrote: At 11:35 AM + 3/18/10, Ashley Sheridan wrote: The .csv format is just a plain text format, so you won't get formatting or formulas in your 'sheets' (csv is also a sheetless format) but it's been used for years by many

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Paul M Foster
On Thu, Mar 18, 2010 at 08:57:00AM -0700, Tommy Pham wrote: snip Personally, I find working with fixed widths is best. The text file might be larger but I don't have worry about escaping any type of characters ;) I find this impossible, since I never know the largest width of all the

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Mattias Thorslund
Paul M Foster wrote: I process a lot of CSV files, and what I typically see is that Excel will enclose fields which might contain commas in quotes. This gets messy. So I finally wrote a C utility which parses the file and yields tab-delimited records without the quotes. Paul And fgetcsv()

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 12:12 -0400, Paul M Foster wrote: On Thu, Mar 18, 2010 at 08:57:00AM -0700, Tommy Pham wrote: snip Personally, I find working with fixed widths is best. The text file might be larger but I don't have worry about escaping any type of characters ;) I find

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Paul M Foster
On Thu, Mar 18, 2010 at 09:16:30AM -0700, Mattias Thorslund wrote: Paul M Foster wrote: I process a lot of CSV files, and what I typically see is that Excel will enclose fields which might contain commas in quotes. This gets messy. So I finally wrote a C utility which parses the file and

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Paul M Foster
On Thu, Mar 18, 2010 at 04:15:33PM +, Ashley Sheridan wrote: On Thu, 2010-03-18 at 12:12 -0400, Paul M Foster wrote: On Thu, Mar 18, 2010 at 08:57:00AM -0700, Tommy Pham wrote: snip Personally, I find working with fixed widths is best. The text file might

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-18 Thread Ashley Sheridan
On Thu, 2010-03-18 at 12:57 -0400, Paul M Foster wrote: On Thu, Mar 18, 2010 at 04:15:33PM +, Ashley Sheridan wrote: On Thu, 2010-03-18 at 12:12 -0400, Paul M Foster wrote: On Thu, Mar 18, 2010 at 08:57:00AM -0700, Tommy Pham wrote: snip Personally, I

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-16 Thread Ashley Sheridan
On Tue, 2010-03-16 at 20:16 +0800, I am on the top of the world! Borlange University wrote: i have a problem of reading values from excel file via spreadsheet_excel_reader which is a php class used to manipulate excel files. $data = new Spreadsheet_Excel_Reader();

Re: [PHP] Spreadsheet_Excel_Reader problem

2010-03-16 Thread Jochen Schultz
Or maybe you want to check out this: http://www.codeplex.com/PHPExcel I havn't checked it out for your special purpose but i found it useful for some other jobs (especially excell 2007 support). regards Jochen Ashley Sheridan schrieb: On Tue, 2010-03-16 at 20:16 +0800, I am on the top of

Re: [PHP] mysqli_connect problem

2010-03-01 Thread John Black
On 03/01/2010 07:54 PM, Thomas H. George wrote: ?php ... $alien_description = $_POST['aliendescription']; $what_they_did = $_POST['whattheydid']; $email = $_POST['email']; ... $query = INSERT INTO aliens_abduction (first_name, last_name, when_it_happened,

Re: [PHP] mysqli_connect problem

2010-02-28 Thread Rene Veerman
ok, couple of things; - if you're using user input in SQL queries, you have to push 'm through a function that sanitizes the input against sql-insertions. For now, let that be function antiSQLinsertion ($var) { return mysql_real_escape($var); }; - if you're going to output values from the DB into

Re: [PHP] array_count_values Problem

2010-01-12 Thread Jonathan Tapicer
Hi, The function array_count_values returns an array (http://php.net/array_count_values). So you are using it the wrong way, you should assign the return value to a variable and then access some index. Regards, Jonathan On Tue, Jan 12, 2010 at 11:09 AM, Alice Wei aj...@alumni.iu.edu wrote:

RE: [PHP] array_count_values Problem

2010-01-12 Thread Alice Wei
]; echo $count_friend . \n; } Thanks again. Alice Date: Tue, 12 Jan 2010 13:17:57 -0300 Subject: Re: [PHP] array_count_values Problem From: tapi...@gmail.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net Hi, The function array_count_values returns an array (http

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sat, 2009-11-14 at 22:20 +0100, A. Mannini wrote: Hi all, i've a problem using exec() on a Linux server with PHP 5.2.9 on Apache 2.2.13. Safe mode is OFF and Apache isn't chrooted. I would run /usr/lib/mailman/bin/find_member -l list email so i used exec(sudo run

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unescaped character that is causing an issue Thanks, Ash

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an unescaped character that

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

Re: [PHP] exec() problem

2009-11-14 Thread Ashley Sheridan
On Sun, 2009-11-15 at 00:25 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may

Re: [PHP] exec() problem

2009-11-14 Thread Kim Madsen
Ashley Sheridan wrote on 2009-11-15 00:23: Looked to all log...nothing! :-( What other logs did you look at? Then do this from a command line: su - the user apache runs as copy the command from the ph script and run it from commandline and let us see the error you recieve... -- Kind

Re: [PHP] exec() problem

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

Re: [PHP] exec() problem [SOLVED]

2009-11-14 Thread A. Mannini
Ashley Sheridan ha scritto: On Sun, 2009-11-15 at 00:06 +0100, A. Mannini wrote: Ashley Sheridan ha scritto: Have you checked to ensure that the exec is actually running at all? Check the error logs to see what they say. There may be a problem with the string argument for exec(), like an

  1   2   3   4   5   6   7   8   9   10   >