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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 :)
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
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
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
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
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
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
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
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
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
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
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
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
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
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.
>
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
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
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 =
$
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?
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
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
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
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
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
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
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".
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
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
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
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
> 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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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)
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
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
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
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";
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
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
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
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 =
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
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
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
-
72 matches
Mail list logo