[PHP] Search engines and cookies

2008-04-07 Thread Emil Edeholt
Hi, Do you guys how search engines like cookies? One site I'm working on now requires the user to select which region he/she is from on the start page. That value is stored in a cookie. So without cookies you can't get past the start page. Does this leave the search engines at the start

Re: [PHP] Security scanner

2008-02-11 Thread Emil Edeholt
are asking for injections. Turn your globals off, use $_POST[var_name] and filter all user input. Just my opinion, I am sure some will disagree. Richard L. Buskirk ## Show me a man with no fear, I will point out the date on his tomb stone. ## -- Hälsningar Emil Edeholt Karlsson Novak Medical

[PHP] Security scanner

2008-02-11 Thread Emil Edeholt
Hi! I've been trying Nessus to search for sql injections and other security issues. I'm quite sure Nessus is missing a lot of possible sql injections (and maybe other stuff too). Are there any other tools that I can install on my server that searches a bit more carefully? What do you use and

[PHP] Re: php-general Digest 25 Jan 2008 07:59:28 -0000 Issue 5255

2008-01-25 Thread Emil Edeholt
Hi! I have a website where people can upload photos and it creates previews. My problem is with pictures with big dimensions like 12000px height for example where the script times out. I've seen other sites that seems do be able to do this faster. I use gd to scale the image. Is there a

[PHP] Verification number

2008-01-24 Thread Emil Edeholt
Hi Sorry if this is considered off topic. Please ignore the post in that case. My site uses ten digit numbers as ID:s for our products. I would like the last digit to be a verification/check digit. I was just about to just make some simple function that would add the other values together

Re: [PHP] Verification number

2008-01-24 Thread Emil Edeholt
Hi, Thanks for your sugestions. I ended up using the Luhn algorithm. Simple but I think it will work for me. http://en.wikipedia.org/wiki/Luhn_algorithm Emil George Pitcher wrote: Emil, have you looked at the 10-digit ISBN verification, which has just been replaced by the 13-digit EAN

[PHP] Calendar

2007-12-03 Thread Emil Edeholt
Hi, 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? I guess you have some kind of emitter event that creates the recurring events and a group id that

[PHP] MySQL and SVN

2007-10-25 Thread Emil Edeholt
, and if I've made changes on both computers I have no simple way to merge the structures like I can in svn. How do you handle this in your projects? Best Regards Emil Edeholt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL and SVN

2007-10-25 Thread Emil Edeholt
Hi, Thanks for your answer. Are you sugesting - what I think is called - a multi-master replication? Since I would like to keep two sources in sync and want to be able to make changes on both servers. I know very little about replication. Maybe I'm making a bigger problem of this than it

[PHP] Render fonts

2007-08-19 Thread Emil Edeholt
Hi I would like to render some fonts into images, for captions on a site. What tools should I use to get the best looking render? Do you guys use the built-in tools PHP has, or are there third party libraries that does a better job? Thanks! Kind regards Emil -- PHP General Mailing List

[PHP] Unit testing

2007-07-30 Thread Emil Edeholt
Hi What (preferably open source) tools are the best for unit testing php? JUnit is not available for PHP from what I can see? Thanks for your time! -- Best Regards Emil Edeholt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Disadvantages of output buffering

2007-06-26 Thread Emil Edeholt
Hi! My php project would get a much cleaner code if I could set cookies anywhere in the code. So I thought of output buffering. But I can't find any articles on the cons of output buffering. I mean it most be a reason for it being off by default? Kind Regards Emil Edeholt -- PHP General

Re: [PHP] Disadvantages of output buffering

2007-06-26 Thread Emil Edeholt
Thanks for your help Dave and Rob. I will start using output buffering a lot more now. Regards Emil Robert Cummings wrote: Cons of output buffering: - tncy weency time overhead - memory overhead since buffered content remains in memory until flushed. Cheers, Rob.

[PHP] Wiki lib?

2007-06-19 Thread Emil Edeholt
. It would be really neat with a small php library under LGPL or BSD or similiar license. Any ideas? -- Regards Emil Edeholt -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Ajax?

2007-05-09 Thread Emil Edeholt
Hi! What do you guys use to develop ajax applications and do you have any good articles on the subject? I've just about finished an ajaxish site but it wasn't fun. A lot of nesting javascript inside php calls, having to write the logic both in javascript and php and so on. The source looks

