Re: [PHP] Class Problems

2009-08-11 Thread Aschwin Wesselius
there are plenty hosting companies that do have PHP 5 and have a clear security/update policy. You, yes YOU, are their client paying their sandwich. If you are not serviced properly, they have to eat one less. Now, go on and brush them off.. Kind regards, Aschwin Wesselius -- PHP Ge

Re: [PHP] Extract an element from XML

2009-07-31 Thread Aschwin Wesselius
Aschwin Wesselius wrote: Angelo Zanetti wrote: Hi all, I have the following segment of XML: 165432 Now I want to get the value of the BookingReference where the ReferenceSource = "api". In other words I want to get the value 165432. I have the following code: $ItemConfirmation

Re: [PHP] Extract an element from XML

2009-07-31 Thread Aschwin Wesselius
advance. A Hi Angelo, Probably it is something along the lines like: $xpath->query('BookingReference/[...@referencesource="api"]/'); Fairly simple and XPath is way powerful! Kind regards, Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP screenshot capture code needed

2008-11-05 Thread Aschwin Wesselius
has been handled just a few weeks ago on this list. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Recursive Directory Listing

2008-11-04 Thread Aschwin Wesselius
Joe Schaeffer wrote: Joe, Here is a simplified recursive version of your above statement. '; foreach ( $dirs AS $entry ) { echo '', basename($entry); displayDir($entry); echo ''; }

Re: [PHP] Waste of storage space?

2008-10-29 Thread Aschwin Wesselius
Bastien Koert wrote: Hi, Ok, disk space is cheap, but you can't avoid the access/seek time penalty on this. - Unomi - Properly indexed, its not that bad...after all its what Dbs do best I only mention this, that while disk space seems a unlimited resource these days the fact that a

Re: [PHP] Waste of storage space?

2008-10-29 Thread Aschwin Wesselius
Bastien Koert wrote: Thank you for your respons. I have thought of such a sorting mechanism too. But on the other hand, the biggest drawback would be that even minor changes that might be really important could get lost. And my goal is to really keep track on everything my users do. And, in the

Re: [PHP] PHP XSLT caching

2008-10-28 Thread Aschwin Wesselius
like to see more ideas :) LOL sure, if someone already have a good working solution i would appreciate any link or code :0) Greetings, V Hi, I believe one of the two of the XSLT implementations in PHP, does (limited) caching in itself. But I'm not in the mood to find out which one. -- As

Re: [PHP] Method of connecting image

2008-10-23 Thread Aschwin Wesselius
to you, but it is possible to include one image into another and decide the position of it. So one or four, doesn't matter. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] PHP to get File Type

2008-10-14 Thread Aschwin Wesselius
Manoj Singh wrote: Hello All, Is there any function in PHP to get the file/Mime type of any file? Any help will be appreciated. Hi, There are better and more elegant ways to do this, but I'm not aware of them. Here is what I use most of the time. You only use the filename as $value for get

Re: [PHP] Flow chart tool

2008-10-09 Thread Aschwin Wesselius
d combining the scanning with putting the info into a GraphViz .dot file and use that to export it as a graphic. That way, you can interlink the overviews with each other and GraphViz finds the way to do this by itself. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Re: php framework vs just php?

2008-10-08 Thread Aschwin Wesselius
od supply of small, workable, understandable pieces of code that could make up for a framework, but doesn't. I don't want a house that is built on top of a factory framework with a lot of parts that makes it cloggy and won't be used at all. That is just my idea of why I use a

Re: [PHP] The 'at' sign (@) variable prefix

2008-10-07 Thread Aschwin Wesselius
general sucks but because it's actually less performant to trigger this kind of error. I second that. The @ symbol actually does this: @action(); Becomes: $old = ini_set(“error_reporting”, 0); action(); ini_set(“error_reporting”, $old); So, if you put that a hundred times all over your c

Re: [PHP] Pass parameters via url inside a php cron job

2008-09-25 Thread Aschwin Wesselius
than URL parameters. Try lookup information on argv and argc: http://www/php.net/features.commandline -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] __autoload alternative

2008-09-22 Thread Aschwin Wesselius
you want. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Making array to string

2008-09-17 Thread Aschwin Wesselius
ray" functions, but I have no clue where to start. Hi, This one is easy It wil 'blow' your mind... $array = array(0 => 'Good morning', 1 => 'Good night'); $str = implode(chr(10), $array); -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Email - Best practice/advice please

