Re: [PHP] Need assistance using sendmail or mail()

2008-01-29 Thread Nathan Nobbe
On Jan 30, 2008 2:47 AM, Per Jessen <[EMAIL PROTECTED]> wrote: > Philip, please state what sort of problems you are having. mail() and > sendmail are both easy to use from php. > And please don't post another 2000 lines of code. No-one is going to > read them. amen to that brother! :) -nathan -

Re: [PHP] Need assistance using sendmail or mail()

2008-01-29 Thread Per Jessen
philip wrote: > Hi everyone, > > I need assistance using sendmail or mail() as my web hosting service > does not allow opening sockets. > > This is the code I use: Philip, please state what sort of problems you are having. mail() and sendmail are both easy to use from php. And please don't po

Re: [PHP] call to a member function select() on a non object.

2008-01-29 Thread Jim Lucas
nihilism machine wrote: // Connect to the database public function __construct() { $DB = new db(); Everything Nathan said, plus change the $DB to $this->DB in your construct() method. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php

Re: [PHP] Sum of results

2008-01-29 Thread Nathan Nobbe
On Jan 30, 2008 1:58 AM, Dax Solomon Umaming <[EMAIL PROTECTED]> wrote: > I've tried Googling this out but failed to search for an answer to this, so > I'm posting to this list. I'd like to know if there's a way to get the sum > this results: you can simply sum them as you print the report $sum =

Re: [PHP] Mysql session handler?

2008-01-29 Thread Chris
Mike Yrabedra wrote: Can anyone recommend a good php-mysql session handler class? http://www.php.net/manual/en/function.session-set-save-handler.php#79706 looks ok. -- Postgresql & php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-29 Thread Chris
Barney Tramble wrote: Hey I have a script that I am trying to figure out to allow a remote file to be sent to a client's browser. It works ok for small files, but it keeps timing out for large files. I don't think it should even take as long as it does (i.e. about 10seconds) before it pops u

[PHP] Sum of results

2008-01-29 Thread Dax Solomon Umaming
Hi; I've tried Googling this out but failed to search for an answer to this, so I'm posting to this list. I'd like to know if there's a way to get the sum this results: // Results Individual Daily Consumption //AccountNo : Consumption 4146121002: 1.42 4146111002: 0.29 4146113002: 1.38 414611000

Re: [PHP] Another question about functions...

2008-01-29 Thread Chris
What's happening is, I have the code set and it downloads the file into excel, but it doesn't have the database fields in it, rather a copy of the entire webpage which it trys to put into excel. Below is the code that I am using in my function to export the records: echo $select . "\n";

[PHP] php embeded in html after first submit html disappear

2008-01-29 Thread Janet N
Hi there, I have two forms on the same php page. Both forms has php embeded inside html with it's own submit button. How do I keep the second form from not disappearing when I click submit on the first form? My issue is that when I click the submit button from the first form (register), the sec

Re: [PHP] calling java within php setup?

2008-01-29 Thread Janet N
I have root; I was able to compile php with java and working now. Thanks all! On Jan 16, 2008 4:06 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Tue, January 15, 2008 5:32 pm, Jochem Maas wrote: > > Janet N schreef: > > with a bit of luck you'll then have a .so file that is your new > > ext

Re: [PHP] call to a member function select() on a non object.

2008-01-29 Thread Nathan Nobbe
change $rows = $DB->select("SELECT * Users WHERE Email='$Email', AND Password='$PasswordEncoded'"); to $rows = $this->DB->select("SELECT * Users WHERE Email='$Email', AND Password='$PasswordEncoded'"); you have to always reference the current instance w/ the $this ke

[PHP] potentially __sleep() bug

2008-01-29 Thread Nathan Nobbe
all, i was playing around w/ some object serialization tonight during further exploration of spl and i stumbled on what appears to be a bug in the behavior of the __sleep() magic method. here is the pertinent documentation on the method ..is supposed to return an array with the names of all v

