Re: [PHP] php 5 interfaces

2005-01-21 Thread Sergio Gorelyshev
On Thu, 20 Jan 2005 11:13:11 -0800 (PST) Richard Lynch [EMAIL PROTECTED] wrote: Sergio Gorelyshev wrote: Hi all. Situation: interface MyInterface { public static myMethod(); } class MyClass implements MyInterface { public static myMethod() {} } This sample will crash

[Fwd: Re: [PHP] php 5 interfaces]

2005-01-21 Thread Jochem Maas
Tbird switched the reply and reply-all buttons again ;-)... ? IMHO its normally to use access type for methods declaration in interfaces. Why not? Maybe my first example was not sufficiently illustrative. But my question was why it does not work in one environment and work fine in another. it

[PHP] PHP5: DOM-removeChild Problem

2005-01-21 Thread Mike Blank
Hi Guys! I've got a problem with Dom and php 5.0.2. I'm trying to access an xml node with $item = $objDom-documentElement-childNodes-item(0);. That seems to work, because on the next line I can output the node Value with echo $item-nodeValue. But when I use the command $objDom-removeChild($item);

Re: [Fwd: Re: [PHP] php 5 interfaces]

2005-01-21 Thread Sergio Gorelyshev
On Fri, 21 Jan 2005 11:56:55 +0100 Jochem Maas [EMAIL PROTECTED] wrote: Tbird switched the reply and reply-all buttons again ;-)... ? IMHO its normally to use access type for methods declaration in interfaces. Why not? Maybe my first example was not sufficiently illustrative. But my

[PHP] if then else short form

2005-01-21 Thread Ben Edwards
I seem to remember seing someone use a abreaviated form of a if/them/else of the type that can be used in java. It was something like if ( a=b ) ? a=1 ; a=2; Anybody know what the correct syntax is? Ben -- Ben Edwards - Poole, UK, England WARNING:This email contained partisan views - dont

Re: [PHP] if then else short form

2005-01-21 Thread Richard Davey
Hello Ben, Friday, January 21, 2005, 12:01:09 PM, you wrote: BE I seem to remember seing someone use a abreaviated form of a BE if/them/else of the type that can be used in java. BE It was something like BE if ( a=b ) ? a=1 ; a=2; BE Anybody know what the correct syntax is? It's called a

Re: [PHP] if then else short form

2005-01-21 Thread Sergio Gorelyshev
On Fri, 21 Jan 2005 12:01:09 + Ben Edwards [EMAIL PROTECTED] wrote: I seem to remember seing someone use a abreaviated form of a if/them/else of the type that can be used in java. It was something like if ( a=b ) ? a=1 ; a=2; Anybody know what the correct syntax is? condition ?

Re: [PHP] if then else short form

2005-01-21 Thread Jochem Maas
Ben Edwards wrote: I seem to remember seing someone use a abreaviated form of a if/them/else of the type that can be used in java. It was something like if ( a=b ) ? a=1 ; a=2; $a = ($a == $b) ? 1: 2; which meand: if $a is equal to $b then set $a to 1 otherwise set $a to 2. that is equivalent to:

Re: [PHP] if then else short form

2005-01-21 Thread Jochem Maas
Ben Edwards wrote: I seem to remember seing someone use a abreaviated form of a if/them/else of the type that can be used in java. It was something like if ( a=b ) ? a=1 ; a=2; I called it the 'tertiary' syntax which is not correct: to quote a page I found: that the book refers to a tertiary

Re: [PHP] if then else short form

2005-01-21 Thread Manoj
language tutorial (basic)... if ( a=b ) ? a=1 ; a=2; a = a==b ? 1 : 2 ; Cheer, Manoj Kr. Sheoran Software Engg. Daffodil Software Ltd. web: www.daffodildb.com INDIA On Fri, 2005-01-21 at 17:31, Ben Edwards wrote: I seem to remember seing someone use a abreaviated form of a

RE: [PHP] Seemingly weird regex problem

2005-01-21 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 20 January 2005 20:36, Tim Boring wrote: On Thu, 2005-01-20 at 14:40, Bret Hughes wrote: On Thu, 2005-01-20 at 12:43, Jason Wong wrote: On Friday 21 January 2005 02:16,