2008-09-12 Thread Aschwin Wesselius
ves (of this mailinglist for example) and if you can't figure it out, you come back. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Thank you...

2008-09-11 Thread Aschwin Wesselius
you want to get free from your government, check out these pages and at least know your rights: http://www.thinkfree.ca/ http://spiritualeconomicsnow.net/ -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Aschwin Wesselius
up much more than that. Like somebody else says, the integers take a lot of space, so beware of typecasting properly.. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] VCard

2008-08-19 Thread Aschwin Wesselius
-) How far did you get searching the web? Have you read documentation about VCard formats etc.? Maybe there are even Requests For Comments (RFC's) about it. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Re: PHP editor for linux

2008-08-18 Thread Aschwin Wesselius
lready has tried the software and has arguments against it, fine let them speak out. But I do feel much against a 'my editor, my framework, my blah is better than yours' flamewar discussion for the next 3 weeks. So I think I get your point. -- Aschwin Wesselius 'What you wo

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Aschwin Wesselius
Daniel Brown wrote: On Tue, Aug 5, 2008 at 8:53 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: I wouldn't like to loose my stuff, but I can't afford much for the best solutions either. It's not that my job depends on it, but personal data is a big loss too.

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Aschwin Wesselius
ch for the best solutions either. It's not that my job depends on it, but personal data is a big loss too. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] An appeal to your better nature

2008-08-05 Thread Aschwin Wesselius
look at my browser cache. Maybe I find something. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] SoapClient and arrays

2008-08-04 Thread Aschwin Wesselius
SXZHENMTVKEHJZQPYZ But it seems a bit unhandy and a workaround, if I have to the settype() thing each time I call a webservice. Is there a simpler way? Regards Marten Hi, What about $response->key ??? What does that give? It seems to me, that $response->key will be a public property of the stdClass? -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] How to jump into and loop through XML element

2008-08-04 Thread Aschwin Wesselius
ion). If you have different XSL files, you can have different formatting on the same data. But anyhow Simple XML should be what it's called after Simple.... -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Get Remote-Image

2008-07-31 Thread Aschwin Wesselius
ibt Sie ein Response, und konnen mit fgets() oder fread() ausgelesen worden. Wieso, $tmp = fgets($fp); Und weiter Sie konnen $tmp ins $File schreiben. fclose($File); fclose($fp); Vielleicht ist es nicht gar richtig, aber Sie konnen das doch testen. Viel Spaß mit coding. Grüße Aschwin Wessel

Re: [PHP] Why PHP4?

2008-07-28 Thread Aschwin Wesselius
...or will be again within short notice... ;-) -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] getting info from video formats

2008-07-28 Thread Aschwin Wesselius
build your own downsized version of such a library and use it as you see fit. On Mon, Jul 28, 2008 at 11:41 AM, Aschwin Wesselius <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Rene Veerman wrote: Hi. I want to enable video and flash for my CMS, but that requir

Re: [PHP] getting info from video formats

2008-07-28 Thread Aschwin Wesselius
Aschwin Wesselius wrote: Rene Veerman wrote: Hi. I want to enable video and flash for my CMS, but that requires that i can read at least the dimensions of a video file.. ImageMagick's "identify" command supposedly reads AVI and MPEG, but i can't get it to work on my a

Re: [PHP] getting info from video formats

2008-07-28 Thread Aschwin Wesselius
files. I'd like to be able to read as many of the major video formats (AVI, XVID, DIVX, QT, etc) as possible. Hi, Maybe this is something for you: http://getid3.sourceforge.net I've used an older version a while ago, but it did some video recognition too as far as I know. It'

Re: [PHP] Code beautifier

2008-07-24 Thread Aschwin Wesselius
;t say it's unreadable, but I can say it about my coworkers code. So, for now I use PHP_Beautifier and not some IDE tool wich meets only half way and misses the point. Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Code beautifier

2008-07-24 Thread Aschwin Wesselius
it. That's my two cents. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Code beautifier

2008-07-24 Thread Aschwin Wesselius
Richard Heyes wrote: Anyone know of an unintrusive code beautifier written specifically with in mind? Thanks. Hi, With 'what' in mind? -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] syntax error