[PHP] call to a member function select() on a non object.

2008-01-29 Thread nihilism machine
I amn trying to use my db class in my auth class, but i get the error: call to a member function select() on a non object connect(); } // Connect to MySQL Server private function connect() { $this->link = mysql_connect($this->db_server,$this->db_user,$this- >db_pass)

[PHP] Mysql session handler?

2008-01-29 Thread Mike Yrabedra
Can anyone recommend a good php-mysql session handler class? I have found a lot of them, but they are all pretty old, pre-2005 -- Mike B^)> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 7:27 PM, Stut <[EMAIL PROTECTED]> wrote: > Personally I'd use a static method in this instance. thats what i recommended. If you need to create > an instance of the class you can do so in the static method and that way it > will get destroyed when the function is done. Otherwise t

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Stut
On 29 Jan 2008, at 20:08, "Nathan Nobbe" <[EMAIL PROTECTED]> wrote: On Jan 29, 2008 3:02 PM, Stut <[EMAIL PROTECTED]> wrote: Why? What exactly do you think you're saving by not putting the instance in a variable? I can't think of one good reason to do this. its an esthetic thing; and besides th

Re: [PHP] Using next() inside a foreach

2008-01-29 Thread Jim Lucas
Erik Stackhouse wrote: Hello, I'm hesitant to report this issue as a bug, since I see other bugs (43890 and 43220) already opened describing similar, but not identical, issues. The latter bug is described as a documentation issue... In my tests all versions of php prior to 5.2.4, foreach does

[PHP] Timeout while waiting for a server->client transfer to start (large files)

2008-01-29 Thread Barney Tramble
Hey I have a script that I am trying to figure out to allow a remote file to be sent to a client's browser. It works ok for small files, but it keeps timing out for large files. I don't think it should even take as long as it does (i.e. about 10seconds) before it pops up a dialog box for m

Re: [PHP] first php class take 2

2008-01-29 Thread Andrew Ballard
On Jan 29, 2008 3:36 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > nihilism machine schreef: > > How does this look now? > > just as bad as before. you haven't even tried to run the code have you? > > > > > > > > > class dbconfig { > > public $connInfo = array(); > > public $connInfo[$hostn

Re: [PHP] Another question about functions...

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 3:53 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > I did as you suggested, and I think I found the reason... I included info > for the doctype, and some files that are on all my pages... Once I comment > out those lines it works just fine... > I'm assuming that that is expected beha

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 3:26 PM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Nathan Nobbe schreef: > > On Jan 29, 2008 3:02 PM, Stut <[EMAIL PROTECTED]> wrote: > > > >> Why? What exactly do you think you're saving by not putting the > >> instance in a variable? I can't think of one good reason to do this. >

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Jochem Maas
Nathan Nobbe schreef: On Jan 29, 2008 3:02 PM, Stut <[EMAIL PROTECTED]> wrote: Why? What exactly do you think you're saving by not putting the instance in a variable? I can't think of one good reason to do this. its an esthetic thing; and besides the simple factory method is an easy workarou

Re: [PHP] Another question about functions...

2008-01-29 Thread Jason Pruim
On Jan 29, 2008, at 2:46 PM, Nathan Nobbe wrote: On Jan 29, 2008 2:39 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: Okay, so I checked everything I can think of, and it's still downloading it as an application which means it's downloading the entire website instead of just the data from the databa

[PHP] Using next() inside a foreach

2008-01-29 Thread Erik Stackhouse
Hello, I'm hesitant to report this issue as a bug, since I see other bugs (43890 and 43220) already opened describing similar, but not identical, issues. The latter bug is described as a documentation issue... In my tests all versions of php prior to 5.2.4, foreach does NOT increment the array

Re: [PHP] first php class take 2

2008-01-29 Thread Jochem Maas
nihilism machine schreef: How does this look now? just as bad as before. you haven't even tried to run the code have you? $connInfo; } } ?> public __constructor(){ $this->$connInfo = new dbconfig(); $username = $hostname = $password = $