[PHP] PEAR mail sorted as spam

2007-01-03 Thread Emil Edeholt
Hi, When I send mail via PEARs Mail class they are sorted as spam by Thunderbird. Do you have any ideas why? I can't figure it out. function send_mail($to,$from,$subject,$body) { $recipients = $to; $headers = array(); $headers['From']= $from; $headers['To'] = $to;

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Emil Edeholt
Thunderbird provides an interface to query and modify its spam filters? Or is it an automated email black hole without even a log file? -- Hälsningar Emil Edeholt Karlsson Novak Medical AB Telefon 090-154830 Mobil 070-3758222 E-post [EMAIL PROTECTED] -- PHP General Mailing List (http

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Emil Edeholt
Are you sure? The email is very short and is something like this (but in swedish): Hello, Your order is now available. Regards Emil Jochem Maas wrote: it's not the script. it's the content of the email (possibly in conjunction with 'bad' mail headers, etc) -- Hälsningar Emil Edeholt

Re: [PHP] PEAR mail sorted as spam

2007-01-03 Thread Emil Edeholt
Roman Neuhauser wrote: That's not what I asked. Does Thunderbird tell you why it marked something as spam? If it does, use that information. If it does not, you're crazy for using it. Either way, your question belongs into a Thunderbird mailing list, along with the exact full message. Full means

Re: [PHP] flash/php file uploader

2006-12-12 Thread Emil Edeholt
to update status 7. perl file forwards the saved data to a php file, so that it can make necessary operations on the raw data. It works fine this way. --Aras -- Hälsningar Emil Edeholt Karlsson Novak Medical AB Telefon 090-154830 Mobil 070-3758222 E-post [EMAIL PROTECTED] -- PHP General

[PHP] flash/php file uploader

2006-12-11 Thread Emil Edeholt
Hi Sorry if this is considered off topic, but do you know of any code examples/libs with a flash/php file uploader with progress bar? I've googled for a while but the scripts I find won't work. I'm using Firefox 2 and Flash player 9 on an intel Mac if that tells you anything? Or should I

[PHP] mail() encoded subject line

2006-10-16 Thread Emil Edeholt
Hi, I hope this is not too off topic but I have a problem when I use mail(). When I add the header Content-Type: text/plain; charset=UTF-8 the body of the mail is encoded fine but the subject is not encoded. I've tried to utf8_encode() and utf8_decode() the subject text but neither helps.

[PHP] canon jpegs

2006-10-12 Thread Emil Edeholt
Hi! I'm trying to make thumbnails of uploaded jpegs via GD. It works fine on most jpegs but doesn't seem to work on canon jpegs (tried both a consumer canon and one of the finer DSLRs). When I resaved the canon jpeg in my imaging application GD could handle it. Any ideas of how to solve

[PHP] Texture and wrap

2006-08-31 Thread Emil Edeholt
Hi I would like to output an image from php where an input image is textured and wrapped around a frame. Like when you assemble a canvas on a frame (on, not under). So I get a sort of canvas looking texture on the image and that the edges of the image are wrapped around the sides of the

Re: [PHP] Texture and wrap

2006-08-31 Thread Emil Edeholt
Hi Thanks, but what I meant with wrapping around a frame was this: http://www.proformat.se/gfx/pic_006_kilram.jpg Not just a normal frame around the image. Emil Emil: Yes, that can be done by simply merging images (i.e., watermark). For example: http://xn--ovg.com/watermark The texture

Re: [PHP] Texture and wrap

2006-08-31 Thread Emil Edeholt
Hi again Sorry if I was unclear what I wanted was of course what Jon Anderson said. I wanted what was pictured in the image I posted (the look of wrapping a canvas over a frame) with some kind of fake or simple 3d rendering. The pear libs for doing it seems like what I was looking for, I

[PHP] Bar codes

2006-04-13 Thread Emil Edeholt
Hi, I've never used bar codes before. And now I need to print out bar codes, and I've been told it should be in the format K39 Normal (I could have misunderstood since I can't find that on google. Maybe Code 39 Normal?). Any idea how to find that bar code font or what it's called? And what