2008-07-21 Thread Aschwin Wesselius
Eric Butera wrote: On Mon, Jul 21, 2008 at 7:55 AM, Aschwin Wesselius <[EMAIL PROTECTED]> wrote: Probably the mysql extension is not found or not loaded (due to not being compiled with the right path or the default path in PHP is not the right one). Happened to me a couple of

Re: [PHP] syntax error

2008-07-21 Thread Aschwin Wesselius
your error log or look at mysql_error() for a reason why. Probably the mysql extension is not found or not loaded (due to not being compiled with the right path or the default path in PHP is not the right one). Happened to me a couple of times. -- Aschwin Wesselius /'What you would like to

Re: [PHP] Optimization of PHP Code

2008-07-18 Thread Aschwin Wesselius
. The Fallacy of Premature Optimization: http://www.acm.org/ubiquity/views/v7i24_fallacy.html So, let's define premature please -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] OpenID

2008-07-18 Thread Aschwin Wesselius
n relate Oceania to, is not such a funny story about knowing everything about people. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] What font/size do you use for programming?

2008-07-09 Thread Aschwin Wesselius
aEdit on a 22" Dell flatscreen. I'd rather use Linux and probably monospace as small as possible. In PuTTY I use 6pt Proggy's OptiSmall to hack away in Nano on the commandline. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Re: class_is_loadable?

2008-07-05 Thread Aschwin Wesselius
x27;ll think of something smarter...this is the first thing that came into my mind. Btw why is it so important to use autoloading anyway? Hi, Has anybody used the PECL extension automap yet and if so, are there issues with using that to autoload or not? Greetings, Aschwin Wesselius -- PHP

Re: [PHP] Inspiration for a Tombstone.

2008-06-27 Thread Aschwin Wesselius
Robin Vickery wrote: 2008/6/27 Brice <[EMAIL PROTECTED]>: A classical : echo PHP_EOL; If even your kids don't know your name, since you're always busy hacking away: "Rest in peace" posix_getppid(); Johnny jr. Susie Melanie -- Asc

Re: [PHP] Inspiration for a Tombstone.

2008-06-26 Thread Aschwin Wesselius
that cross my mind about this: A simple end of script tag: ?> But that is really vague of course. Another would be: function life(&$user) { while($user->days_on_earth !== COUNTED) { $user->do_stuff(); } $user->disconnect(); } Endless things possible with pr

Re: [PHP] Redirect after pdf / file download

2008-06-12 Thread Aschwin Wesselius
work instead of the script part is just: header('Location: 3.html'); exit; But I'm not sure it works. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

[Fwd: Re: [PHP] multithreading]

2008-06-04 Thread Aschwin Wesselius
r(s) right now, so I can't give you the exact name of the package.. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] page suck attack

2008-05-21 Thread Aschwin Wesselius
robert wrote: Not that i can tell. Yahoo and google have a signature: googlebot and slurp. both of them also check my site over a span of days. that's all good. The others come from regular isps as far as their IP tells me and the hits are within milliseconds. Hi, Are the URL's legit? Or are

[PHP] Dead code

2008-05-19 Thread Aschwin Wesselius
Hello list, Is there anyone having experience with finding "dead code" in their library / application? Dead code as in unused variables, uncalled methods, uncalled functions, undeclared classes etc. Any help on examples, resources etc. is much appreciated. -- Aschwin Wesselius

Re: [PHP] tracking Mials Which were bounced.

2008-05-13 Thread Aschwin Wesselius
Chetan Rane wrote: Hi All I am using a PHP Mailer to send mass mails. How can I Identify how mails have bounced. Hi, I guess you have to read some RFC's to get an idea about e-mail protocols. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Regex to catch s

2008-05-07 Thread Aschwin Wesselius
e on the page? Hi, I said before that the example could be a little bit overkill, but it gives a quick example how to find any tag(s) given, with any attribute(s) given and with any text given in between the opening and closing tag. And yes, it might be incomplete or maybe not even accurate, but it does give you a headstart on your solution. There always will be people who will give you a shorter, cleaner, more beautiful example, but I hope that it was helpful for you or will be helpful for someone else. Cheers, Aschwin Wesselius

Re: [PHP] How to determine if file is writable and deletable

2008-05-07 Thread Aschwin Wesselius
x27;s ownership is the site-name, and I want the scrip to be able to determine if it can delete a file. Thus, the file in question must have its "other" permissions include write. Surely, there must be an easier way. Thanks, Al Hi, Maybe this is what you need: http://nl.ph