Re: [PHP] first php 5 class

2008-01-29 Thread Jochem Maas
nihilism machine schreef: Ok, trying to write my first php5 class. This is my first project using all OOP PHP5.2.5. I want to create a config class, which is extended by a connection class, which is extended by a database class. Here is my config class, how am I looking? dunno can't see you

[PHP] first php class take 2

2008-01-29 Thread nihilism machine
How does this look now? $connInfo; } } ?> $connInfo = new dbconfig(); $username = $hostname = $password = $database = $DB = new PDO("mysql:host=$connInfo[$hostname];dbname= $connInfo[$database]", $connInfo[$username], $c

Re: [PHP] first php 5 class

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 3:19 PM, nihilism machine <[EMAIL PROTECTED]> wrote: > Ok, trying to write my first php5 class. This is my first project > using all OOP PHP5.2.5. > > I want to create a config class, which is extended by a connection > class, which is extended by a database class. Here is my confi

[PHP] first php 5 class

2008-01-29 Thread nihilism machine
Ok, trying to write my first php5 class. This is my first project using all OOP PHP5.2.5. I want to create a config class, which is extended by a connection class, which is extended by a database class. Here is my config class, how am I looking? $connInfo; } } ?> -- PHP General

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 3:02 PM, Stut <[EMAIL PROTECTED]> wrote: > Why? What exactly do you think you're saving by not putting the > instance in a variable? I can't think of one good reason to do this. > its an esthetic thing; and besides the simple factory method is an easy workaround to achieve it. as

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Stut
On 29 Jan 2008, at 19:43, Christoph Boget <[EMAIL PROTECTED]> wrote: On Jan 29, 2008 2:37 PM, Paul Scott <[EMAIL PROTECTED]> wrote: Looks like a repurpose of one of my posts: http://fsiu.uwc.ac.za/index.php?module=blog&action=viewsingle&postid=gen9Srv59Nme5_7092_1182404204 actually, this is

Re: [PHP] Another question about functions...

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 2:39 PM, Jason Pruim <[EMAIL PROTECTED]> wrote: > Okay, so I checked everything I can think of, and it's still > downloading it as an application which means it's downloading the > entire website instead of just the data from the database... Anyone > have any idea what to check?

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Jochem Maas
Christoph Boget schreef: Constructors return the object, correct? If so, how can I do this: class Bob { private $blah; _construct( $blah ) { $this->blah = $blah; } public getBlah() { return $this->blah; } } echo Bob( 'Hello!' )->getBlah(); When I try that, I get the message

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Christoph Boget
> On Jan 29, 2008 2:37 PM, Paul Scott <[EMAIL PROTECTED]> wrote: > > Looks like a repurpose of one of my posts: > > http://fsiu.uwc.ac.za/index.php?module=blog&action=viewsingle&postid=gen9Srv59Nme5_7092_1182404204 > actually, this is slightly different; here we are talking about being > able to im

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 2:37 PM, Paul Scott <[EMAIL PROTECTED]> wrote: > Looks like a repurpose of one of my posts: > > > http://fsiu.uwc.ac.za/index.php?module=blog&action=viewsingle&postid=gen9Srv59Nme5_7092_1182404204 actually, this is slightly different; here we are talking about being able to immed

Re: [PHP] Another question about functions...

