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://
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
- 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
- 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.
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
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
- 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,
- 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
[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.
>>> \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
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
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
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.
>
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"
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
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
\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
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
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
> 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
- 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
> 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
- 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
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
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
> 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
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
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'
> 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
> 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
> 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.
- 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
- 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
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
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
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
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
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
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
> 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
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
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
42 matches
Mail list logo