Re: [PHP] Problems with mod_vhost_alias and PHP require

2008-05-07 Thread Aschwin Wesselius
defined as a subdomain in the DNS* I need to include in my index.php the file /home/pages/fckeditor/fckeditor.php I have: @define('FCKEDITOR_BASE', dirname(__FILE__)); require FCKEDITOR_BASE . '/../fckeditor/fckeditor.php'; Hi, Try this '../fckeditor/fckeditor.php'

Re: [PHP] AI file and mapping with PHP

2008-05-07 Thread Aschwin Wesselius
it an desktop application? Is it console based? -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Handling Incoming Email Attachments

2008-05-06 Thread Aschwin Wesselius
the attachments and do not rely on the MIME-type only. People can spoof that kind of files. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Regex to catch s

2008-05-06 Thread Aschwin Wesselius
Aschwin Wesselius wrote: Aschwin Wesselius wrote: Ryan S wrote: Hey all! To say I suck at regex is an understatement so really need any help I can get on this, I have a page of text with different html tags in them, but each "block" of text has a or a < class="something

Re: [PHP] Regex to catch s

2008-05-06 Thread Aschwin Wesselius
Aschwin Wesselius wrote: Ryan S wrote: Hey all! To say I suck at regex is an understatement so really need any help I can get on this, I have a page of text with different html tags in them, but each "block" of text has a or a < class="something"> tag... anybod

Re: [PHP] Regex to catch s

2008-05-06 Thread Aschwin Wesselius
p($matches); ?> I'm not an expression guru either, but I think it works OK. I had to find 'link', 'img', 'a' and other tags in HTML and used a more complex expression for it which worked like a charm. It's just an example. For you, you have to leave away the 'a' tag in the $tags array, to get what you want. Hope it helps! -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Apache child pid segfault + APD

2008-05-05 Thread Aschwin Wesselius
Hi, Recently there is a webinterface for interpreting the results of XDebug: http://blog.agoraproduction.com/index.php?/archives/67-XDebug-to-finally-get-a-Web-Frontend.html Maybe it is for your interest. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Best practices for using MySQL index

2008-04-30 Thread Aschwin Wesselius
table contains etc. Besides that, benchmarking your development environment (you do have one do you?) can gives you a good idea on how your hardware and setup performs. Aschwin Wesselius

Re: [PHP] Best practices for using MySQL index

2008-04-30 Thread Aschwin Wesselius
short hint on using indexes. But becoming a master does not come over night. Try the website www.mysqlperformanceblog.com for more good solid tips on these topics. Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_connect slowness

2008-04-28 Thread Aschwin Wesselius
ad. When the load decreases, MySQL is better being able to keep up with the processes. -- Aschwin Wesselius 'What you would like to be done to you, do that to the other' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: php framework vs just php?

2008-04-23 Thread Aschwin Wesselius
Lester Caine wrote: 'If it isn't broken don't fix it' causes a problem when YOU know that the step change will make future development easier, but the customers keep asking - 'Can you just add XXX' :( So they actually ask for a porn site? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Hack question

2008-04-16 Thread Aschwin Wesselius
any third party software installed? Like a BB or a CMS or whatever? When these hackers know your site/server is vulnerable they will keep on exploiting it. Even if it just means SMTP relaying for phishing or a HTTP directory for putting malware in. Keep track of your HTTP-logs and see if these

Re: [PHP] Hack question

2008-04-16 Thread Aschwin Wesselius
any third party software installed? Like a BB or a CMS or whatever? When these hackers know your site/server is vulnerable they will keep on exploiting it. Even if it just means SMTP relaying for phishing or a HTTP directory for putting malware in. Keep track of your HTTP-logs and see if these

Re: [PHP] newsletter administration

2008-04-10 Thread Aschwin Wesselius
rs is not something I would like to build for any customer. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] require_once dying silently

2008-04-09 Thread Aschwin Wesselius
ere. Also, OOP is nice and all (not to start a thread about OOP again), but putting your config into an object seems a bit overdo to me. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Memory usage very high under AMD64?

2008-04-03 Thread Aschwin Wesselius
gging knowhow on this, not just some handwaving estimates please Ed W Maybe still some handwaving, but my colleague forwarded me this link: http://www.bit-tech.net/bits/2007/10/16/64-bit_more_than_just_the_ram/1 I hope that's still in your interest. -- Aschwin Wesselius /'What yo