2008-01-29 Thread Jason Pruim
On Jan 29, 2008, at 11:58 AM, Jason Pruim wrote: On Jan 29, 2008, at 11:48 AM, Nathan Nobbe wrote: On Jan 29, 2008 11:07 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: What's happening is, I have the code set and it downloads the file into excel, but it doesn't have the database fields in it, ra

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 2:27 PM, Andrew Ballard <[EMAIL PROTECTED]> wrote: > On Jan 29, 2008 1:53 PM, Christoph Boget <[EMAIL PROTECTED]> > wrote: > > Constructors return the object, correct? > > Actually, I don't think so. I believe constructors return void, while > the 'new' keyword returns a copy of th

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Paul Scott
On Tue, 2008-01-29 at 14:17 -0500, Eric Butera wrote: > http://www.travisswicegood.com/index.php/2007/10/26/fluent_api_here_i_come > Looks like a repurpose of one of my posts: http://fsiu.uwc.ac.za/index.php?module=blog&action=viewsingle&postid=gen9Srv59Nme5_7092_1182404204 --Paul All Email

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 19:48 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > Actually, now you made me think on it... the primary reason I disable > > referrer logging is because it will also pass along lovely information > > such as any session ID embedded in the URL. So if you happen to

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Andrew Ballard
On Jan 29, 2008 1:53 PM, Christoph Boget <[EMAIL PROTECTED]> wrote: > Constructors return the object, correct? Actually, I don't think so. I believe constructors return void, while the 'new' keyword returns a copy of the object. Andrew -- PHP General Mailing List (http://www.php.net/) To unsubs

Re: [PHP] php installation problem

2008-01-29 Thread Umar
Dear Richar! I already told you there is no iconv or iconv-devel installed on my first box then whey I need on second box? Regrads, Umar Draz Richard Lynch wrote: > > Perhaps you don't have iconv and/or iconv-devel installed on the > second box? > > On Sun, January 27, 2008 2:54 am, Umar wr

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Eric Butera
On Jan 29, 2008 1:53 PM, Christoph Boget <[EMAIL PROTECTED]> wrote: > Constructors return the object, correct? If so, how can I do this: > > class Bob { > private $blah; > _construct( $blah ) { > $this->blah = $blah; > } > public getBlah() { > return $this->blah; > } > } > > echo

Re: [PHP] How can I do this -- method chaining

2008-01-29 Thread Richard Heyes
Christoph Boget wrote: Constructors return the object, correct? If so, how can I do this: class Bob { private $blah; _construct( $blah ) { $this->blah = $blah; } public getBlah() { return $this->blah; } } echo Bob( 'Hello!' )->getBlah(); When I try that, I get the message "U

[PHP] How can I do this -- method chaining

2008-01-29 Thread Christoph Boget
Constructors return the object, correct? If so, how can I do this: class Bob { private $blah; _construct( $blah ) { $this->blah = $blah; } public getBlah() { return $this->blah; } } echo Bob( 'Hello!' )->getBlah(); When I try that, I get the message "Undefined function Bob".

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-29 Thread Per Jessen
Robert Cummings wrote: > Actually, now you made me think on it... the primary reason I disable > referrer logging is because it will also pass along lovely information > such as any session ID embedded in the URL. So if you happen to get on > a malicious site, they could access the account from wh

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 13:01 -0500, Robert Cummings wrote: > On Tue, 2008-01-29 at 17:55 +0100, Per Jessen wrote: > > Robert Cummings wrote: > > > > > Referer value is completely worthless. Many people completely disable > > > it-- such as myself :) > > > > But most people probably don't - 'coz m

Re: [PHP] Handle time-outs and errors with file()

2008-01-29 Thread Eric Butera
On Jan 29, 2008 10:58 AM, John Papas <[EMAIL PROTECTED]> wrote: > I'm using file() to get the contents of a remote page in my script but > I cannot find any information regarding how I could *gracefully* > handle a broken network connection or even a time-out (slow > connection). > > Is there a way

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 17:50 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > > > On Tue, 2008-01-29 at 17:32 +0100, Per Jessen wrote: > >> Robert Cummings wrote: > >> > >> > The only remedy agaonst remote linking is to embed some kind of > >> > expiration in the link that accesses the do

Re: [PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 17:55 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > Referer value is completely worthless. Many people completely disable > > it-- such as myself :) > > But most people probably don't - 'coz most don't know how to edit e.g. > the firefox config. I use Opera :)