Re: [PHP] Re: [suspicious - maybe spam] [PHP] Re: How to access remote files with php?

2005-01-21 Thread Jochem Maas
Sephiroth wrote: The error message: HTTP/1.0 400 Bad Request Server: squid/2.5.STABLE5 Mime-Version: 1.0 Date: Fri, 21 Jan 2005 01:48:05 GMT Content-Type: text/html Content-Length: 1213 Expires: Fri, 21 Jan 2005 01:48:05 GMT X-Squid-Error: ERR_INVALID_URL 0 X-Cache: MISS from ns1.autoera.com.tw

[PHP] [suspicious - maybe spam] Using heredocs

2005-01-21 Thread Tim Burgan
Hello, I've just tried using heredocs [1] for the first time, but I am receiving parse errors always on the very last line of my document. The error is caused by my heredocs. Am I using it correctly? When I replaced the heredoc with a string.. everything worked again. Here's my code with heredocs

[PHP] REPOST: Serving WML

2005-01-21 Thread Mikey
Hi again - thought it best to keep the two topics separately... I have just leased a virtual hosting package and want to provide GPRS access to my email server using WML. Now I have a couple of test pages that I have put up on the server that I want to view, but can't seem to get to them.

Re: [PHP] [suspicious - maybe spam] Using heredocs

2005-01-21 Thread Jochem Maas
Tim Burgan wrote: Hello, I've just tried using heredocs [1] for the first time, but I am receiving parse errors always on the very last line of my document. The error is caused by my heredocs. Am I using it correctly? When I replaced the heredoc with a string.. everything worked again. Here's my

Re: [PHP] REPOST: Serving WML

2005-01-21 Thread Jochem Maas
Mikey wrote: Hi again - thought it best to keep the two topics separately... I have just leased a virtual hosting package and want to provide GPRS access to my email server using WML. Now I have a couple of test pages that I have put up on the server that I want to view, but can't seem to get to

[PHP] Re: [suspicious - maybe spam] Using heredocs

2005-01-21 Thread Jason Barnett
Tim Burgan wrote: Hello, I've just tried using heredocs [1] for the first time, but I am receiving parse errors always on the very last line of my document. The error is caused by my heredocs. Am I using it correctly? When I replaced the heredoc with a string.. everything worked again. Here's my

[PHP] Re: REPOST: Serving WML

2005-01-21 Thread Jason Barnett
Mikey wrote: Hi again - thought it best to keep the two topics separately... I have just leased a virtual hosting package and want to provide GPRS access to my email server using WML. disclaimerI have never built a site that served WML, but I know a small bit about it/disclaimer Now I have a

RE: [PHP] REPOST: Serving WML

2005-01-21 Thread Mikey
you own a phone company? get one of your lakey sysadmins to fix up what you need ;-) LOL! The trouble with lackey sysadmins is that they never do what they are told, always what's kewl - I have long since lost the energy required to beat them into submission! just like with a std net

Re: [PHP] Extending a Class

2005-01-21 Thread Brent Baisley
You've got most of it. Just adding extends MySQL to your page result class will allow you to access all function in the MySQL class. I usually reference functions in the parent class like this: parent::FunctionName() You still reference functions in the current class using $this-, that way you

RE: [PHP] Re: REPOST: Serving WML

2005-01-21 Thread Mikey
This link will probably help you out: http://www.hawhaw.de/faq.htm Lovely jubbly! That is all I need now. I just got through with talking to Virgin (phone company) and they have told me that they have been having problems with their GPRS gateway over the past few days, and having checked I

RE: [PHP] REPOST: Serving WML

2005-01-21 Thread tg-php
Sorry, I didn't completely follow this thread (deleted the messages before I really read them). But I've served WAP/WML before. Made a couple of basic WML scripts and was able to access them via my cell phone. I posted them on a regular web server, nothing fancy. All I had to do is make

Re: [PHP] Re: REPOST: Serving WML

2005-01-21 Thread Jochem Maas
Jason Barnett wrote: Mikey wrote: Hi again - thought it best to keep the two topics separately... I have just leased a virtual hosting package and want to provide GPRS access to my email server using WML. disclaimerI have never built a site that served WML, but I know a small bit about

Re: [PHP] Re: REPOST: Serving WML

