php-general Digest 5 Sep 2002 10:40:19 -0000 Issue 1567
Topics (messages 115239 through 115284):
Re: post doesn't work?
115239 by: Matt Zur
Returning Rows Question
115240 by: Christopher J. Crane
115242 by: Mike richardson
115244 by: Christopher J. Crane
115245 by: Ashley M. Kirchner
115247 by: Christopher J. Crane
115248 by: joshua
115250 by: David Freeman
Nevermind... I got it... Thanks!
115241 by: Matt Zur
Mail list/message board
115243 by: Brian V Bonini
115246 by: nicos.php.net
Domxml: coping with UTF-16
115249 by: Gwyn
whitespace...
115251 by: Matt Zur
115252 by: Philip Hallstrom
115254 by: nicos.php.net
115255 by: Matt Zur
115257 by: joshua
115260 by: Steve Edberg
Re: FORUM CODE
115253 by: joshua
Javascript ?
115256 by: Christopher J. Crane
115258 by: nicos.php.net
115280 by: lallous
cURL and cookies
115259 by: Jeff Schwartz
Help, Convincing upgrade of PHP
115261 by: JJ Harrison
115262 by: Michael Geary
115265 by: David Rice
Good free PHP web stats package?
115263 by: tomba
115275 by: olinux
php and a printer
115264 by: Ric Mañalac
emacs on win32
115266 by: Victor
ebay auction manager
115267 by: electroteque
ebay management and auction listings using php
115268 by: electroteque
convert ISO-8859-1 to EUC-JP
115269 by: prabahar
Currency Exchange and Weather
115270 by: César Aracena
115274 by: Justin French
Encryption of emails.
115271 by: Bob Irwin
115272 by: Manuel Lemos
115273 by: Justin French
creating .PS or .PRN *files* from the command line or php???
115276 by: Jason Caldwell
Re: check for a number
115277 by: Erwin
finding next and previous db entries
115278 by: tux
115279 by: Petre Agenbag
Sorting a text string
115281 by: Bård Tommy Nilsen
115282 by: Scott Houseman
problem with starting apache in win2k with mcrypt and mhash
115283 by: Terence Lee
problem on starting apache in win2k with mcrypt and mhash module
115284 by: Terence Lee
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Didn't seem to fix it.
-Matt
[EMAIL PROTECTED] wrote:
> If you have register globals off, you must use $_POST['name'] and not $name.
> Check your php.ini (<? phpinfo(); ?>)
>
> --
>
> Nicos - CHAILLAN Nicolas
> [EMAIL PROTECTED]
> www.WorldAKT.com - Hébergement de sites Internet
>
> "Matt Zur" <[EMAIL PROTECTED]> a écrit dans le message de news:
> [EMAIL PROTECTED]
>
>>I have a form that posts to another php file. But it won't display the
>>var? It just shows a blank screen.
>>
>>For example
>>
>>test.php has form input name
>>test2.php prints name
>>
>>On test2.php it shows a blank screen, but if I assign $name on test2.php
>>and reload, it will print the var. Is there something in the php.ini
>>that I have to change to get vars to post? or some setting somewhere else?
>>
>>-Matt
>>
>>
>>
>>--
>>Matt Zur
>>[EMAIL PROTECTED]
>>http://www.zurnet.com
>>
>>Need a Web Site??? - Visit... www.zurnet.com
>>
>>1997 - 2002 - 5th Anniversary!!!
>>
>
>
>
--
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com
Need a Web Site??? - Visit... www.zurnet.com
1997 - 2002 - 5th Anniversary!!!
--- End Message ---
--- Begin Message ---
How do you alternate colors of the rows in a table inside a while statement
when dealing with the output of data from a DB. I am sure it's something
simple but I keep getting into some really long math thing...
--- End Message ---
--- Begin Message ---
While( .... ) {
...
$color = ($color == "FFFFFF")? "EAEAEA" : "FFFFFF";
print "<td bgcolor='#$color'>\n";
...
}
-----Original Message-----
From: Christopher J. Crane [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 04, 2002 3:56 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Returning Rows Question
How do you alternate colors of the rows in a table inside a while
statement when dealing with the output of data from a DB. I am sure it's
something simple but I keep getting into some really long math thing...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
Thanks. I will give it a shot. I have never seen anything written like that.
Can you give me a brief explanation of what it means?
Thanks again.
----- Original Message -----
From: "Mike richardson" <[EMAIL PROTECTED]>
To: "'Christopher J. Crane'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 7:03 PM
Subject: RE: [PHP] Returning Rows Question
>
> While( .... ) {
> ...
>
> $color = ($color == "FFFFFF")? "EAEAEA" : "FFFFFF";
> print "<td bgcolor='#$color'>\n";
>
> ...
> }
>
> -----Original Message-----
> From: Christopher J. Crane [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 04, 2002 3:56 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Returning Rows Question
>
>
> How do you alternate colors of the rows in a table inside a while
> statement when dealing with the output of data from a DB. I am sure it's
> something simple but I keep getting into some really long math thing...
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
>
>
--- End Message ---
--- Begin Message ---
"Christopher J. Crane" wrote:
> > $color = ($color == "FFFFFF")? "EAEAEA" : "FFFFFF";
Break it down:
$color = <whatever> (we don't care right now)
That <whatever> is: ($color == "FFFFFF")? "EAEAEA" : "FFFFFF"
And that says: Evaluate the (current) variable $color.
Is it FFFFFF? if so, change it to EAEAEA, otherwise make it FFFFFF
$color == "FFFFFF" ? (yes) change to "EAEAEA" : (no) make it FFFFFF
--
W | I haven't lost my mind; it's backed up on tape somewhere.
+--------------------------------------------------------------------
Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130
IT Director / SysAdmin / WebSmith . 800.441.3873 x130
Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
--- End Message ---
--- Begin Message ---
That's what I thought it meant but I have never seen it writte nthat way.
Thank you very much
----- Original Message -----
From: "Ashley M. Kirchner" <[EMAIL PROTECTED]>
To: "Christopher J. Crane" <[EMAIL PROTECTED]>
Cc: "Mike richardson" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, September 04, 2002 7:10 PM
Subject: Re: [PHP] Returning Rows Question
> "Christopher J. Crane" wrote:
>
> > > $color = ($color == "FFFFFF")? "EAEAEA" : "FFFFFF";
>
> Break it down:
>
> $color = <whatever> (we don't care right now)
>
> That <whatever> is: ($color == "FFFFFF")? "EAEAEA" : "FFFFFF"
>
> And that says: Evaluate the (current) variable $color.
>
> Is it FFFFFF? if so, change it to EAEAEA, otherwise make it FFFFFF
>
> $color == "FFFFFF" ? (yes) change to "EAEAEA" : (no) make it FFFFFF
>
> --
> W | I haven't lost my mind; it's backed up on tape somewhere.
> +--------------------------------------------------------------------
> Ashley M. Kirchner <mailto:[EMAIL PROTECTED]> . 303.442.6410 x130
> IT Director / SysAdmin / WebSmith . 800.441.3873 x130
> Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6
> http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A.
>
>
>
>
>
>
--- End Message ---
--- Begin Message ---
here's one way, set a variable and switch it on and off
$tr_properties = 'style="background-color: grey;"';
while( $ect = etc ) {
if($tr_properties){
print "<tr $tr_properties>";
$tr_properties = false;
} else {
print "<tr>";
$tr_properties = 'style="background-color: grey;"';
}
}
you sould refine the code and simplify it but that is basic principle.
joshua
Christopher J. Crane wrote:
> How do you alternate colors of the rows in a table inside a while statement
> when dealing with the output of data from a DB. I am sure it's something
> simple but I keep getting into some really long math thing...
>
>
--- End Message ---
--- Begin Message ---
> How do you alternate colors of the rows in a table inside a
> while statement
> when dealing with the output of data from a DB. I am sure
> it's something
> simple but I keep getting into some really long math thing...
For two alternating colours I normally do something like this:
$use_col = "#00FF00";
While (some = condition)
{
echo "using $use_col";
if ($use_col == "#00FF00")
{
$use_col = "#0000FF";
} else {
$use_col = "#00FF00";
}
}
Basically, set a colour to use, then in your while loop you see if it is
one of the colour, if it is change it to the other. If it isn't the
colour you tested for then it's already the other colour so change it
back.
CYA, Dave
--- End Message ---
--- Begin Message ---
Thanks Again!
-Matt
[EMAIL PROTECTED] wrote:
> If you have register globals off, you must use $_POST['name'] and not $name.
> Check your php.ini (<? phpinfo(); ?>)
>
> --
>
> Nicos - CHAILLAN Nicolas
> [EMAIL PROTECTED]
> www.WorldAKT.com - Hébergement de sites Internet
>
> "Matt Zur" <[EMAIL PROTECTED]> a écrit dans le message de news:
> [EMAIL PROTECTED]
>
>>I have a form that posts to another php file. But it won't display the
>>var? It just shows a blank screen.
>>
>>For example
>>
>>test.php has form input name
>>test2.php prints name
>>
>>On test2.php it shows a blank screen, but if I assign $name on test2.php
>>and reload, it will print the var. Is there something in the php.ini
>>that I have to change to get vars to post? or some setting somewhere else?
>>
>>-Matt
>>
>>
>>
>>--
>>Matt Zur
>>[EMAIL PROTECTED]
>>http://www.zurnet.com
>>
>>Need a Web Site??? - Visit... www.zurnet.com
>>
>>1997 - 2002 - 5th Anniversary!!!
>>
>
>
>
--
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com
Need a Web Site??? - Visit... www.zurnet.com
1997 - 2002 - 5th Anniversary!!!
--- End Message ---
--- Begin Message ---
Anyone now of a a PHP mailing list program that has a forum-like interface
as well? Somethign that functions similar to yahoo groups if your familiar
with that?
--- End Message ---
--- Begin Message ---
Take a look at http://news.php.net/
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Brian V Bonini" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> Anyone now of a a PHP mailing list program that has a forum-like interface
> as well? Somethign that functions similar to yahoo groups if your familiar
> with that?
>
--- End Message ---
--- Begin Message ---
Hi -
I've built a web-based XML editor using PHP, so that clients can edit
the sites themselves. The site HTML is generated dynamically via
Sablotron. The problem is the users are copying-and-pasting from MS
Word, and putting things like smart quotes and greek characters (one
site is about maths) into the input boxes. This causes PHP to freak when
it's trying to store the new content into the XML, and even if PHP
survives, Sablotron breaks.
I gather I need to set the XML document, XSL file, and stylesheet output
to be UTF-16, instead of UTF-8. I can't see anything in the domxml
functions to set encoding, though. Anyone got any ideas?
Thanks,
Gwyn.
--- End Message ---
--- Begin Message ---
How do I remove the whitespace from a document? I consulted the manual
and it said to use the trim function. But in a large PHP document, with
lots of fuctions etc in PHP... is there a simple way to compress the
whitespace of the entire document? Rather than going through each var
and using the trim? Like add a header at the top: <?PHP
compresswhitespace() ?>
If you have a 300k php document, won't the source code reveal (after the
browser displays the page) a bunch of whitespace. Doesn't this add to
dl time and if so, how do I get rid of it.
TIA,
-Matt
--
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com
Need a Web Site??? - Visit... www.zurnet.com
1997 - 2002 - 5th Anniversary!!!
--- End Message ---
--- Begin Message ---
I'm not sure I fully understand your question, but given the following PHP
file:
<?php
print("hello");
#assume there are hundreds of blank lines just above this one.
?>
all the browse will see is this (minus the dashed lines).
----------------------------------------------------------------------
hello
----------------------------------------------------------------------
On Wed, 4 Sep 2002, Matt Zur wrote:
> How do I remove the whitespace from a document? I consulted the manual
> and it said to use the trim function. But in a large PHP document, with
> lots of fuctions etc in PHP... is there a simple way to compress the
> whitespace of the entire document? Rather than going through each var
> and using the trim? Like add a header at the top: <?PHP
> compresswhitespace() ?>
>
>
> If you have a 300k php document, won't the source code reveal (after the
> browser displays the page) a bunch of whitespace. Doesn't this add to
> dl time and if so, how do I get rid of it.
>
> TIA,
>
> -Matt
>
>
>
>
> --
> Matt Zur
> [EMAIL PROTECTED]
> http://www.zurnet.com
>
> Need a Web Site??? - Visit... www.zurnet.com
>
> 1997 - 2002 - 5th Anniversary!!!
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
Hi,
You should use $content = str_replace(" ","",$content);
I assume that works, there is probably something better than it too but
thats all I see at this hour.
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Matt Zur" <[EMAIL PROTECTED]> a écrit dans le message de news:
[EMAIL PROTECTED]
> How do I remove the whitespace from a document? I consulted the manual
> and it said to use the trim function. But in a large PHP document, with
> lots of fuctions etc in PHP... is there a simple way to compress the
> whitespace of the entire document? Rather than going through each var
> and using the trim? Like add a header at the top: <?PHP
> compresswhitespace() ?>
>
>
> If you have a 300k php document, won't the source code reveal (after the
> browser displays the page) a bunch of whitespace. Doesn't this add to
> dl time and if so, how do I get rid of it.
>
> TIA,
>
> -Matt
>
>
>
>
> --
> Matt Zur
> [EMAIL PROTECTED]
> http://www.zurnet.com
>
> Need a Web Site??? - Visit... www.zurnet.com
>
> 1997 - 2002 - 5th Anniversary!!!
>
--- End Message ---
--- Begin Message ---
If you have a file includes IE:
include ("data.inc");
and have arrays n such with multiple php tags in that file, it will
produce alot of white space on the final output.
-Matt
Philip Hallstrom wrote:
> I'm not sure I fully understand your question, but given the following PHP
> file:
>
> <?php
> print("hello");
>
>
> #assume there are hundreds of blank lines just above this one.
> ?>
>
>
> all the browse will see is this (minus the dashed lines).
>
> ----------------------------------------------------------------------
> hello
> ----------------------------------------------------------------------
>
> On Wed, 4 Sep 2002, Matt Zur wrote:
>
>
>>How do I remove the whitespace from a document? I consulted the manual
>>and it said to use the trim function. But in a large PHP document, with
>>lots of fuctions etc in PHP... is there a simple way to compress the
>>whitespace of the entire document? Rather than going through each var
>>and using the trim? Like add a header at the top: <?PHP
>>compresswhitespace() ?>
>>
>>
>>If you have a 300k php document, won't the source code reveal (after the
>>browser displays the page) a bunch of whitespace. Doesn't this add to
>>dl time and if so, how do I get rid of it.
>>
>>TIA,
>>
>>-Matt
>>
>>
>>
>>
>>--
>>Matt Zur
>>[EMAIL PROTECTED]
>>http://www.zurnet.com
>>
>>Need a Web Site??? - Visit... www.zurnet.com
>>
>>1997 - 2002 - 5th Anniversary!!!
>>
>>
>>--
>>PHP General Mailing List (http://www.php.net/)
>>To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>
--
Matt Zur
[EMAIL PROTECTED]
http://www.zurnet.com
Need a Web Site??? - Visit... www.zurnet.com
1997 - 2002 - 5th Anniversary!!!
--- End Message ---
--- Begin Message ---
the php parser does not return any whitespace between the <?php ?> tags
unless youn use print or echo.
i wouldn't use:
> You should use $content = str_replace(" ","",$content);
> I assume that works, there is probably something better than it too but
> thats all I see at this hour.
as that would remove all your normal single spaces as well.
if this is really a an issue use regular expressions to replace 2 or
more spaces with single spaces. see preg_replace()
josh
Matt Zur wrote:
> If you have a file includes IE:
>
> include ("data.inc");
>
> and have arrays n such with multiple php tags in that file, it will
> produce alot of white space on the final output.
>
> -Matt
>
> Philip Hallstrom wrote:
>
>> I'm not sure I fully understand your question, but given the following
>> PHP
>> file:
>>
>> <?php
>> print("hello");
>>
>>
>> #assume there are hundreds of blank lines just above this one.
>> ?>
>>
>>
>> all the browse will see is this (minus the dashed lines).
>>
>> ----------------------------------------------------------------------
>> hello
>> ----------------------------------------------------------------------
>>
>> On Wed, 4 Sep 2002, Matt Zur wrote:
>>
>>
>>> How do I remove the whitespace from a document? I consulted the manual
>>> and it said to use the trim function. But in a large PHP document, with
>>> lots of fuctions etc in PHP... is there a simple way to compress the
>>> whitespace of the entire document? Rather than going through each var
>>> and using the trim? Like add a header at the top: <?PHP
>>> compresswhitespace() ?>
>>>
>>>
>>> If you have a 300k php document, won't the source code reveal (after the
>>> browser displays the page) a bunch of whitespace. Doesn't this add to
>>> dl time and if so, how do I get rid of it.
>>>
>>> TIA,
>>>
>>> -Matt
>>>
>>>
>>>
>>>
>>> --
>>> Matt Zur
>>> [EMAIL PROTECTED]
>>> http://www.zurnet.com
>>>
>>> Need a Web Site??? - Visit... www.zurnet.com
>>>
>>> 1997 - 2002 - 5th Anniversary!!!
>>>
>>>
>>> --
>>> PHP General Mailing List (http://www.php.net/)
>>> To unsubscribe, visit: http://www.php.net/unsub.php
>>>
>>
>>
>
>
--- End Message ---
--- Begin Message ---
At 04:37 PM 9/4/02 , Matt Zur wrote:
>How do I remove the whitespace from a document? I consulted the manual and
>it said to use the trim function. But in a large PHP document, with lots
>of fuctions etc in PHP... is there a simple way to compress the whitespace
>of the entire document? Rather than going through each var and using the
>trim? Like add a header at the top: <?PHP compresswhitespace() ?>
>
>
>If you have a 300k php document, won't the source code reveal (after the
>browser displays the page) a bunch of whitespace. Doesn't this add to dl
>time and if so, how do I get rid of it.
Not 100% sure if I understand the drift of your question, but here's a few
possibilities.
(1) Are you concerned about whitespace you put in a PHP program to enhance
readability slowing down page loads?
Any whitespace WITHIN PHP tags does not get sent to the browser at all. So
you don't need to worry about it.
(2) Are you concerned that the OUTPUT of your PHP program and/or HTML
embedded therein might have excessive whitespace? If so, you could create
an output handler that cleans up the output before sending, I think; see
http://www.php.net/manual/en/ref.outcontrol.php
Or, use compression. See:
http://www.php.net/manual/en/function.ob-gzhandler.php
(3) If you simply wanted to clean up excessive whitespace in a file, you
could use a snippet like:
...read file into $file variable
# Replace multiple spaces/tabs with a space
$file = preg_replace('/[ \t]{2,}/','/ /', $file);
# Replace multiple lines with single line
$file = preg_replace('/(\n|\r|\r\n){2,}/', '\r', $file);
...write $file back out
That last line for replacing multiple blank lines is probably wrong; at the
very least you'd have to do some platform checking (Win vs. Mac vs. Unix)
to get the proper line ending. You might also be able to use the pattern
'/(^$){2,}/m'
In PHP4 I think you can use arrays:
...read in
$file = preg_replace(
array('/[ \t]{2,}/', '/(\n|\r|\r\n){2,}/'),
array('/ /', '\r'),
$file
);
...write out
See
http://www.php.net/manual/en/function.preg-replace.php
http://www.php.net/manual/en/pcre.pattern.syntax.php
http://www.php.net/manual/en/pcre.pattern.modifiers.php
-steve
+------------------------------------------------------------------------+
| Steve Edberg [EMAIL PROTECTED] |
| Database/Programming/SysAdmin (530)754-9127 |
| University of California, Davis http://pgfsun.ucdavis.edu/ |
+---------------------- Gort, Klaatu barada nikto! ----------------------+
--- End Message ---
--- Begin Message ---
Kevin Stone wrote:
> $myformtxt = '[i]Hello[/i] [B]world[/B]'; // pretend this came from a form.
1. I understand what you're doing, and how. But what I don't understand
is why? If a user is going to have to type [B]bold[/B], why not just get
them to type <b>bold</b>. [bold] and [italic] maybe?
2, I think regular expressions are a safer way to go. That way you don't
end up inserting eroneous html into peoples text if an unmatched tag is
encountered. Square brackets will not throw a browser off track but an
unclosed <h1> or <em> tag could ruin a page's appearance.
i suggest using preg_replace, maybe like this:
$pair = array( 'bold' => 'strong',
'italics' => 'em',
'heading1' => 'h1',
'heading2' => 'h2',
'heading3' => 'h3',
'heading4' => 'h4');
$pattern = array();
$replace = array();
foreach($pair as $key => $val) {
$pattern[] = '/(\[)(' . $key . ')(\])([^]].*)(\[\/)(' . $key .
')(\])/i';
$replace[] = "<$val>" . '$4' . "</$val>";
}
$new_body= preg_replace ($pattern, $replace, $body_text);
--- End Message ---
--- Begin Message ---
Does anyone know of a Javascript forum like this one that I can post a
question to?
--- End Message ---
--- Begin Message ---
This has nothing to do with PHP, the best list of newsgroup is here :
www.google.com
--
Nicos - CHAILLAN Nicolas
[EMAIL PROTECTED]
www.WorldAKT.com - Hébergement de sites Internet
"Christopher J. Crane" <[EMAIL PROTECTED]> a écrit dans le message de
news: [EMAIL PROTECTED]
> Does anyone know of a Javascript forum like this one that I can post a
> question to?
>
>
--- End Message ---
--- Begin Message ---
try
www.ozoneasylum.com
Elias
"Christopher J. Crane" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Does anyone know of a Javascript forum like this one that I can post a
> question to?
>
>
--- End Message ---
--- Begin Message ---
I'm trying to use cURL to log into a site, get the cookies then use those
cookies as I move through the site.
I'm getting the cookies in a file but either they're not being sent when
the script goes to the next page or they need to be formatted somehow so
the site recognizes them.
Has anyone done this already?
Thanks,
Jeff
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--- End Message ---
--- Begin Message ---
I will be generating a dynamic website for a Class in america. (Don't worry
about details)
The schools technican is the type that doesn't really know what they are
talking about.
They are running PHP 4.0.6 which is too old for me - Language differances.
They say that upgrading to PHP 4.2.3 will put unnessercary load on our
server.
I have told about the security problem found (Which applys to 4.2.x only,
but he doesn't know that). Can anyone think of other excuses.
I told about safe mode for security.
He said that when they buy a new server they will get the new version of
PHP. TO me this suggests that he doesn't know how to compile PHP for Mac OS
X server. Does anyone know of some good instructions?
--
JJ Harrison
[EMAIL PROTECTED]
www.tececo.com
--
Please reply on the list/newsgroup unless the reply it OT.
--- End Message ---
--- Begin Message ---
Perhaps the best thing to do would be to wait for PHP 4.3, which will
offer out-of-the-box OS X support. I have compiled the latest dev
releases with no problems or workarounds on OS X.
However, I do have step-by-step instructions for compiling PHP 4.2.x on
OS X, but depending on the libraries you need to link in, you may or
may not have success. For example, I have never been able to get
--with-imap to work on anything less than 4.3 (dev).
If you can't wait the few days that it will supposedly take for 4.3 to
be released, and you'd like a copy of my notes, let me know and I'll
send them to you.
-michael
On Wednesday, September 4, 2002, at 09:14 PM, JJ Harrison wrote:
> I will be generating a dynamic website for a Class in america. (Don't
> worry
> about details)
>
> The schools technican is the type that doesn't really know what they
> are
> talking about.
>
> They are running PHP 4.0.6 which is too old for me - Language
> differances.
>
> They say that upgrading to PHP 4.2.3 will put unnessercary load on our
> server.
>
> I have told about the security problem found (Which applys to 4.2.x
> only,
> but he doesn't know that). Can anyone think of other excuses.
>
> I told about safe mode for security.
>
> He said that when they buy a new server they will get the new version
> of
> PHP. TO me this suggests that he doesn't know how to compile PHP for
> Mac OS
> X server. Does anyone know of some good instructions?
>
>
> --
> JJ Harrison
> [EMAIL PROTECTED]
> www.tececo.com
>
> --
> Please reply on the list/newsgroup unless the reply it OT.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
You may also want to look at:
http://www.entropy.ch/software/macosx/php/
A build for Mac OS X based on PHP 4.4.2 with simple download and install
instructions.
HTH
David
On Wednesday, September 4, 2002, at 11:46 PM, Michael Geary wrote:
> Perhaps the best thing to do would be to wait for PHP 4.3, which will
> offer out-of-the-box OS X support. I have compiled the latest dev
> releases with no problems or workarounds on OS X.
>
> However, I do have step-by-step instructions for compiling PHP 4.2.x on
> OS X, but depending on the libraries you need to link in, you may or
> may not have success. For example, I have never been able to get
> --with-imap to work on anything less than 4.3 (dev).
>
> If you can't wait the few days that it will supposedly take for 4.3 to
> be released, and you'd like a copy of my notes, let me know and I'll
> send them to you.
>
> -michael
>
>
> On Wednesday, September 4, 2002, at 09:14 PM, JJ Harrison wrote:
>
>> I will be generating a dynamic website for a Class in america. (Don't
>> worry
>> about details)
>>
>> The schools technican is the type that doesn't really know what they
>> are
>> talking about.
>>
>> They are running PHP 4.0.6 which is too old for me - Language
>> differances.
>>
>> They say that upgrading to PHP 4.2.3 will put unnessercary load on our
>> server.
>>
>> I have told about the security problem found (Which applys to 4.2.x
>> only,
>> but he doesn't know that). Can anyone think of other excuses.
>>
>> I told about safe mode for security.
>>
>> He said that when they buy a new server they will get the new version
>> of
>> PHP. TO me this suggests that he doesn't know how to compile PHP for
>> Mac OS
>> X server. Does anyone know of some good instructions?
>>
>>
>> --
>> JJ Harrison
>> [EMAIL PROTECTED]
>> www.tececo.com
>>
>> --
>> Please reply on the list/newsgroup unless the reply it OT.
>>
>>
>>
>> -- PHP General Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>
>
> -- PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I have a client that is hosted with a company that has a rather lame web
stats package. I am looking for a PHP based stats package and have waded
through the sites that have apps shown under PHP at hotscripts.com and
wasn't drawn to the dozen or so that I looked at.
So if you have recommendations, send them along.
--- End Message ---
--- Begin Message ---
Webalizer is a fairly popular package, even used by a
few fortune 500's if I remember correctly. Not PHP but
fast and free.
http://www.webalizer.com/
olinux
--- tomba <[EMAIL PROTECTED]> wrote:
> I have a client that is hosted with a company that
> has a rather lame web
> stats package. I am looking for a PHP based stats
> package and have waded
> through the sites that have apps shown under PHP at
> hotscripts.com and
> wasn't drawn to the dozen or so that I looked at.
>
> So if you have recommendations, send them along.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com
--- End Message ---
--- Begin Message ---
is it possible to write a php program that sends
output to a network printer? an example would also
be great. thanks!
--
Ric Mañalac
Note:
The information contained in this message may be privileged and
confidential and protected from disclosure. If the reader of this
message is not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, you
are hereby notified that any dissemination, distribution or copying of
this communication is strictly prohibited. If you have received this
communication in error, please notify us immediately by replying to
the message and deleting it from your computer. Thank you.
--- End Message ---
--- Begin Message ---
This is somewhat php related: how do you get syntax highlighting and
coloring (whatever) for php in the windows version of emacs?
- Victor > www.argilent.com
______________________________________________________________________
Post your free ad now! http://personals.yahoo.ca
--- End Message ---
--- Begin Message ---
hi tough question but is there any way to port to ebay and manage and list
the auctions remotely in php? i've seen heaps of software and websites that
can do it
--- End Message ---
--- Begin Message ---
hi tough question but is there any way to port to ebay and manage and list
the auctions remotely in php? i've seen heaps of software and websites that
can do it
--- End Message ---
--- Begin Message ---
Hi,
I have requirement like this... Read a TEXT file that has codes that
represents Japanese chars in ISO-8859-1 encoding.
example "計画対比" I have to read these and convert
into EUC-JP and write the EUC-JP to a different file.
"
<?php
$fpI = fopen("E:\\input.txt","r");
$fpO = fopen("E:\\output.txt","w+");
$row=0;
while ($data = fgetcsv ($fpI, 1000, "=")) {
$num = count ($data);
$row++;
$str=mb_convert_encoding ( $data[0], "EUC-JP", "auto" . "\n";
fputs($fpO, $str);
}
?>
"
But this doesnt work. Can u please guide me how to achieve this.
Thankyou in advance,
Prabahar
_____________________________________________________________________
Any Opinions, explicit or implied, are solely those of the author and do not
necessarily
represent those of Questech. This e-mail may contain confidential and/or privileged
information. If you are not the intended recipient (or have received this e-mail in
error)
please notify the sender immediately and destroy this e-mail. Any unauthorized copying,
disclosure or distribution of the material in this e-mail is strictly forbidden.
_____________________________________________________________________
--- End Message ---
--- Begin Message ---
Hi all.
I need to find FREE world wide weather reports and also a FREE currency
converter from US Dollars to other currencies that can serve PHP
requests 24 hours a day, so I can customize the look and feel of these
results in my site(s). Does anyone knows where to get all this? Has
anyone out there fulfilled this kind of requirements in the past?
Thanks in advance,
Cesar Aracena <mailto:[EMAIL PROTECTED]>
On Dial-Up
CE / MCSE+I
Neuquen, Argentina
+54.299.6356688
+54.299.4466621
--- End Message ---
--- Begin Message ---
This appears to do what you want... or at least provide some inspiration:
http://www.phpclasses.org/browse.html/file/1220.html
I'm sure there are hundreds of web services based on currency conversion and
weather... usually they send XML data which you parse... google will help :)
Justin French
on 05/09/02 3:30 PM, César Aracena ([EMAIL PROTECTED]) wrote:
> Hi all.
>
> I need to find FREE world wide weather reports and also a FREE currency
> converter from US Dollars to other currencies that can serve PHP
> requests 24 hours a day, so I can customize the look and feel of these
> results in my site(s). Does anyone knows where to get all this? Has
> anyone out there fulfilled this kind of requirements in the past?
>
> Thanks in advance,
>
> Cesar Aracena <mailto:[EMAIL PROTECTED]>
> On Dial-Up
> CE / MCSE+I
> Neuquen, Argentina
> +54.299.6356688
> +54.299.4466621
>
>
--- End Message ---
--- Begin Message ---
Hey guys,
Can anyone recommend any PHP functions or plugins that will allow me to send
encrypted emails via PHP? Something similar to PGP would be excellent. I
have use PGP with a formmail cgi previously, but obviously it'd be easier to
have in-PHP support for it.
Any suggestions are much appreciated!
Best Regards
Bob Irwin
Server Admin & Web Programmer
Planet Netcom
--- End Message ---
--- Begin Message ---
Hello,
On 09/05/2002 02:29 AM, Bob Irwin wrote:
> Hey guys,
>
> Can anyone recommend any PHP functions or plugins that will allow me to send
> encrypted emails via PHP? Something similar to PGP would be excellent. I
> have use PGP with a formmail cgi previously, but obviously it'd be easier to
> have in-PHP support for it.
It ise not much different. You still have to use PGP shell program from
PHP probably with the popen() function and collect the encrypted results
to send in a message with the mail() function. There are some MIME
standards for sending encrypted messages signed and with public keys,
but I am not sure if you need that.
--
Regards,
Manuel Lemos
--- End Message ---
--- Begin Message ---
Perhaps not EXACTLY what you're after, but I wrote a small, simple function
to encrypt a string with a key (i'll skip a long note about keeping the key
safe).
Then I send an email with the data encrypted, and decrypt it at the other
end (me) using a decrypt script located on my local server.
It required PHP at both ends, which is a little catch. If I move it into
client systems, I'll look at a windows GUI to decrypt.
Justin
on 05/09/02 3:29 PM, Bob Irwin ([EMAIL PROTECTED]) wrote:
> Hey guys,
>
> Can anyone recommend any PHP functions or plugins that will allow me to send
> encrypted emails via PHP? Something similar to PGP would be excellent. I
> have use PGP with a formmail cgi previously, but obviously it'd be easier to
> have in-PHP support for it.
>
> Any suggestions are much appreciated!
>
> Best Regards
> Bob Irwin
> Server Admin & Web Programmer
> Planet Netcom
>
--- End Message ---
--- Begin Message ---
Does anyone know how to create .PS or .PRN files from the *command line* or
PHP under Windows 2000 ???
Thanks.
Jason
--- End Message ---
--- Begin Message ---
Steve Bradwell wrote:
> is_int($f) will return true if $f is an integer, false otherwise.
is_int will return false in this case, because it's a string. You have to
use is_numeric
HTH
Erwin
--- End Message ---
--- Begin Message ---
hey all,
if im displaying pages with data from a database eg
www.domain.com/file.php?id=40
on that page i would like to have a previous and next link that would
take it to id 41 and 39 respectively, the only problem being what if 39
or 41 was empty? then i would want the link to be id=42 or id=38.. is
the best way to do this just loop through the id's until it finds a
entry that isnt empty? or is there any functions for this?
jo
--- End Message ---
--- Begin Message ---
I think it would probably be better to read all the id's into an array,
and then use the array stepping functions to move forward or back. This
way, you won't have to worry about "empty" rows, or id's that are not
numerically following on each other.
On Thu, 2002-09-05 at 23:20, tux wrote:
>
> hey all,
>
> if im displaying pages with data from a database eg
>
> www.domain.com/file.php?id=40
>
> on that page i would like to have a previous and next link that would
> take it to id 41 and 39 respectively, the only problem being what if 39
> or 41 was empty? then i would want the link to be id=42 or id=38.. is
> the best way to do this just loop through the id's until it finds a
> entry that isnt empty? or is there any functions for this?
>
> jo
>
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--- End Message ---
--- Begin Message ---
I want to sort text strings, but how could i do this ?
Example:
04.09.2002
05.09.2002
19.03.1999
Is there a way to "change" the string to something like this ...
2002.09.04
2002.09.05
1999.03.19
Or is there a better way to solve this ??
Bård Tommy Nilsen
--- End Message ---
--- Begin Message ---
Hi There.
One way of doing this:
split each string into an array, delimited by the periods
$sDate = '04.09.2002';
$aDate = split( '.', $sDate );
this will give you an array like
array(
[0]=>'04',
[1]=>'09',
[2]=>'2002'
)
now reverse the array:
$aDate = array_reverse( $aDate );
join back into a string, using periods:
$sDate = join( '.', $aDate );
$sDate => '2002.09.04'
HTH
Regards
-|Scott
> -----Original Message-----
> From: Bård Tommy Nilsen [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, September 05, 2002 10:36 AM
> To: '[EMAIL PROTECTED]'
> Subject: [PHP] Sorting a text string
>
>
>
> I want to sort text strings, but how could i do this ?
>
> Example:
>
> 04.09.2002
> 05.09.2002
> 19.03.1999
>
>
> Is there a way to "change" the string to something like this ...
>
> 2002.09.04
> 2002.09.05
> 1999.03.19
>
> Or is there a better way to solve this ??
>
>
> Bård Tommy Nilsen
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--- End Message ---
--- Begin Message ---
Hello
i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i
try to start the apache but encounter the following error msg
"The procedure entry point _ecalloc could not be located in the dynamic
link library php4ts.dll"
"Unable to load dynamic library 'c:\php\extensions\php_mcrypt.dll" - The
specified procedure could not be found."
"mhash: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
There options need to match"
i m sure that the "php_mcrypt.dll" is already in that location. i've
also tried to change the "extension_dir" in c:\winnt\php.ini to
c:\php
c:\php\extensions\
c:\winnt
c:\winnt\system32
and copied all the required dll to corresponding directories. same error
was encountered when i start the apache. can you advice how can i solve
it?
i've also installed the
terence
--- End Message ---
--- Begin Message ---
Hello
(i've confirmed my email address but not sure if you will read my
previous mail, so i send it once more.)
i've uncommended the mcrypt and mhash line in c:\winnt\php.ini. then i
try to start the apache but encounter the following error msg
"The procedure entry point _ecalloc could not be located in the dynamic
link library php4ts.dll"
"Unable to load dynamic library 'c:\php\extensions\php_mcrypt.dll" - The
specified procedure could not be found."
"mhash: Unable to initialize module
Module compiled with module API=20010901, debug=0, thread-safety=1
PHP compiled with module API=20020429, debug=0, thread-safety=1
There options need to match"
i m sure that the "php_mcrypt.dll" is already in that location. i've
also tried to change the "extension_dir" in c:\winnt\php.ini to
c:\php
c:\php\extensions\
c:\winnt
c:\winnt\system32
and copied all the required dll to corresponding directories. same error
was encountered when i start the apache. can you advice how can i solve
it?
Terence
--- End Message ---