Re: [PHP] Handle time-outs and errors with file()

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 10:58 AM, John Papas <[EMAIL PROTECTED]> wrote: > I'm using file() to get the contents of a remote page in my script but > I cannot find any information regarding how I could *gracefully* > handle a broken network connection or even a time-out (slow > connection). > > Is there a wa

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Per Jessen
Per Jessen wrote: > Well then - for people who've disabled it, there's no remote linking > to your content. All done. Btw, apache does a good job of dealing with remote links: RewriteCond %{HTTP_REFERER} !^https?://jessen.ch/ RewriteRule /images/(.*) http://jessen.ch/no-remote-linking-please?it

Re: [PHP] Another question about functions...

2008-01-29 Thread Jason Pruim
On Jan 29, 2008, at 11:48 AM, Nathan Nobbe wrote: On Jan 29, 2008 11:07 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: What's happening is, I have the code set and it downloads the file into excel, but it doesn't have the database fields in it, rather a copy of the entire webpage which it trys to p

[PHP] Re: disable referer ? (was: Framed & Linked Content)

2008-01-29 Thread Per Jessen
Robert Cummings wrote: > Referer value is completely worthless. Many people completely disable > it-- such as myself :) But most people probably don't - 'coz most don't know how to edit e.g. the firefox config. What is the purpose of disabling it? /Per Jessen, Zürich -- PHP General Mailing

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Per Jessen
Robert Cummings wrote: > > On Tue, 2008-01-29 at 17:32 +0100, Per Jessen wrote: >> Robert Cummings wrote: >> >> > The only remedy agaonst remote linking is to embed some kind of >> > expiration in the link that accesses the document. >> >> Wouldn't a check of the REFERER field be enough to disa

Re: [PHP] Another question about functions...

2008-01-29 Thread Nathan Nobbe
On Jan 29, 2008 11:07 AM, Jason Pruim <[EMAIL PROTECTED]> wrote: > What's happening is, I have the code set and it downloads the file > into excel, but it doesn't have the database fields in it, rather a > copy of the entire webpage which it trys to put into excel. this sounds to me like you may

Re: [PHP] how to display photos of the day?

2008-01-29 Thread Per Jessen
jeffry s wrote: > sorry if this question sound stupid. > i need a good, simple and efficient function to display lets say photo > of the day. > > i have a mysql table contain data about 1000 rows. i want to display > any of the photos randomly and it is fixed for one day. I use apache for that s

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 17:32 +0100, Per Jessen wrote: > Robert Cummings wrote: > > > The only remedy agaonst remote linking is to embed some kind of > > expiration in the link that accesses the document. > > Wouldn't a check of the REFERER field be enough to disable most remote > links? (I kno

Re: [PHP] how to display photos of the day?

2008-01-29 Thread tedd
At 6:33 PM +0800 1/29/08, jeffry s wrote: sorry if this question sound stupid. i need a good, simple and efficient function to display lets say photo of the day. i have a mysql table contain data about 1000 rows. i want to display any of the photos randomly and it is fixed for one day. anyone k

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Per Jessen
Robert Cummings wrote: > The only remedy agaonst remote linking is to embed some kind of > expiration in the link that accesses the document. Wouldn't a check of the REFERER field be enough to disable most remote links? (I know it is easily forged.) /Per Jessen, Zürich -- PHP General Mailin

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 11:12 -0500, Jason Pruim wrote: > On Jan 29, 2008, at 10:58 AM, Robert Cummings wrote: > > > > > On Tue, 2008-01-29 at 10:21 -0500, Mike Potter wrote: > >> There is JavaScript out there, to make a page break out of frames if > >> someone else has your page in a frame of thei

[PHP] PHP 5.2.5 Install Question/Problem

