Re: [PHP] looking for group/playlist functionality... (sort of!!)
hmm mpd/mpc allows much of what you ask, for a playlist that is. I made a frontend to this deamon using php. don't know about that disabling/enabling feature but I recon that part can be done php only. On Oct 22, 2008, at 3:15 PM, bruce wrote: Hi.. Working on a project, and I need to be able to allow the user to create groups of files from a list of files. (all of this is php/web-based) As I'm going though what I'm going to need, it occurred to me that someone's hopefully/probably already created the basic logic for this in someother app. I looked in freshmeat/sourceforge with not much luck, and figured I'd post here to get some thoughts as well... I need to be able to: -take a list of files -allow user to displau the list of files, select a given file, and add the file to a new group -the app needs to let a user select a given group (already created) and let the user delete/remove a file from the group, or add a new file to the group -app allows a user to delete the group -app allows user to enable/disable the group -etc... It occured to me that this is the kind of functionality in a playlist kind of app (I imagine), or some kind of batch app, that deals with manipulating groups/dirs of files... So, while I can create this functionality, never hurts to look at what might already be out there... If you have pointers to an existing app that does something similar to the above functions, or other thoughts, feel fre to reply! thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Best way to recieve image from url?
On Oct 20, 2008, at 12:46 AM, Nitsan Bin-Nun wrote: Hi, I have this function: function saveImageFromUrl($image_url, $image_save) { $contents = file_get_contents($image_url); $fp = fopen($image_save, 'w'); fwrite($fp, $contents); fclose($fp); } As you can see it fetches the images contents and write them to new image on my local directory. Is this is the best way to do this? (I don't have curl) Does file_get_contents() uses buffer to get the contents of the image? (in case the server response is slow) the server will respond slow either way if it is slow to respond. There is a better way? Thanks in Advance, Nitsan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP to Java
On Oct 16, 2008, at 10:50 PM, [EMAIL PROTECTED] wrote: For reasons we needn't go into, I need to convert this to Java: $to_encode = example.com/api?foo=bar; $key = asdfasdfasdfasdfasdfasdf; //fake value, but 24 bytes $td = mcrypt_module_open('tripledes', '', 'ecb', ''); mcrypt_generic_init ($td, $key, $iv); $c_t = mcrypt_generic ($td, $to_encode); I've been Googling for hours and tried all kinds of stuff, none of which came even close. Any suggestions on a good reference or conversion program or something?... a little somethingsomething String to_encode = new String(example.com/api?foo=bar); String key = new String(asdfasdfasdfasdfasdfasdf); Mcrypt_module td = new Mcrypt_module('tripledes', '', 'ecb', ''); td.init(key, iv); td.mcrypt_generic(to_encode); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php image and javascript include
On Saturday 13 September 2008 23:35:47 Ashley Sheridan wrote: On Sat, 2008-09-13 at 23:24 +0200, Børge Holen wrote: On Saturday 13 September 2008 01:34:41 Ashley Sheridan wrote: I've never been a huge fan of Vi or Vim, but I am a fan of coding in a text editor, not a GUI, I just guess I prefer Kate. I know for certain that one thing that really bugs me about Dreamweaver is the fact that it has a tendency to really nerf up the spacing, and it replaces tabs with spaces more often than not. It's all about the tabs to space things out, adding spaces just makes the files bigger! Oh, thats just how you set up DW, options on indentations is througoutly documented inside the preferences pane and quite a few options to go, only thing that is wrong with it is the way it can't handle large projects, say like more than 100 files. nevermind the filesize... Ash www.ashleysheridan.co.uk -- --- Børge Holen http://www.arivene.net I've worked on projects like that before, but never considered DW, I used Notepad++ instead, as I was forced to use Windows at work at the time. I never really had any reason to try to open all the files at once though... ;) Thats not what I was talking abount either,The tree view of project files cannot handle many files before the waiting gets annoying Ash www.ashleysheridan.co.uk -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php image and javascript include
On Saturday 13 September 2008 01:34:41 Ashley Sheridan wrote: I've never been a huge fan of Vi or Vim, but I am a fan of coding in a text editor, not a GUI, I just guess I prefer Kate. I know for certain that one thing that really bugs me about Dreamweaver is the fact that it has a tendency to really nerf up the spacing, and it replaces tabs with spaces more often than not. It's all about the tabs to space things out, adding spaces just makes the files bigger! Oh, thats just how you set up DW, options on indentations is througoutly documented inside the preferences pane and quite a few options to go, only thing that is wrong with it is the way it can't handle large projects, say like more than 100 files. nevermind the filesize... Ash www.ashleysheridan.co.uk -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php image and javascript include
On Friday 12 September 2008 12:02:13 you wrote: there's three letters VIM! yes and amiga still kicks ass. The old fashioned way works, ok. But ... after a while, you still do the same old thing the same old way, while everything passes you by. I love vim for reading and editing a file here or there, make a script to do some backup there, shortcuts for doing a lot of small thing. Still I draw a line when having to do projects with more than a few files, there are new and better ways. But your not that far off, I feel sorry for those guys still thinking nano and joe is the world ;D You can make that do most anything if you trawl the scripts site. . . 2008/9/9 Ashley Sheridan [EMAIL PROTECTED] Kate has an auto text feature, and you can set it to start prompting from typing in as few characters as you wish, although it only prompts for things you've already typed, it this does save you from making obvious variable name typos as it will prompt the next time you try to use it, and it recognises many, many more languages than DW. If you're just after the code view, Dreamweaver is a little heavy, and it runs on an OS which is also a bit heavy, but that's for another discussion! Ash www.ashleysheridan.co.uk -- Forwarded message -- From: Børge Holen [EMAIL PROTECTED] To: php-general@lists.php.net Date: Mon, 08 Sep 2008 14:57:34 +0200 Subject: Re: [PHP] php image and javascript include On Monday 08 September 2008 14:53:24 Jay Moore wrote: Dreamweaver? Eclipse? Pah, it's all about using a text editor! Kate (on KDE) is my preference ;) Heathen! Dreamweaver is awesome. Not for their WYSIWYG editor, but for their code-only view and its auto-complete. Never have I typed so little to get so... little. I thought so to, till I tried quanta+ Jay -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php image and javascript include
On Monday 08 September 2008 14:53:24 Jay Moore wrote: Dreamweaver? Eclipse? Pah, it's all about using a text editor! Kate (on KDE) is my preference ;) Heathen! Dreamweaver is awesome. Not for their WYSIWYG editor, but for their code-only view and its auto-complete. Never have I typed so little to get so... little. I thought so to, till I tried quanta+ Jay -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] An appeal to your better nature
On Thursday 07 August 2008 03:57:06 you wrote: On Thu, 2008-08-07 at 00:46 +0200, Børge Holen wrote: On Wednesday 06 August 2008 20:00:50 tedd wrote: At 9:11 AM -0400 8/5/08, 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. Tell me about it. One of the sickest feelings in the world comes when you hear your hard drive start going click click choke click No question about it. That's the reason why I have three backup systems. One in my garage in a fireproof safe that's in another fireproof safe; One hidden in my house in another fireproof safe; And one attached to my main computer that I backup everyday, or more often, which is stored (when not in use) in a yet another waterproof and fireproof safe. (I'm big on fireproof safes) All of which are protected by me and my guns. The only way I'm going to lose any data is if my place is stuck by a meteor. Sure it takes a lot of time to backup, but less than the alternative. I'm just gonna comment some here. Hell, it's a bitch to loose data, but I give you this... These pro's here, ain't getting things done, no time for it between backups. The time they use each year on backup you can write new code tenfold. ;D muhaha What are you yammering on about? A simple cron job can do the backup while I sleep-- Look ma... I work while I sleep! tell me, you really didn't get the point I was making; after all the good advices ppl are making? Cheers, Rob. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] An appeal to your better nature
On Thursday 07 August 2008 16:28:12 tedd wrote: At 11:50 AM +0200 8/7/08, Børge Holen wrote: On Thursday 07 August 2008 03:57:06 you wrote: On Thu, 2008-08-07 at 00:46 +0200, Børge Holen wrote: On Wednesday 06 August 2008 20:00:50 tedd wrote: Sure it takes a lot of time to backup, but less than the alternative. I'm just gonna comment some here. Hell, it's a bitch to loose data, but I give you this... These pro's here, ain't getting things done, no time for it between backups. The time they use each year on backup you can write new code tenfold. ;D muhaha What are you yammering on about? A simple cron job can do the backup while I sleep-- Look ma... I work while I sleep! tell me, you really didn't get the point I was making; after all the good advices ppl are making? Sorry, I didn't get your point either. My backups are done whenever I want to take a break -- two clicks and everything is backed up by time I get back. Simple. The remote backups take longer because I have to physically go get the drives out of my safes, and that happens about one a week -- besides, I need the exercise. The online stuff, I can never trust so I don't rely on it. After all, service centers do catch fire. Backups are like home defense, don't rely on the cops, don't rely on the neighbors, don't rely on remote services, only you can safeguard your stuff. The question of how much to backup is like gambling, risk only what you can afford to lose. You actually didn't read what I replied to, what are you commenting then? Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] An appeal to your better nature
On Thursday 07 August 2008 16:58:32 tedd wrote: At 4:35 PM +0200 8/7/08, Børge Holen wrote: On Thursday 07 August 2008 16:28:12 tedd wrote: At 11:50 AM +0200 8/7/08, Børge Holen wrote: I'm just gonna comment some here. Hell, it's a bitch to loose data, but I give you this... These pro's here, ain't getting things done, no time for it between backups. The time they use each year on backup you can write new code tenfold. ;D muhaha What are you yammering on about? A simple cron job can do the backup while I sleep-- Look ma... I work while I sleep! tell me, you really didn't get the point I was making; after all the good advices ppl are making? Sorry, I didn't get your point either. You actually didn't read what I replied to, what are you commenting then? Huh? I still don't get your point. My additional comments beyond not getting your point were obviously about backups -- was that not clear? It is acceptable and common to carry more than one point/topic in a communication. nah, we do not communicate very good. stops here, we're clearly not on the same topic Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] An appeal to your better nature
On Wednesday 06 August 2008 20:00:50 tedd wrote: At 9:11 AM -0400 8/5/08, 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. Tell me about it. One of the sickest feelings in the world comes when you hear your hard drive start going click click choke click No question about it. That's the reason why I have three backup systems. One in my garage in a fireproof safe that's in another fireproof safe; One hidden in my house in another fireproof safe; And one attached to my main computer that I backup everyday, or more often, which is stored (when not in use) in a yet another waterproof and fireproof safe. (I'm big on fireproof safes) All of which are protected by me and my guns. The only way I'm going to lose any data is if my place is stuck by a meteor. Sure it takes a lot of time to backup, but less than the alternative. I'm just gonna comment some here. Hell, it's a bitch to loose data, but I give you this... These pro's here, ain't getting things done, no time for it between backups. The time they use each year on backup you can write new code tenfold. ;D muhaha Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Web2.0 style tags - where to start?
On Tuesday 29 July 2008 00:57:22 Paul Jinks wrote: Jason Norwood-Young wrote: On Mon, 2008-07-28 at 14:48 +0100, Paul Jinks wrote: I think my first post was ambiguous. What we're thinking of is to build a site on which people can view videos with the option to add metadata to a video after viewing it. We think that the content we have will be of wide interest to a lot of people and the best way to index it is for users to 'tag' it themselves, since it's hard for us to anticipate the uses that people may have for the content. How do you plan to have users enter the info? Through the Flash player, through some kinda Ajax form, through a form in a frame or just a static form? Also, would the tags be predefined by you (eg. genres like the ID3 tag genres) or would people be able to add their own tags? The way I'd do it would be to let the users enter the info through an Ajax form below the video, with suggestions popping up as they type. Then save it in a separate table (I assume all your vids are in their own table) with a link table between the vids table and the tags table (M2M relationship). This means that if the tag is already in there and linked to one vid, you don't replicate it for a second vid. It's also very easy to do lookups of similar items. I'd also add a weighting to the tags in the links table, maybe with the more people that add a specific tag, the more weight that tag gets. Also check out http://www.music-map.com/ as an example of showing similar music - you might even be able to plug into this data. Hi Jason Hmm, food for thought. music-map is brilliant, though not what I'm looking for graphically at the moment (was surprised to find Cesaria Evora in close proximity to The Cardigans but I digress). What you describe is pretty much what I'm chasing, thanks and helps me down the road, particularly with thinking about the database set up. They 'only' problem is, my php/mysql skills are some way behind my javascript/actionscript knowhow (I'm pretty much a noob here); what I could use now is a how-to tutorial to give me some code to work off, either online or in a book. If it ain't there, I can build from scratch but it's going to mean a lot of calls for help! =) http://www.google.com/search?q=mysql+php+tutorialsie=utf-8oe=utf-8aq=trls=org.debian:en-US:unofficialclient=iceweasel-a I like from scratch... =D I guss I can do that cuz I don't make a living out of it ;D Many thanks Paul -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Code beautifier
On Friday 25 July 2008 20:10:30 Daniel Brown wrote: On Fri, Jul 25, 2008 at 2:04 PM, Wolf [EMAIL PROTECTED] wrote: True, but but and butt are two very distinct words... ;) I know Dan, it's that grammar thing.. Even using the Queen's English makes it a tush for the push. ;) Just reading that opening sentence aloud was fun. its just weird. Oh btw, this is a NERD list... =D -- /Daniel P. Brown Better prices on dedicated servers: Intel 2.4GHz/60GB/512MB/2TB $49.99/mo. Intel 3.06GHz/80GB/1GB/2TB $59.99/mo. Dedicated servers, VPS, and hosting from $2.50/mo. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache blocking certain requests instead of php
On Thursday 24 July 2008 09:14:55 Chris wrote: I was hoping there's a way to tell apache to block requests where id=non_numeric. It's trying to do a remote inclusion. It's easy for you to fix in php: if (isset($_GET['id'])) { if (!is_numeric($_GET['id'])) { die(Die hacker die!); thats sudden! ;) } } I'm sure there would be a way to do it with ModRewrite or something but it's 5 lines of code in php so I'd do it there *shrug*. -- Postgresql php tutorials http://www.designmagick.com/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Apache blocking certain requests instead of php
On Thursday 24 July 2008 09:38:57 Chris wrote: Børge Holen wrote: On Thursday 24 July 2008 09:14:55 Chris wrote: I was hoping there's a way to tell apache to block requests where id=non_numeric. It's trying to do a remote inclusion. It's easy for you to fix in php: if (isset($_GET['id'])) { if (!is_numeric($_GET['id'])) { die(Die hacker die!); thats sudden! ;) ok maybe a bit harsh :P stop hacker stop ? I prefer die(); it leaves a bit unsatisfaction for whoever generates the blank page ;) -- Postgresql php tutorials http://www.designmagick.com/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Development Team
On Friday 18 July 2008 07:34:22 Nathan Nobbe wrote: On Thu, Jul 17, 2008 at 10:11 PM, AvPHP [EMAIL PROTECTED] wrote: We represent an established team of 15 PHP developers, with extensive experience in OOP Lamp development, including multiyear projects with thousand of total programming hours. They have also worked on numerous customized Content Management Systems (CMS) for various websites, including E-Commerce sites, websites for startup companies and sites for large firms. The team is in South America, so the rates are substantially below typical US standards while the developers are vertically below US time zones, making communication much easier than with India. They can work with both Agile and Waterfall development methodologies. The team is fluent in Spanish and has excellent written English with good spoken English. If desired, DreamStaffing can also supplement this team with a fluent bi-lingual project manager, HTML/CSS developers, user interface designers, or any other skill sets that are needed for a project. Please contact us at [EMAIL PROTECTED] for more information. nice pitch ;) -nathan I liked the dreamstaffing stuff. It kinda sounds... yeah whatever really ;D -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] OpenID
On Friday 18 July 2008 08:37:14 Per Jessen wrote: Kevin Waterson wrote: This one time, at band camp, Alex Chamberlain [EMAIL PROTECTED] wrote: Has anybody had any success implementing an OpenID server in PHP?? Sure, I had mine all set up on oceania.net and then the domain got stolen. So, all my OpenID info went with it.. not as good an idea as it first seems. I'm curious, how does a domain get stolen ? he forgot to pay the bills ;) /Per Jessen, Zürich -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] test
test -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checking if URL's exist
On Wednesday 09 July 2008 12:18:27 [EMAIL PROTECTED] wrote: Hi All, I have a Directory table with hundreds of URL's to sites and want to check periodically if all the URL's still exist. Does anyone know of a utility to check this ? Or a pointer to a piece of code ... TIA, Cor ping whois traceroute ... and a lot more -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] What font/size do you use for programming?
On Wednesday 09 July 2008 19:32:10 tedd wrote: At 6:19 PM +0100 7/9/08, Richard Heyes wrote: I use a triple display as well. My desktop is 3840 x 1024 -- and I use every inch of it. And here I am with one paltry monitor. :-( As you get older, your monitors get larger. However, this is not necessarily a good thing. Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com Suckers... I got Powerbook 17 with the infamous 1px blue streak vertical line. Shit never even tried to use an external monitor on this one. ah for font size.. Whatever default Quanta got -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Linking stuff
On Tuesday 08 July 2008 21:22:34 Philip Thompson wrote: Hi all. I think I might be having a brain-fart afternoon, but I can't think of how to accomplish this. I want these centers to be linked to 1 another. If center A links to B and C, I want B to be linked to A and C, and C to A and B. So... it should look something like this: center link A B A C B A B C C A C B These results will be stored in a database and each of the records is unique. To slightly simplify things (hopefully!), I can just store each of the centers in an array, like so: array(A,B,C,D). I figure I'll have to loop through the array (several times?) and do comparisons with each other one. Basically, I don't want to over-complicate this for myself. Any guiding light would be appreciated on how to link all of these! Basicly you can use if to check similarities else link. Thanks ~Philip -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strategy to protect images
On Wednesday 02 July 2008 04:39:57 Bastien Koert wrote: On Tue, Jul 1, 2008 at 2:16 PM, Stefano Esposito [EMAIL PROTECTED] wrote: On Tue, 01 Jul 2008 19:59:20 +0200 Børge Holen [EMAIL PROTECTED] wrote: On Tuesday 01 July 2008 13:34:28 Nitsan Bin-Nun wrote: Umm have you ever thought about watermark-ing it? (In case its not a part of your website or something..) heh, this dude got way to much time on his hands... ;D This dude has commitments, and watermark is not an option. -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Vasco è tornato! Sul tuo cellulare Il mondo che vorrei Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?midw49d1-7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php since the image is sent to the client browser, anyone with enough brains to look in the cache will be able to access the image. What about setting the image to show only inside a flash viewer with ming? I hope flash dies out in a silent bang. However, why he is going throught every nonsecure option trying to keep some images safe instead of either don't put them out at all or using flash as the easy way out is beyond me -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] URL Rewrite
On Wednesday 02 July 2008 13:34:32 Bastien Koert wrote: On Wed, Jul 2, 2008 at 6:33 AM, Per Jessen [EMAIL PROTECTED] wrote: Subhranil wrote: Hi All, I want to show one URL at browser and content of different URL. Take a look at apache url rewriting. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php You could look at using an iframe or frames in general, or ajax call into a div that suggestion is wrong on so many levels. using a hack to manage something ment to be handled before page is sent. I lean toward the apache rewritemod -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Log files
On Wednesday 02 July 2008 22:36:24 Mark Bomgardner wrote: I am writing an application in which I want to create log files. I am weighing the difference between using text files and using a database to house the data. It appears to me that there is really no advantage either way or is there? There are pros and cons to both methods, but I am concerned about opening and closing a text file some many times that it may cause and issue. The file may be opened and closed 1,000 or more times a day. Opinions please.. for the ease of it, I would go for the database. There is of course the details regarding the rest of the site to take into consideration damn database is easy... - take this one and go for files if not sustainable enought. markb -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to create a slide show using PHP5
On Thursday 03 July 2008 00:14:45 tedd wrote: At 4:37 PM -0400 7/2/08, philip wrote: Hi everyone, I want to create a slide show of photos for my web site. How is this done using php5? I am using Opensuse 10.3, Apache, PHP5. TIA for any assistance, Philip Philip: With a combination of php, html, and javascript, you can get this: http://webbytedd.com/c/fade-cycle/ The javascript is there. Cheers, tedd thats a NICE as in _NICE_ slideshow, best I've seen in... hell best I've seen ever. -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strategy to protect images
On Tuesday 01 July 2008 13:34:28 Nitsan Bin-Nun wrote: Umm have you ever thought about watermark-ing it? (In case its not a part of your website or something..) heh, this dude got way to much time on his hands... ;D On 01/07/2008, Stefano Esposito [EMAIL PROTECTED] wrote: On Sun, 15 Jun 2008 13:48:28 +0200 Stefano Esposito [EMAIL PROTECTED] wrote: Hi all, i have to forbid users of my site to view images directly (i.e. writing the image URL in the address bar) but they'd be able viewing them from the pages of the site. What's the best way of doing it, or something similar? Is there a common strategy using PHP? Thank you for any hint :-) Ciao, Stefano Thanks for all of your hints :) Here's my solution: 1) disable contextmenu on the images to protect using javascript (just to discourage less determined people) 2) for other purposes, the page containing images to protect, is brought to users through an ajax request, so they can't so-easily look at the source (not with browser's normal 'view source' anyway... they would need something like firebug). 3) use a script to get image data (as someone on the list suggested), checking for the right $_SERVER['HTTP_REFERER'] (i know... it's not so trustworthy... if anyone has a better idea, i'll be glad to listen to :)) 4) encrypt the relative path of the image on the fly, using mcrypt with a key generated on the login and then pass it encoded whit base64_encode (with a little workaround for '+', '/' and '=' chars) to the image-reading script. So, even if someone can get to the source, they'll end up whit an encrypted id of which they don't know neither the key nor the encryption method nor even what it's supposed to represent (if some database id or a path). I think that's a good way to prevent image theft... well, unless the thief uses the print screen key... What's your point of view? Ciao, Stefano -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Caschi, abbigliamento e accessori per la moto a prezzi convenienti, solo su Motostorm.it Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7850d=1-7 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Strategy to protect images
On Tuesday 17 June 2008 00:08:48 Daniel Brown wrote: On Mon, Jun 16, 2008 at 5:23 PM, Jonesy [EMAIL PROTECTED] wrote: On Sun, 15 Jun 2008 14:07:14 -0400, tedd wrote: At 4:11 PM +0100 6/15/08, Richard Heyes wrote: But, a sophisticated user will find a way around that. A less sophisticated one will use the PrintScr key... :-) Must be a windozes thing. :-) Nope. Works a treat in KDE in linux. Status: Myth. This is only if you have KDE configured to bind the key to an external application such as KSnapshot, which is not the default. Unless, of course, your distro does it by default, which is always possible but in general, it's not the case. ;-P Oh, how many distros have you tried? Just wondering, cus as I see it; you just took a chance and called it a fact -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract! Dedicated servers, VPS, and hosting from $2.50/mo. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Strategy to protect images
On Sunday 15 June 2008 14:25:36 Nirmalya Lahiri wrote: Yes... you can do it. Instade of direct url image, use the url of a php script written(algorithm) below.. ?php /* Write down the code to check authentication of users if( unauthorise user ) then exit from code */ /* Read the image data from file */ header('Content-type: image/jpeg'); /* echo the raw image data */ ? I used this method to put out images, some of witch was our own that had to be watermarked and the rest just echoed. Then I didn't have to care if someone just addressed site.com/images?id=2 or just site.com/index.php I got credit for my own images. Watermarking must be one of the best hinderance to keep ppl from using their images without asking. Of course not putting them out at all, should be considered. Heh while on topic, if for one reason you _need_ to have visitors on your site and not just the shortcuts to the important stuff(?), you probably do that for comercial reasons, witch implies a login system, witch would make denying access easy. =D For a ad bogged down site, witch also would like to hinder guest to access material their prefered way yeah well, Hope they go backrupt --- Nirmalya Lahiri [+91-9433113536] --- On Sun, 6/15/08, Stefano Esposito [EMAIL PROTECTED] wrote: From: Stefano Esposito [EMAIL PROTECTED] Subject: [PHP] Strategy to protect images To: php-general@lists.php.net Date: Sunday, June 15, 2008, 5:18 PM Hi all, i have to forbid users of my site to view images directly (i.e. writing the image URL in the address bar) but they'd be able viewing them from the pages of the site. What's the best way of doing it, or something similar? Is there a common strategy using PHP? Thank you for any hint :-) Ciao, Stefano -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: VOGLIA DI VACANZE ? * A Riccione i Family Hotels sono gli alberghi specializzati per le vacanze dei bambini Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=7984d=15-6 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Where to start!
On Monday 05 May 2008 09:15:29 Jorge wrote: First I would like to say that I have had PHP experience but not enough to say I am a PHP developer. I want to use PHP to build a site that uses MySQL, I am building it from scratch so I don't know where to start, should I start with PHP and design a database around my code, or should I designs the db and design the site are the db. is it just a matter of preference or is there a recommended way to do this? Thanks I did it all from scratch (both the learning, and creating), did it the other way around, I started with PHP, REGRETTED that for some time. Start off with the db structure, then go over it again, and again for good measure. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] web based chat app
On Wednesday 30 April 2008 10:45:30 paragasu wrote: On Wed, Apr 30, 2008 at 4:28 PM, paragasu [EMAIL PROTECTED] wrote: You want light outta it?use the jabber2 server as a backend. It'll be done serving while you try to access the database. No need to do a square wheel, when a round one is invented is there any free jabber2 server i can use? i found the jabber2 main project website. but it is not suitable for what i wan't coz i want to integrate the chat to my website. so online member can chat to each other. i see a perl implementation but no php.. you build one. Thats the point of it wasn't it eh? A friend and I made a chat with jabber throught second life (the game) and a php webpage. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] web based chat app
On Tuesday 29 April 2008 06:48:38 paragasu wrote: i am planning to integrate chat application on my website. the idea is to make online user on my website to chat to each other. it is using PHP5+jQuery, i want it to be as light as possible. I am not sure about the database to use, but i have 3 options.. file based, sqlite3 or mysql5. i am thinking to use sqlite3 because it is fast but afraid it cannot handle many user request (i remember reading it is not so good for multiple user). It is also possible to use memory based storage /dev/shm (in debian based, i read somewhere - never tried yet) another issue is how to make it light.The chat script should refresh every 200ms to get the best result or even 1 second still bring quite a load to the web server. anyone ever run a web based application? or any chat based api i can use out there to save server resource? You want light outta it?use the jabber2 server as a backend. It'll be done serving while you try to access the database. No need to do a square wheel, when a round one is invented -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cron php refresh
On Sunday 20 April 2008 11:27:38 Jeffrey wrote: I'm working on an application that includes e-mail notifications of certain events. Because the application will have hundreds or thousands of users, I've designed it so that e-mail notifications are saved to a MySQL table. Then a regular cron job runs a php page to select the data from the table, put it into a mail() command and mail. My original vision was to have the script do about 50 mails, then pause for a 5 seconds, do a meta refresh and run through another 50 and so on - with experimentation in numbers as necessary. This process was set up because I recall reading somewhere - perhaps the manual - that it is not a good thing to run too many php mail()s in succession. Also, I worry about php time-outs. If you know more about PHP and 'nix than I do, you already realise the fatal flaw here: meta refresh doesn't work on a cron job. Question: is there an alternative? I appreciate I could use sleep() after every 50 mails - but there would still be the time-out problem. I've searched the manual and via Google - but haven't found anything - possibly I am searching on the wrong terms. Your help will be much appreciated. Thanks, Jeffrey What a waste. Is the MTA operational on the server? if so, forget mailing with php and rather use php to access the mta. It is designed to actually send mails, lots of lots of em. If not, set it up. I recon a cluster with hundreds of thousands of users ought to have such a thing... a couple of blades or some of those solaris niagara 8 core nicies doing it. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cron php refresh
On Sunday 20 April 2008 13:37:04 Per Jessen wrote: Børge Holen wrote: Is the MTA operational on the server? if so, forget mailing with php and rather use php to access the mta. Yeah, that is what mail() does - it calls sendmail. /Per Jessen, Zürich What the point of 50 mails now and then, let it all be decided by the mta. you don't need php to do stuff it isn't intended for. the mta will send next mail as the previous is accepted and written off as sent. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] spider
On Sunday 23 March 2008 12:12:04 Michelle Konzack wrote: Am 2008-03-21 19:15:13, schrieb Børge Holen: wget is fast and easy though... umm I'm on an direct 100mbit connection... wget does it brute Sometimes it is too fast for me... :-) Specialy If I work in Paris on my Dual-STM-4 network... wanna share? Then, --limit-rate=rate is my friend. Thanks, Greetings and nice Day Michelle Konzack Systemadministrator 24V Electronic Engineer Tamay Dogan Network Debian GNU/Linux Consultant -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] spider
On Friday 21 March 2008 18:58:59 Wolf wrote: tedd [EMAIL PROTECTED] wrote: Hi gang: How do you spider a remote web site in php? I get the general idea, which is to take the root page, strip out the links and repeat the process on those links. But, what's the code? Does anyone have an example they can share or a direction for me to take? Also, is there a way to spider through a remote web site gathering directory permissions? I know there are applications, such as Site-sucker, that will travel a remote web site looking for anything that it can download and if found, do so. But is there a way to determine what the permissions are for those directories? If not, can one attempt to write a file and record the failures/successes (0777 directories)? What I am trying to do is to develop a way to test if a web site is secure or not. I'm not trying to develop evil code, but if it can be done then I want to know how. Thanks and Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com In one word: CURL In another word: WGET Both are pretty effecitve and give pretty much the same results, however with the CURL you can pass other things alone (user:pass) which with wget you can not do. wget is fast and easy though... umm I'm on an direct 100mbit connection... wget does it brute HTH, Wolf -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] spider
On Friday 21 March 2008 19:12:04 Wolf wrote: Daniel Brown [EMAIL PROTECTED] wrote: On Fri, Mar 21, 2008 at 1:58 PM, Wolf [EMAIL PROTECTED] wrote: In one word: CURL In another word: WGET Both are pretty effecitve and give pretty much the same results, however with the CURL you can pass other things alone (user:pass) which with wget you can not do. [EMAIL PROTECTED] [~/www/img]# wget --help|grep -i password --password=PASS set both ftp and http password to PASS. --http-password=PASSset http password to PASS. --proxy-password=PASS set PASS as proxy password. --ftp-password=PASS set ftp password to PASS. Nice, your guy's version of wget is better then mine! I tried that once (granted that was years ago now that I think about it) and it keeled over and died! OK, so I stand corrected there... But has anyone seen a PHP port of wget or is curl the only one of the 2 which does it natively in a compiled version of php with curl? :) If it works natively in PHP, then there are 2 choices and neither has to be executed outside of PHP. :) so natively isn't alway the best. example: I've a hard time thinking php image handling is better than programs designed for it, neither in speed accuracy/quality. lol notepad in windows ;D *ot but still a faint quantity of high altitude oxygene loss during easter* I've got to mention that I'm pretty unfamiliar with curl. Wolf -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] General use of rewrite / redirect
On Tuesday 18 March 2008 14:22:26 Aschwin Wesselius wrote: Per Jessen wrote: Yes, that's a very typical setup. When the form is processed, you send a 303 redirect to the Thank you page. That way, if the user hits the back arrow, he's taken back to the form URL, not the post URL. (which would then warn him about re-submitting etc.) Ok, fine. But why do a real redirect when a header with 303 could be sufficient? If you model good enough, there would not be a need for header(location) redirects. Or am I wrong? What is your opinion about (ab)using rewrites / redirects? Do you use it quick and dirty, or is it some elegant way of controlling flow? I think there are plenty of perfectly valid reasons for using a redirect, whether dynamically from php or via an apache config. And undoubtedly there equally many poor reason for using redirect and/or rewrite. (they're very different things, by the way). I know they're different things. I only want to start a discussion so people do understand other techniques instead of just using whatever 'works' as a solution to their problem with flow. Redirects do solve some issues, but they should be avoided whenever possible. header(location) mechanisms do come with a very huge disadvantage if you don't use them with caution. Requests are reinitialised, libraries loaded (again), DB connections setup/checked again, session lookups are being done, log write for another request etc. That's quite an impact for just 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? Are you asking or informing? The way of; I know it all, how do I do it? is confusing. All you do is stating the obvious either way, while it all depends on the task at hand. You may want to reconnect to a different db, cleaning out variables and posts? dunno. Probably you want the least possible transfer over the network since that is more costly than a new computer to a cluster. But with 10.000 users you have to do the math yourself, cuz heavy db tasks vs a small increase in traffic... -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GD / Pixel Font Rendering
On Monday 17 March 2008 09:25:36 Jochem Maas wrote: nihilism machine schreef: I am trying to render an 8 pixel pixel font without anti aliasing to look crisp (silkscreen) in 8pt with gd. the font is huge and ugly: ?php // Set the content-type header(Content-type: image/png); // Create the image $im = imagecreatetruecolor(400, 30); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); // The text to draw $text = 'Testing...'; // Replace path by your own font path $font = 'silkscreen.ttf'; // Add some shadow to the text imagettftext($im, 20, 0, 11, 21, $grey, $font, $text); // Add the text imagettftext($im, 20, 0, 10, 20, $black, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() imagepng($im); imagedestroy($im); ? -- any ideas? don't post twice. I recon he didn't. This list has the tendancy to send double posts from time to time. use '8' instead of '20' for the fontsize. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] GD / Pixel Font Rendering
On Monday 17 March 2008 13:10:20 Jochem Maas wrote: Børge Holen schreef: On Monday 17 March 2008 09:25:36 Jochem Maas wrote: nihilism machine schreef: I am trying to render an 8 pixel pixel font without anti aliasing to look crisp (silkscreen) in 8pt with gd. the font is huge and ugly: ?php // Set the content-type header(Content-type: image/png); // Create the image $im = imagecreatetruecolor(400, 30); // Create some colors $white = imagecolorallocate($im, 255, 255, 255); $grey = imagecolorallocate($im, 128, 128, 128); $black = imagecolorallocate($im, 0, 0, 0); imagefilledrectangle($im, 0, 0, 399, 29, $white); // The text to draw $text = 'Testing...'; // Replace path by your own font path $font = 'silkscreen.ttf'; // Add some shadow to the text imagettftext($im, 20, 0, 11, 21, $grey, $font, $text); // Add the text imagettftext($im, 20, 0, 10, 20, $black, $font, $text); // Using imagepng() results in clearer text compared with imagejpeg() imagepng($im); imagedestroy($im); ? -- any ideas? don't post twice. I recon he didn't. maybe, maybe not. I get punished for stuff I didn't do all the time ... why shouldn't he ;-) THAT on the other hand is a perfectly good reason to kick the shit out of someone =D This list has the tendancy to send double posts from time to time. it does? haven't noticed that. I'll be more vigilant (well I'll try) use '8' instead of '20' for the fontsize. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] email issue
On Friday 14 March 2008 18:33:13 nihilism machine wrote: here is my simple email lib: http://pastebin.com/m4d107c01 any idea why in the body i have a link with an = sign that gets replaced with a % sign? -e read up on urlencode -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP and #if
On Friday 14 March 2008 19:19:30 Eric Gorr wrote: In C, etc. one can place #if's around code to determine whether or not the compiler should pay any attention to the code. Is there a similar technique for PHP? I've not seen anything like this before and a brief search hasn't turned up anything either...just thought I would ask to make sure. # Notin' here // here neither */ Nor there /* -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Posting Summary for Week Ending 14 March, 2008: php-general@lists.php.net
On Friday 14 March 2008 21:24:30 Jason Pruim wrote: So... After this post gets sent... Does Dan have some code in here to kill all traffic on the list for a minimum amount of time? :) no but he does some time travel. merry christmas everyone! ;D Happy Friday everyone! On Mar 14, 2008, at 4:00 PM, PostTrack [Dan Brown] wrote: Posting Summary for PHP-General List Week Ending: Friday, 14 March, 2008 Messages| Bytes | Sender ++-- 480 (100%) 799678 (100%) EVERYONE 39 (8.1%) 36359 (4.5%) Daniel Brown parasane at gmail dot com 30 (6.3%) 36149 (4.5%) tedd tedd dot sperling at gmail dot com 29 (6%)27607 (3.5%) Greg Donald gdonald at gmail dot com 18 (3.8%) 26766 (3.3%) Robert Cummings robert at interjinn dot com 16 (3.3%) 19915 (2.5%) Aschwin Wesselius aschwin at illuminated dot nl 16 (3.3%) 10147 (1.3%) Richard Heyes richardh at phpguru dot org 15 (3.1%) 28839 (3.6%) Shawn McKenzie nospam at mckenzies dot net 14 (2.9%) 18288 (2.3%) Stut stuttle at gmail dot com 14 (2.9%) 24748 (3.1%) Jason Pruim japruim at raoset dot com 13 (2.7%) 16242 (2%)Thijs Lensselink dev at lenss dot nl 13 (2.7%) 24267 (3%)It Maq itmaqurfe at yahoo dot com 12 (2.5%) 8291(1%)Per Jessen per at computer dot org 12 (2.5%) 22543 (2.8%) Zoltán Németh znemeth at alterationx dot hu 11 (2.3%) 21755 (2.7%) Eric Butera eric dot butera at gmail dot com 11 (2.3%) 17774 (2.2%) Alain Roger raf dot news at gmail dot com 10 (2.1%) 20007 (2.5%) Ray Hauge ray dot hauge dot lists at gmail dot com 9 (1.9%) 31225 (3.9%) Andrés Robinet agrobinet at bestplace dot biz 9 (1.9%) 10301 (1.3%) Wolf LoneWolf at nc dot rr dot com 8 (1.7%) 18532 (2.3%) TG tg-php at gryffyndevelopment dot com 8 (1.7%) 10605 (1.3%) Philip Thompson philthathril at gmail dot com 8 (1.7%) 5096(0.6%) Bill billlab51 at hotmail dot com 7 (1.5%) 4871(0.6%) Chris dmagick at gmail dot com 6 (1.3%) 9135(1.1%) Nathan Nobbe quickshiftin at gmail dot com 5 (1%)8546(1.1%) Jim Lucas lists at cmsws dot com 5 (1%)5191(0.6%) Eric Gorr mailist at ericgorr dot net 5 (1%)5025(0.6%) Børge Holen borge at arivene dot net 5 (1%)3873(0.5%) Murat BEŞER murat at murat- beser dot com 4 (0.8%) 7319(0.9%) Larry Garfield larry at garfieldtech dot com 4 (0.8%) 6834(0.9%) Adil Drissi adil dot drissi at yahoo dot com 4 (0.8%) 11467 (1.4%) Lamonte php4food at gmail dot com 4 (0.8%) 1985(0.2%) Anup Shukla anup dot shkl at gmail dot com 4 (0.8%) 2192(0.3%) Lamonte H php4food at gmail dot com 3 (0.6%) 4440(0.6%) Lamp Lists lamp dot lists at yahoo dot com 3 (0.6%) 9173(1.1%) Andrés Robinet agrobinet at bestplace dot biz 3 (0.6%) 3532(0.4%) Dave Goodchild buddhamagnet at gmail dot com 3 (0.6%) 3389(0.4%) Al news at ridersite dot org 3 (0.6%) 6984(0.9%) Stephane Ulysse Stephanu at bachrachgroup dot com 3 (0.6%) 4300(0.5%) Angelo Zanetti angelo at elemental dot co dot za 2 (0.4%) 1060(0.1%) Steven Macintyre steven at steven dot macintyre dot name 2 (0.4%) 3596(0.4%) Willian Schubert Baldasso redesistema at gmail dot com 2 (0.4%) 2023(0.3%) dev at lenss dot nl 2 (0.4%) 2604(0.3%) Børge Holen borge at arivene dot net 2 (0.4%) 1876(0.2%) David Giragosian dgiragosian at gmail dot com 2 (0.4%) 2829(0.4%) Matty Sarro msarro at gmail dot com 2 (0.4%) 2087(0.3%) H u g o H i r a m hugo at hugohiram dot com 2 (0.4%) 878 (0.1%) Tim Daff timdaff at gmail dot com 2 (0.4%) 1917(0.2%) John Comerford johnc at optionsystems dot com dot au 2 (0.4%) 1739(0.2%) sinseven at aol dot com 2 (0.4%) 1897(0.2%) mathieu leddet mathieu dot leddet at mobilescope dot com 2 (0.4%) 5329(0.7%) Edward Kay edward at labhut dot com 2
Re: [PHP] What's wrong the __autoload()?
On Thursday 13 March 2008 22:39:51 Aschwin Wesselius wrote: Andrés Robinet wrote: why don't you show us your PHP work instead? Maybe you like RoR more because you suck at PHP. Regards, Rob Hi, can somebody please point out something to me? Did I miss something? Is there some initiation needed on this list which I've missed? Definetly, you need to express your ego, and be thick skinnned. How come it is acceptable for grown up (you DO have pubic hair don't you?), don't use obscenities, this just look stupid on your part when someone google the list. Maby for your name? mature and decent people to call names and try to convince each other of having a bigger, better whatever than the other etc.? It's called discussion, you both walk og talk your stuff, so do others and if smart enought, someone may learn something from it. Is that PHP-list culture? Is it something to get used to? Is it the core of senior PHP-developers or what? It's people with opinions, strong ones to at times. So, explain it to me, what is it that I could have missed? Is it somewhere in the archives? Is it explained on some FAQ page? Does it take some potions by full moon on a 3rd friday in may to get into this state? You got different kinds of people here, like me, just doing this for a hobby, I can take some new age weird nerdy talk of nonecense. However, there are those who do this for a living (not just php, but web design or lamp og wamp (how is that for a acronyme =D?)), they don't take lightly on having a serious discussion with someone who just f* around telling halftruths. It is OK do discuss a subject, to get overheated by passion, ignorance, irritation, misunderstanding or a mix of all of them. But isn't calling names and comparing bodyparts (and what not) something for kinder garten? Everybody has those, has to do with experience, and the respect for those who know what they talk about (that would be those who do this for a living) I'm not here to preach, I'm here to learn. So initiate me, tell me what is so important that we keep putting energy into convincing somebody that he's an idiot, a dumbass, an elite RoR fetishist etc. Does it give you a good feeling? Can I try? Should I try? Is it worth it? Will I become as enlightened as some of you are? Discuss that on a civil dunno, some cafe bar hangaround chat page... If you on the other hand got some problem with your php code, some questions for what you are looking for (i.e. what set of commands is capable of doing...) you've come to the right page. I don't want to miss out on this great experience, if it is worth it. It must be something 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. noones hindering you, just keep in mind that much of these ppl do this for a living and time/money/effort/payoff vs the hobbyist thinkering and thoughts is often two completly different mindsets at least, THAT is what I read from the list these last couple of years. Aschwin Wesselius ps. stop whining. If offended, lay low till something new comes to mind or you find some more interesting topic to join in on. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] save image in database vs folder
Topposting here... dont dont dont... we beat the living crap outa this one. Dont ask, do whatever you want and learn from it. Fact is that the best one is the one that works best right then and there. Dont you dare push this subject any further... On Tuesday 11 March 2008 12:00:35 jeffry s wrote: some friend of mine ague about this matter, this morning. they say, saving image in database is more professional. I am not really agree with that,since i am just a novice programmer. i am asking senior php programmer what you opinion about this? which one is better. save in database or in folder? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] save image in database vs folder
'n here we go againfff -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] save image in database vs folder
On Tuesday 11 March 2008 18:30:13 you wrote: On Tue, Mar 11, 2008 at 11:24 AM, Børge Holen [EMAIL PROTECTED] wrote: 'n here we go againfff Børge, the F's are silent. ;-P =D -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] save image in database vs folder
On Tuesday 11 March 2008 21:24:45 you wrote: I've been coding PHP for some time now in combination with MySQL, but I have never heard of the possibility of storing images in a database..? I didn't even know this was possible. they are stored as binary objects. for a strategic search directly at the info: http://www.google.no/search?hl=noq=mysql+blobbtnG=Google-s%C3%B8kmeta= for a more learning experience do: http://www.google.no/search?hl=noq=storing+images+in+mysqlbtnG=S%C3%B8kmeta= My question now is, where can I find documentation on this? and where are these Archives you are all talking about? see these archives is not much to brag about, hard to follow and hard to search. Use google. Google is expert in finding weird information regarding stuff you put in the search field. I would also follow up on the read on filesystem handling on php.net if you feel shorthanded regarding comparisons. (I've subscribed to the mailing-list yesterday, had no idea such a thing existed!) oh, theres plenty of books written on subjects you know nothing about ;D Thanks. - Rick 2008/3/11, Børge Holen [EMAIL PROTECTED]: On Tuesday 11 March 2008 18:30:13 you wrote: On Tue, Mar 11, 2008 at 11:24 AM, Børge Holen [EMAIL PROTECTED] wrote: 'n here we go againfff Børge, the F's are silent. ;-P =D -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Flash menu
On Saturday 23 February 2008 09:46:24 Alain Roger wrote: Hi, i have a problem with my animated web flash menu (+images+sounds). basically my menu in embedded into flash, and each time that i click on menu link, my flash is playing from start as it is integrated into each PHP pages. I know that this is not the topic of this forum, but i would like to know how you cope with such issue from PHP point of view ? i mean, did you play the flash menu on first page (like index.php e.g.) and after you have another menu, or do you use it through your complete website ? basically i found a lot of flash templates but nothing about PHP pages menu integration. I guess several of you have already done it so i need just your feedback on possible solutions. thanks a lot. oh, easy. we just skipped the whole bad flash idea. I'm on linux/ppc and flash doesn't even work here, how many other ppl do you not want to visit your page? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Flash menu
On Saturday 23 February 2008 10:20:49 you wrote: Sorry to tell you that but i've tested my flash menu on Linux Mandriva and Redhat without any problem... :-) so... I also got three other boxes running, but those on x86 arch instead. Noone cares about the dist. The difference lies in the architecture. Don't assume everyone got the same equipment you got. And sorry to say, flash is horseshit, just look at youre cpu usage. I play two xvid encoded movies the same cpu overhead (with libavcodec). Ey skip the flash, put out a high resolution movie instead, you just need a better uplink for that. Oh just to convince you, you read online newspapers? open some of those windows... nah you don't need many, I usually tab, say 5 - 10. Then come back and say, this is some tool I got right here. On Sat, Feb 23, 2008 at 10:14 AM, Børge Holen [EMAIL PROTECTED] wrote: On Saturday 23 February 2008 09:46:24 Alain Roger wrote: Hi, i have a problem with my animated web flash menu (+images+sounds). basically my menu in embedded into flash, and each time that i click on menu link, my flash is playing from start as it is integrated into each PHP pages. I know that this is not the topic of this forum, but i would like to know how you cope with such issue from PHP point of view ? i mean, did you play the flash menu on first page (like index.php e.g.) and after you have another menu, or do you use it through your complete website ? basically i found a lot of flash templates but nothing about PHP pages menu integration. I guess several of you have already done it so i need just your feedback on possible solutions. thanks a lot. oh, easy. we just skipped the whole bad flash idea. I'm on linux/ppc and flash doesn't even work here, how many other ppl do you not want to visit your page? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] php-5.2.5 glibc detected *** free()
On Saturday 23 February 2008 12:03:16 [EMAIL PROTECTED] wrote: Hello all I got glibc detected errors about several php extensions on my debian box both by executing php-cgi or php-cli. Config: # cat /proc/version Linux version 2.6.24-rc7-vs2.2.0.5.0.7 ([EMAIL PROTECTED]) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #2 SMP # gcc --version gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) # dpkg -l libc6 libc6 2.3.6.ds1-13etch5 I'm running on debian-etch stable/backports. I build php-5.2.5 with this configure line: ./configure --enable-bcmath --enable-calendar --enable-exif --enable-ftp --enable-shmop --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-memory-limit --enable-wddx --enable-fastcgi --enable-dio --enable-dmalloc --enable-force-cgi-redirect --enable-discard-path --with-gmp=shared,/usr --with-gettext=shared,/usr --with-mysql=shared,/usr --with-pdo-mysql=shared,/usr --with-mysqli=shared --with-gd=shared --with-jpeg-dir=/usr --with-png-dir=/usr --with-zlib --with-zlib-dir=/usr --with-xpm-dir=/usr --with-freetype-dir=/usr --with-libt1=/usr --enable-gd-native-ttf --with-pgsql=shared,/usr --with-pdo-pgsql=shared,/usr --with-curl=shared,/usr --with-curlwrappers --with-xsl --with-xmlrpc --enable-xslt --with-xslt-sablot=/usr --with-mhash=shared,/usr --enable-dba=shared,/usr --with-gdbm=/usr --with-db4=/usr --with-cdb --with-mm=/usr --with-bz2=shared,/usr --with-imap=shared,/usr --with-kerberos --with-imap-ssl --with-readline --with-pcre-regex --enable-pcntl --enable-simplexml --enable-ctype --with-ming=shared,/usr --with-ncurses=shared,/usr --enable-mbstring --with-inifile --with-flatfile --with-iconv --with-ldap=shared,/usr --enable-gd-native-ttf --with-dom=/usr --with-dom-xslt=/usr --with-dom-exslt=/usr --with-expat-dir=/usr --with-zip=shared,/usr --with-openssl=/usr --with-snmp=shared,/usr --with-ttf=shared,/usr --with-libxml-dir=/usr --enable-dbase --enable-dbx --enable-dio --enable-filepro --enable-sqlite-utf8 --with-mcrypt=shared,/usr --with-pspell=shared,/usr --with-unixODBC=shared,/usr The errors occurs when i want to activate several shared extensions: pgsql, snmp, mcrypt. I'm really confused because if i build these extensions statically all works fine ( ./configure ..blabla... --with-pgsql ... --with-mcrypt ) I've a little script script to test pgsql connection : ? $dbconn = pg_connect(host=192.168.0.230 port=5432 user=demo password=demo dbname=demo); $query = pg_exec ($dbconn, SELECT * FROM agenda); ? If i call this script via a web browser i got in apache log: [Fri Feb 22 21:40:30 2008] [error] [client 192.168.0.22] *** glibc detected *** free(): invalid pointer: 0xb6b3f880 *** [Fri Feb 22 21:40:30 2008] [error] [client 192.168.0.22] Premature end of script headers: listepg.php If i call this script on command line, same error: etch:/web/clients/client1/www# php -c ../php.ini listepg.php connexion*** glibc detected *** free(): invalid pointer: 0xb48b8280 *** Abandon I'm knocking my head on the walls since several months about this issue which i didn't meet with previous versions of php (i compile myself since php-5.0.0RC1). All was working fine until i upgrade to php-5.2.x. More strange: i've installed php-xxx.deb from dotdeb packages (added in my sources.list) From witch pool? 5.2 is in lenny and so is the dependencies. I don't know if you compile because you miss a feature, or simply because of the version. If you compile for the version just install from lenny, if you compile for features, install required dependencies. Oh wait, it compiled fine? and it just don't work afterwards? You tried from testing pool? does it work there, if the maintainer can't help you seems like a compile flaw for some reason. where these extensions are shared and in this case all works fine. I've asked dotdeb developper what may cause this issue on my box but he couldn't spent many time to debug my problem. In doubt, i've reinstalled all lib-dev invoked by configure script but always same error. I've tried on 2 others machines with same distro and i got same error, too. I think i make a mistake during php configuration but can't find where. Any help/idea please ... Install official package If you need more info, i can provide them Thanks Patrick -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] www. not working
On Thursday 21 February 2008 13:41:20 Jason Pruim wrote: On Feb 21, 2008, at 5:13 AM, Richard Heyes wrote: Spider webs have existed for many a year... Not long before the eggs hatched. Debatable. Are we about to go into another chicken/egg then? Or in this case, spider porn/egg this bestiality shouldn't even exist as a topic -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] www. not working
On Tuesday 19 February 2008 10:43:04 Christoph wrote: Don't do that. Some sites may or may not use www. for whatever reason... Usually screwed-up A-name records by incompetent sysadmins, but there it is... Really? So games.yahoo.com blogreport.salon.com mirror1.downloads.com are examples of screwed up records by incompetent sysadmins? thnx, Chris nah, just word from a non literate -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] open a secondary window/tab in the browser from php
On Monday 18 February 2008 13:59:11 julian wrote: Hi, I have an application that along filling in some forms, it produces a pdf file, as confirmation of all entered data. I want to send this pdf file to a different window/tab of the browser, so it is displayed and can latter be printed. html target? In the mean time, the original window contains a confirmation message, to continue with the work flow. I would like to do this without use of JavaScript Any combination of headers ?? Any hints appreciated. JCG -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload issue
On Sunday 17 February 2008 19:22:03 nihilism machine wrote: any idea why this fails?this is the error: Sorry, there was a problem uploading your file ?php require_once(classes/db.class.php); $target = ; $fileName = basename( $_FILES['uploaded']['name']); $extension = strtolower(strrchr($fileName,.)); $DB = new DB(); $insertID = $DB-insert_sql(INSERT INTO CMS_Media (File_Name) VALUES ('')); $target = media/ . $insertID . $extension; //echo $target; if (move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { // Error echo File was uploaded!; } else { echo Sorry, there was a problem uploading your file.; } chmod($target, 0755); header(Location: crop.php?imageName=$newFileName); ? This looks weird. is this actually anything: $_FILES['uploaded']['tmp_name']. I always used $_FILES['tmp_name'], $_FILES['name'] and such --- Edward H. Hotchkiss Chief Technical Officer Durgle, INC [EMAIL PROTECTED] http://www.durgle.com --- -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] separating strings from extensions
On Monday 18 February 2008 00:10:30 John Meyer wrote: Daniel Brown wrote: On Feb 17, 2008 5:37 PM, nihilism machine [EMAIL PROTECTED] wrote: i am using this code to get the extension of a filename: $extension = strtolower(strrchr($fileName,.)); how can i get the text BEFORE the . (period) You can STFW and RTFM. This list should never be your first place to ask simple questions. In any case ? $split = explode('.',strtolower($fileName)); $name = $split[0]; $ext = $split[1]; ? Flame job aside, that's going to fail on a compound extension such as .tar.gz by just returning .tar so. it.will.fail.this.one.to.txt and a fix would also fail because you would have to hardcord everygoddamn ending if thats what youre after. How many do you care to count for? I would say stick with the last dot, if its not particulary often you stumble over those .tar.bz2 endings. what does he want to upload anyway? Oi you, whats yer task? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload issue
On Monday 18 February 2008 00:59:31 Chris wrote: Børge Holen wrote: On Sunday 17 February 2008 19:22:03 nihilism machine wrote: any idea why this fails?this is the error: Sorry, there was a problem uploading your file ?php require_once(classes/db.class.php); $target = ; $fileName = basename( $_FILES['uploaded']['name']); $extension = strtolower(strrchr($fileName,.)); $DB = new DB(); $insertID = $DB-insert_sql(INSERT INTO CMS_Media (File_Name) VALUES ('')); $target = media/ . $insertID . $extension; //echo $target; if (move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { // Error echo File was uploaded!; } else { echo Sorry, there was a problem uploading your file.; } chmod($target, 0755); header(Location: crop.php?imageName=$newFileName); ? This looks weird. is this actually anything: $_FILES['uploaded']['tmp_name']. I always used $_FILES['tmp_name'], $_FILES['name'] and such According to php docs it's always a multi-dimensional array: http://www.php.net/manual/en/features.file-upload.php The 'uploaded' is what you call the file input in your form. oh well, as long as it works for me, thanks for the info -- Postgresql php tutorials http://www.designmagick.com/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Order directory output
On Saturday 09 February 2008 02:22:28 Shawn McKenzie wrote: Pastor Steve wrote: Hi, thanks for all your help today. I have the following code and I am trying to order the output. Currently it seems really random. Can anyone point me in the right direction? ?php $dir = content/current/breaking_news/; // set pattern $pattern = .txt*|.TXT*; // open directory and parse file list if (is_dir($dir)) { if ($dh = opendir($dir)) { //This is the div that contains the wrap around for the breaking news section. echo div class=\spstory\ style=\font-family: Times New Roman, Times, serif; font-size: 12px; width: 290px;\ div style=\width: 285px; background-color: #CC; padding: 3px;\ span class=\NormalHeadRed\Breaking News/span br /Please check here often for breaking news stories. /div p / span class=\NomalText\ ul; // iterate over file list while (($filename = readdir($dh)) !== false) { // if filename matches search pattern, print it if (ereg($pattern, $filename)) if(strpos($filename,'.')0) { $fh = fopen($dir . $filename, r); $filehead = fgets($fh); fclose($fh); echo li class=\bn_bullet\ a href=\/breaking_news/$filename\$filehead/a /li; } } echo /ulp / /span /div; // close directory closedir($dh); } } ? Thank you, -- Steve Marquez How is the output random? The text from the file, or the order the files are read? I recon its the same problem I faced where files are read in the fifo order instead of alphabetical. or did I miss out on this thread completly? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Posting Summary for Week Ending 8 February, 2008: php-general@lists.php.net
(0.2%) Richard php_list at ghz dot fr 1 (0.3%) 2940(0.5%) Fnutt trond at fnutt dot org 1 (0.3%) 383 (0.1%) Bruce Cowin bdc at topenergy dot co dot nz 1 (0.3%) 1327(0.2%) Rob Gould gouldimg at mac dot com 1 (0.3%) 1041(0.2%) zerof zerof at terra dot com dot br 1 (0.3%) 860 (0.1%) Fahad javed fahadedupk at gmail dot com 1 (0.3%) 586 (0.1%) David Robley robleyd at aapt dot net dot au 1 (0.3%) 845 (0.1%) Leonard Burton leonardburton at gmail dot com 1 (0.3%) 1258 (0.2%) Legolas wood legolas dot w at gmail dot com 1 (0.3%) 866 (0.1%) Dare Williams darrenwilly at yahoo dot com 1 (0.3%) 1043(0.2%) Louie Henry louiehenry at brktel dot on dot ca 1 (0.3%) 1623(0.3%) Colin Guthrie gmane at colin dot guthr dot ie 1 (0.3%) 437 (0.1%) Steve Marquez smarquez at marquez-design dot com 1 (0.3%) 1124 (0.2%) Rob G robg at areyouserved dot com 1 (0.3%) 1019 (0.2%) puneetjain puneet dot jain1 at wipro dot com 1 (0.3%) 269 (0%)MaryAnn Woodall mawoodall at earthlink dot net 1 (0.3%) 1280(0.2%) Floor Terra floort at gmail dot com 1 (0.3%) 1218(0.2%) C dot R dot Vegelin cr dot vegelin at hetnet dot nl 1 (0.3%) 802 (0.1%) mike mike503 at gmail dot com 1 (0.3%) 698 (0.1%) Michael Fischer michi dot fischer at gmx dot net 1 (0.3%) 2838(0.5%) bruce bedouglas at earthlink dot net 1 (0.3%) 1115(0.2%) chetan rane chetan dot d dot rane at gmail dot com 1 (0.3%) 721 (0.1%) Siegfried Gipp siegfried at rorkvell dot de 1 (0.3%) 265 (0%)doc dingus_76 at hotmail dot com 1 (0.3%) 742 (0.1%) j dot vanhooren at e2ma dot nl 1 (0.3%) 368 (0.1%) Jonesy gmane at jonz dot net 1 (0.3%) 496 (0.1%) dg daneane at bluerodeo dot com 1 (0.3%) 266 (0%)RandMan ad at pc86 dot com 1 (0.3%) 556 (0.1%) Daevid Vincent daevid at daevid dot com 1 (0.3%) 136 (0%)salon at andersonsturgess dot com 1 (0.3%) 1237(0.2%) tedd tedd dot sperling at gmail dot com 1 (0.3%) 3357(0.6%) venkatk at aol dot in 1 (0.3%) 1482(0.3%) Michelle Konzack linux4michelle at freenet dot de 1 (0.3%) 1114(0.2%) Edward Kay edward at labhut dot com 1 (0.3%) 567 (0.1%) Aschwin Wesselius get at illuminated dot nl 1 (0.3%) 506 (0.1%) Zoran Bogdanov test1 dot test1 at hi dot t-com dot hr 1 (0.3%) 1215 (0.2%) Ford, Mike M dot Ford at leedsmet dot ac dot uk 1 (0.3%) 2707(0.5%) Richard richi_8 at hotmail dot com 1 (0.3%) 1424(0.2%) Peter Ford pete at justcroft dot com 1 (0.3%) 237 (0%)Cameron Just c dot just at phoenixdigital dot com 1 (0.3%) 352 (0.1%) Hiep Nguyen hiep at ee dot ucr dot edu 1 (0.3%) 401 (0.1%) George Pitcher george dot pitcher at ingenta dot com 1 (0.3%) 1244 (0.2%) Adam Williams awilliam at mdah dot state dot ms dot us 1 (0.3%) 6825(1.2%) PostTrack [Dan Brown] listwatch-php-general at pilotpig dot net NOTE: Numbers may not add up to 100% due to protection of names and addresses upon request. DISCLAIMER: If you want your email address omitted from future weekly reports, please email me privately at [EMAIL PROTECTED] and it will be removed. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Order directory output
On Saturday 09 February 2008 17:47:24 you wrote: The output is: 04.txt 01.txt 03.txt 02.txt 05.txt When the files are named: 01.txt 02.txt 03.txt 04.txt 05.txt jup fifo. first on the filesystem first out. Thanks, -- Steve M. on 2/9/08 5:36 AM Børge Holen ([EMAIL PROTECTED]) wrote: On Saturday 09 February 2008 02:22:28 Shawn McKenzie wrote: Pastor Steve wrote: Hi, thanks for all your help today. I have the following code and I am trying to order the output. Currently it seems really random. Can anyone point me in the right direction? ?php $dir = content/current/breaking_news/; // set pattern $pattern = .txt*|.TXT*; // open directory and parse file list if (is_dir($dir)) { if ($dh = opendir($dir)) { //This is the div that contains the wrap around for the breaking news section. echo div class=\spstory\ style=\font-family: Times New Roman, Times, serif; font-size: 12px; width: 290px;\ div style=\width: 285px; background-color: #CC; padding: 3px;\ span class=\NormalHeadRed\Breaking News/span br /Please check here often for breaking news stories. /div p / span class=\NomalText\ ul; // iterate over file list while (($filename = readdir($dh)) !== false) { // if filename matches search pattern, print it if (ereg($pattern, $filename)) if(strpos($filename,'.')0) { $fh = fopen($dir . $filename, r); $filehead = fgets($fh); fclose($fh); echo li class=\bn_bullet\ a href=\/breaking_news/$filename\$filehead/a /li; } } echo /ulp / /span /div; // close directory closedir($dh); } } ? Thank you, -- Steve Marquez How is the output random? The text from the file, or the order the files are read? I recon its the same problem I faced where files are read in the fifo order instead of alphabetical. or did I miss out on this thread completly? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem with imagefontwidth function, It looks to be unavailable...
On Thursday 07 February 2008 17:17:30 David Giragosian wrote: On 2/7/08, Daniel Brown [EMAIL PROTECTED] wrote: On Feb 7, 2008 8:23 AM, Jochem Maas [EMAIL PROTECTED] wrote: Legolas wood schreef: Hi Thank you for reading my post I am trying to run a php based application using php5 and apache. but I receive an error like: *Fatal error*: Call to undefined function imagefontwidth() in */var/www/v603/includes/functions.php* on line *28* mostly likely you'll have to ask your sys admin to install/activate this extension ... and if you have cheaphosting then likely the answer will be no we don't do that - in which case find other hosting? plug shame=false / PilotPig has GD, ImageMagick, and all kinds of other things already installed, and will install any server software (when reasonable) upon request at no charge. Check it out: http://www.pilotpig.net/ /plug ;-P -- /Dan I can attest to what Daniel is saying about PilotPig. I've had a site hosted there for about 5 months now and have been really happy with everything: costs are reasonable, lots of modules available, respectful and timely reponses to questions and/or concerns. Just a great overall experience. David am I readin an comercial -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Posting Summary for Week Ending 18 January, 2008:php-general@lists.php.net
On Sunday 20 January 2008 22:06:54 Nathan Nobbe wrote: have you ever googled for [EMAIL PROTECTED] ? looks like it brings up some thread from around september of 07... oh wait; isnt that before dan started up the stat program .. -nathan MAN don't expose it like that. Now he'll get tons upon tons of spam :D -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Posting Summary for Week Ending 18 January, 2008:php-general@lists.php.net
On Sunday 20 January 2008 19:58:03 David Powers wrote: Robert Cummings wrote: I understand what you are thinking, but the fact remains your address is already public for having posted to the list. It seems you are getting bent out of shape because you aren't grasping this fact. Dan hasn't done anything wrong nor does he owe any apologies or concessions. I am not naive enough to think that my email address would have remained secret if Dan hadn't published the list. Unfortunately, this is the only newsgroup out of more than 20 that I regularly monitor or contribute to that exposes individual addresses. I have tried posting in the past with a munged address, but the post was rejected. I took the risk of using an address that had been spam-free for years in the full knowledge of what might happen. I did so, because this seemed a professional list, and the address remained spam-free for about a year after my first post. It's only within the last couple of months that spam has started coming in. Whether it's this list that's been harvested, it's impossible to say. Of course, anyone with the appropriate coding skill can harvest addresses from this list, as Dan has shown. I just don't think it's sensible for a responsible member to hand the addresses of 100 members on a plate to all and sundry. As I've said before, if Dan's response had been, Sorry, that wasn't meant to happen, that would have been the end of it. And now this really must be the end of it. You really don't get it yet? You distributed it, I knew your email long before Dan did squat, didn't take any programming to acomplish that. And for skills? I'm poor at regexp (as in I SUCK) but hell, even I could do an harvest directly from postfix and you would come up time after time by your own hand, a few mails more with the mention of your email wouldn't do any difference, see; I got you one the first mail. __ David Powers -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Posting Summary for Week Ending 18 January, 2008:php-general@lists.php.net
On Sunday 20 January 2008 22:38:24 Robert Cummings wrote: On Sun, 2008-01-20 at 16:13 -0500, Nathan Nobbe wrote: On Jan 20, 2008 4:09 PM, Børge Holen [EMAIL PROTECTED] wrote: MAN don't expose it like that. Now he'll get tons upon tons of spam :D damn, did i, like, just publish it again :-O Is this going to turn into one of those things like with the Blu-Ray decryption code? nono. Depending on the reply from david it either: Turns into a twin peak thriller with a sudden stop or a soap like bold and the beautiful episode 345k we'll just go on and on and on and on. Slashdot in 10... ;) Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Bad company This Weekend!
On Friday 18 January 2008 21:44:26 Richard Lynch wrote: On Fri, January 18, 2008 11:15 am, Colin Guthrie wrote: Maximus Entertainment wrote: _Bad Company â This Saturday Night in Milwaukee, WI_ Great. That's super relevant for 99.9% of this mailing list. Anyone near Milwaukee should go along and punch one of the promoters :D Aw, come on... Could be they just slipped in their To autofill choice... so much fun mocking someone ;D -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Guestbook
On Sunday 13 January 2008 01:32:53 Andrés Robinet wrote: Hi Guys, Anybody knows of a free and decent PHP Multilanguage guestbook (or at least supporting German and English)? I don't care if it is db-driven or uses flat files. I know how to write one, but it's for a website we didn't develop (but will now host) and I'm feeling a bit lazy... maybe someone has a hint. I don't care of how it looks, I can customize that, just want to write as less code as possible and avoid any security headaches as well (yeah... the good old lazy days :)). jup feeling lazy alright. Good thing google works Thanks in advance, Rob ndrés Robinet | Lead Developer | BESTPLACE CORPORATION 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 Email: [EMAIL PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE: bestplace | Web: http://www.bestplace.biz | Web: http://www.seo-diy.com -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Guestbook
On Monday 14 January 2008 00:07:30 Andrés Robinet wrote: -Original Message- From: Børge Holen [mailto:[EMAIL PROTECTED] Sent: Sunday, January 13, 2008 7:48 AM To: php-general@lists.php.net Subject: Re: [PHP] Guestbook On Sunday 13 January 2008 01:32:53 Andrés Robinet wrote: Hi Guys, Anybody knows of a free and decent PHP Multilanguage guestbook (or at least supporting German and English)? I don't care if it is db-driven or uses flat files. I know how to write one, but it's for a website we didn't develop (but will now host) and I'm feeling a bit lazy... maybe someone has a hint. I don't care of how it looks, I can customize that, just want to write as less code as possible and avoid any security headaches as well (yeah... the good old lazy days :)). jup feeling lazy alright. Good thing google works Good... that will be my answer next time I don't have anything to say on a thread. ok, THAT was informative. And yeah... you can search for Free PHP whatever and you'll get some Ad-Oriented websites if you know what I mean... sometimes Google just sucks. I don't care, don't use google. And sometimes Yes, once I used which is reliable, simple and supports German... is not that hard to answer. You don't even have a suggestion, and still complain If for every issue you come across you have to use Google alone, then get rid of the list... there were so many jerky questions that got answered here... This list is about php, ie what you build ... lets say guestbooks of. Jerky or not, this is where you come when you hit a brickwall, with no lazyness Anyway, I'll just have to write my own and save it on our library, there's a German speaking woman in the company which will give me a hand. See there you go... and with some help you should be down on 30min each. I personally hate guestbooks, me to, especially those with captcha but I prefer to have some reusable piece of our own, than to have to deal with some dirty code for which I don't have a recommendation. Join the club Pity, it is the first time I ask something to the list, I expected just a bit more (like a couple of names to research). Did you do any research before askin' for help? sure didn't sound like it. Remember that some (most?) of these guys (and gals?) do php for a living, and take it out of their own pocket trying to help one'another, and it's a rude practice demanding without showing you'd done some forehand homework. Me? I'm just rude enought to point that out. Well... seems that I'll change my policy a bit next time someone needs a hand. I hope you catch on to both my irony and what I try to tell you, if so you'd be doin' just fine Rob Thanks in advance, Rob ndrés Robinet | Lead Developer | BESTPLACE CORPORATION 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 Email: [EMAIL PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE: bestplace | Web: http://www.bestplace.biz | Web: http://www.seo- diy.com -- --- Børge Holen http://www.arivene.net -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net
On Saturday 05 January 2008 16:31:49 Daniel Brown wrote: Had everything gone as it was supposed to, I think it would've been welcomed with open arms. Unfortunately, my stupid ass flipped the wrong flag while testing for approximately an hour, which sent posts to the list every minute for one hour. However, they weren't coming through at the time, and I didn't realize that they were even being sent, because the address was not subscribed at the time. Once the address was subscribed, all of the messages must've been held in a queue on the mailing list side, and were then distributed. This leads me to ask, why? Isn't this a really Bad Idea[tm] to hold posts in queue, pending confirmation of the sender's address? I can understand one message, but any more than that shouldn't be necessary. My intentions were just to add something neat to the list for the regulars (which will work as expected now), but what if someone had truly malicious intentions? What if hundreds or thousands of emails were sent and held in queue, and then the sender's address confirmed? Would the mailing list software even be able to handle that much of a queue? I wonder... what you try to do seems like a trivial task, or just task, where did you go wrong to make it send all those mails? just some personal interrest... -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] login and read ad email
On Saturday 05 January 2008 22:06:47 Yui Hiroaki wrote: HI! I try to login and read ad email in server. Does any one know how to do this? Below does not run correctly. right, the line: if( !eregi(OK, $line) ) // login faile?if( !eregi(OK, $line) ) //ogin faile? it looks just like this? without reading the code it strikes me as odd if it does. Regards, Yui p.s I try to see pop3 email. I can not find the example! ?php $host = abc.com; $port = 110; $user ='[EMAIL PROTECTED]'; $pwd ='password'; $fp = fsockopen($host, $port); // ログイン fputs($fp,USER $user\r\n); // USE $line = fgets($fp, 512); fputs($fp,PASS $pwd\r\n); // pwd $line = fgets($fp, 512); echo $line; if( !eregi(OK, $line) ) // login faile?if( !eregi(OK, $line) ) //ogin faile? { echo fail; fclose($fp); return false; } echo sucess; ? 2008/1/1, Richard Lynch [EMAIL PROTECTED]: PHP's IMAP module will cheerfully use POP if you insist on it. You don't have to READ the email with IMAP. You can just re-arrange all your folders or do whatever it is you want it to do... You keep asking the same questions, and I keep telling you IMAP will do it. maybe you should try it? On Mon, December 31, 2007 1:17 am, Yui Hiroaki wrote: Thank you! But I would like to use pop. Because I do not want display the email. I just access and get email. Please teach me some advise. Yui 2007/12/31, Richard Lynch [EMAIL PROTECTED]: On Sun, December 30, 2007 2:19 pm, Yui Hiroaki wrote: HI! I am trying to access qmail with php. Why! Because I would like to read mail who someone send an email me to qmail. If anyone knows the code, please send me the code. http://php.net/imap Sample Code: http://l-i-e.com/imap/index.phps Some spam filtering I set up to catch what slips through spam assasin and get the email sorted server-side rather than have my desktop client CHOKES trying to sort out thousands of emails upon login... -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sample script files with 3 different select boxes withmysql conditions in select boxes
On Thursday 03 January 2008 16:55:41 Robert Cummings wrote: On Thu, 2008-01-03 at 09:52 -0600, Jay Blanchard wrote: [snip] I don't suppose any of you punks know the meaning of rhetorical? ;) [/snip] Rhetorical? Rhetorical?? what??? -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Sample script files with 3 different select boxes with mysql conditions in select boxes
On Thursday 03 January 2008 16:54:55 Robert Cummings wrote: On Thu, 2008-01-03 at 07:48 -0800, Jim Lucas wrote: Jochem Maas wrote: Jim Lucas schreef: Jochem Maas wrote: Robert Cummings schreef: On Thu, 2008-01-03 at 09:18 -0600, Balaji A wrote: Hi, I have a table with the below fields. (id, title, language, author link to the book). Initially I want to display a page with 3 select boxes (language, author title). Initially first select box displays the available language by querying the database. On selecting one language, author select box should show the matching records from the database. After selecting the author, matching records should display in title. Could any body send the sample script files with 3 select boxes? Anything else you'd like to add to the requirements document? no - he'll be happy if you just get on and complete the sample script as requested asap. as you know it's urgent. ;-) YOU need to make sure the OP meets their deadline. Now quit waisting time reading these email mails and get to work! no no. that's Rob's job to do other peoples work for them. he's this years designated off-shore gimp. I was thinking about signing up for that program, but not if it requires more then a day or two. Wow, a year? Man, Rob, you are committed... Wait, you need to be committed... :) Actually I need to bail on my contract. When I first signed up the U.S. dollar was worth more, but now that it's almost worthless, I've decided I can just pay for cheap labour in the U.S. Love that us $ just about now. Bought christmas gifts for both the lady'n me over internet. Half the usual price!!! Wonder if I should by a new car, cheat some customs affair for some *blingbling* :) Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] About search engine usability
On Tuesday 01 January 2008 19:21:09 Richard Lynch wrote: On Mon, December 31, 2007 5:19 pm, Jim Webber wrote: Hello I'm building a website with a search engine. Do you think it is more usable if the search interface had a search button? or do you think it will be more convenient to not have button to let the users just push enter to search. I would appreciate any comment regarding this, thanks. Have the button, but make it tiny. There are always some users too new to know that they don't need a button. The rest can ignore the tiny bubbles. I mean button. :-v I HATE pages with js forms (just because its js) and uncomplete forms. I love surfing and finding information with just my trackball. The imense power of linux gpm mark/copy - paste, makes us undeniable lazy. I actually got to go looking for the extra :' ' to fetch'n copy the virtual enter... takes a few extra ms at than, but I don't have to move a finger. If I got the button I don't have to think about it, without it I got no choice. -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] foreach questions OT
On Tuesday 01 January 2008 20:47:18 jekillen wrote: Hello; I have this section of code: @include('tmp_index.php'); foreach($index as $key - $value) { if($input == $key) { $target_file = $value; } } And I am getting this error: Fatal error: Cannot access empty property in path/confirmation.php on line 131 I bought the property on line 131 just before you tried to access it. I put up a high electric fence, just over the path and theres nothing there yet, but working up a mortgage right now. ;D sry. late nite last night. Several questions: How long can an index be in an associative array? (the indexes I use in this array are 32 character hashes) Can it start with a number (since a hash can start with a number) Can I use $index as an array name? (I do not remember off hand what the reserved key words are) I am not sure what the empty property is that it is referring to. Thank you in advance for info; Jeff K -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] read email
On Sunday 30 December 2007 21:19:16 Yui Hiroaki wrote: HI! I am trying to access qmail with php. Why! Because I would like to read mail who someone send an email me to qmail. If anyone knows the code, please send me the code. NOW that was straight forward I always thought the easiest way to figure out how this works, is to take appart... something like squirrelmail or openwebmail... even something like the one we use on our students at work, a short name, like zork dork work... can't remember. :). Even so, never got to it and forgot about it. Never thought about the shortcut of askin' here... However, why doesn't this seem likely ;D Regards, Yui -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: SV: SV: [PHP] Mail system
On Sunday 30 December 2007 22:10:50 mattias wrote: Yes but i are newbie in php I think i should use php exec but i dont know no more See there's no problem havin php reading your files, you just got to make sure that it's allowed to... PHP is not doing that very well job, so there is some perl cgi stuff thingy and I don't know. imho, start tearing apart some software and skip googling, to much small stuff to figure out just by thinking about it. It's like trying to think out a car in details all by yerself... could be done in a few months, but if you're like me... I won't even say it -Ursprungligt meddelande- Från: Stut [mailto:[EMAIL PROTECTED] Skickat: den 30 december 2007 22:01 Till: mattias Kopia: php-general@lists.php.net Ämne: Re: SV: [PHP] Mail system mattias wrote: First of all If you have a bad day don't send to the list I'm actually having a pretty good day thanks. Seriously though, Google for an existing solution, and if there isn't one have a go yourself and then ask for help if you have problems. I apologise if you feel that's harsh, but that's the way it is. -Stut -- http://stut.net/ -Ursprungligt meddelande- Från: Stut [mailto:[EMAIL PROTECTED] Skickat: den 30 december 2007 21:46 Till: mattias Kopia: php-general@lists.php.net Ämne: Re: [PHP] Mail system mattias wrote: If i run coureir and postfix I want to have a signup script How should the code be written? Since you're asking on a PHP list I'm going to assume you want to use PHP. The answer you seek is... by you, using some form of text editor! We're not here to write code for you. Have a go, then come back if you have problems. The manual will help, as will Google. There's a good chance someone has already done this, so I'd start with Google. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Unix date (even more bazaar)
On Saturday 29 December 2007 17:59:01 Daniel Brown wrote: On Dec 29, 2007 11:43 AM, Robert Cummings [EMAIL PROTECTED] wrote: On Sat, 2007-12-29 at 11:37 -0500, tedd wrote: At 4:58 PM +0100 12/29/07, Zoltán Németh wrote: 2007. 12. 29, szombat keltezéssel 09.42-kor Daniel Brown ezt írta: I wish to create my website www.manonivas.org so as i f anyone wish to enter in it they should pay a payment to my bank account online. As soon as they transfered money to my account then only they have to login my site and enter the link www.manonivas.org/radial_remedies.htm . Then login session expires after 24 hours and if they wish to reenter they have to pay the same amount. Please send me a script and other designing details to create my website as above described format. Please send the reply to my email ID: [EMAIL PROTECTED] or as a reply for this message. Regards N. Manohara Kurup Yeah, like that's going to happen. I didn't even receive this one... That's OK, because I received two of them. Where do people that that come from? You guys answered this wrong... I have the solution for you, to get it you will need to log into my site and make a large payment. That will get you to the first line of the solution. To see the next line, or after 5 minutes you will need to log in again and make another large payment. This process will continue for a while, specifically until I have all your money or you have all my solution. I've received six exact copies of the same email. Some people are ignorant. butbut... I just got this one And sure, I'm one of them just not this time. And that feels pretty good. ;-P -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!] If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Unix date
On Friday 28 December 2007 16:46:46 tedd wrote: Hi gang: Using: $unix_in = 1255845600; echo(date(M d, Y h:i:s a,$unix_in)); On one sever, produces: Oct 18, 2009 02:00:00 am But on another sever, produces: Oct 18, 2009 12:00:00 am This difference appears to be a combination of time-zone and daylight-savings considerations. In other words, the function date() looks at the server's time (whatever that is set for, right or wrong) and uses that for the calculation. So, what's the best method in keeping things consistent across servers? Is there one? I almost took to a baseballbat, till I remembered to change php.ini to co run two servers. Of course doing this in severeal servers all across the world probably would result in some timeerror somewhere, but it did the job for me EASY!! Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Unix date
On Friday 28 December 2007 23:48:21 tedd wrote: At 7:45 PM +0100 12/28/07, Børge Holen wrote: On Friday 28 December 2007 16:46:46 tedd wrote: So, what's the best method in keeping things consistent across servers? Is there one? I almost took to a baseballbat, till I remembered to change php.ini to co run two servers. Of course doing this in severeal servers all across the world probably would result in some timeerror somewhere, but it did the job for me EASY!! Well, I'm glad it was easy for you, but this has been, and remains, confusing and frustrating for me. Shouldn't be... two different servers where the timezone in php.ini is set different. It does not do anything useful, EXCEPT giving you the possability to offset/ skew the time in php. Short version and a hand on explanation: Say I maintain a machine in seattle and my own here in norway. 9 hours time difference. These two is handling a site together and the database timestamp has to be the same, on a date not yet arrived on the other. I can now offset one of the machines 9 hour forth or back to fit my need. of course this only work if you handle one domain (or more in one country). If not... you must use the solution presented by the others here. Here's the problem if anyone cares to stress themselves. Here is the code and demo: http://webbytedd.com/c/unix-time1/index.php It works for me on my server. However, when I use the exact same function for a client on his server and enter: 10-18-2009 00:00:00 The function changes the date to: 10-18-2009 12:00:00 What's going on here? That was my problem to, till I found the bugger in the ini file: [Date] ; Defines the default timezone used by the date functions date.timezone = 0 that is the line you are looking for... or would if you had access to it. with the lines the other nice ppl provided, you do exactly the same, just not system wide. Cheers, tedd PS: I have no control over the php.in file. shoot the administrator.. or add a code to offset the time -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] XSS
On Wednesday 26 December 2007 21:03:40 Mad Unix wrote: Am facig problem with XSS cross Site scripting general on our web site, and i think its a coding issue since our dedicated server run Linux with apache mysql and php... any recommendation to resolve this issue yes! you feel something missing? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] I need your vote http://gmailrulz.blogspot.com/
On Wednesday 26 December 2007 21:21:42 Gevorg Harutyunyan wrote: Hi People, Please take a minute from your time and vote there. The poll content is simple are you using Gmail or not ? -- Best Regards, Gevorg Harutyunyan ppl didn't come out of christmas with their brains intact, wtf is these weird postings on the lst -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Select Box CSS OT
On Tuesday 18 December 2007 20:03:53 Stut wrote: VamVan wrote: Please apologize for sending this question to PHP forums. If you know this already why ask the question here? Also, this is not a forum. But I would appreciate it very much if some could please help me styling select mutiple in HTMl with CSS? I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. AFAIK this can't be done without some very nasty code due to the way IE renders select elements. Google has the answer if you really want it. Trinity renders shit, but for gods sake I would prefer if gecko would render atleast acid2 and keep up with the demands of the stylists, before they call themselves better than others. But then again, neither webkit or khtml is as versatile as the other two. Anyone with thoughts on opera... -Stut -- http://stut.net/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Select Box CSS OT
On Tuesday 18 December 2007 21:16:46 you wrote: Why not try a css list? css-discuss for example? Yes why not? On Dec 18, 2007 8:06 PM, Børge Holen [EMAIL PROTECTED] wrote: On Tuesday 18 December 2007 20:03:53 Stut wrote: VamVan wrote: Please apologize for sending this question to PHP forums. If you know this already why ask the question here? Also, this is not a forum. But I would appreciate it very much if some could please help me styling select mutiple in HTMl with CSS? I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. AFAIK this can't be done without some very nasty code due to the way IE renders select elements. Google has the answer if you really want it. Trinity renders shit, but for gods sake I would prefer if gecko would render atleast acid2 and keep up with the demands of the stylists, before they call themselves better than others. But then again, neither webkit or khtml is as versatile as the other two. Anyone with thoughts on opera... -Stut -- http://stut.net/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Select Box CSS OT
On Wednesday 19 December 2007 03:59:11 Richard Lynch wrote: On Tue, December 18, 2007 2:06 pm, Børge Holen wrote: On Tuesday 18 December 2007 20:03:53 Stut wrote: VamVan wrote: Please apologize for sending this question to PHP forums. If you know this already why ask the question here? Also, this is not a forum. But I would appreciate it very much if some could please help me styling select mutiple in HTMl with CSS? I have .selectmulti { border: 1px solid #c9c9c9 } this code but it only works in firefox How can I make this work in IE? And also I want to change the selected color. AFAIK this can't be done without some very nasty code due to the way IE renders select elements. Google has the answer if you really want it. Trinity renders shit, but for gods sake I would prefer if gecko would render atleast acid2 and keep up with the demands of the stylists, before they call themselves better than others. But then again, neither webkit or khtml is as versatile as the other two. Anyone with thoughts on opera... All the browsers suck. They are all rushing half-baked features to market instead of focussing on quality user experience. Opera just sucks in different ways. No worse, no better. ymmv lol, the suckiness scale close to tips to the point where it almost f*s up on serverside ;D -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] how to handle inserting special characters into a mysql field
On Saturday 15 December 2007 18:59:12 Richard Lynch wrote: On Fri, December 14, 2007 11:03 am, Adam Williams wrote: $query = sprintf(SELECT * FROM users WHERE user='%s' AND password='%s', mysql_real_escape_string($user), mysql_real_escape_string($password)); and I understand it uses the %s because of sprintf(), to indicate the data is a string. However, thats not syntax I'm used to seeing. If I rewrite the code to the following below, will it return the same results or error when queried? $user = mysql_real_escape_string($user); $password = mysql_real_escape_string($password) $query = SELECT * FROM users WHERE user='$user' AND password='$password'; Yes, you will get the same result. You could have run both sets of code to try it faster than I typed this answer. lol, love those comment, but I'm horrible myself, to ask these kind of questions =D :-) -- Some people have a gift link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] build a multi chat server with php
On Sunday 09 December 2007 11:17:36 you wrote: thank you Børge Holen, I think the third solution is very COOL , using the jabber 2.0 in the backend but i'm still confusing how can i get communicate the jabber srver with web chat page! if u can explain more i will be gratful. http://www.jabber.com/CE/JabberXCP have a look. me and a pal had this thing communicating in/out of Second Life / webinterface... nothing usable, we just made it work and was thinking of using it for a mobile - second life thing end of story for some reason, things to do and bills to pay. Best regards 2007/12/8, Børge Holen [EMAIL PROTECTED]: On Saturday 08 December 2007 16:28:06 you wrote: live chat throught a web page like www.amitie.fr then I got three solutions for you, either make a (as mentioned by others on the list) an ajax frontend witch do the irc lookalike. You can create a webinterface for an irc server. I think java is often used for this solution, you can probably also use ajax. (this isn't as hard as is looks, I think this solution is easier than the first one) And as a third and ... the COOL solution is to user the jabber 2.0 as the backend and some php stuff in the middle and a nice interface, that you can connect directly using a jabber client (maby throught a mobile) and someone on the same time using the webpage to chat with you ?;D This option is of course available on the second option to, except you use irc. All this open protocolls just makes us nerds go crazy!!! 2007/12/8, Børge Holen [EMAIL PROTECTED]: On Saturday 08 December 2007 09:59:35 abderrazzak nejeoui wrote: Hello, i want build a multi chat server based in php. 1- is that possible 2- if yes can you instruct me how to bigin thanks chat as in : forum livchat throught a page livechat throught an external program, -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] build a multi chat server with php
On Sunday 09 December 2007 23:46:44 Jochem Maas wrote: Nathan Rixham wrote: Anybody up for (or indeed see a need for) a multi threaded php daemonised jabber client? Looks like an interesting challenge! u know the old saying, if you build it they will come ;-) lol, for true... -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] build a multi chat server with php
On Saturday 08 December 2007 09:59:35 abderrazzak nejeoui wrote: Hello, i want build a multi chat server based in php. 1- is that possible 2- if yes can you instruct me how to bigin thanks chat as in : forum livchat throught a page livechat throught an external program, -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] build a multi chat server with php
On Saturday 08 December 2007 16:28:06 you wrote: live chat throught a web page like www.amitie.fr then I got three solutions for you, either make a (as mentioned by others on the list) an ajax frontend witch do the irc lookalike. You can create a webinterface for an irc server. I think java is often used for this solution, you can probably also use ajax. (this isn't as hard as is looks, I think this solution is easier than the first one) And as a third and ... the COOL solution is to user the jabber 2.0 as the backend and some php stuff in the middle and a nice interface, that you can connect directly using a jabber client (maby throught a mobile) and someone on the same time using the webpage to chat with you ?;D This option is of course available on the second option to, except you use irc. All this open protocolls just makes us nerds go crazy!!! 2007/12/8, Børge Holen [EMAIL PROTECTED]: On Saturday 08 December 2007 09:59:35 abderrazzak nejeoui wrote: Hello, i want build a multi chat server based in php. 1- is that possible 2- if yes can you instruct me how to bigin thanks chat as in : forum livchat throught a page livechat throught an external program, -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] How Much Time to do First PHP BB Setup
On Thursday 06 December 2007 20:16:51 Stephen wrote: Hi I am considering taking on a project, part of which is setting up PHP BB. I have not done this before but have done Linux/PHP/MySQL web sites. What would be a realistic time estimate for me to get this running, including going through the documentation and learning basic administration? You tried it before you ask, yes? It should be straight forward then, look at the clock. See, the time there is quite individual, I got friends, with NO knowledge of php or LAMP at ALL, they DO know how to setup phpbb, I've never done it, but I know (this have the potential to start a nice flamewar... the _knowing_ part I mean) php and LAMP. Who would be using the least amount of time, and why? I wouldn't know before trying it... If I knew how, I bet that time would be somewhat off of what you would take, if you didn't know and/or never tried it. Thanks! Stephen -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Calendar
On Monday 03 December 2007 13:37:45 Emil Edeholt wrote: Hi, was this a mathematical question? Yes, someone on this list, can probably help you to do some finesse, but I like it mathematical and clean code I'm about to add some simple calendar functions to my application, and I'm thinking of how I should implement recurring events. Are there one standard way most people use that works well? a timestamp I guess you have some kind of emitter event that creates the recurring events and a group id that holds the events together. a timestamp + a year ahead as an example, a week, a day, a week + two days, it's all very simple to add up with php. How long forward does one usually create the events. Two-three years...? chaa... What event except birthdays weddings and maby elections are we talking about here? I cannot tell what I'm supposed to do next week and it seems kind'a hard to grasp at what youre thinkin of Sorry if I'm a bit blury. But any ideas on recurring events are welcome. I guess I could just hack something together, but it would be fun to do it right. wee bit blurry. Regards Emil -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Dynamic Display of Images Stored in DB
On Thursday 29 November 2007 06:03:32 Chris wrote: In my solution, I use two scripts. One for showing the image true size and another for generating a thumbnail -- I may be wrong, but I think it's better to generate a thumbnail as needed on the fly than it is to store both images (large and thumbnail) in the dB. Cache it on the filesystem even if it's for a short time (of course if the image is updated elsewhere the cache needs to be cleared as well..). ?php $file = '/path/to/cache/file.jpg'; if (file_exists($file)) { if (filemtime($file) strtotime('-30 minutes')) { $fp = fopen($file, 'rb'); fpassthru($fp); exit; } // the file is older than 30 minutes, kill it and start again. unlink($file); } // continue creating your thumbnail. $fp = fopen('/path/to/cache/' . $filename, 'wb'); fputs($fp, $imagecontents); fclose($fp); // display image Hell, I'm all ok with this method... but does (different) webhotells take into account the amount used with cache/temp files. If so, some check should be used, and if not. Cache it all!, and remove the timelimit, some check for the change of image of course, but that all depends if you acctually change images from time to time.. -- Postgresql php tutorials http://www.designmagick.com/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Dynamic Display of Images Stored in DB
On Friday 30 November 2007 00:39:39 Chris wrote: Hell, I'm all ok with this method... but does (different) webhotells take into account the amount used with cache/temp files. If so, some check should be used, and if not. Cache it all!, and remove the timelimit, some check for the change of image of course, but that all depends if you acctually change images from time to time.. If it's under your user account then there's no way for them to know which parts of your website are cache/temp folders and which aren't. So yes, caches temp files/folders will be included in your disk quota. I mean't system wide, like the php temp files, or /tmp. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Should I put pictures into a database?
On Wednesday 21 November 2007 03:14:43 Ronald Wiplinger wrote: I have an application, where I use pictures. The size of the picture is about 90kB and to speed up the preview, I made a thumbnail of each picture which is about 2.5 to 5kB. I use now a directory structure of ../$a/$b/$c/pictures I wonder if it would be good to put the thumbnails into the current table, in a different table or leave it like it is now. Same for the pictures. What is your opinion and why? Ouch this particular piece of topic is a all time champion of things to discuss... Richard Lynch is pretty good at beating that old horse ;D (you there?) I would say it's up to you and the project... I've made a couple of pedigrees and membership lists where I've chosen to put images in the database for the reason of simplicity. 10.000 small images really gets me depressed when viewed as files. _I_ feel that a list of ... lets say 250 employees is far more compact and corrrect in a blob; small program and everything piled in one place. The previous mailer talked about huge blob data, mine will never come close 12gb of blob data. I've made a couple of forums where multiple image uploading and expanding possibilities made it awkward to use blobs. As I said, if youre comfortable with using files in a blob rather than remote filesystem, and the project works OK with it, why not. On the other hand, none've my tables passed 1gb yet. bye Ronald -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
OMG the top posting on this freakin' issue is a headache -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
On Tuesday 20 November 2007 17:49:02 Stut wrote: Børge Holen wrote: OMG the top posting on this freakin' issue is a headache Whereas removing all of the previous message is like a sensual massage. okey... -Stut -- http://stut.net/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail OT
On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote: Stephen Johnson wrote: Who says you can't please them all... ;) Erin Brokovich. nah you sure? why cant i remember that. must be that early altzheimers syndrome or something -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 14:25:21 -0600 To: Stephen Johnson [EMAIL PROTECTED], php-general@lists.php.net Conversation: [PHP] two small issues with php mail OT Subject: RE: [PHP] two small issues with php mail OT [snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Developers and the manual
On Wednesday 14 November 2007 18:55:20 Robert Cummings wrote: On Wed, 2007-11-14 at 12:26 -0500, Daniel Brown wrote: On Nov 14, 2007, at 11:53 AM, João Amaro Lagedo wrote: I recently subscribed to php-general(2 months I think) and during this time I saw some nice stuff, but most of the times (90% ?) It's always the same thing. PHP Developers that really have some kind of problem about reading the Documentation. It's no coincidence that the international anthem of the PHP community is RTFM. Sang to the tune of The Blue Danube he lyrics are as follows: Oh, listen to me, young coding geek. When all else is lost, and all looks bleak, The first place to go is on the 'Net, And go onto Google, where you can bet That someone else has had the same Problems that you presently face. So please don't scream, and don't yell; Read The Fucking Manual. On Nov 14, 2007 12:03 PM, Jason Pruim [EMAIL PROTECTED] wrote: [snip] So I guess the point of this e-mail, is to say thanks to everyone who has helped me. :) Hey, no worries. You'll be able to officially thank the community when we go to the new mandatory donation system on the list on 1 January, 2008. Watch for strange charges to your PayPal account, et cetera, with the subject foreach($question as $head = $wall) or HTML Lessons. Coincidentally, that's the same date that Robert Cummings' gift link turns into an ultimatum that will teach those who don't click of their own mortality. Gift link?? did he mean Richard there? And I think you mean volition where you've used mortality :) Cheers, Rob. -- ... SwarmBuy.com - http://www.swarmbuy.com Leveraging the buying power of the masses! ... -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IDE
On Thursday 15 November 2007 21:35:04 Jammer wrote: Hi All, This is my first post here ... I'm very much a newbie to php but work during the day using SQL Server, VS2005 and Foxpro. Looking to gen up on my PHP. Are there any IDE's for PHP worth checking out. Particularly free ones! TIA, -- jammer www.jammer.biz I LOVE this IDE quiz' the same answers everytime. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP editor
On Sunday 11 November 2007 20:36:39 Jochem Maas wrote: Jay Blanchard wrote: [snip] Being very new to PHP (empahsis on VERY...), I wonder what most of you use to develop in PHP? [/snip] Search the archives, there was a discussion on IDE's just last week. and pretty much every week before that :-) when beginning your most valuable tool is not the IDE but ... http://php.net/ as in http://php.net/search-param|function-name|extension-name|etc and when your really stuck, a well thought out question to this list will usually result in something helpful[tm]. WHAT... whenever did that happen?!!? -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP editor
On Sunday 11 November 2007 22:31:29 Jochem Maas wrote: Børge Holen wrote: On Sunday 11 November 2007 20:36:39 Jochem Maas wrote: Jay Blanchard wrote: [snip] Being very new to PHP (empahsis on VERY...), I wonder what most of you use to develop in PHP? [/snip] Search the archives, there was a discussion on IDE's just last week. and pretty much every week before that :-) when beginning your most valuable tool is not the IDE but ... http://php.net/ as in http://php.net/search-param|function-name|extension-name|etc and when your really stuck, a well thought out question to this list will usually result in something helpful[tm]. WHAT... whenever did that happen?!!? no sure about the well thought out question. with regard to something helpful you have to remember it's something akin to microsoft's innovative software and fair market practices oh... well that makes it ok =D -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP ide? OT
On Friday 09 November 2007 02:05:32 you wrote: On Fri, 2007-11-09 at 01:03 +0100, Børge Holen wrote: oh no, I wasn't hinting your way, I more or less commented on tersus beeing eclipse. It's like the ubunty hype, witch fails to state on the homepage: we're practically NOTHING without debian. Ubuntu = Debian + New Life you know, thats what I call BS. if something fails to do anything by itself.. it should've stayed @ home. Just look at patches and fixes. They only deliver when the debian maintainers 've a fix ready, and between 2 days to a week for the maintainers to get it into their own pool. The reason is simple... Hype! they sell a product witch claims to be more or less a lifestyle of simplicity like osx, however maintenance is a bitch who noone wants to ride, and the few who works on buntu rather sell the new stuff than fixing bogus, tiresome and lenghty faults on imported programs. Just for the sake of some rich dude that feels he need a momentum. I'm really getting it out now, cleaning the pipes you can say. Lol, Debian has a release cycle of 2 to 3 years. Ubuntu has a release cycle of 6 months. Personally I like the fast and furious releases when it's for my desktop. As for server needs... Debian is a better call for it's stabilty. Either way you comment It's like the ubunty hype, witch fails to state on the homepage: we're practically NOTHING without debian is a bit silly since Debian doesn't state we're practically nothing without the Linux kernel and GNU software. We are talking distributions here, not os. Debian supports all these underdogs, but ubuntu is the hyped saviour. I also fail to the whatever the release cycle got to do with... anything? You install once, shortly thereafter you just upgrade now and then. You want release cycles, go for the nighly builds. Count them, don't complain because the debian team fail to see the importance of release cycles. I can take a woody cd install and given the speed of this 100mbit line and 1.67 ghz ppc, I would say 30~40 minutes later I would be running sid. Now that would be fast and furious for you eh? I bet I actually got all the new packages... like ff apache any sql whatever on my testing approximatly 1 week before you got in on ubuntu. They are sickly dependable on all the debian devs to fix their shit and keep theyre hype. But I'll give you a taste of what both do say: Debian: Debian is a free operating system (OS) for your computer. An operating system is the set of basic programs and utilities that make your computer run. Debian uses the Linux kernel (the core of an operating system), but most of the basic OS tools come from the GNU project; hence the name GNU/Linux. Ubuntu: Ubuntu is a community developed, linux-based operating system that is perfect for laptops, desktops and servers. It contains all the applications you need - a web browser, presentation, document and spreadsheet software, instant messaging and much more. Everybody loves raymond. Now analysis of the blurbs reveals that Debian attributes the Linux Kernel and GNU whereas Ubuntu attributes the community at large. Ask yourself which statement is more inclusive :) Community can easily be taken to include the kernel community, the GNU community, the Debian community and any other groups contributing. I'm sure this is the spirit in which the word community is used. Whereas the Debian blurb is more restrictive in it's interpretation. But don't get me wrong, I'm in no way pointing fingers at Debian, they probably have more attributions elsehwere as does Ubuntu. I just think it's silly to argue that Ubuntu owes everything to Debian when Ubuntu, Debian, GNU, the Linux Kernel, etc are all standing upon the shoulders of giants. And those giants are the community of individuals and organizations that give their time and resources to make it happen. There's nothing stopping Debian from integrating things in Ubuntu, that's the spirit of open source and sharing. Why would debian intergrate things in ubuntu, they run ubuntus show right now. Thats why all the ubuntu ppl are harrassing the debian mailinglist... oh wait, much like this. Time to get back to work... cheers btw =D Cheers, Rob. -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php