Re: [PHP] PHP Print, PDF (w/FPDF), JavaScript

2009-05-20 Thread Dan Shirah
> > I can't find anything like this in FPDF 1.53 or in the documentation for > version 1.60. I'd be interested if you can pinpoint it. > > Paul > Sorry, you need to load a class extension, see the website below: http://www.fpdf.de/downloads/addons/36/

Re: [PHP] PHP Print, PDF (w/FPDF), JavaScript

2009-05-20 Thread Paul M Foster
On Wed, May 20, 2009 at 11:31:49AM -0400, Dan Shirah wrote: > > > > > How can I click a button using JavaScript print function and have it > > > generate a PDF with FPDF and get the PDF printed automagically? It seems > > > I have done this before but I cannot recall what I did. > > > > > > TVMIA

Re: [PHP] PHP Print, PDF (w/FPDF), JavaScript

2009-05-20 Thread Dan Shirah
> > > How can I click a button using JavaScript print function and have it > > generate a PDF with FPDF and get the PDF printed automagically? It seems > > I have done this before but I cannot recall what I did. > > > > TVMIA! > If I remember correctly there is an FPDF command **autoprint()** you

Re: [PHP] PHP Print, PDF (w/FPDF), JavaScript

2009-05-19 Thread Bastien Koert
On Tue, May 19, 2009 at 12:22 PM, Jay Blanchard wrote: > How can I click a button using JavaScript print function and have it > generate a PDF with FPDF and get the PDF printed automagically? It seems > I have done this before but I cannot recall what I did. > > TVMIA! > > -- > PHP General Mailing

[PHP] PHP Print, PDF (w/FPDF), JavaScript

2009-05-19 Thread Jay Blanchard
How can I click a button using JavaScript print function and have it generate a PDF with FPDF and get the PDF printed automagically? It seems I have done this before but I cannot recall what I did. TVMIA! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/

Re: [PHP] print a to z

