[PHP] what is difference between php and perl

2004-07-20 Thread Syed Ghouse
Hi all (B (Bwill anybody tell me the difference between perl and php (B (BRegards (BSyed

[PHP] How to use reflection API?

2004-07-20 Thread Andreas Goetz
I'm trying to use theh reflection API but can't seem to start: $func= new Reflection_Function('counter'); Fatal error: Class 'Reflection_Function' not found in C:\htdocs\reflection.php on line 34 According to http://sitten-polizei.de/php/reflection_api/docs/language.reflection.class.reflection

Re: [PHP] session and mysql connection identifier

2004-07-20 Thread Jason Wong
On Wednesday 21 July 2004 13:47, mukta telang wrote: > I want to use mysql persistent connection to connect > to mysql and use the connection identifier or handle > in subsequent pages/scripts. So in script1.php I have > session_start(); > session_register('conn'); > HTTP_SESSION_VARS['conn']=mysq

RE: [PHP] session and mysql connection identifier

2004-07-20 Thread Umesh Deshmukh
Hi, Please check if you have put session_start() on script2. Umesh. -Original Message- From: mukta telang [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 21, 2004 11:18 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [PHP] session and mysql connection identifier Hi, I want to u

[PHP] session and mysql connection identifier

2004-07-20 Thread mukta telang
Hi, I want to use mysql persistent connection to connect to mysql and use the connection identifier or handle in subsequent pages/scripts. So in script1.php I have session_start(); session_register('conn'); HTTP_SESSION_VARS['conn']=mysql_pconnect(...); and in script2.php I have, echo $conn; and

[PHP] Re: PHP5 - Weird Error - "cannot find element in variable"

2004-07-20 Thread Jason Barnett
Reply to the group, not just to me - there are a lot of people smarter than I on this list. Based on your class I can see that you're simply creating your objects with the wrong parameters - you've switched position and name. Just change your while loop to: while (!$res->EOF) { $f = $res->f

Re: [PHP] Apache 2 and PHP for Production?

2004-07-20 Thread Oliver John Tibi
Would it be just fine if I activated Apache2's 'prefork' module? I know preforking defeats Apache2 purpose, but I am still wondering if it should still work fine. :) "Lester Caine" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Oliver John V. Tibi wrote: > > > Wow! And come to think

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] preg_match question

2004-07-20 Thread Curt Zirzow
* Thus wrote Jason Wong: > On Wednesday 21 July 2004 10:04, John Van Pelt wrote: > > > function isWord($element) { > > return !preg_match ("/[^A-Za-z\-\(\)\s]/", $element); > > } > > > > I want to test the string $element and make sure that it contains nothing > > but: > > - characters A-Z >

Re: [PHP] PHP5 - Weird Error - "cannot find element in variable"

2004-07-20 Thread Curt Zirzow
* Thus wrote Scott Hyndman: > > Now here's the problem. When I'm debugging this thing, the line that > I've marked doesn't actually add anything to the array. If I try to view > the contents of the array, it gives me a "cannot find element in > variable" error. Later, when I iterate through it, tw

[PHP] Re: Money format

2004-07-20 Thread Kevin Martin
Lukáš moravec - ptv servis wrote: Hi to all, is there any function wich can format a "double" or "string" into "money format".for example: 1526789,99 to 1.526.789,99 or something like that.? Regards Lukas Sure, see http://php.net/number_format . I love it when it's as easy as saying "RTFM" -- PHP

[PHP] Re: PHP5 - Weird Error - "cannot find element in variable"

2004-07-20 Thread Jason Barnett
The Object is being created perfectly, I've checked. The collection's Add() method is something like: Since you know you're adding MyObject objects, first of all check for that: public function Add(MyObject $object) public function Add($object) { $

[PHP] Re: PHP5, XPath and count()

2004-07-20 Thread Jason Barnett
To find the number of nodes in a DomNodeList you need to access the length property... sample code to do this: $xml = << The Rolling Stones Exile On Main Street Aimee Mann I'm With Stupid Bachelor No. 2 XML; $dom = new DomDocument(); $do

Re: [PHP] PHP configuration problem on Solaris 2.7

2004-07-20 Thread Curt Zirzow
* Thus wrote Mark Perkoski: > > > Curt, > > I checked the log file as you recommended but it doesn't reveal any meaningful > clues. Its funny, I've installed > tons of packages and never had a configuration crap out like this. > > ws3 {root} 28: more config.log > This file contains any messages

Re: [PHP] preg_match question

2004-07-20 Thread Jason Wong
On Wednesday 21 July 2004 10:04, John Van Pelt wrote: > function isWord($element) { > return !preg_match ("/[^A-Za-z\-\(\)\s]/", $element); > } > > I want to test the string $element and make sure that it contains nothing > but: > - characters A-Z > - characters a-z > - hyphen > -

[PHP] preg_match question

2004-07-20 Thread John Van Pelt
I am a semi-newbie at php and a complete newbie to regex What am I doing wrong here? function isWord($element) { return !preg_match ("/[^A-Za-z\-\(\)\s]/", $element); } I want to test the string $element and make sure that it contains nothing but: - characters A-Z - characters a-z

[PHP] PHP5 - Weird Error - "cannot find element in variable"

2004-07-20 Thread Scott Hyndman
Okay, I'm getting this error in a class I've written. I can't explain it. Right off the bat let me mention that I'm using PHP5, and my "collection" class implements IteratorAggregate. The code flow is essentially this: I use ADODB to select a bunch of rows from a database "SELEC

RE: [PHP] get all except 1

2004-07-20 Thread Dan McCullough
Thanks. Discovered some old code after writing. Boy its been awhile. dan mccullough sr. engineer url: heathermccullough.com tf: 866.298.3991 w: 603.444.9808 There is no such thing as a problem, unless the servers are on fire. Sometimes great opportunity com

Re: [PHP] get all except 1

2004-07-20 Thread John W. Holmes
Dan McCullough wrote: Anything wrong with SELECT * FROM story WHERE approved = 1 AND newsId != $newsId AND editionId = $eid ORDER BY newsSortOrder ASC Should be fine if I understand your question correctly. You can use != or <>; same result. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/

RE: [PHP] get all except 1

2004-07-20 Thread Dan McCullough
Anything wrong with SELECT * FROM story WHERE approved = 1 AND newsId != $newsId AND editionId = $eid ORDER BY newsSortOrder ASC dan mccullough sr. engineer url: heathermccullough.com tf: 866.298.3991 w: 603.444.9808 There is no such thing as a problem, unless

Re: [PHP] get all except 1

2004-07-20 Thread John W. Holmes
Dan McCullough wrote: Haven't done this in a while, but here is my question. I have 4 stories, and you land on the story page where one story is shown and on the side there is a listing of the other 3 stories that are active in that edition. So what I would like to do in one query is get the three

[PHP] get all except 1

2004-07-20 Thread Dan McCullough
Haven't done this in a while, but here is my question. I have 4 stories, and you land on the story page where one story is shown and on the side there is a listing of the other 3 stories that are active in that edition. So what I would like to do in one query is get the three that are not shown on

Re: [PHP] string filtering

2004-07-20 Thread John W. Holmes
C.F. Scheidecker Antunes wrote: I need to filter some strings. They can only contain characters like a...z or A..Z and 0..9. Some strings have blank spaces, -,./?>,< characters that must be discarded. I wrote a function to check each and every character but I guess there must be something else m

[PHP] string filtering

2004-07-20 Thread C.F. Scheidecker Antunes
Hello all, I need to filter some strings. They can only contain characters like a...z or A..Z and 0..9. Some strings have blank spaces, -,./?>,< characters that must be discarded. I wrote a function to check each and every character but I guess there must be something else more efficient. Any s

[PHP] Update mysql.so problems

2004-07-20 Thread Jough P
Greetings all, I upgraded to MySQL 4 on a Redhat Enterprise box. I recompiled PHP 4.3.6 and a look at phpinfo() reveals that the old mysql client API is still being used. So, I moved the mysql.so to my home directory hoping that when did ./configure and make again it would create a new one.

Re: [PHP] [php] error in manual?

2004-07-20 Thread Philip Olson
Yes you're correct, this was fixed about a week ago and will show up when the manual is next built (which should be soon), here's the diff: http://cvs.php.net/diff.php/phpdoc/en/language/oop5/visibility.xml?r1=1.2&r2=1.3 When you find errors like this be sure to file a doc bug report at bugs.php

Re: [PHP] DAYLIGHT SAVINGS TIME OR NOT

2004-07-20 Thread PHPDiscuss - PHP Newsgroups and mailing lists
You could also use the php date() function. date('I'); If you need it for a specific date, then date('I',$timestamp); Curt Zirzow wrote: > * Thus wrote Chirag Shukla: > > > > This function can be used to know whether it is Daylight Savings time or > > not for the given date. It may not be

Re: [PHP] PHP configuration problem on Solaris 2.7

2004-07-20 Thread Matthew Sims
> > Curt, > > I checked the log file as you recommended but it doesn't reveal any > meaningful > clues. Its funny, I've installed > tons of packages and never had a configuration crap out like this. > > ws3 {root} 28: more config.log > This file contains any messages produced by compilers while > r

Re: [PHP] PHP configuration problem on Solaris 2.7

2004-07-20 Thread Mark Perkoski
Curt, I checked the log file as you recommended but it doesn't reveal any meaningful clues. Its funny, I've installed tons of packages and never had a configuration crap out like this. ws3 {root} 28: more config.log This file contains any messages produced by compilers while running configure,

Re: [PHP] PHP configuration problem on Solaris 2.7

2004-07-20 Thread Mark Perkoski
Matthew, Yes, I do have gcc version 2.95.3 installed which worked fine for all other installs requiring to be compiled. Any other suggestions? Thanks Mark Perkoski Conexant Systems Inc. Voice (949) 483-4423 Matthew Sims wrote: > > > > I'm trying to do a PHP install on Solaris 2.7 and right

Re: [PHP] Very weird issue....

2004-07-20 Thread Stan F
- Original Message - From: "Alex Shi" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 21, 2004 1:39 AM Subject: [PHP] Very weird issue > Hi all, > > Please take a look at following very simple script; > > #!/usr/bin/php -q > echo "Hello, world!\n"; > if (!$tty) { >

Re: [PHP] textarea/display question...

2004-07-20 Thread Marek Kilimajer
bruce wrote: $foo = 'blah'; Everything but one thing has been said: You should always use htmlspecialchars() to output value of textarea $foo = 'blah'; echo '' . htmlspecialchars($foo) . ''; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Very weird issue....

2004-07-20 Thread Alex Shi
Hi all, Please take a look at following very simple script; #!/usr/bin/php -q I tested it on many servers. Here is how it running (you can figure out yourself): Firstly it displays "Hello, world!", then displays "Hello: " at second line and waits for user input; You input a "yes" and it disp

[PHP] PHP5, XPath and count()

2004-07-20 Thread Victor Boivie
Assume an XML file that looks like: .. .. .. ... and that I would like to know the number of CDs. An xpath expression would look like count(/catalog/cd), but how do I run this expression? $dom = new DOMDocument(); $dom->load("catalog.xml"); $xpath = new DOMXpath($dom); var_dump($xp

[PHP] [php] error in manual?

2004-07-20 Thread Nick W
On the page http://www.php.net/manual/en/language.oop5.visibility.php the first part reads: The visibility of a member or method can be defined by prefixing the declaration with the keywords: public, protected or private. Public declared items can be allow access to any caller. Protected limit

RE: [PHP] textarea/display question...

2004-07-20 Thread Pablo Gosse
Stut wrote: > On Tue, 20 Jul 2004 11:51:22 -0700, bruce <[EMAIL PROTECTED]> > wrote: >> with an iframe... can i allow the user to make changes... and then >> capture the "data" as a value for a post within a form..??? >> >> in other words...does it closely give me what a textarea does with >> reg

Re: [PHP] file_exists() to search for *.xml file with a wild card???

2004-07-20 Thread Scott Fletcher
I like this one, the readdir() function. It look very promising. Thanks! Scott F. "Matt M." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I would like to use the file_exists() or something similar to check for the > > existance of any of the xml files regardless of what file

Re: [PHP] file_exists() to search for *.xml file with a wild card???

2004-07-20 Thread Matt M.
> I would like to use the file_exists() or something similar to check for the > existance of any of the xml files regardless of what filename it use. Like > file_exist("*.xml") for example. Anyone know?? http://us3.php.net/readdir -- PHP General Mailing List (http://www.php.net/) To uns

Re: [PHP] file_exists() to search for *.xml file with a wild card???

2004-07-20 Thread Philip Olson
> I would like to use the file_exists() or something similar to check for the > existance of any of the xml files regardless of what filename it use. Like > file_exist("*.xml") for example. Anyone know?? You may use glob(), http://www.php.net/glob Regards, Philip -- PHP General Maili

Re: [PHP] file_exists() to search for *.xml file with a wild card???

2004-07-20 Thread John W. Holmes
Scott Fletcher wrote: I would like to use the file_exists() or something similar to check for the existance of any of the xml files regardless of what filename it use. Like file_exist("*.xml") for example. Anyone know?? Try glob() -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/regist

RE: [PHP] file_exists() to search for *.xml file with a wild card???

2004-07-20 Thread Jay Blanchard
[snip] I would like to use the file_exists() or something similar to check for the existance of any of the xml files regardless of what filename it use. Like file_exist("*.xml") for example. Anyone know?? [/snip] Nope, no wildcard. You can only check for a specific file. -- PHP General Maili

[PHP] Re: file_exists() to search for *.xml file with a wild card???

2004-07-20 Thread Jason Barnett
Scott Fletcher wrote: I would like to use the file_exists() or something similar to check for the existance of any of the xml files regardless of what filename it use. Like file_exist("*.xml") for example. Anyone know?? FletchSOD fnmatch() -- PHP General Mailing List (http://www.php.net/) To

[PHP] file_exists() to search for *.xml file with a wild card???

2004-07-20 Thread Scott Fletcher
I would like to use the file_exists() or something similar to check for the existance of any of the xml files regardless of what filename it use. Like file_exist("*.xml") for example. Anyone know?? FletchSOD -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://w

RE: [PHP] PHP error catching....

2004-07-20 Thread Will Collins
Error handlers? Plus, you can set up PHP to log errors to a file in 'php.ini'... -Original Message- From: Scott Fletcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 9:48 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP error catching What are those php functions that catch the

[PHP] Re: template and file read

2004-07-20 Thread Jason Barnett
Ee wrote: Dears, In one of the tutorials I read about templates, the writer is diving the code into multiple files. He put the menu, main, left, right, footer each in a separate file. He is using foreach to go through an array and reads all these files. Is this a good practice? I use a lot of inclu

Re: [PHP] Problem of a beginner with Array

2004-07-20 Thread Jason Barnett
Hey John, maybe you should ask him how his script picks the winning lottery numbers :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] template and file read

2004-07-20 Thread EE
Dears, In one of the tutorials I read about templates, the writer is diving the code into multiple files. He put the menu, main, left, right, footer each in a separate file. He is using foreach to go through an array and reads all these files. Is this a good practice? Would this slow down the sit

[PHP] Re: PHP 5 installation

2004-07-20 Thread Jason Barnett
DON'T REPLY TO A MESSAGE WHEN YOU NEED TO START A NEW THREAD! Marv Cook wrote: I have PHP 4 installed and tried to install 5. No luck. Both at the same time? Do you *really* need this? It's generally much easier to have only one installation at a time. I unzipped over the current folder (C:\P

Re: [PHP] textarea/display question...

2004-07-20 Thread Stut
On Tue, 20 Jul 2004 11:51:22 -0700, bruce <[EMAIL PROTECTED]> wrote: > with an iframe... can i allow the user to make changes... and then capture > the "data" as a value for a post within a form..??? > > in other words...does it closely give me what a textarea does with regards > to allowing a use

Re: [PHP] textarea/display question...

2004-07-20 Thread John W. Holmes
bruce wrote: ps.. to you guys who said that the doesn't have a value=''.. it does... No, it doesn't. Pleae upgrade your textbooks. http://www.w3.org/TR/html4/interact/forms.html#h-17.7 -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PH

Re: [PHP] textarea/display question...

2004-07-20 Thread Jason Davidson
you can set designmode on a iframe to make it editable if you like, you can use javascript to use commands from the browser on the iframe even. And textarea may have a value attribute, however the element is meant to tag its displayed value from between the open and close tags. Jason On Tue, 20

RE: [PHP] textarea/display question...

2004-07-20 Thread Matthew Sims
> > ps.. to you guys who said that the doesn't have a value=''.. it > does... Please, in this documentation from the W3C's site, show me where there's a value attribute for textarea. http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#h-17.7 --Matthew Sims --

Re: [PHP] textarea/display question...

2004-07-20 Thread Matt M.
> ps.. to you guys who said that the doesn't have a value=''.. it > does... Where did you find this out? I was pretty sure that is did not have the value attribute. http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/textarea.asp http://www.w3.org/TR/REC-html40/interact/forms.htm

RE: [PHP] textarea/display question...

2004-07-20 Thread Vail, Warren
That is a tough question to answer simply, but the basic answer is yes. What appears in the IFRAME is actually another web page, complete with it's own set of controls and it's own form, and something to trigger the submission of that form (separately from the page containing the IFRAME). Suppose

RE: [PHP] textarea/display question...

2004-07-20 Thread Vail, Warren
Yes, but by nature, it must be a separate form. What appears in the IFRAME is like any other frame, an entire web page, and as a separate web page and separate form, it must have it's own submit button (within the form). Course you could cause some of the other controls on the form to trigger the

Re: [PHP] Problem of a beginner with Array

2004-07-20 Thread Justin Patrin
On Tue, 20 Jul 2004 20:09:33 +0200 (CEST), Henri Marc <[EMAIL PROTECTED]> wrote: > Hello, > > I'm just starting with PHP and I have a problem. This is certainly very easy for you > but for me, it's tough. > > I want to make a lottery site (just as an exercise), so I made a page with 6 grids > o

Re: [PHP] textarea/display question...

2004-07-20 Thread Justin Patrin
On Tue, 20 Jul 2004 10:59:06 -0700, bruce <[EMAIL PROTECTED]> wrote: > hi.. > > i'm presenting a textarea to the user... > > i'd like to be able to display the information within the textarea in a > format. this would allow me to highlight the material that the user > should modify. however, i c

RE: [PHP] textarea/display question...

2004-07-20 Thread bruce
vail... with an iframe... can i allow the user to make changes... and then capture the "data" as a value for a post within a form..??? in other words...does it closely give me what a textarea does with regards to allowing a user to make mods to the information? -thanks.. ps.. to you guys who sa

Re: [PHP] Problem of a beginner with Array

2004-07-20 Thread John W. Holmes
Henri Marc wrote: I want to make a lottery site (just as an exercise), so I made a page with 6 grids of 50 numbers each (check boxes). Now, I want to know which numbers have been checked by the player. I have a : "input name="Grid1" type="checkbox" for the first grid. Grid2 for the grid #2... I

Re: [PHP] Problem of a beginner with Array

2004-07-20 Thread Jonathan Haddad
You don't have to declare an array size in PHP.First you can do this: $arr = array(); then $arr[1] = 50; $arr[2] = true; $arr[3] = "some value"; or you can loop through foreach( $i = 0; $i < 50 ; $i++ ) $arr[$i] = false; I believe you can assign the checkbox names in HTML as grid[] and in p

Re: [PHP] textarea/display question...

2004-07-20 Thread John W. Holmes
bruce wrote: Please review your HTML textbook. There is no "value" attribute for a textarea. $foo -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] Money format

2004-07-20 Thread John W. Holmes
LukÃÅ Moravec - PTV Servis wrote: is there any function wich can format a "double" or "string" into "money format".for example: 1526789,99 to 1.526.789,99 or something like that.? number_format() -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magaz

Re: [PHP] Image manipulation in PHP

2004-07-20 Thread Mark Collin
Thanks for the advice, I will look into it. "Jason Wong" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]: > On Tuesday 20 July 2004 19:28, Mark Collin wrote: > > > Is there any support for TGA images in PHP. > > Not builtin. > > > I have searched through the PHP manual and through the

RE: [PHP] Problem of a beginner with Array

2004-07-20 Thread Will Collins
Name each of the checkboxes "grid[]" (Your Text), then in your processing script, $_POST['grid'] will be an array with the values of all the checked boxes (assuming at least one was checked - otherwise it won't be set). If you want a limit on the number of boxes you can check, try a little Javascr

Re: [PHP] Problem of a beginner with Array

2004-07-20 Thread Matt M.
> Now, I want to know which numbers have been checked by the player. > I have a : > "input name="Grid1" type="checkbox" > for the first grid. Grid2 for the grid #2... if the user checks any Grid1[] boxes then $_POST['Grid1'] will be an array and so on. -- PHP General Mailing List (http://www.

RE: [PHP] Money format

2004-07-20 Thread Jay Blanchard
[snip] Hi to all, is there any function wich can format a "double" or "string" into "money format".for example: 1526789,99 to 1.526.789,99 or something like that.? Regards Lukas [/snip] http://www.php.net/number_format -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

RE: [PHP] textarea/display question...

2004-07-20 Thread Will Collins
I've always gotten errors when trying to use the "value" property of a textarea. Put the value info between the tabs. -Original Message- From: bruce [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 20, 2004 12:59 PM To: [EMAIL PROTECTED] Subject: [PHP] textarea/display question... hi.. i

Re: [PHP] Money format

2004-07-20 Thread Matt M.
> Hi to all, > is there any function wich can format a "double" or "string" into "money > format".for example: 1526789,99 to 1.526.789,99 or something like that.? > Regards Lukas > You could try http://us2.php.net/manual/en/function.money-format.php or http://us2.php.net/manual/en/function.numbe

RE: [PHP] Money format

2004-07-20 Thread Dan Joseph
Hi, From php.net/sprintf: I think you'd have to format the . and , a bit differently, but that should be a start. -Dan Joseph > -Original Message- > From: Lukáš Moravec - PTV Servis [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 20, 2004 2:10 PM > To: [EMAIL PROTECTED] > Subj

RE: [PHP] textarea/display question...

2004-07-20 Thread Vail, Warren
Have you considered an imbedded frame? (Looks like a textarea, with the ability to imbed all types of controls (and tables) within it). I'm not sure that all browsers support yet, but the most widely used one does. Another approach would be to use sprinf() formatting to imbed leading/trailing s

RE: [PHP] textarea/display question...

2004-07-20 Thread Dan Joseph
Hi, With textarea, there is no value... $foo -Dan Joseph > $foo = 'blah'; > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mailing list spam protection?

2004-07-20 Thread Justin Patrin
PLEASE read the previous threads about this. NO, it is not the list. YES, it is legit. A *list user* signed up for it. On Tue, 20 Jul 2004 10:52:40 -0700, bruce <[EMAIL PROTECTED]> wrote: > given that spamcease appears to be popping up regarding various lists... the > app might actually be trawli

Re: [PHP] textarea/display question...

2004-07-20 Thread Jonathan Haddad
Anything inside that textarea actually get's displayed. So they will actually see that HTML. I don't know of a way to actually highlight sections within the text area, and I don't think there is one. You could highlight the text outside of the textarea though. Jon bruce wrote: hi.. i'm presen

[PHP] Problem of a beginner with Array

2004-07-20 Thread Henri Marc
Hello, I'm just starting with PHP and I have a problem. This is certainly very easy for you but for me, it's tough. I want to make a lottery site (just as an exercise), so I made a page with 6 grids of 50 numbers each (check boxes). Now, I want to know which numbers have been checked by the

[PHP] Money format

2004-07-20 Thread Lukáš Moravec - PTV Servis
Hi to all, is there any function wich can format a "double" or "string" into "money format".for example: 1526789,99 to 1.526.789,99 or something like that.? Regards Lukas

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

[PHP] textarea/display question...

2004-07-20 Thread bruce
hi.. i'm presenting a textarea to the user... i'd like to be able to display the information within the textarea in a format. this would allow me to highlight the material that the user should modify. however, i can't figure out how to accomplish this... $foo = 'blah'; something like the abov

RE: [PHP] mailing list spam protection?

2004-07-20 Thread bruce
given that spamcease appears to be popping up regarding various lists... the app might actually be trawling for email/user information... i've recieved the email from this list, as well as the mysql list.. search google and you'll find the same message from other lists... i'm pretty certain that t

Re: [PHP] Re: Array Losing value

2004-07-20 Thread Justin Patrin
On Tue, 20 Jul 2004 10:50:04 -0500 (CDT), Jonathan Villa <[EMAIL PROTECTED]> wrote: > nevermind, I found a work around for it... > > I still would like to know why the value is lost. > What's the "work-around"? -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/

Re: [PHP] Apache 2 and PHP for Production?

2004-07-20 Thread Steve Wardell
Why is there such a reluctance to using Apache 2? For stability issues, PHP should recommend Apache 2 but in prefork mode. Instead of saying Apache 2 is unsupported, just say non prefork mode is not supported. Additionally, if PHP is more acceptable of Apache 2 (in the supported mode), then use

Re: [PHP] PHP error catching....

2004-07-20 Thread Scott Fletcher
>[re-snip] >I can't remember what I did 6 to 8 months ago. >[/re-snip] >/* commenting is your friend */ I definitely agree with you on that... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP error catching....

2004-07-20 Thread Jonathan Haddad
error_reporting( E_NONE )? Jon Scott Fletcher wrote: Close, but still not quite it. I can't remember what I did 6 to 8 months ago. I do remember that it was written to temporary suppress the php error while the other part of the php script can be allow to execute before unsupressing the php error

Re: [PHP] mailing list spam protection?

2004-07-20 Thread John Nichel
Brian Krausz wrote: While I'm trying not to be paranoid of spam, I received 3 copies of this message, and it seemed suspicious. Is this a legit email? (I didn't know who else to ask besides the actual mailing list users) I included all the relevant headers... It's probably and end user who use

RE: [PHP] PHP error catching....

2004-07-20 Thread Jay Blanchard
[snip] Close, but still not quite it. I can't remember what I did 6 to 8 months ago. I do remember that it was written to temporary suppress the php error while the other part of the php script can be allow to execute before unsupressing the php error. I do not meant the "@" part.. It was a fun

Re: [PHP] PHP error catching....

2004-07-20 Thread Curt Zirzow
* Thus wrote Scott Fletcher: > Close, but still not quite it. I can't remember what I did 6 to 8 months > ago. I do remember that it was written to temporary suppress the php error > while the other part of the php script can be allow to execute before > unsupressing the php error. I do not mean

Re: [PHP] Execute a scipt in the background

2004-07-20 Thread Justin Patrin
On Thu, 17 Jun 2004 11:59:45 +0530, narender <[EMAIL PROTECTED]> wrote: > I want to start the execution of a script in the background at the time of user > login. In the script there is infinite loop which is checking something after every > 10 seconds and if it get true value the it open a popup

Re: [PHP] Re: Array Losing value

2004-07-20 Thread Jonathan Villa
nevermind, I found a work around for it... I still would like to know why the value is lost. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Discussion Forum & Online Chat

2004-07-20 Thread Jordi Canals
Vinayakam Murugan wrote: Hi We are developing a PHP / MySql based website. The requirements include a discussion forum and online chat application with open chat rooms, invited chat & one-to-one chat. There are many packages which are available on sourceforge and the like. I would like the l

Re: [PHP] Performance issues and trees

2004-07-20 Thread Sven Riedel
On Tue, Jul 20, 2004 at 09:49:07AM -0500, Michael Sims wrote: > above is necessary. If you merely need to traverse $bit_array without actually > modifying it then I suspect a simple foreach would be much faster, but I'm probably > missing something... Ah, I just changed that and now it's a hundre

[PHP] Re: Discussion Forum & Online Chat

2004-07-20 Thread Harlequin
I've been looking around also and other than PHPbb didn't find anything I liked. There are developers out there that will do the work but that defeats the purpose of learning a language I think. Hope you have some look. -- - Michael Mason Arras People www.arraspeop

Re: [PHP] Embedded Email Directives

2004-07-20 Thread Jordi Canals
Curt Zirzow wrote: * Thus wrote Jordi Canals: Jordi Canals wrote: Should I filter all CR and LF Just in headers or also I should do that in the message body? (Which is sent in the SMTP DATA section). One of the things to ensure you dont do is blindly allow user entered data sending into the $head

Re: [PHP] PHP error catching....

2004-07-20 Thread Scott Fletcher
Close, but still not quite it. I can't remember what I did 6 to 8 months ago. I do remember that it was written to temporary suppress the php error while the other part of the php script can be allow to execute before unsupressing the php error. I do not meant the "@" part.. It was a function w

RE: [PHP] mailing list spam protection?

2004-07-20 Thread Jay Blanchard
[snip] While I'm trying not to be paranoid of spam, I received 3 copies of this message, and it seemed suspicious. Is this a legit email? (I didn't know who else to ask besides the actual mailing list users) I included all the relevant headers... [/snip] There has been extensive discussion ab

Re: [PHP] PHP error catching....

2004-07-20 Thread Jason Wong
On Tuesday 20 July 2004 22:48, Scott Fletcher wrote: > What are those php functions that catch the PHP errors, not display it and > do something to it while the user load a webpage. I don't remember what > those are. :-( manual > Error Handling and Logging Functions -- Jason Wong -> Greml

Re: [PHP] PHP error catching....

2004-07-20 Thread Curt Zirzow
* Thus wrote Scott Fletcher: > What are those php functions that catch the PHP errors, not display it and > do something to it while the user load a webpage. I don't remember what > those are. :-( It sounds like you're looking for http://php.net/set_error_handler Curt -- First, let me a

[PHP] mailing list spam protection?

2004-07-20 Thread Brian Krausz
While I'm trying not to be paranoid of spam, I received 3 copies of this message, and it seemed suspicious. Is this a legit email? (I didn't know who else to ask besides the actual mailing list users) I included all the relevant headers... From - Tue Jul 20 10:49:01 2004 Return-Path: <[EMAIL

[PHP] Re: PHP error catching....

2004-07-20 Thread Torsten Roehr
"Scott Fletcher" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > What are those php functions that catch the PHP errors, not display it and > do something to it while the user load a webpage. I don't remember what > those are. :-( > > FletchSOD You can write your own error han

Re: [PHP] PHP error catching....

2004-07-20 Thread Philip Olson
> What are those php functions that catch the PHP errors, not display it and > do something to it while the user load a webpage. I don't remember what > those are. :-( Look around set_error_handler() Regards, Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: newbie needs help in getting php and MySQL integrated

2004-07-20 Thread Philip Olson
> > Windows XP SP1 > > Norton Antivirus and Internet Security > > Apache 2 > > PHP 5 > > MySQL 4.0.16 > > > > All seem to work. I can run PHP scripts on the Apache server without any trouble. > > I have MySQL running as a service and the basic SQL command line commands and > > winmysqladmin sho

Re: [PHP] Login Script

2004-07-20 Thread Brian Krausz
Thanks for all the suggestions guys, I took your advice and currently have a working login script (hopefully :) ). If I have any more problems I'll be sure to ask you, it's nice to know that there's a place I can always go for questions. Thanks, Brian -- PHP General Mailing List (http://www.ph

  1   2   >