Although i dont code for pear standards, i must recommend learning the pear
code, its how i taught myself classes.
> Hi,
>
> I'm want to master the art of programming in Classes and worked through
> some elementary tutorials.
>
> Are there perhaps a bit more advanced tutorials than Devshed?
>
> Th
Hi,
I'm want to master the art of programming in Classes and worked through some
elementary tutorials.
Are there perhaps a bit more advanced tutorials than Devshed?
Thanks
Nico
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
A while back I wrote a small script that was designed to work as an
interactive interpreter for PHP code, a la Python. The script itself is
written in PHP, and is pretty basic:
function readln()
{
$fp=fopen("/dev/stdin", "r");
$input=fgets($fp, 255);
fclose($fp);
return rtr
* Thus wrote Peter James ([EMAIL PROTECTED]):
> You guys running Linux sure are cocky about these sorts of things. I have
> no doubt that Linux' time will come, and then it will be the MacOS X users,
> or FreeBSD users, or [insert random-os-that-still-remains-under-the-radar
> here] users that thi
HI YES IM SERIOUS,LISA WHITE--- Begin Message ---
Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.
I'm working for my owner, who can be reached
at [EMAIL PROTECTED]
To confirm that you would like
[EMAIL PROTECTED]
added to the php-general mailing list, please s
heres my 2cents
If you know what your doing, it is possible to secure a windows machine. It depends on
the user, i keep my windows machine upto date, plus ive got a firewall running on it
just incase. I havent had a virus or been compromised (not that i know of) since i
bought my laptop.
Dont
> Hey, man. This is NOT AIDS.
Oh, sorry... wrong list. :-)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hey, man. This is NOT AIDS. And it will be fixed anyway. :-)
- Original Message -
From: "Peter James" <[EMAIL PROTECTED]>
To: "PHP-General" <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 3:33 PM
Subject: Re: [PHP] non-php issue
> Not saying that there aren't lots of reasons to lik
Not saying that there aren't lots of reasons to like and run Unix. I run
FreeBSD as my webserver, for instance, because I think its the right OS for
the job. I run WinXP on my desktop, though, because it has the applications
I want to use, is familiar and comfortable to me, and I have the hardwar
Peter James wrote:
You guys running Linux sure are cocky about these sorts of things. I have
no doubt that Linux' time will come, and then it will be the MacOS X users,
or FreeBSD users, or [insert random-os-that-still-remains-under-the-radar
here] users that think they are "untouchable".
If Linux
On Mon, 2003-09-22 at 01:08, Robert Cummings wrote:
> On Mon, 2003-09-22 at 01:09, Raditha Dissanayake wrote:
> > relax guys,
> >
> > I have been dying to say "You can fix all of your problems by
> > formatting your computer and installing a linux distribution." On this
> > list for ages :-)
>
On Mon, 2003-09-22 at 01:09, Raditha Dissanayake wrote:
> relax guys,
>
> I have been dying to say "You can fix all of your problems by
> formatting your computer and installing a linux distribution." On this
> list for ages :-)
>
> but the fact remains that an out of the box installation of
relax guys,
I have been dying to say "You can fix all of your problems by
formatting your computer and installing a linux distribution." On this
list for ages :-)
but the fact remains that an out of the box installation of any of the
linux distros are far more secure than anything putout by
hi,
It's generaly considered that constructors are supposed return an
instance of that class. Use a factory instead if you want to return nulls;
jsWalter wrote:
I found this in the docs...
If you want your constructor to possibly not create the object
class A
{
function A()
{
You guys running Linux sure are cocky about these sorts of things. I have
no doubt that Linux' time will come, and then it will be the MacOS X users,
or FreeBSD users, or [insert random-os-that-still-remains-under-the-radar
here] users that think they are "untouchable".
If Linux enjoyed the same
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Man, once again- Outlook is not the problem. Get the PC off the
internet and scan it until it's found. Put the drive in another PC, use
one of the systems available for removing viruses with a boot CD/disk,
etc, but don
On Monday, September 22, 2003, at 12:34 AM, Raditha Dissanayake wrote:
You can fix all of your problems by formatting your computer and
installing a linux distribution.
I'm getting all these security patches in my email from "Microsoft
Corporation" lately, maybe you want to use them since I run
You can fix all of your problems by formatting your computer and
installing a linux distribution.
Wang Feng wrote:
hi everyone, could someone recommend a security mailing list, please?
or you may like to answer my question below:
i'm currently using outlook express 6 on WinXP Pro, and somethi
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Yeah, disconnect from the Internet for starters. :) Put the bad HDD
into a non-bad PC and scan that way. Also, update your definitions.
MK
-Original Message-
From: Wang Feng [mailto:[EMAIL PROTECTED]
Sent: Su
*This message was transferred with a trial version of CommuniGate(tm) Pro*
First off, disconnect your computer from the Internet- RIGHT NOW. You
do have a virus and you're gonna infect more people. Odds are the virus
broke your scanner, so either reinstall it or go get another one. The
best bet
hi everyone, could someone recommend a security mailing list, please?
or you may like to answer my question below:
i'm currently using outlook express 6 on WinXP Pro, and something strange happened:
everytime when i start the computer, some messages pop up and attempts to sending the
replies
* Thus wrote Adam Zey ([EMAIL PROTECTED]):
> Thanks, that did the trick :)
>
> Only thing was I had to modify it for newline support:
>
> ([^<]*)<\/td> class='newsitemposter-td'> class=([^>]*)>([^<]*)<\/span>([^<]*)<\/td><\/tr> class='newsitemcontent-td' colspan=2>((.|\n)*?)<\/td><\/tr>
For new
Hi,
Monday, September 22, 2003, 11:34:25 AM, you wrote:
JTJ> Not that formmail.pl was the most secure idea, but it could take any
JTJ> variable off any form and mail the contents to a vriable on that form. Does
JTJ> anyone know of such a critter in existence for PHP, a script that will read
JTJ> i
Not that formmail.pl was the most secure idea, but it could take any variable off any
form and mail the contents to a vriable on that form. Does anyone know of such a
critter in existence for PHP, a script that will read in all variable on any form and
email them. Something already created? Any
I'm writing a PHP script inspired by smartypants and textile (but for
PHP), which among other things does smart quoting.
However, I want to avoid smart quotes inside all tags (all quotes
inside < and >). Since there are numerous functions accounting for
numerous special cases, AND the fact tha
I've read the entire manual on classes, and I did not see an answer to my
question.
I see how to access methods of a parent from the child...
parentName::foo();
or
parent::foo();
but I would like to gain access to read and/or modify properties from the
parent.
Yes, I built getters tha
Hey hey hey,
watch your languagewho are you calling "gentlemen"?
I guess you must be on the wrong list or something :-D
Cheers,
-Ryan
We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com
- Original Message -
From: "Karen Lubrecht" <[EMAIL PROTE
* Thus wrote Karen Lubrecht ([EMAIL PROTECTED]):
> Hmm! I wonder if that is the reason I've been getting Viagra spam! :-)
>
> You know, I guess I've been too focused on the code to have looked at
> the names. Gentlemen, there is at least one lady here. Maybe no longer a
> chick, but female none
Hmm! I wonder if that is the reason I've been getting Viagra spam! :-)
You know, I guess I've been too focused on the code to have looked at
the names. Gentlemen, there is at least one lady here. Maybe no longer a
chick, but female none the same. I'm sure there are many others who may
be lurking
I found this in the docs...
If you want your constructor to possibly not create the object
class A
{
function A()
{
// ...
// some error occurred
$this = null;
return;
}
}
I tested it, it works great.
Then I read on...
Setting $
I'm in the process of building my first "real" class.
43 methods, 23 properties, nearly 1000 lines of codes.
What I would like to know...
Is it better to keep al this in a single file? Or break it up into
sub-classes?
This does have logical sections, so a breakup would be possible, but then
I'm
Finally I got it.
Thanks a lot
- Original Message -
From: "phpu" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 1:36 AM
Subject: Re: [PHP] search result
> I have tried but didn't work. I think i'm going crazy. I don't know how to
> do it...
>
--
PHP Gener
I have tried but didn't work. I think i'm going crazy. I don't know how to
do it...
$rows_per_page = 7;
$sql = "SELECT * FROM products";
$rezultat = mysql_query($sql);
$total_records = mysql_num_rows($rezultat);
$pages = ceil($total_records / $rows_per_page);
mysql_free_result($rezultat);
mysql_
--- phpu <[EMAIL PROTECTED]> wrote:
> How can i do to show only the records that match with the search word?
Use a where clause. Read this:
http://www.mysql.com/doc/en/SELECT.html
Hope that helps.
Chris
=
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.
Sorry but i'm new to php and i don't know how to do that. Can you help me, please?
- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, September 22, 2003 1:00 AM
Subject: Re: [PHP] search result
whwen you jump to the next page, make sure there's
Hi,
I have this code that search an specify word in the database. This search is working.
The only problem that I have is that I wanna show only 7 rows per page. When I wanna
jump to the next page with results it shows all records in the database(7 rows per
page).
How can i do to show only the r
> While I'm not gay myself, I think you've overlooked an obvious category
> of "fling".
A valid point.
Edward Dudlik
Becoming Digital
www.becomingdigital.com
wishes | www.amazon.com/o/registry/EGDXEBBWTYUU
- Original Message -
From: "Robert Cummings" <[EMAIL PROTECTED]>
To: "Becoming
> Besides... you're a programmer... you should know you can't pick up women!
Whoa there. I'm a CEO. I just happen to program, too. lol
Edward Dudlik
Becoming Digital
www.becomingdigital.com
wishes | www.amazon.com/o/registry/EGDXEBBWTYUU
- Original Message -
From: "John W. Holmes"
> Besides... you're a programmer... you should know you can't pick up women!
Then there's the rest of us who're multi-talented, with strong social skills,
that can write a mean script while still having the women offer US money...
:-D
Becoming Digital wrote:
I think this is the ONLY PHP conference she'd ever
agree to going to.
I think this is also the ONLY cruise on which
> single guys won't find a fling. I smell a sausage party! ;)
I wouldn't be worried about that. THe PHP conference goers are only
about 300 out of 1500
> > I think this is the ONLY PHP conference she'd ever
> > agree to going to.
>
> I think this is also the ONLY cruise on which single guys won't find a
> fling. I smell a sausage party! ;)
Oh I dunno bout that. There's more PHP chicks out there than you'd believe!
I've talked to many, and I
On Sun, 2003-09-21 at 15:25, Becoming Digital wrote:
> > I think this is the ONLY PHP conference she'd ever
> > agree to going to.
>
> I think this is also the ONLY cruise on which single guys won't
> find a fling. I smell a sausage party! ;)
While I'm not gay myself, I think you've overlooked
> I think this is the ONLY PHP conference she'd ever
> agree to going to.
I think this is also the ONLY cruise on which single guys won't find a fling. I smell
a sausage party! ;)
Edward Dudlik
Becoming Digital
www.becomingdigital.com
wishes | www.amazon.com/o/registry/EGDXEBBWTYUU
- O
That's not Eugene from the dojo is it?
Rich
"Eugene Lee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> If I have a block of text saved in an external text file, e.g.:
>
> All {$badstuff} and no {$goodstuff} makes {$name} a dull {$type}.
>
> after reading the text into a string, i
On Sun, 2003-09-21 at 14:10, Gerard Samuel wrote:
> Robert Cummings wrote:
>
> >Are you looking to create a single point of access to any libraries your
> >application may wish to use
> >
> Yes. Instead of juggling 5-6 objects, just move around one object.
>
> > and to subsequently base this on
Please see this useful article:
http://www.macromedia.com/devnet/mx/dreamweaver/articles/php_iis.html
zerof
"Dalton Seymour" <[EMAIL PROTECTED]> escreveu na mensagem
news:[EMAIL PROTECTED]
> I'm trying to setup PHP support on an small 2 station Intranet for development
> purposes.
I'm us
Robert Cummings wrote:
Are you looking to create a single point of access to any libraries your
application may wish to use
Yes. Instead of juggling 5-6 objects, just move around one object.
and to subsequently base this on a singleton
pattern (only one instance of the object may exist?)?
Yes.
--- Marek Kilimajer <[EMAIL PROTECTED]> wrote:
> Do you have shell access(ssh)? You can use that.
> Other way is to ask
> your ISP to change the parmissions or to enable
> chmod command.
I had a feeling i might have to ask my ISP, they seem
cool they might do it,
unless there is a security con
That's Windows security you should be checking..did you look at
directory permissions?
Shadow
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks, that did the trick :)
Only thing was I had to modify it for newline support:
([^<]*)<\/td>]*)>([^<]*)<\/span>([^<]*)<\/td><\/tr> ((.|\n)*?)<\/td><\/tr>
Regards, Adam.
"Esctoday.Com | Wouter Van Vliet" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Pretty easy, just make t
Are you looking to create a single point of access to any libraries your
application may wish to use and to subsequently base this on a singleton
pattern (only one instance of the object may exist?)?
Rob.
On Sun, 2003-09-21 at 13:18, Gerard Samuel wrote:
> Robert Cummings wrote:
>
> >Method ove
I'm trying to setup PHP support on an small 2 station Intranet for
development purposes. I'm using PWS under Win98 SE. I believe I'm
experiencing a common problem, but I seem to be unable to work my way around
it. At the suggestion of several installation tutorials, after installing
it, I have made
Pretty easy, just make the regex stuff a little less greedy .. ;)
class='newsitemcontent-td' colspan=2>(.*?)<\/td><\/tr>/
That would catch it .. And yes, the question mark is both correct and
confusing. But it doesn't mean "maybe" in here. Now let's hope that your
post doesn't include ..
Wout
Robert Cummings wrote:
Method overriding is one of the core principles of any Object Oriented
(OO) language. By having second_class extend first_class you get all the
functionality of first_class, but generally you extend a class because
you want to inherit all of the functionality with a few diff
I'm using the following regex:
/([^<]*)<\/td>]*)>([^<]*)<\/span>([^<]*)<\/td><\/tr> ([^<]*)<\/td><\/tr>/
Everything works well, except I've ran into one problem. In the last text
field, the bulk of the newsitem, sometimes the poster includes some HTML
tags (Like "", but others could be inserted).
Method overriding is one of the core principles of any Object Oriented
(OO) language. By having second_class extend first_class you get all the
functionality of first_class, but generally you extend a class because
you want to inherit all of the functionality with a few differences. For
this reason
Just double checking with the php crowd.
Code example:
-
$bar = new second_class;
echo $bar->foo() . '';
var_dump(get_class_methods('second_class'));
class first_class
{
function foo()
{
echo 'foo from class first_class';
}
}
class second_class extends first_class
{
On Sun, 21 Sep 2003 08:00:56 -0700
Vadim Bendebury <[EMAIL PROTECTED]> wrote:
> Andu,
>
> thank you and James Johnson, who sent me an email, so much.
Don't mention it.
>
> You guys are gentlmen and scholars, as opposed to some others who would
> lecture you wasting your (and their own!) time,
* Thus wrote Vadim Bendebury ([EMAIL PROTECTED]):
> Andu,
>
> thank you and James Johnson, who sent me an email, so much.
>
> You guys are gentlmen and scholars, as opposed to some others who would
> lecture you wasting your (and their own!) time, stating the obvious,
> saying nothing of value,
John Nichel wrote:
John W. Holmes wrote:
Is anyone planning on going to this?
http://www.phparch.com/cruise/
I'm trying to go. It would be nice to put a face to the name with a
few people out there. Let me know.
[snip]
The wife has been
bugging me to bring her on a cruise for years now
Yeah,
VB wrote:
Dan Anderson wrote:
do you feel good being a moron?
Do you feel good being a rude ass?
no, I don't, and I regret sending it to the list.
But I sure do think that replying with an RTFM is not a good thing to do.
You're right...it's something we shouldn't have to do to something
Andu,
thank you and James Johnson, who sent me an email, so much.
You guys are gentlmen and scholars, as opposed to some others who would
lecture you wasting your (and their own!) time, stating the obvious,
saying nothing of value, but enjoying their litte egos.
thanks again,
/vb
Andu wrote:
O
Do you have shell access(ssh)? You can use that. Other way is to ask
your ISP to change the parmissions or to enable chmod command.
stratis Aftousmis wrote:
Hello, i will be a succinct as possible. I downloaded a php script (a
chatbox) for my web page. The web page is from my ISP, 15Mb space, y
Finally!
Thanks Tom & Rasmus for pointing me in the right direction.
God, two days of bleary eyed searching -- enough is enough. Thank you guys
for helping out a newbie.
--Noah
"Tom Rogers" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> Monday, September 22, 2003, 2
Check "Activate compression" setting in postnuke admin. You want it to
be "No". If this setting is activated, ob_start("ob_gzhandler"); is
called in pnInit()
nabil wrote:
Hi all;
In general , when you open an html file , the browser start to display and
draw the tables, then start to display t
Hi,
Monday, September 22, 2003, 2:13:57 AM, you wrote:
CH> H,
CH> Well, is there a way to pass params to file_to_be_executed in command line?
CH> For example:
CH> $my_param = 'my_include_path';
CH> $text = `usr/local/bin/php /path/to/my/php/page.php`;
?>>
CH> Somehow I need $my_pa
On Sun, 21 Sep 2003, CF High wrote:
> Well, is there a way to pass params to file_to_be_executed in command line?
>
> For example:
>
> $my_param = 'my_include_path';
> $text = `usr/local/bin/php /path/to/my/php/page.php`;
> ?>
>
> Somehow I need $my_param to be passed to page.php (the f
On Sun, 21 Sep 2003, nabil wrote:
> In general , when you open an html file , the browser start to display and
> draw the tables, then start to display the pictures (on slow internet
> connection).. but when you make your html code inside an php the output will
> be different, it will buffer everyt
Thank the heavens above
Actually, thank "Ben", a poster from php.net manual.
Looks like environment variables are not passed to file when it is executed
from the command line.
A workaround is:
$inc_path = $_SERVER['DOCUMENT_ROOT'] . '/';
$remaddr = getenv("DOCUMENT_ROOT");
putenv("DOCUM
H,
Well, is there a way to pass params to file_to_be_executed in command line?
For example:
Somehow I need $my_param to be passed to page.php (the file to be processed
in command line).
Any ideas?
--Noah
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> S
Hi all;
In general , when you open an html file , the browser start to display and
draw the tables, then start to display the pictures (on slow internet
connection).. but when you make your html code inside an php the output will
be different, it will buffer everything then it will pop the whole p
Gerard Samuel wrote:
[ snip ]
By having one class where they all can share each others data.
Is it just a dream?
The only way I know how is by making object/objects like
$foo->bar->do_something()
Have you tried using inheritence?
class foo { /* class methods, objects */ } class bar extends foo
andu wrote:
On Sat, 20 Sep 2003 18:19:25 -0400
Stephen Tiano <[EMAIL PROTECTED]> wrote:
I'm on a Mac PowerBook. I'm able to locate the php.ini file. But when I
open it with BBEdit, it's a blank page. I just want to open it and
either view it, or make a copy to view. But all I have is the blank.
I would love to go, but 15 year olds don't usually have 1500
dollars.:)
Stevie
On Sat, 20 Sep 2003 23:30:51 -0400 "John W. Holmes"
<[EMAIL PROTECTED]> writes:
> Is anyone planning on going to this?
>
> http://www.phparch.com/cruise/
>
> I'm trying to go. It would be nice to put a face to
Do you want to run it from within browser or as php-gtk application?
Windows have a sheduler too, you can use it for php-gtk application. If
you want it from browser, you can have a hidden iframe that regularly
refreshes, if thare are any new messages, send the iframe javascript
that would pop
This is a client issue.
There should be an option on the dialog box that you can check to do that.
_j
=P e p i e D e s i g n s
www.pepiedesigns.com
Providing Solutions That Increase Productivity
Web Developement. Database. Hosting. Multimedia.
On Fri, 19 Sep 2003, Curt Zirzow wrote:
>
Sessions don't work on command line and that is how you run your script
- from command line.
CF High wrote:
Hey Robert.
Indeed, hard to find the problem.
I don't believe it's a whitespace issue, or even a "Headers sent issue",
despite the fact that I'm receiving that error.
Check it out:
test.
I, too, want many things. Perhaps you can show us some of the code you've tried and
we'll work from there.
Edward Dudlik
Becoming Digital
www.becomingdigital.com
wishes | www.amazon.com/o/registry/EGDXEBBWTYUU
- Original Message -
From: "fr r" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECT
i have something like a mail system and i want whenever the user recieves a new
message ( and its stored in the databse ) a pop up window appears telling him that he
has a new message.
so i guess i want something like a daemon but i'm not working on a unix server, i'm
working on Windows NT pl
On Sat, Sep 20, 2003 at 06:19:25PM -0400, Stephen Tiano wrote:
:
: I'm on a Mac PowerBook. I'm able to locate the php.ini file. But when I
: open it with BBEdit, it's a blank page. I just want to open it and
: either view it, or make a copy to view. But all I have is the blank. Any
: suggestion
80 matches
Mail list logo