Re: [PHP] Memory usage very high under AMD64?

2008-04-03 Thread Aschwin Wesselius
tions increase with this factor. I think the memory goes into a square ratio (NxN) instead of just saying double (Nx2). Again, I'm not a wizzkid with enough math experience. This is just my simple and humble reasoning. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] base64 encode question

2008-04-03 Thread Aschwin Wesselius
whole string is different and thus unique. Hope this helps! -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] optimilize web page loading

2008-03-26 Thread Aschwin Wesselius
irefox, you can use the Yslow extension. This will show you the bottlenecks of the page loaded (images, stylesheets, javascripts, total duration, total size etc.). -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

[PHP] Manipulating PDF

2008-03-23 Thread Aschwin Wesselius
HP? Or does anybody has a hint how to start doing it myself (maybe examples in Python or C which can be ported)? Again, I'm not after PHPLib or FPDF, since these libraries are either old or insufficient for what I want. Thanks in advance. Aschwin Wesselius -- PHP General Mailing

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Aschwin Wesselius
uld be 60.000 requests (besides all the images, stylesheets, javascripts that are being re-requested). Or am I talking nonsense? -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Aschwin Wesselius
a user get's to the right destination? -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Aschwin Wesselius
t not knowing what to do with flow. So, if you know what you want to handle (control) and what you want the user to see (view), one should be able to model it without the use of redirects unless it really is needed. Or is it OK, to redirect and 'simplify' the flow? -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

[PHP] General use of rewrite / redirect

2008-03-18 Thread Aschwin Wesselius
s your opinion about (ab)using rewrites / redirects? Do you use it quick and dirty, or is it some elegant way of controlling flow? Thanks. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] What's wrong the __autoload()?

2008-03-14 Thread Aschwin Wesselius
obody wins - $r, $u, $stillWithMe Cheers, Rob. Aha, you lose. You were the first to mention Nazis. :-) Hey, at least I've learned something today. I thought he was joking about Godwin's Law and whatever. But it really exists! Nice to know. -- Aschwin Wesselius /'What you

Re: [PHP] Last Friday of every month

2008-03-14 Thread Aschwin Wesselius
tion it is faster off course // echo 'Yeah, friday!'; } } Something similar worked for me to find out when daylight saving time is. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] What's wrong the __autoload()?

2008-03-14 Thread Aschwin Wesselius
- $r, $u, $stillWithMe Aaah. so we're just six points before the end of this thread? ;-) -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] What's wrong the __autoload()?

2008-03-13 Thread Aschwin Wesselius
g amazing, really. If that makes the PHP community as great as it has become, I want to join and put some effort in this marvelous activity. Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Quick Reminder....

2008-03-13 Thread Aschwin Wesselius
ey manage pretty well.. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] php cron to check and remove files

2008-03-13 Thread Aschwin Wesselius
e db exist. This will run via cron Has anyone done something similar before, willing to assist me with a basic scope of actions to work on? Hi, Do you already have some code? Do you got stuck somewhere? Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] php cron to check and remove files

2008-03-13 Thread Aschwin Wesselius
toiletseat? ;-) Why don't you just put a toiletseat behind your desk? Saves the effort walking down to the restroom. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] Frameworks

2008-03-12 Thread Aschwin Wesselius
c. Voila, all arguments for a good framework. Zend sounds really a stable and reliable product. I'm gonna setup a testserver and see how far it goes. BTW, any people having experience with PHP UnderControl? Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Aschwin Wesselius
question. -1 for thinking rhetorical question responses mean jack. -1 for thinking +2 exists. *Yawn* -5 for not keeping this kind of childish behavior of the list (both of you) Aschwin Wesselius

Re: [PHP] Frameworks

2008-03-12 Thread Aschwin Wesselius
for RAD and then writing your own framework..... Must be kidding ;-) OK, thanks for your input. Some points are really helpful! Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Frameworks

2008-03-12 Thread Aschwin Wesselius
to test instead in building the surrounding elements? Again, maybe I've to dive into archives etc. But that doesn't give me answers I need I guess. Thanks in advance. Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What's wrong the __autoload()?

2008-03-12 Thread Aschwin Wesselius
high creek in a 4-wheel drive auto might think such a thing impossible if they were unaware of 4-wheel drive. LOL.... well said. Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A Quick Reminder....

