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 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 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 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

[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

[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

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

[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

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

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

[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

[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] 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

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

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

[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.

[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

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

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: 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
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

[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

[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

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 > -

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

[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

[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: 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

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

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

[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

[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

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

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

[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

[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

<    1   2