2005-01-21 Thread Jochem Maas
Mikey wrote: This link will probably help you out: http://www.hawhaw.de/faq.htm Lovely jubbly! That is all I need now. I just got through with talking to Virgin (phone company) and they have told me that they have been having problems with their GPRS gateway over the past few days, and having

Re: [PHP] REPOST: Serving WML

2005-01-21 Thread Jochem Maas
top posting (ouch) just to say 'rocking info' TG! [EMAIL PROTECTED] wrote: Sorry, I didn't completely follow this thread (deleted the messages before I really read them). ... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] display imap attached files?

2005-01-21 Thread Fredrik Hampus
Hi! Iam trying too make a page where the function is to display an attached .jpg file from a imap mailbox. This is a small code i found and rewrote some... ?php include '/etc/labbuser'; $mbox = imap_open ({localhost:993/imap/ssl/novalidate-cert}INBOX, $imuser, $impass); $mno = 57; $parttypes

[PHP] regular expression help

2005-01-21 Thread Jason
Simple functions to check fix if necessary invalid formating of a MAC address... I seem to be having problems with the global variable $mac not being returned from the fix_mac() function. Any help is appreciated. ?php /* * ex. 00:AA:11:BB:22:CC */ function chk_mac( $mac ) { if( eregi(

Re: [PHP] Re: REPOST: Serving WML

2005-01-21 Thread Jason Barnett
Mikey wrote: This link will probably help you out: http://www.hawhaw.de/faq.htm Lovely jubbly! That is all I need now. I just got through with talking to Virgin (phone company) and they have told me that they have been having problems with their GPRS gateway over the past few days, and having

Re: [PHP] Extending a Class

2005-01-21 Thread Matthew Weier O'Phinney
* Brent Baisley [EMAIL PROTECTED] : You've got most of it. Just adding extends MySQL to your page result class will allow you to access all function in the MySQL class. I usually reference functions in the parent class like this: parent::FunctionName() This is a bad practice when

Re: [PHP] regular expression help

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 00:12, Jason wrote: Simple functions to check fix if necessary invalid formating of a MAC address... I seem to be having problems with the global variable $mac not being returned from the fix_mac() function. Any help is appreciated. Your subject says regular

[PHP] Re: regular expression help

2005-01-21 Thread Jason
Jason wrote: Simple functions to check fix if necessary invalid formating of a MAC address... I seem to be having problems with the global variable $mac not being returned from the fix_mac() function. Any help is appreciated. ?php /* * ex. 00:AA:11:BB:22:CC */ function chk_mac( $mac ) {

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Categories and subcategories

2005-01-21 Thread Phpu
Hi, I need to create multiple categories and subcategories using php and mysql. Something like that - category 1 - subcat 1.1 - subcat 1.2 - subcat 1.2.1 - subcat 1.2.2 - category 2 Does anyone know a godd totorial how to create this in pahp

[PHP] Hidden images.

2005-01-21 Thread Rob Adams
Ok - I've finally got something that sometimes works. http://smada.com/images/hide_image.php I talked to a Delphi programmer, who whipped something out in about 20 minutes. My code is a translation of his. function colorParts($col) { $parts['r'] = ($col 16) 0xFF; $parts['g'] = ($col 8)

[PHP] Static Array declaration within class PHP5

2005-01-21 Thread Marek
Hello I'm trying to create a public static array within a class.(PHP5). First - the following fails: class yadayada { public static $tester[0]=something; public static $tester[1]=something 1; Second - However the following works: class yadayada { public static

[PHP] array problem

2005-01-21 Thread Ahmed Abdel-Aliem
hi if i have an array $listing1 = array(array('title'='yahoo', 'redirect'='www.yahoo.com', 'info'='yahoo website'), array(title='msn', 'redirect'='www.msn.com', 'info='msn website')); $listing2 = array(array('name'='lycos', 'link'='www.lycos.com', 'description'='lycos website'),

Re: [PHP] Re: regular expression help

2005-01-21 Thread RaTT
Hi, From what i can see you dont even need to call global, as your passing variables to the function ? this could be causing the script to confuse itself. hth On Fri, 21 Jan 2005 09:30:21 -0700, Jason [EMAIL PROTECTED] wrote: Jason wrote: Simple functions to check fix if necessary invalid

[PHP] Re: regular expression help

2005-01-21 Thread Jason
You were right, I removed the reference to global $mac and it started working great. Thanks. It seems sometimes another set of eyes to catch stuff really helps... thanks. Jason wrote: Jason wrote: Simple functions to check fix if necessary invalid formating of a MAC address... I seem to be

Re: [PHP] Extending a Class

2005-01-21 Thread Brent Baisley
You're absolutely correct. I was debating on whether to get into inheritance and overloading. I just settled on what PEAR tends to use rather than go into more detail. Thanks for clarifying. On Jan 21, 2005, at 11:18 AM, Matthew Weier O'Phinney wrote: * Brent Baisley [EMAIL PROTECTED] : You've

Re: [PHP] regular expression help

2005-01-21 Thread Bret Hughes
On Fri, 2005-01-21 at 10:12, Jason wrote: Simple functions to check fix if necessary invalid formating of a MAC address... I seem to be having problems with the global variable $mac not being returned from the fix_mac() function. Any help is appreciated. ?php /* * ex.

[PHP] oo arcitecture (Re: [PHP] Extending a Class)

2005-01-21 Thread Ben Edwards
Your email prompted me to think about architecture. What I have is;_ a database class which is the only class with direct access to the database. a table class, which is passed the database class on instantiation. a presenter class which is passed the table class during instantiation. This

[PHP] Re: Static Array declaration within class PHP5

2005-01-21 Thread Jason Barnett
Marek wrote: Hello I'm trying to create a public static array within a class.(PHP5). First - the following fails: class yadayada { public static $tester[0]=something; public static $tester[1]=something 1; Second - However the following works: class yadayada {

Re: [PHP] regular expression help

2005-01-21 Thread Richard Lynch
Jason wrote: Simple functions to check fix if necessary invalid formating of a MAC address... I seem to be having problems with the global variable $mac not being returned from the fix_mac() function. Any help is appreciated. function fix_mac( $mac ) { global $mac; It's really weird to

Re: [PHP] Extending a Class

2005-01-21 Thread Jason Barnett
Brent Baisley wrote: You're absolutely correct. I was debating on whether to get into inheritance and overloading. I just settled on what PEAR tends to use rather than go into more detail. Are you referring to the PEAR::isError (and similar function calls) that you see all over the place in

[PHP] bug in str_split function?

2005-01-21 Thread chris
Sorry if this is a double post, I left the subject off the first one. // I'm running this test code / start ?PHP $test='this is test'; echo $test; $test2=str_split($test); echo $test2; for($i=0;$icount($test2);$i++) { echo $test2[$i].br; } ?

Re: [PHP] Re: multiple sessions on same server/domain

2005-01-21 Thread Richard Lynch
Marek Kilimajer wrote: COKIES, I'm talking about COOKIES. Anytime you talk about cookies or cookie files, you mean session and session files, respectively. These are completely different things, please don't intermingle them. session_set_cookie_params() ^^^ You're talking about a

Re: [PHP] bug in str_split function?

2005-01-21 Thread Greg Donald
On Fri, 21 Jan 2005 12:07:34 -0600, chris [EMAIL PROTECTED] wrote: $test2=str_split($test); Do echo 'pre'; print_r( $test2 ); right here and see if the $test2 array has the data you expect. -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List

Re: [PHP] sendmail crash

2005-01-21 Thread Michiel van der Blonk
Hi New results: This problem does not seem to be Smarty related, although it did occur when Smarty tried to read from memory. Probable cause: PEAR was missing a field in the ini file where the email address was defined, which resulted in empty addresses being given to sendmail. Sendmail doesn't

Re: [PHP] regular expression help

2005-01-21 Thread Jochem Maas
Richard Lynch wrote: Jason wrote: Simple functions to check fix if necessary invalid formating of a MAC address... I seem to be having problems with the global variable $mac not being returned from the fix_mac() function. Any help is appreciated. function fix_mac( $mac ) { global $mac; It's

[PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Categories and subcategories

2005-01-21 Thread Jochem Maas
Phpu wrote: Hi, I need to create multiple categories and subcategories using php and mysql. Something like that its bad practice to state the technology that must be used before you have determined the scope and function of the problem, besides you have to know whether php and mysql are capable

[PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Categories and subcategories

2005-01-21 Thread Jochem Maas
(bl***dy CTRL+enter)... Phpu wrote: Hi, I need to create multiple categories and subcategories using php and mysql. Something like that its bad practice to state the technology that must be used before you have determined the scope and function of the problem, besides you have to know whether php

Re: [PHP] Hidden images.

2005-01-21 Thread Jochem Maas
Rob Adams wrote: Ok - I've finally got something that sometimes works. http://smada.com/images/hide_image.php I talked to a Delphi programmer, who whipped something out in about 20 you talked to a WHAT??? ;-) just kidding minutes. My code is a translation of his. cool of you to share the code

Re: [PHP] Static Array declaration within class PHP5

2005-01-21 Thread Jochem Maas
Marek wrote: Hello I'm trying to create a public static array within a class.(PHP5). First - the following fails: class yadayada { public static $tester[0]=something; public static $tester[1]=something 1; of course this doesn't (ok so its obvious to me) first of its

Re: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Categories and subcategories

2005-01-21 Thread Justin
Jochem Maas wrote: Phpu wrote: Hi, I need to create multiple categories and subcategories using php and mysql. Something like that its bad practice to state the technology that must be used before you have determined the scope and function of the problem, besides you have to know whether php

Re: [PHP] Re: [suspicious - maybe spam] [PHP] [suspicious - maybe spam] Categories and subcategories

2005-01-21 Thread Jochem Maas
Justin wrote: Jochem Maas wrote: Phpu wrote: Hi, I need to create multiple categories and subcategories using php and mysql. Something like that its bad practice to state the technology that must be used before you have determined the scope and function of the problem, besides you have to know

Re: [PHP] bug in str_split function?

2005-01-21 Thread chris
No good. I made the change to this (note the echo ping statements) /// start ?PHP $test='this is test'; echo $test; echo 'brping 1br'; $test2=str_split($test); echo 'ping 2br'; echo 'pre'; for($i=0;$icount($test2);$i++) { print_r($test2[$i]); } echo '/pre'; ?

Re: [PHP] display imap attached files?

2005-01-21 Thread Jochem Maas
Fredrik Hampus wrote: Hi! Iam trying too make a page where the function is to display an attached .jpg file from a imap mailbox. This is a small code i found and rewrote some... ?php include '/etc/labbuser'; $mbox = imap_open ({localhost:993/imap/ssl/novalidate-cert}INBOX, $imuser, $impass);

Re: [PHP] too slow to unset big array (after mem fragment)

2005-01-21 Thread Richard Lynch
Xuefer Tinys wrote: if i have to unset portion of the $oldTracker. i have to scan? or any other way? Perhaps you could store all data with an index of time rounded off to minutes (hours, whatever). Example: ?php //15 minutes -- Change larger/smaller for more/less frequent purges

[PHP] Storing key values in an array

2005-01-21 Thread Todd Cary
I am using an array to populate a drop-down and I would like to have the same value in the key as the value. Using the following, the key is 0,1,2,3...etc. How can I correct that? $file_list = array(); $dir = opendir($doc_dir); while (false !== ($file = readdir($dir))) { if

Re: [PHP] bug in str_split function?

2005-01-21 Thread Jochem Maas
chris wrote: No good. this should work, I rewrote you little test and no probs (as expected): php -r ' $test = this is test; echo $test,\n; $test2 = str_split($test); foreach($test2 as $s) { echo $s.\n; } ' I made the change to this (note the echo ping statements) /// start

Re: [PHP] Upgrading PHP 4.2.2 on Red Hat 9

2005-01-21 Thread Richard Lynch
James Butler wrote: My main issue is that libdb-4.0.so is needed by existing installations of curl, python, pam, cyrus, webalizer, db4, perl, postfix, sendmail, perl-DB_File and on and on. And that's not even close to the end of the old program dependencies list. Upgrading via rpm is going

Re: [PHP] Storing key values in an array

2005-01-21 Thread Jochem Maas
Todd Cary wrote: I am using an array to populate a drop-down and I would like to have the same value in the key as the value. Using the following, the key is 0,1,2,3...etc. How can I correct that? what is there to correct - you are telling me that the value of $file show up as a string and

Re: [PHP] Hidden images.

2005-01-21 Thread Richard Lynch
Rob Adams wrote: Ok - I've finally got something that sometimes works. http://smada.com/images/hide_image.php I dunno what you did to the first file upload button, but as soon as I choose the FIRST file, I get: Warning: imageistruecolor(): supplied argument is not a valid Image resource in

Re: [PHP] Static Array declaration within class PHP5

2005-01-21 Thread Richard Lynch
Marek wrote: Hello I'm trying to create a public static array within a class.(PHP5). First - the following fails: class yadayada { public static $tester[0]=something; public static $tester[1]=something 1; Second - However the following works: class yadayada {

Re: [PHP] Upgrading PHP 4.2.2 on Red Hat 9

2005-01-21 Thread Jochem Maas
Richard Lynch wrote: James Butler wrote: My main issue is that libdb-4.0.so is needed by existing installations of curl, python, pam, cyrus, webalizer, db4, perl, postfix, sendmail, perl-DB_File and on and on. And that's not even close to the end of the old program dependencies list. Upgrading via

Re: [PHP] array problem

2005-01-21 Thread Richard Lynch
Ahmed Abdel-Aliem wrote: how can i group them together into one array to be : http://php.net/array_merge and friends should help -- Like Music? http://l-i-e.com/artists.htm -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] bug in str_split function?

2005-01-21 Thread chris
Still no goodI get the first echo but nothing after it. :^( What bothers me about this whole thing is the original code was working fine. It was only today that this issue arose, when I was making documentation on my code. Now, all of a sudden, it no longer works. After stepping through my

Re: [PHP] bug in str_split function?

2005-01-21 Thread Richard Lynch
chris wrote: No good. I made the change to this (note the echo ping statements) /// start ?PHP $test='this is test'; echo $test; echo 'brping 1br'; $test2=str_split($test); echo 'ping 2br'; echo 'pre'; for($i=0;$icount($test2);$i++) { print_r($test2[$i]);

[PHP] Multiple select boxes - select in one box, populate from DB in second with no refresh!

2005-01-21 Thread Matt Babineau
Hi all - I know this has been covered a lot but my searching has resulting in not much success, was hoping someone had the link to a good page on this. I have on select box that when I select something in it I need the other select box to get vales from a database table with out having the page

Re: [PHP] Hidden images.

2005-01-21 Thread Rob Adams
Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Rob Adams wrote: Ok - I've finally got something that sometimes works. http://smada.com/images/hide_image.php I dunno what you did to the first file upload button, but as soon as I choose the FIRST file, I get:

Re: [PHP] Hidden images.

2005-01-21 Thread Jochem Maas
Richard Lynch wrote: Rob Adams wrote: Ok - I've finally got something that sometimes works. http://smada.com/images/hide_image.php I dunno what you did to the first file upload button, but as soon as I choose the FIRST file, I get: use the BACK button. then fill in the second file upload

Re: [PHP] bug in str_split function?

2005-01-21 Thread chris
Thanks to Richard who pointed me in the right direction. I failed to notice that the str_split function is only for use with php v5, I was run 4.3.10...DOH! In case anyone what the solution here is a rewrite. ?PHP $test='this is test'; $test2=Array();

[PHP] changing emailadress

2005-01-21 Thread M H Topper
Pls tell me how I can change the emailadress with which I subscribed. Thnx in advance Mark Topper _ MSN Webmessenger overal en altijd beschikbaar http://webmessenger.msn.com/ -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Multiple select boxes - select in one box, populate from DB in second with no refresh!

2005-01-21 Thread Matt Babineau
I just found a descent tutorial after another 45 mins of searching and pulling a php file into the ifram to output the data, then pulling the data in from the iframe will work, thanks for your response! I was concerned with cross-browser compatability but hey who cares about netscape4 anyway ;-)

[PHP] Procedural to OOP

2005-01-21 Thread Mike Smith
I am rewriting a project, and have decided to use/learn OOP. I am using ADODB to connect to a MS SQL 2000 box. This code works, but I'd like to know if I'm following good form or if I'm totally missing the boat. I'd also like to include things like the dbhost/username/password, etc in a seperate

Re: [PHP] Hidden images.

2005-01-21 Thread Jochem Maas
Rob Adams wrote: Richard Lynch [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Rob Adams wrote: Ok - I've finally got something that sometimes works. http://smada.com/images/hide_image.php I dunno what you did to the first file upload button, but as soon as I choose the FIRST file, I

Re: [PHP] Multiple select boxes - select in one box, populate from DB in second with no refresh!

2005-01-21 Thread Jochem Maas
Matt Babineau wrote: I just found a descent tutorial after another 45 mins of searching and pulling a php file into the ifram to output the data, then pulling the data in from the iframe will work, thanks for your response! I was concerned with cross-browser compatability but hey who cares about

Re: [PHP] Extending a Class

2005-01-21 Thread Phillip S. Baker
Thank you, This makes allot of sense. However one last question about this. If I access the overrided function from the child class do I access it by. $instanceofchildclass-parent::someMethod(); OR would I still simply just call it $instanceofchildclass-someMethod(); And it would get to use

Re: [PHP] changing emailadress

2005-01-21 Thread R'twick Niceorgaw
On Fri, January 21, 2005 3:48 pm, M H Topper said: Pls tell me how I can change the emailadress with which I subscribed. Thnx in advance Mark Topper just unsubscribe using your old address and subscribe using new address -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[Fwd: [PHP] changing emailadress]

2005-01-21 Thread Jochem Maas
see all those headers below: they are in every email that goes via the list (its a defacto std thing these days) and it tells you everything you need to know. (hint there are bot email addrs mentioned with which you can communicate to manage you subscription) unfortunately you use hotmail -

[PHP] Issue with virtual() calls...

2005-01-21 Thread Potter, Jeff
Hello, Could someone help me understand why later versions of PHP (4.3.9, 4.3.10, 5.0.3) do not maintain the same ordering for virtual() call output as the older versions? Basically, generated pages that worked in PHP 4.3.7 PHP 4.3.8 are now broken. Setting the output_buffering=0 seems to

Re: [PHP] Storing key values in an array

2005-01-21 Thread Todd Cary
Jochem - The problem is the sort()! I did not realize that it replaces the key with an integer. Instead, I should have used ksort(). $dir = opendir($doc_dir); while (false !== ($file = readdir($dir))) { if (($file != .) ($file != ..)) $file_list[$file] = $file; }

[PHP] help with nl2br

2005-01-21 Thread Phillip S. Baker
Greetings all, Due to style sheet stuff I need to modify the nl2br (IE create or use a different function). I am pulling data from a database and using nl2br, which does the standard. some text copybr / br / Some more copybr / What I want instead is pSome text copy/p psome more text copy/p

RE: [PHP] help with nl2br

2005-01-21 Thread Jay Blanchard
[snip] some text copybr / br / Some more copybr / What I want instead is pSome text copy/p psome more text copy/p [/snip] What you want to do is start with a p, then when you run into 2 \n\n you want to replace it with /pp and then end with a /p http://www.php.net/preg_replace -- PHP General

[PHP] Notice:Use of undefined constant

2005-01-21 Thread Tamas Hegedus
Hi, On my system (Fedora 2) we (users) can use the following php: PHP 4.3.10 (cgi) (built: Dec 21 2004 09:18:25) Copyright (c) 1997-2004 The PHP Group Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies According to our system administrator php works in safe mode. I do not know (think)

[PHP] Re: [PHP-DB] checkboxes

2005-01-21 Thread Joe Harman
Well.. i just got done doing something like what you are trying to accomplish... you will need to name your check boxes like so : name=completed[] when the form is submitted, I use something like this and shove it into a field in the database: if($_POST['completed'] NULL) { // This makes one

[PHP] nl2br misprint

2005-01-21 Thread Scott DeMers
From the function page on php.net ( http://us4.php.net/manual/en/function.nl2br.php ): Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions before 4.0.5 will return string with 'br' inserted before newlines instead of 'br /'. Is this a misprint, ot does the revised function

[PHP] Re: [PHP-DB] checkboxes

2005-01-21 Thread M. Sokolewicz
Joe Harman wrote: Well.. i just got done doing something like what you are trying to accomplish... you will need to name your check boxes like so : name=completed[] when the form is submitted, I use something like this and shove it into a field in the database: if($_POST['completed'] NULL) { //

[PHP] Re: [PHP-DB] checkboxes

2005-01-21 Thread M. Sokolewicz
M. Sokolewicz wrote: Joe Harman wrote: Well.. i just got done doing something like what you are trying to accomplish... you will need to name your check boxes like so : name=completed[] when the form is submitted, I use something like this and shove it into a field in the database:

[PHP] Re: nl2br misprint

2005-01-21 Thread M. Sokolewicz
Scott DeMers wrote: From the function page on php.net ( http://us4.php.net/manual/en/function.nl2br.php ): Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions before 4.0.5 will return string with 'br' inserted before newlines instead of 'br /'. Is this a misprint, ot does the

Re: [PHP] nl2br misprint

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 07:36, Scott DeMers wrote: From the function page on php.net ( http://us4.php.net/manual/en/function.nl2br.php ): Starting with PHP 4.0.5, nl2br() is now XHTML compliant. All versions before 4.0.5 will return string with 'br' inserted before newlines instead of

RE: [PHP] nl2br misprint

2005-01-21 Thread Scott DeMers
Please disregard - I read it wrong. -Original Message- From: Scott DeMers [mailto:[EMAIL PROTECTED] Sent: Friday, January 21, 2005 6:37 PM To: php-general@lists.php.net Subject: [PHP] nl2br misprint From the function page on php.net ( http://us4.php.net/manual/en/function.nl2br.php ):

Re: [PHP] Notice:Use of undefined constant

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 06:20, Tamas Hegedus wrote: In a file, which is included into all my scripts, I defined constants (for MySQL access). PHP claims these constants as undifined constants, however, if I let them print out they have the right values (HOST='localhost'; NOT:

[PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Phillip S. Baker
Greetings all, I am pulling records from a MySQL DB. I am walking through the array using the whole. if ( $row = mysql_fetch_assoc($result)) { do{ //Some stuff }while ( $row = mysql_fetch_assoc($result)); } What I am wondering is if there is something I can do like.

Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 08:02, Phillip S. Baker wrote: I am pulling records from a MySQL DB. I am walking through the array using the whole. You do realise that doing this ... if ( $row = mysql_fetch_assoc($result)) { do{ //Some stuff }while ( $row =

Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 08:11, Jason Wong wrote: On Saturday 22 January 2005 08:02, Phillip S. Baker wrote: I am pulling records from a MySQL DB. I am walking through the array using the whole. You do realise that doing this ... if ( $row = mysql_fetch_assoc($result)) { do

Re: [PHP] Re: multiple sessions on same server/domain

2005-01-21 Thread Jordi Canals
On Fri, 21 Jan 2005 09:43:38 -0800 (PST), Richard Lynch [EMAIL PROTECTED] wrote: Thus my point remains: On a shared server, I don't need to resort to calling this function to hijack your Cookie/session. PHP can read the raw session files. I can write a PHP script to read the raw session

[PHP] suspicious? maybe spam? what?

2005-01-21 Thread Chris W. Parker
rant Will whoever is causing [suspicious - maybe spam] to appear in the subject of the PHP emails PLEASE WHITELIST THE PHP LIST. Ugh.. it's so annoying. /rant Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Notice:Use of undefined constant

2005-01-21 Thread Tamas Hegedus
In a file, which is included into all my scripts, I defined constants (for MySQL access). PHP claims these constants as undifined constants, however, if I let them print out they have the right values (HOST='localhost'; NOT: HOST='HOST'). Where do you print them out? In the file in which they're

Re: [PHP] Notice:Use of undefined constant

2005-01-21 Thread Jason Wong
On Saturday 22 January 2005 08:28, Tamas Hegedus wrote: define( HOST, 'localhost'); define('HOST', 'localhost'); -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

Re: [PHP] Using List() and a do-while loop with MySQL results.

2005-01-21 Thread Chris
Excerpt from http://www.php.net/list *Note: * *list()* only works on numerical arrays and assumes the numerical indices start at 0. So the best way , in my opinion, to achieve this effect would be: while(list($id, $someinfo) = mysql_fetch_row($result)) { //Some stuff } Chris Phillip

  1   2   >