2009-01-16 Thread Jochem Maas
paragasu schreef: > i have this cute little problem. sounds more like a homework assignment. by now you know range(), by all means have array_map() too: array_map("print_r", range("a","z")); > i want to print a to z for site navigation > my first attempt work fine > > for($i = '65'; $i < '91';

Re: [PHP] print a to z

2009-01-15 Thread Kevin Waterson
This one time, at band camp, "Leon du Plessis" wrote: > I used that notation before, and it did not work 100%. > Adapt as follows: > > for ($i = 'a'; $i <= 'z'; $i++) > if ($i == "aa") break; else echo $i; > foreach(range('a', 'z') as $letter ) { echo $letter; } Kevin -- PHP General

Re: [PHP] print a to z

2009-01-15 Thread Lars Torben Wilson
ben > -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: 16 January 2009 07:55 AM > To: php-general@lists.php.net > Subject: Re: [PHP] print a to z > > On Thu, Jan 15, 2009 at 08:32:14PM -0800, paragasu wrote: > >> i have this

RE: [PHP] print a to z

2009-01-15 Thread Leon du Plessis
php-general@lists.php.net Subject: Re: [PHP] print a to z On Thu, Jan 15, 2009 at 08:32:14PM -0800, paragasu wrote: > i have this cute little problem. i want to print a to z for site navigation > my first attempt work fine > > for($i = '65'; $i < '91';

Re: [PHP] print a to z

2009-01-15 Thread Paul M Foster
On Thu, Jan 15, 2009 at 08:32:14PM -0800, paragasu wrote: > i have this cute little problem. i want to print a to z for site navigation > my first attempt work fine > > for($i = '65'; $i < '91'; ++$i) > echo chr($i); > > but someone point me a more interesting solutions > > for($i = 'a'; $i <

Re: [PHP] print a to z

2009-01-15 Thread paragasu
> $letters = range('a', 'z'); > foreach ($letters as $letter) { > echo $letter; > } wow.. that is a very nice solutions you give me chris. thanks On 1/15/09, Chris wrote: > paragasu wrote: >> i have this cute little problem. i want to print a to z for site >> navigation >> my first attempt work

Re: [PHP] print a to z

2009-01-15 Thread Chris
paragasu wrote: i have this cute little problem. i want to print a to z for site navigation my first attempt work fine for($i = '65'; $i < '91'; ++$i) echo chr($i); but someone point me a more interesting solutions $letters = range('a', 'z'); foreach ($letters as $letter) { echo $letter;

[PHP] print a to z

2009-01-15 Thread paragasu
i have this cute little problem. i want to print a to z for site navigation my first attempt work fine for($i = '65'; $i < '91'; ++$i) echo chr($i); but someone point me a more interesting solutions for($i = 'a'; $i < 'z'; ++$i) echo $i the only problem with the 2nd solutions is it only pri

Re: [PHP] print() or echo

2007-02-13 Thread Satyam
ifference. Satyam - Original Message - From: "Danial Rahmanzadeh" <[EMAIL PROTECTED]> To: Sent: Tuesday, February 13, 2007 4:49 PM Subject: [PHP] print() or echo is it true that echo is a bit faster than print()? in general, when we don't ne

Re: [PHP] print() or echo

2007-02-13 Thread tg-php
"negligible".. blarg spelling. :) = = = Original message = = = As referenced in the manual ( http://us2.php.net/manual/en/function.echo.php ), check out this url: http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 Short story, there is a difference, but the speed difference is negliga

Re: [PHP] print() or echo

2007-02-13 Thread tg-php
As referenced in the manual ( http://us2.php.net/manual/en/function.echo.php ), check out this url: http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40 Short story, there is a difference, but the speed difference is negligable. If anyone cares, I prefer echo too. Not sure why. Shorter

Re: [PHP] print() or echo

2007-02-13 Thread Robert Cummings
On Tue, 2007-02-13 at 19:19 +0330, Danial Rahmanzadeh wrote: > is it true that echo is a bit faster than print()? in general, when we don't > need a return value, which one is better to choose? Yes, echo is faster than print. I would suggest echo over print since it is shorter and faster :) Cheer

[PHP] print() or echo

2007-02-13 Thread Danial Rahmanzadeh
is it true that echo is a bit faster than print()? in general, when we don't need a return value, which one is better to choose? Cheers, Danial Rahmanzadeh

Re: [PHP] Print or Echo takes lots of time

2006-09-28 Thread Ivo F.A.C. Fokkema
On Tue, 26 Sep 2006 21:45:58 +1000, David Tulloh wrote: > Google Kreme wrote: >> On 25 Sep 2006, at 06:11 , Sancar Saran wrote: >> ... >> >> If this is generating hundred of K of HTML, use ' instead of " >> >> (yes, it's faster). >> > > I've seen this stated several times and at first glance i

Re: [PHP] Print or Echo takes lots of time

2006-09-27 Thread Richard Lynch
On Wed, September 27, 2006 3:37 am, Sancar Saran wrote: > Thanks for supporting, because of approaching the problem I don't want > to > change generate once echo one style. > > And I found solution like this, > I split variable into an array and generate loop for printing, mostly > fix the > probl

Fwd: Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Børge Holen
-- Forwarded Message -- Subject: Re: [PHP] Print or Echo takes lots of time Date: Wednesday 27 September 2006 06:37 From: Børge Holen <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] On Wednesday 27 September 2006 01:46, Richard Lynch wrote: > On Tue, September 26, 200

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Robert Cummings
On Tue, 2006-09-26 at 18:46 -0500, Richard Lynch wrote: > On Tue, September 26, 2006 6:35 pm, Curt Zirzow wrote: > >> I wonder what would happen if you put your swap on a RAM disk? > > > > I actually have done this, it works like a charm :) > > > > you just have to ensure swap doesn't run out... of

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 6:35 pm, Curt Zirzow wrote: >> I wonder what would happen if you put your swap on a RAM disk? > > I actually have done this, it works like a charm :) > > you just have to ensure swap doesn't run out... of course i'd only > recomend this on a dedicated machine for like fir

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Curt Zirzow
On 9/26/06, Richard Lynch <[EMAIL PROTECTED]> wrote: On Tue, September 26, 2006 12:16 pm, Børge Holen wrote: > On Tuesday 26 September 2006 02:07, Robert Cummings wrote: >> On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: >> > I'm sitting here with 4 Gigs of RAM trying to figure out how to

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Tue, September 26, 2006 12:16 pm, Børge Holen wrote: > On Tuesday 26 September 2006 02:07, Robert Cummings wrote: >> On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: >> > I'm sitting here with 4 Gigs of RAM trying to figure out how to >> use >> > it all... :-) (Me, in 2005) >> >> Not real

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Richard Lynch
On Mon, September 25, 2006 7:11 am, Sancar Saran wrote: > When I was check the performance of my system I found interesting > resuts. > > My code stores html output into a variable. When page creation > complete I > printed out the variable. > > Problem was generation html code takes 0.5 second and

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread Børge Holen
On Tuesday 26 September 2006 02:07, Robert Cummings wrote: > On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: > > I'm sitting here with 4 Gigs of RAM trying to figure out how to use > > it all... :-) (Me, in 2005) > > Not really related to the post... but I find a good way to eat up 4 gigs >

Re: [PHP] Print or Echo takes lots of time

2006-09-26 Thread David Tulloh
Google Kreme wrote: > On 25 Sep 2006, at 06:11 , Sancar Saran wrote: > ... > > If this is generating hundred of K of HTML, use ' instead of " > > (yes, it's faster). > I've seen this stated several times and at first glance it seems to make sense. The double quoted version has all the \n and r

Re: [PHP] Print or Echo takes lots of time

2006-09-25 Thread Robert Cummings
On Mon, 2006-09-25 at 17:39 -0600, Google Kreme wrote: > I'm sitting here with 4 Gigs of RAM trying to figure out how to use > it all... :-) (Me, in 2005) Not really related to the post... but I find a good way to eat up 4 gigs of RAM is to run several VMWare nodes :) Depending on what these n

Re: [PHP] Print or Echo takes lots of time

2006-09-25 Thread Google Kreme
On 25 Sep 2006, at 06:11 , Sancar Saran wrote: $strPage = " yada dayda"; ... $strPage.= " another html tags"; ... $strPage.= getSqlDataAndCreateSomeHtmlCOde(); If this is generating hundred of K of HTML, use ' instead of " (yes, it's faster). -- I'm sitting here with 4 Megs of RAM trying to

[PHP] Print or Echo takes lots of time

2006-09-25 Thread Sancar Saran
Hi, When I was check the performance of my system I found interesting resuts. My code stores html output into a variable. When page creation complete I printed out the variable. Problem was generation html code takes 0.5 second and just echo $strPage takes 2.0 or more second. my code structur

RE: [PHP] print page from php

2006-03-20 Thread Reinhart Viane
Thx Miles and Jay -Oorspronkelijk bericht- Van: Miles Thompson [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 17 maart 2006 22:35 Aan: php-general@lists.php.net Onderwerp: Re: [PHP] print page from php At 09:57 AM 3/17/2006, Reinhart Viane wrote: >All, > >I have a web page

Re: [PHP] print page from php

2006-03-17 Thread Miles Thompson
At 09:57 AM 3/17/2006, Reinhart Viane wrote: All, I have a web page with the results from several database queries. Now this page has an undefined horizontal and vertical size. Does anyone know if there is a php script available that will automatically split the webpage into parts that can fit

RE: [PHP] print page from php

2006-03-17 Thread Jay Blanchard
[snip] I have a web page with the results from several database queries. Now this page has an undefined horizontal and vertical size. Does anyone know if there is a php script available that will automatically split the webpage into parts that can fit on an A4 page? Or do I have to set boundaries

[PHP] print page from php

2006-03-17 Thread Reinhart Viane
All, I have a web page with the results from several database queries. Now this page has an undefined horizontal and vertical size. Does anyone know if there is a php script available that will automatically split the webpage into parts that can fit on an A4 page? Or do I have to set boundaries

Re: [PHP] Print extended/parent classes

2006-02-01 Thread David Grant
Jochem, Good point. I thought he meant object given his example. :P David Jochem Maas wrote: > David Grant wrote: >> Mathijs, >> >> Mathijs wrote: >> >>> I have the following situation : >>> >>> >> >>> class A { >>> public $var1; >>> } >>> >>> class B extends A { >>> public $var2; >>> } >>> >>>

Re: [PHP] Print extended/parent classes

2006-02-01 Thread Jochem Maas
David Grant wrote: Mathijs, Mathijs wrote: I have the following situation : Now I want to print this object ***object*** Does anybody know how I can print class A also ? ***class*** (class and object are not interchangable concepts - yet they are closely related :-)

Re: [PHP] Print extended/parent classes

2006-02-01 Thread David Grant
Mathijs, Mathijs wrote: > I have the following situation : > > > class A { > public $var1; > } > > class B extends A { > public $var2; > } > > ?> > > Now I want to print this object > > $obj = new B; > print_r($obj); > > ?> > > Does anybody know how I can print class A also ? The above

[PHP] Print extended/parent classes

2006-02-01 Thread Mathijs
I have the following situation : Now I want to print this object Does anybody know how I can print class A also ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] print value from db

2005-07-29 Thread Jay Blanchard
[snip] Hi, I have a table with: month, day, year, value I need to print every value corresponding to a day, for example: value[day1], if exist.. value[day2], if exist.. vale... etc It is possible? [/snip] Welcome to "Is It Possible Day" at the PHP Ranch. :) Yes, it is possible to print

[PHP] print value from db

2005-07-29 Thread Jesús Alain Rodríguez Santos
Hi, I have a table with: month, day, year, value I need to print every value corresponding to a day, for example: value[day1], if exist.. value[day2], if exist.. vale... etc It is possible? -- Este mensaje ha sido analizado por MailScanner en busca de virus y otros contenidos peligrosos

RE: [PHP] Print window function???

2004-10-15 Thread Steve Murphy
Web standards my friend. Use CSS, learn from the master: http://www.alistapart.com/articles/goingtoprint/ -Original Message- From: Tony Kim [mailto:[EMAIL PROTECTED] Sent: Friday, October 15, 2004 3:10 PM To: [EMAIL PROTECTED] Subject: [PHP] Print window function??? Is there a function

[PHP] Print window function???

2004-10-15 Thread Tony Kim
Is there a function for print window in php? I tried javascript window.print() but this doesn't work in ie 5.2 on mac. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] print at a specific time

2004-09-02 Thread devil_online
thanks On Wed, 1 Sep 2004 22:18:30 -0500, Brent Clements <[EMAIL PROTECTED]> wrote: -- Using Opera's revolutionary e-mail client: http://www.opera.com/m2/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] print at a specific time

2004-09-02 Thread devil_online
EMAIL PROTECTED]> Cc: "devil_online" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 01, 2004 10:12 PM Subject: Re: [PHP] print at a specific time Brent Clements wrote: > $minute = 01; Be careful with the leading zeros... that's interpre

Re: [PHP] print at a specific time

2004-09-01 Thread Brent Clements
CTED]> Sent: Wednesday, September 01, 2004 10:12 PM Subject: Re: [PHP] print at a specific time > Brent Clements wrote: > > > $minute = 01; > > Be careful with the leading zeros... that's interpreted as an Octal > number by PHP, but Octal 1 == Decimal 1 in this case.

Re: [PHP] print at a specific time

2004-09-01 Thread John Holmes
Brent Clements wrote: $minute = 01; Be careful with the leading zeros... that's interpreted as an Octal number by PHP, but Octal 1 == Decimal 1 in this case. :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.p

Re: [PHP] print at a specific time

2004-09-01 Thread Brent Clements
- Original Message - From: "devil_online" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 01, 2004 9:05 PM Subject: Re: [PHP] print at a specific time > and to print at minutes too, kije 9h01? > > thanks > "John Holme

Re: [PHP] print at a specific time

2004-09-01 Thread devil_online
and to print at minutes too, kije 9h01? thanks "John Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > devil_online wrote: > > > Hi, I want to print or echo something in a specific time like 9.pm. > > how can i do it? > > if(date('H')==21) > { echo "'tis 9pm and all is well?";

Re: [PHP] print at a specific time

2004-09-01 Thread John Holmes
devil_online wrote: Hi, I want to print or echo something in a specific time like 9.pm. how can i do it? if(date('H')==21) { echo "'tis 9pm and all is well?"; } -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.php

[PHP] print at a specific time

2004-09-01 Thread devil_online
Hi, I want to print or echo something in a specific time like 9.pm. how can i do it? thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] print a element of a column

2004-08-29 Thread John Nichel
devil_online wrote: Hi, I want to print each element of a column of a mysql database. For exemple to print the first element could we do like this: Code: $result = mysql_query( "SELECT username FROM users" ); $column = mysql_fetch_array($result); print $column[1]; prin

[PHP] print a element of a column

2004-08-29 Thread devil_online
Hi, I want to print each element of a column of a mysql database. For exemple to print the first element could we do like this: Code: $result = mysql_query( "SELECT username FROM users" ); $column = mysql_fetch_array($result); print $column[1]; print $column[3]; Th

Re: [PHP] Print page without images

2004-07-20 Thread Curt Zirzow
* Thus wrote Gerben: > css: > > img{display:none;} Dont forget to mention the media: @media print { img { display: none; } } Of course this is going on the assumption you dont have things like Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've b

Re: [PHP] Print page without images

2004-07-20 Thread Gerben
css: img{display:none;} "John W. Holmes" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > francesco[AT]automationsoft[DOT]biz wrote: > > > I know that it is a simple and maybe elementary > > question, but there is in PHP a function, like print > > or echo, that print only the text of

Re: [PHP] Print page without images

2004-07-19 Thread John W. Holmes
francesco[AT]automationsoft[DOT]biz wrote: I know that it is a simple and maybe elementary question, but there is in PHP a function, like print or echo, that print only the text of an HTML page on printer? No. Use CSS. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

[PHP] Print page without images

2004-07-19 Thread francesco[AT]automationsoft[DOT]biz
Hi all, I know that it is a simple and maybe elementary question, but there is in PHP a function, like print or echo, that print only the text of an HTML page on printer? Thanks in advance for help.

Re: [PHP] Print a variable's name

2004-05-05 Thread Ahbaid Gaffoor
That's the way I ended up going pass the name and value along :) Not what I was hoping for, but it gets the job done, and it's only for debugging pruposes thanks Ahbaid. Michal Migurski wrote: but what I want is to be able to pass any variable to a procedure and have the variable name and

Re: [PHP] Print a variable's name

2004-05-05 Thread Michal Migurski
> but what I want is to be able to pass any variable to a procedure and > have the variable name and value printed by the procedure. Because PHP passes arguments by value, you will be out of luck in most cases -- by the time your debugging function sees the argument, it's no longer tied to the cal

Re: [PHP] Print a variable's name - FIXED

2004-05-05 Thread Ahbaid Gaffoor
ame."\n"; echo "Variable Value: ".$var."\n"; } showvar($test); This is the only thing that works for me.I know it is messy -Original Message- From: Michael Sims [mailto:[EMAIL PROTECTED] Sent: 05 May 2004 4:23 PM To: [EMAIL PROTE

RE: [PHP] Print a variable's name

2004-05-05 Thread Michael Sims
Dave Avent wrote: > function showvar($var) { > > foreach($GLOBALS as $key => $value) { > if($value == $var) { > $varname = $key; > } > } The problem with the above is that it assumes that th

RE: [PHP] Print a variable's name

2004-05-05 Thread Dave Avent
EMAIL PROTECTED] Sent: 05 May 2004 4:23 PM To: [EMAIL PROTECTED] Subject: RE: [PHP] Print a variable's name Ahbaid Gaffoor wrote: > Thanks Ryan, > > but what I want is to be able to pass any variable to a procedure and > have the variable name and value printed by the pro

RE: [PHP] Print a variable's name

2004-05-05 Thread Michael Sims
Ahbaid Gaffoor wrote: > Thanks Ryan, > > but what I want is to be able to pass any variable to a procedure and > have the variable name and value printed by the procedure. > > Can this be done? > > I'm trying to extend my library of debugging functions/procedures by > having a procedure which ca

Re: [PHP] Print a variable's name

2004-05-05 Thread Ahbaid Gaffoor
Thanks Ryan, but what I want is to be able to pass any variable to a procedure and have the variable name and value printed by the procedure. Can this be done? I'm trying to extend my library of debugging functions/procedures by having a procedure which can be used to "inspect" a variable whenev

Re: [PHP] Print a variable's name

2004-05-05 Thread Ryan A
Just escape it... eg: $ryan = "something"; echo "\$ryan =".$ryan; that would print: $ryan = something HTH. Cheers, -Ryan On 5/5/2004 5:02:25 PM, [EMAIL PROTECTED] wrote: > I'd like to print a variable's name in a procedure along with it's value > > Is there a way to do this? > > > fo

[PHP] Print a variable's name

2004-05-05 Thread Ahbaid Gaffoor
I'd like to print a variable's name in a procedure along with it's value Is there a way to do this? for example: --- function showvar($somevar) { echo "Now showing: ". <... code to show var name .> ."\n";

Re: [PHP] Print out all the files in a directory

2004-04-17 Thread Pooya Eslami
Thank you Robert. "Robert Cummings" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 2004-04-17 at 12:35, Pooya Eslami wrote: > > That is exactly my question! how do I look for a .mp3 file?! > > I tried > > if ($file != "." && $file != ".." && $file=="*.mp3") > > but it does

Re: [PHP] Print out all the files in a directory

2004-04-17 Thread Robert Cummings
On Sat, 2004-04-17 at 12:35, Pooya Eslami wrote: > That is exactly my question! how do I look for a .mp3 file?! > I tried > if ($file != "." && $file != ".." && $file=="*.mp3") > but it doesn't work! if( eregi( '\.mp3$', $file ) ) Cheers, Rob. -- .--

Re: [PHP] Print out all the files in a directory

2004-04-17 Thread Pooya Eslami
That is exactly my question! how do I look for a .mp3 file?! I tried if ($file != "." && $file != ".." && $file=="*.mp3") but it doesn't work! "Matt Matijevich" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > on that page ther is examples > > if ($handle = opendir('.')) { >whi

Re: [PHP] Print out all the files in a directory

2004-04-17 Thread Matt Matijevich
on that page ther is examples -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Print out all the files in a directory

2004-04-17 Thread Pooya Eslami
But how do I get all the .mp3 files? can I use *.mp3? and how ? "Matt Matijevich" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://www.php.net/readdir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Print out all the files in a directory

2004-04-17 Thread Matt Matijevich
http://www.php.net/readdir -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Print out all the files in a directory

2004-04-17 Thread Pooya Eslami
Hi, I want to write a simple script that looks for all the files with a common name and show them, like all the .mp3 files or all the .doc files. How do I go about it? Thank you, -Pooya -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Print PHP Code in Color on Dreamweaver MX

2004-03-30 Thread Ryan Munevar
Hello, Does anyone know how to actually print PHP code in Color to actual paper from Dreamweaver MX? We like to paste the code up to the wall here to get a bigger look at it. I know you can do it in BBedit, but MX is what we like. Just curios. Thanks!

Re: [PHP] Print page with default margins

2004-02-02 Thread Marek Kilimajer
Narcis Florea wrote: Hi, Hello, I'm using Apache/PHP/MySQL in my business project Thank you for using php! My big problem now is: How can I print a page on a standard page format, like "Letter, left margin: 0.25 inch, etc.) When I print, I must every time set page margin manually, and I want this

[PHP] Print page with default margins

2004-02-02 Thread Narcis Florea
Hi, I'm using Apache/PHP/MySQL in my business project My big problem now is: How can I print a page on a standard page format, like "Letter, left margin: 0.25 inch, etc.) When I print, I must every time set page margin manually, and I want this being made by php or javascript automatically on load

[PHP] Print All parameters

2004-01-28 Thread Mike Mapsnac
Is it possible to print all values of all variables in php file? Including global, local... Thanks _ Get a FREE online virus check for your PC here, from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 -- PHP Gen

Re: [PHP] PRINT QUESTION

2003-11-25 Thread Jyry Kuukkanen
On Tue, 25 Nov 2003, Burhan Khalid wrote: > Dale Hersh wrote: > > I know that in php there are a bunch of basic functions for opening a > > connection to a printer and then handling the printer queue and so forth. I > > would like to know how to take a string and echo that to the printer in php. >

Re: [PHP] PRINT QUESTION

2003-11-25 Thread Burhan Khalid
Dale Hersh wrote: I know that in php there are a bunch of basic functions for opening a connection to a printer and then handling the printer queue and so forth. I would like to know how to take a string and echo that to the printer in php. The printer functions only work under Windows. From http:

[PHP] PRINT QUESTION

2003-11-24 Thread Dale Hersh
I know that in php there are a bunch of basic functions for opening a connection to a printer and then handling the printer queue and so forth. I would like to know how to take a string and echo that to the printer in php. Thanks, Dale -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Print mysql errors

2003-10-20 Thread Eugene Lee
On Mon, Oct 20, 2003 at 05:28:08PM -0500, Joseph Bannon wrote: : : How do you print the error message sent back from MySQL? : : $resultCC = mysql_query($queryCC) or die("???"); Stop using stupid Perl syntax. $res = mysql_query($query); if ($res === false) {

Re: [PHP] Print mysql errors

2003-10-20 Thread John W. Holmes
Joseph Bannon wrote: How do you print the error message sent back from MySQL? $resultCC = mysql_query($queryCC) or die("???"); ??? = mysql_error() -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com

[PHP] Print mysql errors

2003-10-20 Thread Joseph Bannon
How do you print the error message sent back from MySQL? $resultCC = mysql_query($queryCC) or die("???"); J. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Print current and next three years

2003-09-24 Thread Becoming Digital
'.$year.''; } ?> Edward Dudlik Becoming Digital www.becomingdigital.com - Original Message - From: "Shaun" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, 24 September, 2003 08:29 Subject: [PHP] Print current and next thr

Re: [PHP] Print current and next three years

2003-09-24 Thread Marek Kilimajer
$current=date('Y'); for($i=0;$i<4;$i++){ echo $current + $i; } Shaun wrote: Hi, I am trying to print the current and next three years in a form. Using the following code I can only print 2000, 2001, 2002, 2003: '.date("Y", mktime(0, 0, 0, 0, 0, $i)).''; } else { e

[PHP] Print current and next three years

2003-09-24 Thread Shaun
Hi, I am trying to print the current and next three years in a form. Using the following code I can only print 2000, 2001, 2002, 2003: '.date("Y", mktime(0, 0, 0, 0, 0, $i)).''; } else { echo ''.date("Y", mktime(0, 0, 0, 0, 0, $i)).''; } $i++; } ?

RE: [PHP] Print help

2003-07-21 Thread Jay Blanchard
[snip] What I would like to do is to make an optional page that can print information to a specified printer. Can PHP do this? If so how??? [/snip] Start by RTFM at http://us3.php.net/printer HTH! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.

[PHP] Print help

2003-07-21 Thread Ron Allen
What I would like to do is to make an optional page that can print information to a specified printer. Can PHP do this? If so how??? Please help!!! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re[3]: [PHP] print vs heredoc

2003-07-08 Thread alex
Hi. I'm surprised you haven't been jumped on already for this one. Variables in double-quoted and heredoc-style strings are expanded; variables in single-quoted strings aren't. I refer you to the excellent PHP manual -- one of the first pages you should absorb... http://www.php.net/manual/en/l

Re[3]: [PHP] print vs heredoc

2003-07-08 Thread Tom Rogers
Hi, Tuesday, July 8, 2003, 5:22:04 PM, you wrote: TR> Hi, >>> btw what would be nice is a print_raw command that does no >>> parsing just sends the stuff :) >>> (Would be good for template systems where you know there is no php >>> hidden in there.) ... might gain a couple of micro seconds PO>>

Re[2]: [PHP] print vs heredoc

2003-07-08 Thread Tom Rogers
Hi, >> btw what would be nice is a print_raw command that does no >> parsing just sends the stuff :) >> (Would be good for template systems where you know there is no php >> hidden in there.) ... might gain a couple of micro seconds PO> I believe this is called "breaking out of PHP mode PO> and i

Re: [PHP] print vs heredoc

2003-07-07 Thread Philip Olson
> As to which is faster is does not really matter as the speed of echo > print and heredoc is dictated by the connection speed to the > requesting client. If this is a factor in your overall operation you > can use output buffering to save the contents and output them at the end of > your script.

Re: [PHP] print vs heredoc

2003-07-07 Thread Tom Rogers
Hi, Monday, July 7, 2003, 11:33:38 PM, you wrote: SK> Hi, again!! SK> I'm looking for opinions as to which is better/faster, print or heredoc. SK> print makes the code layout look nice and eazy to debug, where heredoc IS faster but makes the code look like a nightmare with everything jammed aga

Re: [PHP] print vs heredoc

2003-07-07 Thread Joel Rees
> Hi, again!! I thought I saw this post once already. > I'm looking for opinions as to which is better/faster, print or heredoc. Well, like the guy said before, it sounds like you've pretty much already made up your mind. I don't use heredocs everywhere, but when I have a fairly large block of

RE: [PHP] print vs. heredoc

2003-07-07 Thread Ralph Guzman
One way to get around having to edit backslashes is to echo using single quotes. For example: echo '' . $variable . ''; -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Sunday, July 06, 2003 3:48 PM To: Sparky Kopetzky Cc: PHP General Subject

[PHP] print vs heredoc

2003-07-07 Thread Sparky Kopetzky
Hi, again!! I'm looking for opinions as to which is better/faster, print or heredoc. print makes the code layout look nice and eazy to debug, where heredoc IS faster but makes the code look like a nightmare with everything jammed against the left side of the code. I'm pretty picky about what lo

Re: [PHP] print vs. heredoc

2003-07-06 Thread Greg Donald
> I'm looking for opinions as to which is better, print or heredoc. I prefer heredoc mostly because I do not enjoy editing html that is full of backslashes. I build up the html and only output anything at the end. This allows for custom compression, whitespace stripping, etc. > print makes t

[PHP] print vs. heredoc

2003-07-06 Thread Sparky Kopetzky
Hi, again!! I'm looking for opinions as to which is better, print or heredoc. print makes the code layout look nice and eazy to debug, where heredoc IS faster but makes the code look like a nightmare and I'm pretty picky about what looks good. Robin E. Kopetzky Black Mesa Computers/Internet Ser

RE: [PHP] print html code

2003-07-03 Thread Dan Joseph
Hi, > I would bet that it would be easier to come up with a browser that > supports 100% of the HTML standard (which is IMHO the minimum the > browser HAS to support) than it would be to come up with a browser that > supports 100% of the nonstandard. :) > > As the old saying goes two wrongs d

Re: [PHP] print html code

2003-07-03 Thread Wendell Brown
On Wed, 2 Jul 2003 14:23:23 -0700, Jim Lucas wrote: >well, tell me. What browser follows the standards 100% ?? I would bet that it would be easier to come up with a browser that supports 100% of the HTML standard (which is IMHO the minimum the browser HAS to support) than it would be to come up

  1   2   3   >