2008-03-12 Thread Aschwin Wesselius
iving%20on%20the%20left.htm But I don't know who started with top-posting which is against the netiquette RFC. People sticking with strict HTML, coding standards in PHP, valid XML, nice pixelf*cked CSS etc. and not posting below a message on a list are a bunch of hypocrites. Simple

Re: [PHP] Comparing files

2008-03-12 Thread Aschwin Wesselius
th1) == file_get_contents($path2)); } I would say, use a md5 checksum on both files: function files_identical($path1, $path2) { return (md5(file_get_contents($path1)) === md5(file_get_contents($path2))); } -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] save image in database vs folder

2008-03-11 Thread Aschwin Wesselius
. save in database or in folder? You guys seem to be a little sensitive about the subject ;-) I think I'm gonna dive into the archives then. To see for myself what left such a scars upon that subject. -- Aschwin Wesselius /'What you would like to be done to you, do that to the other'/

Re: [PHP] difference in time

2008-03-11 Thread Aschwin Wesselius
= 's '; } } elseif ($seconds > 0) { $amount = $seconds; $unit = ' second'; if ($seconds > 1) { $unit.= 's '; } } return $amount.$unit; } $posted = ; // some timestamp in t

Re: [PHP] Transferring files between computers using php

2008-03-07 Thread Aschwin Wesselius
systems is somehow weird. I think it is very intensive and like I said if somehow one part of the syncing 'hangs', it can fill memory or bandwidth very quickly. So, I can't still figure out what has to be done over to these computers every minute or whatever. The situation is n

Re: [PHP] Transferring files between computers using php

2008-03-07 Thread Aschwin Wesselius
all the options in depth and may not work like scp does (which is way more secure). So I would go with scp in a cronjob, but netcat is still an option. -- Aschwin Wesselius What you would like to be done to you, do that to the other -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] URL modification

2008-03-06 Thread Aschwin Wesselius
ntrol about virtual paths etc. As always: TIMTOWTDI, so I'm gonna play with this .htaccess rule and see if this is better than a 404 handler. Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP performance

2008-03-03 Thread Aschwin Wesselius
Also good to investigate are huge loops, huge arrays that are iterated over etc. Do this step by step so you are sure which part you are investigating. Otherwise you have 10 steps, 10 results and you don't know anymore where to look. Good luck. Aschwin Wesselius -- PHP General Mail

Re: [PHP] Making sure an include file works

2008-03-03 Thread Aschwin Wesselius
Aschwin Wesselius wrote: Chris wrote: have you considered installing a local copy of php (and suitable webserver) so you can test it there? I'd also suggest using a revision control system (subversion or git) and have pre-commit hooks to check the syntax. It's a bit of work

Re: [PHP] Making sure an include file works

2008-03-02 Thread Aschwin Wesselius
o use such hooks. Thanks. Aschwin Wesselius -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Aschwin Wesselius
learn more and more about C syntax and solutions, where a lot of optimization and tradeoffs is made. Memory, speed, filesystem access etc. I had to look twice before I understood what you did with the shuffle. -- Aschwin Wesselius What you would like to be done to you, do that to the other..

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Aschwin Wesselius
Aschwin Wesselius wrote: Sorry, Rob, that function doesn't return anything. ;-) Bugger, it's getting late. Didn't see the &. -- Aschwin Wesselius What you would like to be done to you, do that to the other -- PHP General Mailing List (http://www.php.n

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Aschwin Wesselius
Robert Cummings wrote: There's always a tradeoff between speed and memory. Here's the low memory version: Sorry, Rob, that function doesn't return anything. ;-) -- Aschwin Wesselius What you would like to be done to you, do that to the other -- PHP Gener

Re: [PHP] Re: [SOLVEDish] Re: [PHP] output buffering in CLI script.

2008-02-28 Thread Aschwin Wesselius
hebang"); include "php://filter/read=trim.shebang/resource=/path/to/include.php"; ?> bit more graceful ;) Me thinks that when shebang doesn't fit /usr/bin/php (which happens sometimes) you're doomed. But it still is a nice example. -- Aschwin Wesseliu

Re: [PHP] reverse string without strrev();

2008-02-28 Thread Aschwin Wesselius
e way I picked it up. -- Aschwin Wesselius What you would like to be done to you, do that to the other -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >