Re: [PHP] SESSIONS vs. MySQL

2008-09-21 Thread Per Jessen
Eric Butera wrote: > > Wouldn't you (probably) loose sessions in /tmp if the box crashed > also? No, that wouldn't be the default behaviour. /tmp is typically on the filesystem, and it's not cleared on every reboot (unless your system has been configured to do so). /Per Jessen, Zürich -- P

Re: [PHP] How to detect the host (window or Linux)?

2008-09-21 Thread Thodoris
$win = stripos(PHP_OS, 'win') !== false ? true : false; Anderson Franco Web Developer Franco Tecnologia Bras. e Com. LTDA Phone / Fax: +55 (19) 3455 2262 Email: [EMAIL PROTECTED] MSN/GTalk: [EMAIL PROTECTED] Skype: francotecnologia On Sat, Sep 20, 2008 at 7:38 PM, hce <[EMAIL PROTECTED]> wro

Re: [PHP] SESSIONS vs. MySQL

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 6:48 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Philip Thompson schreef: >> >> Hi all. >> >> Let me start out by saying, I have STFW and read through the list >> archives. Now that that's out of the way. >> >> To speed up our application, we want to implement using SESSION

Re: [PHP] SESSIONS vs. MySQL

2008-09-21 Thread Jochem Maas
Philip Thompson schreef: Hi all. Let me start out by saying, I have STFW and read through the list archives. Now that that's out of the way. To speed up our application, we want to implement using SESSIONs in some locations. Beforehand, on every page, we would run approximately 30-40 querie

Re: [PHP] Associative array issues with loading values after initialization