2008-01-29 Thread Strader, William A.
OK I have tried e-mailing the PHP-Install mailing list and all I got in response from that list was spam... So I thought I would try here. OK I am attempting to install PHP 5.2.5 on a new system here is what I have: SunOS server1 5.10 Generic_118833-24 sun4u sparc SUNW,Sun-Fire-V210 Here is the

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Jason Pruim
On Jan 29, 2008, at 10:58 AM, Robert Cummings wrote: On Tue, 2008-01-29 at 10:21 -0500, Mike Potter wrote: There is JavaScript out there, to make a page break out of frames if someone else has your page in a frame of theirs. Is it possible to do this with PHP or is that the wrong side of Serv

[PHP] Another question about functions...

2008-01-29 Thread Jason Pruim
HI everyone, I think I'm getting closer to understanding functions, but I'm blanking on how to fix a problem that I have... I am attempting to export a database to excel, which was working before converting the code into a function. What's happening is, I have the code set and it download

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Robert Cummings
On Tue, 2008-01-29 at 10:21 -0500, Mike Potter wrote: > There is JavaScript out there, to make a page break out of frames if > someone else has your page in a frame of theirs. > Is it possible to do this with PHP or is that the wrong side of > Server/Client-side operations? PHP can echo the JavaS

[PHP] Handle time-outs and errors with file()

2008-01-29 Thread John Papas
I'm using file() to get the contents of a remote page in my script but I cannot find any information regarding how I could *gracefully* handle a broken network connection or even a time-out (slow connection). Is there a way? --- Example: $menu = file('http://www.remotesite.org/mypage.html'); fore

Re: [PHP] Framed & Linked Content

2008-01-29 Thread Per Jessen
Mike Potter wrote: > There is JavaScript out there, to make a page break out of frames if > someone else has your page in a frame of theirs. > Is it possible to do this with PHP or is that the wrong side of > Server/Client-side operations? I haven't checked, but I'm wondering if the REFERER field

[PHP] Framed & Linked Content

2008-01-29 Thread Mike Potter
There is JavaScript out there, to make a page break out of frames if someone else has your page in a frame of theirs. Is it possible to do this with PHP or is that the wrong side of Server/Client-side operations? Related, when target files are PDF's, images, or other than .php/.htm(l), does PHP pr

Re: [PHP] how to display photos of the day?

2008-01-29 Thread Paul Scott
On Tue, 2008-01-29 at 18:33 +0800, jeffry s wrote: > i have a mysql table contain data about 1000 rows. i want to display any of > the photos randomly > and it is fixed for one day. > MySQL has a rand() function, so you could bomb that off as a select once a day on cron or something, or you cou

Re: [PHP] how to display photos of the day?

2008-01-29 Thread Steve Edberg
At 6:33 PM +0800 1/29/08, jeffry s wrote: sorry if this question sound stupid. i need a good, simple and efficient function to display lets say photo of the day. i have a mysql table contain data about 1000 rows. i want to display any of the photos randomly and it is fixed for one day. anyone k

Re: [PHP] how to display photos of the day?

2008-01-29 Thread Zoltán Németh
2008. 01. 29, kedd keltezéssel 18.33-kor jeffry s ezt írta: > sorry if this question sound stupid. > i need a good, simple and efficient function to display lets say photo of > the day. > > i have a mysql table contain data about 1000 rows. i want to display any of > the photos randomly > and it i

[PHP] how to display photos of the day?

2008-01-29 Thread jeffry s
sorry if this question sound stupid. i need a good, simple and efficient function to display lets say photo of the day. i have a mysql table contain data about 1000 rows. i want to display any of the photos randomly and it is fixed for one day. anyone know how to write the function that return a

Re: [PHP] Fwd: Posting Summary for Week Ending 25 January, 2008: [EMAIL PROTECTED]

2008-01-29 Thread Zoltán Németh
2008. 01. 28, hétfő keltezéssel 13.35-kor Daniel Brown ezt írta: > Whoops :-x > > The odd thing is, the characters came out fine during the tests, > and because some changes were made to the script during the week, some > people will show up two or more times (read: people with non-En