Daevid Vincent wrote:
I write many CLI scripts in PHP to clean up DB records, etc via crontab
scripts. Often though, I implement command line switches to 'debug' or see
various data as a precaution before actually purging.
Perl has some neat tools built in to format tabular data:
http://www.usen
Hi Robert, Stut & List
Thanks for your replies which arrived after I had gone to bed |-Z
Robert :-
> In PHP5 objects are no longer copied when assigned. Instead the object's
> handle is assigned (similar to a reference but not quite). So the
> behaviour is as expected.
Stut :-
> > I think I ha
David Restall - System Administrator wrote:
My main obesrvation is that I'm glad that I decided to revisit all my
old PHP4 stuff and rewrite or clean it up. I have hundreds of
$Working_Class = $Under_Class;
lines in my code as well as
$Upper_Class = & $Aristocracy;
lines too. I think the do
Please how can i chmod a directory to 0777
i tried chmod ($myDirectory, 0777); but nothing happens
thanks in advence
Nejeoui
You will have to loop through the directory recursively, running chmod()
on every file there is!
Regards,
Samy
abderrazzak nejeoui schrieb:
Please how can i chmod a directory to 0777
i tried chmod ($myDirectory, 0777); but nothing happens
thanks in advence
Nejeoui
--
PHP General Mailing
Philip Thompson wrote:
On 10/7/07, Stut <[EMAIL PROTECTED]> wrote:
I would recommend avoiding the use of BCC from PHP.
Why avoid Bcc from PHP?
Note that this applies to all automated sending, not just from PHP.
It depends on how it's sending the mail. I've come across configurations
where
abderrazzak nejeoui wrote:
Please how can i chmod a directory to 0777
i tried chmod ($myDirectory, 0777); but nothing happens
Check the return value. If it's false then it's failing for some
reason., most likely because the user it's running as doesn't have
permission to extend the permission
So, my question is: are there any good practices that I should be aware
of or example websites I can study, that will give me the knowledge I
need? I'm not looking for references on general software design
approaches, but practical information on how to apply them to PHP websites.
You could do
On 10/7/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> > it just so happens i
> > have a good friend with a very strong php background who tells me
> > practically the same thing, ppp isnt that big of a deal.
>
> It isn't.
i disagree.
> i disagree, why,
> > is it because ive had a classical
At 3:59 PM -0700 10/8/07, Daevid Vincent wrote:
I write many CLI scripts in PHP to clean up DB records, etc via crontab
scripts. Often though, I implement command line switches to 'debug' or see
various data as a precaution before actually purging.
Perl has some neat tools built in to format tab
lame... you can use javascript (which is faster) for this kind of stuff
Mark napsal(a):
Hey,
I've made a nice video where you see ajax in combination with php. and
it works really well although really is misspelled "realy".
Here is the video:
http://magedb.mageprojects.com/videos/MageDB%202nd%
On 10/6/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>
> Encapsulation and information hiding are separate topics. It is possible
> to
> have one without the other.
see the revision of my php4 critique.
> here are excerpts from 4
> > books, 2 on java, one on c++, and one on php:
> >
> > This abst
On 10/9/07, Stut <[EMAIL PROTECTED]> wrote:
> Philip Thompson wrote:
> > On 10/7/07, Stut <[EMAIL PROTECTED]> wrote:
> >> I would recommend avoiding the use of BCC from PHP.
> >
> > Why avoid Bcc from PHP?
>
> Note that this applies to all automated sending, not just from PHP.
>
> It depends on how
On 10/7/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> On Sun, 2007-10-07 at 11:42 +0100, Tony Marston wrote:
> >
> > The definition of OOP is "programming which is oriented around objects,
> thus
> > taking advantage of Encapsulation, Polymorphism, and Inheritance to
> increase
> > code reuse
wow, this thread has blown into a massive debate about oop.
well, i guess im the only one on the list who doesnt think php4 brings
enough to the table with its oop offerings.
the conversation has taken focus on what encapsulation is or isnt, but
recall, i pointed out there are many advantages php5
The other possible question you might want to ask is:
How will the message be formatted and sent... some services such as
hotmail will flag the message as spam based on the multiple mail
deliveries when used option #2. And there are also many other
considerations related to spam.
Instead what
On 10/9/07, Stut <[EMAIL PROTECTED]> wrote:
> abderrazzak nejeoui wrote:
> > Please how can i chmod a directory to 0777
> > i tried chmod ($myDirectory, 0777); but nothing happens
>
> Check the return value. If it's false then it's failing for some
> reason., most likely because the user it's runni
On 10/9/07, Nathan Nobbe <[EMAIL PROTECTED]> wrote:
>
> On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
> >
> >
> > Then how come these languages still offer PUBLIC access as an option?
>
>
>
> to expose a well defined interface of course.
>
> -nathan
>
and i have a question for you, Tony;
are
On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>
>
> Then how come these languages still offer PUBLIC access as an option?
to expose a well defined interface of course.
-nathan
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 10/7/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>>
>> > it just so happens i
>> > have a good friend with a very strong php background who tells me
>> > practically the same thing, ppp isnt that big of a deal.
Daevid Vincent wrote:
I write many CLI scripts in PHP to clean up DB records, etc via crontab
scripts. Often though, I implement command line switches to 'debug' or see
various data as a precaution before actually purging.
Perl has some neat tools built in to format tabular data:
http://www.usen
On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>
> You are confusing member variables with local variables. Member variables
> are part of the object's data which need to be made available to the
> outside
> world. Local variables are internal to the function, and do not need to be
> made avai
At 12:05 AM -0700 10/9/07, Jim Lucas wrote:
Daevid Vincent wrote:
Does PHP have any tools like this? I'd prefer not to pull in some PEAR
package or other bloat, but I'll take what I can get if it actually works
well. I was hoping there are some tips/tricks to show simple tabular data:
-snip-
not
On Tue, 2007-10-09 at 09:12 -0400, Nathan Nobbe wrote:
> On 10/7/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> > Nothing brittle at all about PHP4 code. I can completely screw
> > up any PHP5 code you send my way too.
>
> ok;
> without modifying this class, set the value of $someInt to a value
At 12:00 PM +0200 10/9/07, Samuel Vogel wrote:
You will have to loop through the directory recursively, running
chmod() on every file there is!
Regards,
Samy
Isn't there a sticky bit thing (i.e., 1777) you can use to change the
files inside a directory?
I've never done it, but I remember r
>
> Maybe next time you'll have a challenge for me ;) And don't whine about
> how I achieved what I did.
Brilliant! I never would have thought of that. ;)
thnx,
Christoph
On 10/9/07, tedd <[EMAIL PROTECTED]> wrote:
> At 12:00 PM +0200 10/9/07, Samuel Vogel wrote:
> >You will have to loop through the directory recursively, running
> >chmod() on every file there is!
> >
> >Regards,
> >Samy
>
> Isn't there a sticky bit thing (i.e., 1777) you can use to change the
> fil
On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> Maybe next time you'll have a challenge for me ;)
bravo! i expected you would come up w/ something.
And don't whine about
> how I achieved what I did.
>
fair enough.
maybe for your next trick youll build an interface in php4; or addr
On Tue, 2007-10-09 at 11:41 -0400, Christoph Boget wrote:
> >
> > Maybe next time you'll have a challenge for me ;) And don't whine about
> > how I achieved what I did.
>
>
> Brilliant! I never would have thought of that. ;)
It gets easier... here's a quick toolset for completely violating PHP5
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>>
>> You are confusing member variables with local variables. Member variables
>> are part of the object's data which need to be made available to the
>> outside
>>
On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> $sucker = new TryToViolateEncapsulation();
> $sucker = (array)$sucker;
>
> $keys = array_keys( $sucker );
> $sucker[reset( $keys )] = 500;
>
> $sucker = serialize( (object)$sucker );
> $sucker = 'O:25:"TryToViolateEncapsulation"'.substr( $suc
Jay Blanchard wrote:
[snip]
I saved it and it played in Winamp, but no audio
[/snip]
So, is it worth going to all of the trouble to see?
In a word, "no".
I watched it fine in Firefox on Linux with mplayer pluing. It just
worked(tm) for me!
But overall I have to say I was somewhat disapp
tedd wrote:
> Col:
>
> What do you think of this?
>
> http://webbytedd.com/b/timed-php/
>
> It's a combination of using both ajax and php together.
I'd say overkill for the end result (could be done in plain Javascript
without any "Ajax" calls), but then that's not really the point of the
page.
On Tue, 2007-10-09 at 11:49 -0400, Nathan Nobbe wrote:
> On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >
> > Maybe next time you'll have a challenge for me ;)
>
>
> bravo! i expected you would come up w/ something.
>
> And don't whine about
> > how I achieved what I did.
> >
>
> fai
On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> Why would I use an interface? :)
because inheritance is not always optimal.
What's the problem that's outlined? I'm too lazy to go and look :|
/**
* CI_BASE - For PHP 4
*
* This file is used only when CodeIgniter is being run under
Hi there guys
i developed an app that uses AJAX, ActiveX objects and PHP to download
and upload files from local machine to the server... everything works
great, i can transfer office files and even exe files. The problem i'm
face is to transfer mp3 files and pdf files... anybody already t
On Tue, 2007-10-09 at 12:40 -0400, Andrew Ballard wrote:
> On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > $sucker = new TryToViolateEncapsulation();
> > $sucker = (array)$sucker;
> >
> > $keys = array_keys( $sucker );
> > $sucker[reset( $keys )] = 500;
> >
> > $sucker = serialize( (obje
On Tue, 2007-10-09 at 13:15 -0400, Nathan Nobbe wrote:
> On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >
> > Why would I use an interface? :)
>
>
> because inheritance is not always optimal.
>
> What's the problem that's outlined? I'm too lazy to go and look :|
>
>
> /**
> * CI_BAS
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>>
>> Why would I use an interface? :)
>
> because inheritance is not always optimal.
I have never found a prolem when using an interface was the only solution,
On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>
>
> ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> >>
> >> Why would I use an interface? :)
> >
> > because inheritance is not always optimal.
>
> I hav
On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> Certainly you'll notice I've extended the original class,
> overriden the __wakeup() call and basically used inheritance
> and polymorphism to my advantage.
Noticed. :-) I said a *little* more difficult. Of course, I could
declare the class
On 10/9/07, Andrew Ballard <[EMAIL PROTECTED]> wrote:
>
> Honestly, it all seems a bit extreme. At some point, you have to trust
> the people you work with not to go to such lengths to violate an
> objects contract -- which I guess goes back to Tony's point whether
> the language "enforces" private
Good afternoon gurus and guru-ettes!
I am searching for an algorithm that will take a list of monetary values
and determine which of these values totals a value supplied to the
widget.
1. I supply a value to the application and give a date range
2. The application will query for all of the values
tedd wrote:
At 12:05 AM -0700 10/9/07, Jim Lucas wrote:
Daevid Vincent wrote:
Does PHP have any tools like this? I'd prefer not to pull in some PEAR
package or other bloat, but I'll take what I can get if it actually
works
well. I was hoping there are some tips/tricks to show simple tabular
d
> Date: Tue, 9 Oct 2007 14:01:30 -0500
> From: [EMAIL PROTECTED]
> To: php-general@lists.php.net
> Subject: [PHP] Looking for help with a complex algorithm
>
> Good afternoon gurus and guru-ettes!
>
> I am searching for an algorithm that will take a list of monetary values
> and determine which o
And that is when I realize how much more I still need to learn about
php...
On Oct 9, 2007, at 3:01 PM, Jay Blanchard wrote:
Good afternoon gurus and guru-ettes!
I am searching for an algorithm that will take a list of monetary
values
and determine which of these values totals a value sup
On Tue, 2007-10-09 at 14:01 -0500, Jay Blanchard wrote:
> Good afternoon gurus and guru-ettes!
>
> I am searching for an algorithm that will take a list of monetary values
> and determine which of these values totals a value supplied to the
> widget.
>
> 1. I supply a value to the application and
On Tue, 2007-10-09 at 14:11 -0400, Andrew Ballard wrote:
> On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > Certainly you'll notice I've extended the original class,
> > overriden the __wakeup() call and basically used inheritance
> > and polymorphism to my advantage.
>
> Noticed. :-) I
On Tue, 2007-10-09 at 16:18 -0400, Robert Cummings wrote:
> On Tue, 2007-10-09 at 14:11 -0400, Andrew Ballard wrote:
> > On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
> > > Certainly you'll notice I've extended the original class,
> > > overriden the __wakeup() call and basically used inhe
[snip]
This *IS* the knapsack problem. Just because you specify date ranges to
get your values and the value isn't a knapsack doesn't change the fact
that it is the same problem :) I remember having fun with genetic
algorithms and the knapsack problem back in University.
[/snip]
You're right save
On 10/9/07, Jay Blanchard <[EMAIL PROTECTED]> wrote:
> [snip]
> This *IS* the knapsack problem. Just because you specify date ranges to
> get your values and the value isn't a knapsack doesn't change the fact
> that it is the same problem :) I remember having fun with genetic
> algorithms and the k
On Tue, 2007-10-09 at 15:28 -0500, Jay Blanchard wrote:
> [snip]
> This *IS* the knapsack problem. Just because you specify date ranges to
> get your values and the value isn't a knapsack doesn't change the fact
> that it is the same problem :) I remember having fun with genetic
> algorithms and th
Hey all,
I need to extract the text from a PDF file for
storage in the database.
Is there a way to do this in PHP?
--
Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison, WI 53703
608-250-2720
http://bigskypenguin.com
=-=-=-=-=-=-=-=-=-=
Check out PHPenguin, a lightweight and versatil
I never heard of the knapsack problem before this post.
But the w in the w*x terms appear to be 1, and he seems to want an exact value,
not "less than or equal to".
I think my brute force factorial technique is a solution, but dynamic
programming may be more efficient? Not familiar with DP alth
> CC: php-general@lists.php.net
> From: [EMAIL PROTECTED]
> Date: Tue, 9 Oct 2007 15:58:22 -0400
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Looking for help with a complex algorithm
>
> And that is when I realize how much more I still need to learn about
> php...
IMHO, I don't think this has an
[snip]
So imagine the value of all of your items is equal to it's size. Voila,
same problem.
[/snip]
Got it. I was focused to much on the forest and not the trees.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[snip]
I need to extract the text from a PDF file for
storage in the database.
[/snip]
It depends. If the PDF is an image file you cannot do it with PHP.
http://www.php.net/pdf read the second user note
[snip]
Madison, WI 53703
[/snip]
P.S. Do you know of the Madison Scouts?
--
PHP General M
On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>
> There's your problem, then. You are wasting your time trying to implement
> fancy design patterns just because design patterns are supposed to be
> "cool". Loader class, Controller Base class, Front Controller - I have
> none
> of that crap i
At 5:52 PM +0100 10/9/07, Colin Guthrie wrote:
tedd wrote:
Col:
What do you think of this?
http://webbytedd.com/b/timed-php/
It's a combination of using both ajax and php together.
I'd say overkill for the end result (could be done in plain Javascript
without any "Ajax" calls), but then
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>>
>>
>> ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
>> news:[EMAIL PROTECTED]
>> > On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Why w
""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>>
>> There's your problem, then. You are wasting your time trying to implement
>> fancy design patterns just because design patterns are supposed to be
>> "cool". L
Jay Blanchard wrote:
Good afternoon gurus and guru-ettes!
I am searching for an algorithm that will take a list of monetary values
and determine which of these values totals a value supplied to the
widget.
1. I supply a value to the application and give a date range
2. The application will quer
[snip]
what is it suppose to return if it cannot find records that the exact
total do not match the total
you are looking for? should it return nothing?
[/snip]
Correct. It should say that there are no records that generate a match.
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>
> ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
> >> news:[EMAIL PROTECTED]
> >> > On 1
On Tuesday 09 October 2007, Robert Cummings wrote:
> $sucker = new TryToViolateEncapsulation();
> $sucker = (array)$sucker;
>
> $keys = array_keys( $sucker );
> $sucker[reset( $keys )] = 500;
>
> $sucker = serialize( (object)$sucker );
> $sucker = 'O:25:"TryToViolateEncapsulation"'.substr( $sucker
On Tuesday 09 October 2007, Tony Marston wrote:
> I have bought and read several books on design patterns without being
> impressed. I have seen countless examples of how particular design patterns
> can be implemented, and I am even more unimpressed. Unless you can explain,
> simply and with simp
Jay Blanchard wrote:
[snip]
what is it suppose to return if it cannot find records that the exact
total do not match the total
you are looking for? should it return nothing?
[/snip]
Correct. It should say that there are no records that generate a match.
Ok, so based off what you were aski
On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>
>
> ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
> >>
> >>
> >> ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
> >> news:[EMAIL PROTECTED]
> >> > On
On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
>
>
> ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
> >>
> >> There's your problem, then. You are wasting your time trying to
> implement
> >> fancy design pa
On 10/9/07, Guillaume Theoret <[EMAIL PROTECTED]> wrote:
>
> On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
> >
> > ""Nathan Nobbe"" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > On 10/9/07, Tony Marston <[EMAIL PROTECTED]> wrote:
> > >>
> > >>
> > >> ""Nathan Nobbe"" <
On 10/9/07, Larry Garfield <[EMAIL PROTECTED]> wrote:
>
> On Tuesday 09 October 2007, Robert Cummings wrote:
>
> > $sucker = new TryToViolateEncapsulation();
> > $sucker = (array)$sucker;
> >
> > $keys = array_keys( $sucker );
> > $sucker[reset( $keys )] = 500;
> >
> > $sucker = serialize( (object)
On 10/9/07, Larry Garfield <[EMAIL PROTECTED]> wrote:
>
> On Tuesday 09 October 2007, Tony Marston wrote:
> Here's a better reason to not bother learning PHP 4-style OOP. You have
> less
> than a year until running PHP 4 at all is considered an unsupported
> security
> risk. Don't waste your time
On Tue, 2007-10-09 at 21:37 -0400, Nathan Nobbe wrote:
>
> does a lawn mower not have blades; and gas and a control panel; does it not
> have
> wheels? my object modeling of a lawn mower would certainly have these
> things;
> and most likely i would mark components of the engine as private.
> and
On 10/9/07, Robert Cummings <[EMAIL PROTECTED]> wrote:
>
> On Tue, 2007-10-09 at 21:37 -0400, Nathan Nobbe wrote:
> >
> > does a lawn mower not have blades; and gas and a control panel; does it
> not
> > have
> > wheels? my object modeling of a lawn mower would certainly have these
> > things;
> >
74 matches
Mail list logo