[PHP] Re: Does anyone here use TCPDF?

2009-09-24 Thread Dave M G
Ralph, Paul, Thank you for responding. > I don't use TCPDF; I use FPDF, but I imagine the drill is about the same > I tried using FPDF, but it did not support UTF-8/Japanese. It claims some support in the documentation, but after much experimentation, I verified it does not. That is why I swit

Re: [PHP] Re: Does anyone here use TCPDF?

2009-09-24 Thread Ralph Deffke
Hi Dave, if its the case u could do a good deal, why u don't climp urself into the pdf format? It is nothing else then a presentation format, not magic, complicated and huge yes, but at the end just a text file. I am not that pdf specialist, but I know at least for the older pdf formats the encond

Re: [PHP] Re: Does anyone here use TCPDF?

2009-09-24 Thread Ben Dunlap
> I attempted to use the same functions as FPDI/FPDF, but they did not > work in TCPDF. Which functions did you use in FPDF? Ben -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHPlot patch

2009-09-24 Thread Chandana
Hi, I was using Phplot for a project of mine and I had to do some modifications in the phplot.php code to show the data values at the peaks of the graph. I would like to commit the modification code to the phplot repository so that others can also use it as an inbuilt functionality. If I want t

Re: [PHP] PHPlot patch

2009-09-24 Thread Sudheer Satyanarayana
On Thursday 24 September 2009 03:33 PM, Chandana wrote: Hi, I was using Phplot for a project of mine and I had to do some modifications in the phplot.php code to show the data values at the peaks of the graph. I would like to commit the modification code to the phplot repository so that others c

Re: [PHP] Re: session.gc_maxlifetime

2009-09-24 Thread Tom Worster
it could be ip address changes. interesting thought. i think i should add some special logging. it's a dedicated freebsd server with one app. On 9/23/09 6:43 PM, "Ralph Deffke" wrote: > finaly we went with a custom cooky handling, however the customers > requirements where two days. > > if u

[PHP] catch an iconv E_NOTICE

2009-09-24 Thread Tom Worster
i have this hack that works up to a point... function my_err_handler($errno, $errstr, $errfile, $errline) { if ( preg_match('/iconv/', $errstr) ) { throw new Exception('iconv error'); } else { // ? how to invoke default error handler ? } } set_error_handler("my_err_hand

[PHP] stdout as input

2009-09-24 Thread Christoph Boget
I've read the section in the docs about i/o streams and other related sections I was able to find but couldn't figure out how to do what I need. From the command line, I'm trying to pipe stdout in to my php script which should then see it as input. A simplistic example would be: echo bob | myScr

Re: [PHP] catch an iconv E_NOTICE

2009-09-24 Thread David Otton
2009/9/24 Tom Worster : > but i'd like proceed with default error handling in the branch with the > question marks. how can i do that? An error handler that passes through to the previous error handler: http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] catch an iconv E_NOTICE

2009-09-24 Thread Tommy Pham
- Original Message > From: Tom Worster > To: PHP General List > Sent: Thursday, September 24, 2009 6:42:29 AM > Subject: [PHP] catch an iconv E_NOTICE > > i have this hack that works up to a point... > > function my_err_handler($errno, $errstr, $errfile, $errline) { > if ( preg_mat

Re: [PHP] stdout as input

2009-09-24 Thread Tommy Pham
- Original Message > From: Christoph Boget > To: PHP General > Sent: Thursday, September 24, 2009 6:51:56 AM > Subject: [PHP] stdout as input > > I've read the section in the docs about i/o streams and other related > sections I was able to find but couldn't figure out how to do what I

Re: [PHP] stdout as input

2009-09-24 Thread Christoph Boget
> Isn't it simpler with > http://www.php.net/manual/en/function.shell-exec.php > ? Perhaps. But the command to execute would be relatively arbitrary. What I'm trying to do is set up a script that will filter the results of a grep. But what I'm grepping and where I'm starting from would change.

Re: [PHP] Re: session.gc_maxlifetime

2009-09-24 Thread bdunlap
> it could be ip address changes. interesting thought. As far as I'm aware, PHP session-management doesn't care about source IP, out-of-the-box -- your app would have to be coded to care. Plus I suspect you would have started seeing the problem a long time ago, if changing source IPs were the caus

Re: [PHP] stdout as input

2009-09-24 Thread bdunlap
> echo bob | myScript.php > > In myScript.php, I'm doing: > >  $handle = popen( 'php://stdin', 'r' ); >  echo var_export( $handle, TRUE ) . "\n\n"; What output are you getting from those lines, and what were you expecting? $handle is just a resource, same as if you opened a regular file -- you sti

Re: [PHP] Re: session.gc_maxlifetime

2009-09-24 Thread Ralph Deffke
php not but perhaps the client its not clear and commonly defined what clients do with cookies on reconnect and stuff or long idle times. I would expect as source the new browsers where more and more users use subwindows to have concurrent sessions, does anybody know how they handle ip changes? I'

Re: [PHP] stdout as input

2009-09-24 Thread Shawn McKenzie
bdunlap wrote: >> echo bob | myScript.php >> >> In myScript.php, I'm doing: >> >> $handle = popen( 'php://stdin', 'r' ); >> echo var_export( $handle, TRUE ) . "\n\n"; > > What output are you getting from those lines, and what were you > expecting? $handle is just a resource, same as if you opene

Re: [PHP] stdout as input

2009-09-24 Thread Christoph Boget
> Exactly.  And if you just want redirected data you can try: > $data = file_get_contents("php://stdin"); > --or-- > For an array of lines: > $lines = file("php://stdin"); This is exactly what I was looking for. Thanks Shawn and Ben! thnx, Christoph -- PHP General Mailing List (http://www.php.n

Re: [PHP] catch an iconv E_NOTICE

2009-09-24 Thread Tom Worster
On 9/24/09 10:30 AM, "David Otton" wrote: > 2009/9/24 Tom Worster : > >> but i'd like proceed with default error handling in the branch with the >> question marks. how can i do that? > > An error handler that passes through to the previous error handler: > > error_reporting(E_ALL); > > funct

[PHP] variable

2009-09-24 Thread Grega Leskovšek
Suppose I have a variable $i = 0 or 1 or 2 and I have variables $item0, $item1 and $item2 how do I print the variable $item0 using a combination of variable $item and variable $i? or with this code it gives me an error: $i = 0; $item0 = "test"; echo $item$i; #how do I properly use this variable $it

Re: [PHP] variable

2009-09-24 Thread Tommy Pham
- Original Message > From: Grega Leskovšek > To: php-general@lists.php.net > Sent: Thursday, September 24, 2009 10:10:33 AM > Subject: [PHP] variable > > Suppose I have a variable $i = 0 or 1 or 2 > and I have variables $item0, $item1 and $item2 > how do I print the variable $item0 using

Re: [PHP] Re: session.gc_maxlifetime

2009-09-24 Thread Ben Dunlap
> php not but perhaps the client its not clear and commonly defined what > clients do with cookies on reconnect and stuff or long idle times. Maybe not, but I'd be really surprised. An HTTP client is supposed to decide whether to send a cookie by looking at the domain name and path of the URL it's

Re: [PHP] variable

2009-09-24 Thread Tommy Pham
- Original Message > From: Tommy Pham > To: Grega Leskovšek ; php-general@lists.php.net > Sent: Thursday, September 24, 2009 10:16:44 AM > Subject: Re: [PHP] variable > > - Original Message > > From: Grega Leskovšek > > To: php-general@lists.php.net > > Sent: Thursday, Sept

Re: [PHP] variable

2009-09-24 Thread Ben Dunlap
> Suppose I have a variable $i = 0 or 1 or 2 > and I have variables $item0, $item1 and $item2 > how do I print the variable $item0 using a combination of variable $item and > variable $i? > or with this code it gives me an error: > $i = 0; > $item0 = "test"; > echo $item$i; #how do I properly use t

Re: [PHP] variable

2009-09-24 Thread Lars Nielsen
Hi Grega I think you might want to have a look at the array's section of the php manual. http://www.php.net/array regards Lars tor, 24 09 2009 kl. 19:10 +0200, skrev Grega Leskovšek: > Suppose I have a variable $i = 0 or 1 or 2 > and I have variables $item0, $item1 and $item2 > how do I print th

[PHP] html email showing instead of line breaks

2009-09-24 Thread Adam Williams
I have users enter support tickets into a a form and then it emails it to me, I'm trying to get the emails to display when they hit enter correctly, so i'm changing the \r\n to , but in the email i'm getting, its displaying the instead of a line break: here is the code: $message = "new supp

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Jonathan Tapicer
\r\n should be between double quotes: "\r\n" On Thu, Sep 24, 2009 at 3:52 PM, Adam Williams wrote: > I have users enter support tickets into a a form and then it > emails it to me, I'm trying to get the emails to display when they hit enter > correctly, so i'm changing the \r\n to , but in the e

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Adam Williams
Thanks, i'll try that. what is the difference in using '' and ""? I thought they were interchangeable. Jonathan Tapicer wrote: \r\n should be between double quotes: "\r\n" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] RIGHT Function?

2009-09-24 Thread sono-io
Hi all, I could use some help. I've scoured both the MySQL and PHP sites that I know of and can't find an answer to this. I have a price field that sometimes contains entries like this: 250,(min) 5.32 How can I pull just the price ($5.32 in this example) from this field to disp

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Adam Williams
oh nevermind, i see double quotes translate the \r\n to its appropriate EOL character. Adam Williams wrote: Thanks, i'll try that. what is the difference in using '' and ""? I thought they were interchangeable. Jonathan Tapicer wrote: \r\n should be between double quotes: "\r\n"

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Jonathan Tapicer
Double quotes accept special characters and string interpolation, see the manual: http://php.net/manual/en/language.types.string.php On Thu, Sep 24, 2009 at 4:00 PM, Adam Williams wrote: > Thanks, i'll try that.  what is the difference in using '' and ""?  I > thought they were interchangeable. >

Re: [PHP] RIGHT Function?

2009-09-24 Thread Tommy Pham
Original Message > From: "sono...@fannullone.us" > To: PHP General List > Sent: Thursday, September 24, 2009 12:01:41 PM > Subject: [PHP] RIGHT Function? > > Hi all, > > I could use some help. I've scoured both the MySQL and PHP sites that I > know of and can't find an answer to

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Fernando Castillo Aparicio
Have you tried http://es.php.net/manual/en/function.nl2br.php ? I think it's easier and fits your needs. De: Adam Williams Para: PHP General list Enviado: jueves, 24 de septiembre, 2009 20:52:13 Asunto: [PHP] html email showing instead of line breaks I have

Re: [PHP] html email showing instead of line breaks

2009-09-24 Thread Ben Dunlap
>>> \r\n should be between double quotes: "\r\n" I think you'll still see the literal ""s in your final email, though because htmlspecialchars() is converting the angle-brackets in the tag to their respective HTML entities ("<" for "<" and ">" for ">"). A bit of a thorny problem because you proba

RE: [PHP] RIGHT Function?

2009-09-24 Thread Jay Blanchard
[snip] I have a price field that sometimes contains entries like this: 250,(min) 5.32 How can I pull just the price ($5.32 in this example) from this field to display on a web page? Is there a RIGHT function in PHP? When I search the PHP site, I'm being told there isn't one.

Re: [PHP] RIGHT Function?

2009-09-24 Thread Tommy Pham
- Original Message > From: Jay Blanchard > To: sono...@fannullone.us; PHP General List > Sent: Thursday, September 24, 2009 12:15:13 PM > Subject: RE: [PHP] RIGHT Function? > > [snip] > I have a price field that sometimes contains entries like this: > > 250,(min) > 5.32 > > How ca

Re: [PHP] RIGHT Function?

2009-09-24 Thread Tommy Pham
- Original Message > From: Tommy Pham > To: PHP General List > Sent: Thursday, September 24, 2009 12:19:51 PM > Subject: Re: [PHP] RIGHT Function? > > - Original Message > > From: Jay Blanchard > > To: sono...@fannullone.us; PHP General List > > Sent: Thursday, September 24,

Re: [PHP] RIGHT Function?

2009-09-24 Thread sono-io
On Sep 24, 2009, at 12:15 PM, Jay Blanchard wrote: substr will work from right to left. If your data is in a variable do this; Thanks, Jay. That does the job. Frank -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Downloader help needed :-(

2009-09-24 Thread Chris Payne
HI everyone, Thanks for those of you in the past that helped me with my downloader not displaying the filename. Someone gave me a link to the downloader below which works GREAT but i've tried and tried to limit the data transfer to 60KB a second andI can't get it to work, can any of you see what

Re: [PHP] Downloader help needed :-(

2009-09-24 Thread Tommy Pham
- Original Message > From: Chris Payne > To: php-general@lists.php.net > Sent: Thursday, September 24, 2009 2:57:57 PM > Subject: [PHP] Downloader help needed :-( > > HI everyone, > > Thanks for those of you in the past that helped me with my downloader > not displaying the filename.

Re: [PHP] Downloader help needed :-(

2009-09-24 Thread Tommy Pham
- Original Message > From: Tommy Pham > To: php-general@lists.php.net > Sent: Thursday, September 24, 2009 4:19:48 PM > Subject: Re: [PHP] Downloader help needed :-( > > - Original Message > > > From: Chris Payne > > To: php-general@lists.php.net > > Sent: Thursday, September

Re: [PHP] Downloader help needed :-(

2009-09-24 Thread Chris Payne
Hi there, Thank you Tommy, I will look at this when my little 3 year old devil is in bed, I appreciate your help :-) Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] Re: How to take output from an include, and embed it into a variable?

2009-09-24 Thread Carl Furst
Jim Lucas wrote: Ashley Sheridan wrote: On Wed, 2009-09-23 at 07:36 -0700, Jim Lucas wrote: Mert Oztekin wrote: Output buffering will do it. Also I am not sure but did you try retrieving content with fopen() ? Something like $file = 'invoicetable_bottom.php'; fopen("http://