[PHP] PHP.ini setup, config, installation & recognition?

2005-01-21 Thread Joseph E. Maxwell
Hello, I am setting up a program that requires allow_call_time_pass_reference to be enabled. I've set allow_call_time_pass_reference = ON in the /usr/local/etc/php.ini file grep -n allow_call_time_pass_reference /usr/local/etc/php.ini 70: - allow_call_time_pass_reference = 1 [Code cleanliness

Re: [PHP] control REMOTE_ADDR header

2005-01-21 Thread Greg Donald
On Sat, 22 Jan 2005 06:52:37 +0300, Alawi Albaity <[EMAIL PROTECTED]> wrote: > I Want to control some privacy is there class to help me do that ? http://www.anonymizer.com/ -- Greg Donald Zend Certified Engineer http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] Classes and parents.

2005-01-21 Thread Jochem Maas
had to better myself... Jochem Maas wrote: Dmitry wrote: Greetings. If i run this code (php5): -- class a { function say() { echo "A"; } function run() { $this->say(); } } class b extends a { function say() { echo "B"; } function run() { parent::run(); }

Re: [PHP] Classes and parents.

2005-01-21 Thread Jochem Maas
Dmitry wrote: Greetings. If i run this code (php5): -- class a { function say() { echo "A"; } function run() { $this->say(); } } class b extends a { function say() { echo "B"; } function run() { parent::run(); } } $obj = new b; $obj->run(); --

Re: [PHP] Classes and parents.

2005-01-21 Thread Matthew Fonda
the run function in b overrides the run function in a, thats why it echo's "B" On Fri, 2005-01-21 at 18:37, Dmitry wrote: > Greetings. > > If i run this code (php5): > -- > class a { > function say() { echo "A"; } > function run() { $this->say(); } > } >

Re: [PHP] control REMOTE_ADDR header

2005-01-21 Thread Alawi Albaity
I Want to control some privacy is there class to help me do that ? On Sun, 16 Jan 2005 19:59:30 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > Alawi Albaity wrote: > > how can I can send http request with my chosen REMOTE_ADDR is there a > > class > > to do that or method in php ? > >

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

2005-01-21 Thread Xuefer Tinys
On Fri, 21 Jan 2005 11:49:30 -0800 (PST), Richard Lynch <[EMAIL PROTECTED]> wrote: > > Perhaps you could store all data with an index of time rounded off to > minutes (hours, whatever). > > Example: > > //15 minutes -- Change larger/smaller for more/less frequent purges > $purge_time = 60 *

Re: [PHP] help with nl2br

2005-01-21 Thread Jochem Maas
Phillip S. Baker wrote: 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. ... .html: some text copy Some more copy ... .css: .ParaFakeOrWhatEver {

php-general@lists.php.net

2005-01-21 Thread Jochem Maas
Dear Todd, to avoid the rants of the likes below in future, please post your actual code ;-) Todd Cary wrote: Jochem - The problem is the sort()! I did not realize that it replaces the key just for the sake of history your __complete__ O(*&^&*^$ original post: = I am using an array to p

Re: [PHP] nl2br misprint

2005-01-21 Thread Bret Hughes
On Fri, 2005-01-21 at 17:52, Jason Wong wrote: > 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

Re: [PHP] help with nl2br

2005-01-21 Thread Karthik
Hey, I would just suggest that you "Explode" the data based on \n and then "walk" through it adding and tags as necessary.. shouldn't be too diffcult. hth -K On Fri, 21 Jan 2005 14:19:38 -0800, Phillip S. Baker <[EMAIL PROTECTED]> wrote: > Greetings all, > > Due to style sheet stuff I n

[PHP] Classes and parents.

2005-01-21 Thread Dmitry
Greetings. If i run this code (php5): -- class a { function say() { echo "A"; } function run() { $this->say(); } } class b extends a { function say() { echo "B"; } function run() { parent::run(); } } $obj = new b; $obj->run(); --

RE: [PHP] help with nl2br

2005-01-21 Thread Samuel DeVore
You might check out http://photomatt.net/scripts/autop "Call this function on the text you want to convert. Think of this code like nl2br on steroids. This is basically a cross-platform set of regular expressions that takes text formatted only by newlines and transforms it into text properly marke

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

2005-01-21 Thread Phillip S. Baker
Thanks. That was the problem. I switched it to FetchRow and got what I was looking for. -- Blessed Be Phillip "Chris" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Excerpt from http://www.php.net/list > > "*Note: * *list()* only works on numerical arrays and assumes the > numeric

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

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

[PHP] suspicious? maybe spam? what?

2005-01-21 Thread Chris W. Parker
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. Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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 sessi

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

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 =

[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] 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: HOST='HOS

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] 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 '' inserted before newlines > instead o

[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 '' inserted before newlines instead of ''." Is this a misprint, ot does the revised

[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: if($_POST['com

[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] 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 '' inserted before newlines instead of ''." Is this a misprint, ot does the revised function actually

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

RE: [PHP] help with nl2br

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

[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 copy Some more copy What I want instead is Some text copy some more text copy Again this is becaus

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

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

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,

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

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

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

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. ping 1'; $strSize=strlen($test); for($i=0;$i

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

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

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

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 > $test='this is test'; > echo $test; > echo 'ping 1'; > $test2=str_split($test); > echo 'ping 2'; > echo ''; > for($i=0;$i { > print_r($test2[$i]); > } > echo ''; > ?> > /

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

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

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 go

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) /// st

[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] 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: If you make the $purge_time *TOO* small, smaller than the frequency with which the

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... include '/etc/labbuser'; $mbox = imap_open ("{localhost:993/imap/ssl/novalidate-cert}INBOX", "$imuser", "$impass");

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 ping 1'; $test2=str_split($test); echo 'ping 2'; echo ''; for($i=0;$i'; ?> /// end result is now / this is test ping 1 / "Greg Donald" <[EMAIL PROTECTE

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

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 gener

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

[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

[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

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 re

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

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 ''; 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 (http://www.p

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

[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 "; } ?> / end // I'm expecting this is a test Array t h i s i s a t e s t // the output is this is test The problem seems to b

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 PEAR

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

[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 { pu

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

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. > > /* > * ex. 00:AA:11:BB:22

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

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

[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'), array(n

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

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

[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. global $mac; if( eregi( "^[0-9A-Fa-f]{2}\:[0-9A-Fa-f]{2}\:[0-

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 e

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 inh

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 che

[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. /* * ex. 00:AA:11:BB:22:CC */ function chk_mac( $mac ) { if( eregi( "^[0-9A

[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... include '/etc/labbuser'; $mbox = imap_open ("{localhost:993/imap/ssl/novalidate-cert}INBOX", "$imuser", "$impass"); $mno = "57"; $partty

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

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 che

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. I have never built a site that served WML, but I know a small bit about it Now I have a cou

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 sur

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 c

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 y

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 con

[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. I have never built a site that served WML, but I know a small bit about it Now I have a couple of test pages that

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

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 th

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 co

  1   2   >