2008-09-21 Thread Jochem Maas
funny how that perl code looks so much like php ... or is it the other way around. Thomas Bolioli schreef: I should add, it is not working with this funciton, which could be the source of the issue. function dropbox_from_list($list, $selected_index){ while ($nex = next($list)) { $k =

Re: [PHP] Passing variables between pages

2008-09-21 Thread Nathan Rixham
Robert Cummings wrote: On Sun, 2008-09-21 at 20:39 +0100, Stut wrote: On 21 Sep 2008, at 18:13, Nathan Rixham wrote: tedd wrote: At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's

Re: [PHP] Passing variables between pages

2008-09-21 Thread Robert Cummings
On Sun, 2008-09-21 at 20:39 +0100, Stut wrote: > On 21 Sep 2008, at 18:13, Nathan Rixham wrote: > > tedd wrote: > >> At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: > >>> Am I missing something here..? > >> Yes. You are missing the point. > >>> This is exactly the same; you don't need $_SESSION's in

Re: [PHP] Passing variables between pages

2008-09-21 Thread Stut
On 21 Sep 2008, at 18:13, Nathan Rixham wrote: tedd wrote: At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's in this case because all you're doing is POST'ing the data every time.

Re: [PHP] was [PHP] Re: render html

2008-09-21 Thread Stut
On 21 Sep 2008, at 16:18, tedd wrote: At 4:06 PM +0100 9/21/08, Ashley Sheridan wrote: I'm sorry, I didn't mean to be insulting! I do agree that you will get those errors if you choose the wrong doctype, and by wrong I mean one that is mismatched with the types of tag you try to use. Maybe

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 15:24 -0400, Eric Butera wrote: > On Sun, Sep 21, 2008 at 3:26 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > On Sun, 2008-09-21 at 15:21 -0400, Eric Butera wrote: > >> On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan > >> <[EMAIL PROTECTED]> wrote: > >> > On Sun, 2008-0

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 3:26 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Sun, 2008-09-21 at 15:21 -0400, Eric Butera wrote: >> On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan >> <[EMAIL PROTECTED]> wrote: >> > On Sun, 2008-09-21 at 14:34 -0400, Eric Butera wrote: >> > >> >> Michelle Konzac

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 15:21 -0400, Eric Butera wrote: > On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan > <[EMAIL PROTECTED]> wrote: > > On Sun, 2008-09-21 at 14:34 -0400, Eric Butera wrote: > > > >> Michelle Konzack wrote: > >>> > >>> **

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 3:17 PM, Ashley Sheridan <[EMAIL PROTECTED]> wrote: > On Sun, 2008-09-21 at 14:34 -0400, Eric Butera wrote: > >> Michelle Konzack wrote: >>> >>> >>> * Do not Cc: me, because I READ THIS LIST, if I

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 14:34 -0400, Eric Butera wrote: > > Michelle Konzack wrote: > >> > >> > > >> * Do not Cc: me, because I READ THIS LIST, if I write here > * > >> *Keine Cc: am mich, ich LESE DIESE LISTE wenn ic

Re: [PHP] Re: Header() - POST

2008-09-21 Thread Stut
On 20 Sep 2008, at 01:23, Michelle Konzack wrote: Am 2008-09-05 17:11:58, schrieb Stut: You're trying to post to the browser which won't know how to handle it. The header() function is modifying the response headers that are being sent back to the browser, they do not create a new request. If y

Re: [PHP] Re: Problem with sorting

2008-09-21 Thread Eric Butera
On Sun, Sep 21, 2008 at 1:19 PM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Michelle Konzack wrote: >> >> >> * Do not Cc: me, because I READ THIS LIST, if I write here * >> *Keine Cc: am mich, ich LESE DIESE LI

Re: [PHP] Re: OOP - Calling methods from classes that are inheriting?

2008-09-21 Thread Jochem Maas
Maciek Sokolewicz schreef: class myClass { public function func() { return "Yay!!"; } } class otherClass extends myClass { public function otherFunc() { echo $this->func(); } } $class=new otherClass(); echo $class->otherFunc(); oh yes, it's that simple. 2 things

Re: [PHP] Re: OOP - Calling methods from classes that are inheriting?

2008-09-21 Thread Maciek Sokolewicz
class myClass { public function func() { return "Yay!!"; } } class otherClass extends myClass { public function otherFunc() { echo $this->func(); } } $class=new otherClass(); echo $class->otherFunc(); oh yes, it's that simple. 2 th

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 11:26 -0400, tedd wrote: > At 4:11 PM +0100 9/21/08, Ashley Sheridan wrote: > >On Sun, 2008-09-21 at 10:02 -0400, tedd wrote: > >> At 2:24 PM +0100 9/21/08, Ashley Sheridan wrote: > >> > > >> >The bgsound tag is not in HTML 4 or XHTML 1 specifications, and I > >> >wouldn't

Re: [PHP] Re: OOP - Calling methods from classes that are inheriting?

2008-09-21 Thread Ben Stones
Hi, maybe if I post below what I'm trying to do it may make more sense: class myClass { public function func() { $hello = "Yay!!"; } } class otherClass extends myClass { public function otherFunc() { echo parent::func(); } }

[PHP] Re: Problem with sorting

2008-09-21 Thread Nathan Rixham
Michelle Konzack wrote: * Do not Cc: me, because I READ THIS LIST, if I write here * *Keine Cc: am mich, ich LESE DIESE LISTE wenn ich hier schreibe* **

Re: [PHP] Public in Classes

2008-09-21 Thread Jochem Maas
Ben Stones schreef: Hi, I have this piece of code that I have created: class userQueries { public function numberUsers() { $get_users=mysql_query("SELECT * FROM `users` WHERE `online` < NOW()") or exit("../includes/error.php"); } } class usersOnline extends userQueries { pu

[PHP] Re: OOP - Calling methods from classes that are inheriting?

2008-09-21 Thread Lupus Michaelis
Ben Stones a écrit : Hope I have made myself as clear as possible! I did'nt understand what you mean, but I guess you're seeking for the parent keyword. Read again the PHP manual about OOP. -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.ph

Re: [PHP] Passing variables between pages

2008-09-21 Thread Nathan Rixham
tedd wrote: At 8:31 PM +0100 9/20/08, Nathan Rixham wrote: Am I missing something here..? Yes. You are missing the point. This is exactly the same; you don't need $_SESSION's in this case because all you're doing is POST'ing the data every time.. And that's what you are missing -- it's not

[PHP] OOP - Calling methods from classes that are inheriting?

2008-09-21 Thread Ben Stones
Hi, How do I call methods from classes that are inherited? I want to add a mysql_num_rows() function to a second class that is an addon to a MySQL query in the first class. The first class will be used in several different classes for different parts of the site so I don't want to directly add the

Re: [PHP] was [PHP] Re: render html

2008-09-21 Thread b
tedd wrote: At 8:17 AM +0200 9/21/08, Lupus Michaelis wrote: Michelle Konzack a écrit : $body = "helloierhellohello"; ^ Should be Definitely no : Or ma

[PHP] [Fwd: Problem of enable ( show ) Personal MailBox Quota Usage]

2008-09-21 Thread edwardspl
Dear All, Would you mind to help more ? Thanks ! Edward. Original Message Subject:Problem of enable ( show ) Personal MailBox Quota Usage Date: Sat, 06 Sep 2008 21:39:50 +0800 From: [EMAIL PROTECTED] To: IMP <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] <[EMAIL

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-21 Thread tedd
At 4:11 PM +0100 9/21/08, Ashley Sheridan wrote: On Sun, 2008-09-21 at 10:02 -0400, tedd wrote: At 2:24 PM +0100 9/21/08, Ashley Sheridan wrote: > >The bgsound tag is not in HTML 4 or XHTML 1 specifications, and I >wouldn't recommend its use, ever. I didn't say it was, nor did I recommend

Re: [PHP] was [PHP] Re: render html

2008-09-21 Thread tedd
At 4:06 PM +0100 9/21/08, Ashley Sheridan wrote: I'm sorry, I didn't mean to be insulting! I do agree that you will get those errors if you choose the wrong doctype, and by wrong I mean one that is mismatched with the types of tag you try to use. Maybe I need to learn something here. Are you

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 10:02 -0400, tedd wrote: > At 2:24 PM +0100 9/21/08, Ashley Sheridan wrote: > > > >The bgsound tag is not in HTML 4 or XHTML 1 specifications, and I > >wouldn't recommend its use, ever. > > > I didn't say it was, nor did I recommend it -- I only pointed out the > embed tag

Re: [PHP] was [PHP] Re: render html

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 09:55 -0400, tedd wrote: > At 2:27 PM +0100 9/21/08, Ashley Sheridan wrote: > > > >You will only get the errors you describe if you've messed up the > >document type declaration. > > Ash, I know you don't mean to be insulting, but I didn't "mess up" my > DOCTYPE -- give me s

[PHP] Re: Calling methods from others classes

2008-09-21 Thread Colin Guthrie
Ben Stones wrote: Hi, I have this piece of code that I have created: class userQueries { public function numberUsers() { $get_users=mysql_query("SELECT * FROM `users` WHERE `online` < NOW()") or exit("../includes/error.php"); } } class usersOnline extends userQueries { publ

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-21 Thread tedd
At 2:24 PM +0100 9/21/08, Ashley Sheridan wrote: The bgsound tag is not in HTML 4 or XHTML 1 specifications, and I wouldn't recommend its use, ever. I didn't say it was, nor did I recommend it -- I only pointed out the embed tag was for Netscape and bgsound tag was used for other browsers.

Re: [PHP] was [PHP] Re: render html

2008-09-21 Thread tedd
At 2:27 PM +0100 9/21/08, Ashley Sheridan wrote: You will only get the errors you describe if you've messed up the document type declaration. Ash, I know you don't mean to be insulting, but I didn't "mess up" my DOCTYPE -- give me some credit for knowing a little about this. I always use

[PHP] Calling methods from others classes

2008-09-21 Thread Ben Stones
Hi, I have this piece of code that I have created: class userQueries { public function numberUsers() { $get_users=mysql_query("SELECT * FROM `users` WHERE `online` < NOW()") or exit("../includes/error.php"); } } class usersOnline extends userQueries { public function usersOnl

Re: [PHP] Error message

2008-09-21 Thread tedd
At 10:26 AM +0100 9/21/08, Ashley Sheridan wrote: It's an easy mistake to make, not just reserved for rookies ;) I had a similar problem Me too, I think we've all been bitten by that. The point is simply don't send anything to the browser before "if you're going to be using session_start();

Re: [PHP] was [PHP] Re: render html

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 09:16 -0400, tedd wrote: > At 8:17 AM +0200 9/21/08, Lupus Michaelis wrote: > >Michelle Konzack a écrit : > >>>$body = "helloierhellohello"; > >> ^ > >> Should be > > > > Definitely no : > > > >

Re: [PHP] Re: Browser could not get mp3 files from http site

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 08:29 -0400, tedd wrote: > At 5:35 AM +0200 9/20/08, Michelle Konzack wrote: > >Am 2008-09-14 13:54:01, schrieb hce: > >> I've tried the object tag as Ash suggested, the object tag crashed > >> firefox): > >> > >> (1) If I open following audio.html directly from "Open File"

[PHP] was [PHP] Re: render html

2008-09-21 Thread tedd
At 8:17 AM +0200 9/21/08, Lupus Michaelis wrote: Michelle Konzack a écrit : $body = "helloierhellohello"; ^ Should be Definitely no : Or maybe for buggy

Re: [PHP] Public in Classes

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 12:24 +0100, Ben Stones wrote: > Hi, > > Just started with object oriented programming and glad I have come across > it, just need a few things clearing up. > > When I make a variable or method public, does this mean that it can be used > outside of classes, for instance in

Re: [PHP] Public in Classes

2008-09-21 Thread Ben Stones
Hi, I have this piece of code that I have created: class userQueries { public function numberUsers() { $get_users=mysql_query("SELECT * FROM `users` WHERE `online` < NOW()") or exit("../includes/error.php"); } } class usersOnline extends userQueries { public function usersOnl

Re: [PHP] Re: Header() - POST

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 14:29 +0200, Lupus Michaelis wrote: > Maciek Sokolewicz a écrit : > > > Your xss answer is moot. XSS attacks can (almost) just as easily be > > performed via POST as they can via GET. > >No, because you can't click on a link that make a post. Maybe on > unsecured brows

Re: [PHP] Re: geolocation

2008-09-21 Thread tedd
At 9:56 AM +0200 9/21/08, Per Jessen wrote: Michelle Konzack wrote: Am 2008-09-02 15:05:05, schrieb clive: Hi, Have any developed a site that determines a users location based on IP address, Im not looking for accurate locations, just what country they are coming from. I know I could p

[PHP] Re: Header() - POST

2008-09-21 Thread Lupus Michaelis
Maciek Sokolewicz a écrit : Your xss answer is moot. XSS attacks can (almost) just as easily be performed via POST as they can via GET. No, because you can't click on a link that make a post. Maybe on unsecured browser that allows Xhr (and a POST so) on every sites on the Internet. -- Mi

[PHP] Re: Browser could not get mp3 files from http site

2008-09-21 Thread tedd
At 5:35 AM +0200 9/20/08, Michelle Konzack wrote: Am 2008-09-14 13:54:01, schrieb hce: I've tried the object tag as Ash suggested, the object tag crashed firefox): (1) If I open following audio.html directly from "Open File" file:///home/webserver/audio.html, the embed tag works just fine,

Re: [PHP] Re: geolocation

2008-09-21 Thread Michael Kubler
This is a slightly OT but along the same lines. I've found that the main way that ISP's and large content hosts control who can access their site and from where is by using BGP routing (Border Gateway Protocol), and other advanced things that are beyond the control of the majority of webserver

[PHP] Re: Browser could not get mp3 files from http site

2008-09-21 Thread tedd
At 5:29 AM +0200 9/20/08, Michelle Konzack blubbered forth: Am 2008-09-12 18:14:23, schrieb hce: > Whoa dude -- not only is putting width and height in a tag not good practice, it's not necessary. Think again. tedd -- --- http://sperling.com http://ancientstones.com http://earthsto

Re: [PHP] Public in Classes

2008-09-21 Thread Jochem Maas
Ben Stones schreef: Hi, Just started with object oriented programming and glad I have come across it, just need a few things clearing up. When I make a variable or method public, does this mean that it can be used outside of classes, for instance in other classes or as well as instantiating cla

Re: [PHP] Public in Classes

2008-09-21 Thread Ólafur Waage
Here you go. http://talks.php.net/show/php5_ca/4 Ólafur Waage [EMAIL PROTECTED] 2008/9/21 Ben Stones <[EMAIL PROTECTED]>: > Hi, > > Just started with object oriented programming and glad I have come across > it, just need a few things clearing up. > > When I make a variable or method public, doe

[PHP] Public in Classes

2008-09-21 Thread Ben Stones
Hi, Just started with object oriented programming and glad I have come across it, just need a few things clearing up. When I make a variable or method public, does this mean that it can be used outside of classes, for instance in other classes or as well as instantiating classes? So if I made it

[PHP] Re: Header() - POST

2008-09-21 Thread Maciek Sokolewicz
Lupus Michaelis wrote: Michelle Konzack a écrit : Why using JS? echo ""; would do the trick... No, because it'll not send back the datas in the hide form. And if you suggest to pass datas in a HTTP GET, I'll answer XSS in the scope :) Your xss answer is moot. XSS attacks can (almos

Re: [PHP] Re: render html

2008-09-21 Thread Ashley Sheridan
On Sun, 2008-09-21 at 08:17 +0200, Lupus Michaelis wrote: > Michelle Konzack a écrit : > >> $body = "helloierhellohello"; > > ^ > > Should be > >Definitely no : > > >

Re: [PHP] Error message

2008-09-21 Thread Ashley Sheridan
On Sat, 2008-09-20 at 23:48 -0500, Shawn McKenzie wrote: > Terry J Daichendt wrote: > > The error message told it all. Jochem was correct albiet not in the > > style I prefer. I had the code in an HTML page after the header. I've > > been a programmer for 15 years but I'm brand new to PHP. Anyon

Re: [PHP] Re: Thank you...

2008-09-21 Thread Jochem Maas
Dan Joseph schreef: Look... Spam the list, but PLEASE do NOT open up this thread again we all let it rest 3 weeks ago. wtf, Michelle just stated that her 4 daughters we're killed in Casablanca less than a year ago and all you can say is: "PLEASE do NOT open up this thread again"

[PHP] Re: Browser could not get mp3 files from http site

2008-09-21 Thread Lupus Michaelis
Michelle Konzack a écrit : It is a Netscape/Mozilla Extension: Are you kidding ? This is normalized thing : -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

Re: [PHP] Re: geolocation

2008-09-21 Thread Per Jessen
Michelle Konzack wrote: > Am 2008-09-02 15:05:05, schrieb clive: >> Hi, >> >> Have any developed a site that determines a users location based on >> IP address, Im not looking for accurate locations, just what country >> they are coming from. >> >> I know I could possible get a list of IP blocks

[PHP] Re: Header() - POST

2008-09-21 Thread Lupus Michaelis
Michelle Konzack a écrit : Why using JS? echo ""; would do the trick... No, because it'll not send back the datas in the hide form. And if you suggest to pass datas in a HTTP GET, I'll answer XSS in the scope :) -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP Genera