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';
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
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
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';
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 <
> $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
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;
echo is slightly faster than print and it takes multiple arguments so
instead of:
echo '' . $test . '';
you can do
echo '' , $test , '';
which should be faster, and I say 'should' just because as print should be
slower because it has to go into the trouble of setting up a return value,
so a
"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
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
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
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
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
-- 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
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
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
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
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
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
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
>
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
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
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
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
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
[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
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;
>>> }
>>>
>>>
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 :-)
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
[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
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
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
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
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.
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
- 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
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?";
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
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
* 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
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
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/
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
> 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
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
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
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
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
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
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
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
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.
--
.--
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
on that page ther is examples
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
http://www.php.net/readdir
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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
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.
>
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:
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)
{
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
'.$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 three years
Hi,
I am trying to print the current
$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
[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.
> 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.
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
> 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
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
> 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
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
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
Jim Lucas wrote:
well, tell me. What browser follows the standards 100% ??
Yeah...that's the attitude...if none of the existing browsers follow
standards, then it must be okay for us to break them too.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/un
Jim Lucas wrote:
well, tell me. What browser follows the standards 100% ??
Most likely none. That doesn't mean you should violate the standards
for absolutley no reason, though! Future browsers will most likely drop
.
--
The above message is encrypted with double rot13 encoding. Any unau
On Jul 2, 2003, "Jim Lucas" claimed that:
|well, tell me. What browser follows the standards 100% ??
The same one that is 100% bug free?
--
Registered Linux user #304026.
"lynx -source http://jharris.rallycentral.us/jharris.asc | gpg --import"
Key fingerprint = 52FC 20BD 025A 8C13 5FC6 68C6 9
uot; <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 12:57 PM
Subject: Re: [PHP] print html code
> In browsers that refuse to follow standards, maybe. Breaking standards
> is a bad thing.
> Jim Lucas wrote:
>
> >So what, it would do what was requested. :)
> >
&g
On Jul 2, 2003, "Karina S" claimed that:
|Hello,
|
|I want to make a php site which can generate a html code and display it on
|the screen. (Display the code itself.)
|I use htmlspecialchars() function. It works fine, but now I have to add
|about 200 lines of static html code to print it out. If I
In browsers that refuse to follow standards, maybe. Breaking standards
is a bad thing.
Jim Lucas wrote:
So what, it would do what was requested. :)
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of th
uot; <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 12:30 PM
Subject: Re: [PHP] print html code
> Jim Lucas wrote:
>
> >You could always use at the top of the screen.
> >
> And violate every single HTML standard. AFAIK, was never a
> real tag.
>
> --
>
Jim Lucas wrote:
You could always use at the top of the screen.
And violate every single HTML standard. AFAIK, was never a
real tag.
--
The above message is encrypted with double rot13 encoding. Any unauthorized attempt
to decrypt it will be prosecuted to the full extent of the law.
--
P
You could always use at the top of the screen.
Jim Lucas
- Original Message -
From: "Wendell Brown" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; "Karina S" <[EMAIL PROTECTED]>
Sent: Wednesday, July 02, 2003 11:27 AM
Subject: Re: [PHP] print html code
On Wed, 2 Jul 2003 19:40:37 +0200, Karina S wrote:
>I want to make a php site which can generate a html code and display it on
>the screen. (Display the code itself.)
See if this will do what you want:
> http://us2.php.net/manual/en/function.highlight-string.php
or
> http://us2.php.net/manual/
Karina S wrote:
Hello,
I want to make a php site which can generate a html code and display it on
the screen. (Display the code itself.)
I use htmlspecialchars() function. It works fine, but now I have to add
about 200 lines of static html code to print it out. If I put all of the
code in a strin
Hello,
This is a reply to an e-mail that you wrote on Fri, 27 Jun 2003 at 12:10,
lines prefixed by '>' were originally written by you.
> I would off course like it even better when i was able to print to the
> values
> (word and number) in an HTML table structure, or each new word on a
> new line
--- Koch-1 Linda <[EMAIL PROTECTED]> wrote:
> I am using PHP 4, Apache, but the '\n' is not going to the next
> line during a print.
There are probably two issues here. One is that anything in single quotes gets
translate literally, so '\n' will output \n whereas "\n" will output a newline
charact
Hi,
> I am using PHP 4, Apache, but the '\n' is not going to the next
> line during
> a print. Has anyone else encountered this anamoly.
in the case of:
echo 'blah\n';
I've noticed it doesn't work.
In the case of:
echo "blah\n";
I've
Adam caught my error. I was not thinking correctly.
Thanks
-Original Message-
From: Adam Voigt [mailto:[EMAIL PROTECTED]
You do know that the \n will only show up in View Source
of an HTML page right? If you want it to show up in a regular
browser window, you need .
--
PHP General Mai
You do know that the \n will only show up in View Source
of an HTML page right? If you want it to show up in a regular
browser window, you need .
On Wed, 2003-06-25 at 13:05, Koch-1 Linda wrote:
> I am using PHP 4, Apache, but the '\n' is not going to the next line during
> a print. Has anyone el
[snip]
I am using PHP 4, Apache, but the '\n' is not going to the next line
during
a print. Has anyone else encountered this anamoly.
[/snip]
show us the code...and what are you using to view the output file?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php
On Wed, 2003-06-18 at 08:51, Matt Palermo wrote:
> Could anyone tell me how to print all the variables and values from a submitted
> form, so that I can check them?
>
> Thanks,
>
> Matt
print_r($_REQUEST);
...or, depending on the method your form is using, one of:
print_r($_POST);
//
print_r($_POST) OR print_r($_GET)
On Wed, 2003-06-18 at 11:51, Matt Palermo wrote:
> Could anyone tell me how to print all the variables and values from a submitted
> form, so that I can check them?
>
> Thanks,
>
> Matt
--
Adam Voigt ([EMAIL PROTECTED])
Linux/Unix Network Administrator
The
Ernest, et al --
...and then Ernest E Vogelsinger said...
%
% At 10:44 06.03.2003, David T-G said:
% [snip]
% >...and then Leif K-Brooks said...
% >%
% >% print "$i :: {$manilist[$i][0]}\n";
% >Aha! Perfect. Here I'd been trying such things with the leadi
At 10:44 06.03.2003, David T-G said:
[snip]
>...and then Leif K-Brooks said...
>%
>% print "$i :: {$manilist[$i][0]}\n";
>Aha! Perfect. Here I'd been trying such things with the leading $ on
>the *outside* of the braces.
[snip]-
Leif, et al --
...and then Leif K-Brooks said...
%
% print "$i :: {$manilist[$i][0]}\n";
Aha! Perfect. Here I'd been trying such things with the leading $ on
the *outside* of the braces.
Thanks, all, for the help!
Back on the 'net after a great all-night storm (which in fact hasn't
stopped
print "$i :: {$manilist[$i][0]}\n";
David T-G wrote:
OK. That works, though it isn't pretty. Is there any way I can avoid
doing the dot dance? I'd rather something like
print "$i :: ${manilist[$i]}[0]\n" ;
(which I know to not work! :-) than to have to open and close; that's
just not very cl
Chris --
...and then Chris Wesley said...
%
% On Wed, 5 Mar 2003, David T-G wrote:
%
% > $m = count($manilist) ;
% > for ( $i=0 ; $i<$m ; $i++ )
% > { print "$i :: $manilist[$i][0]\n" ; }
...
%
% Actually, it's literally printing "[0]" after it prints "Array". PHP is
Right.
% detect
On Wed, 5 Mar 2003, David T-G wrote:
> $m = count($manilist) ;
> for ( $i=0 ; $i<$m ; $i++ )
> { print "$i :: $manilist[$i][0]\n" ; }
>
> I simply get 'Array[0]' out for each inner.. Clearly php is seeing that
> $manilist[$i] is an array, telling me so, and then happily printing the
> "[0
--- "Naif M. Al-Otaibi" <[EMAIL PROTECTED]> wrote:
> I try to print some information (text and image) that I
> retrieve from an oracle DB, but I got the image printed
> as binary junk. When I put the line that print the image
> in a html image tag, I got a red square with "X" inside.
> What can I
Thanks very much
Rosen
"Robert Collins" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> yes, but that is a browser function not php
> goto file -> page setup -> then remove the header and footer data
>
> Robert W. Collins II
> Webmaster
> New Orleans Regi
Thanks very much
Rosen
"Jay Blanchard" <[EMAIL PROTECTED]> wrote in message
003601c24f79$7ed376a0$8102a8c0@000347D72515">news:003601c24f79$7ed376a0$8102a8c0@000347D72515...
> [snip]
> I'm using PHP to generate some report for printing.
> But when I print report from IE 5.0 browser, in the bo
>
>Hi,
>I'm using PHP to generate some report for printing.
>But when I print report from IE 5.0 browser, in the bottom of page
>IE prints URL of page.
>Can I remove it ?
Yes. Click on "File" -> "Page settings..." then find "Footer" and you'll
see something like this:
&u&b&d
Take away the "&
1 - 100 of 152 matches
Mail list logo