Re: [PHP] Send a cookie with a file_get_contents( ) request?

2008-08-09 Thread Per Jessen
n cookie and somehow send it > with the file_get_contents request to get the content. > Can I somehow do this? Or are there other ways? I think you can do that by using a stream context. http://php.net/manual/en/function.stream-context-create.php /Per Jessen, Zürich -- PHP General Mailin

Re: SV: [PHP] Send a cookie with a file_get_contents( ) request?

2008-08-10 Thread Per Jessen
have any actual code to share. Try this though: $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"Accept-language: en\r\n". "Cookie: foo=bar\r\n" ) ); $context = stream_context_create($opts); $resul

Re: SV: SV: SV: [PHP] Send a cookie with a file_get_contents( ) request?

2008-08-11 Thread Per Jessen
Anders Norrbring wrote: > Just wanted to let you know that these ideas worked out.. ;-) > Per's example, combined with Jim's delimiter hint was just right. > Works perfect! Good stuff - but I can't take credit for the example, I just borrowed that from the manual. /Per

Re: [PHP] newsletter code

2008-08-11 Thread Per Jessen
st user from an honest and properly configured mailserver is very, very difficult. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newsletter code

2008-08-11 Thread Per Jessen
. Appropriately customized of course. > Now how would I go about creating the newsletter in the backend? Using > a WSIWIG editor? Leave the creation of the email/newsletter to your customer. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] newsletter code

2008-08-11 Thread Per Jessen
Angelo Zanetti wrote: > Then in his admin section he wants to send out HTML newsletters/plain > text depending on the user's email client. Personally, I would just let the user pick a format, and then always send the newsletter in HTML and text. /Per Jessen, Zürich -- PHP Gene

RE: RE: [PHP] Re: PUT vs. POST (was: php File upload)

2008-08-11 Thread Per Jessen
m... kay?" Todd, I just wanted to stress that there is NO way for PHP to access anything on the client. The way you wrote it, you sort of implied that there might be other ways: "PHP by itself cannot access the local file system in a way that allows ..." That's all. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: RE: [PHP] Re: PUT vs. POST (was: php File upload)

2008-08-11 Thread Per Jessen
>allows ..." >> >>That's all. > > The above is saying two different things. > > 1). "PHP by itself cannot access the local file system" <-- true. > > 2) "... there is NO way for PHP to access anything on the client." > <-

RE: [PHP] newsletter code

2008-08-11 Thread Per Jessen
Mike Roberts wrote: > Ladies and Gentlemen, > Please pardon the interruption, but I tried the prescribed method of > 'opting out' of these messages, but they still arrive. There's no opting out, but there is an unsubscribe: To unsubscribe, visit: http://www.php.net

Re: [PHP] Re: PUT vs. POST

2008-08-11 Thread Per Jessen
redibly powerful on the client side, surely we should have had an option to disable PHP in the browser long ago? I know I would want one. I'll have to mention it to the Mozilla people - I'm sure they'll appreciate a good, uh .. hysterical laugh. And _that_ was my absolutely fin

RE: [PHP] If Column Exists

2008-08-13 Thread Per Jessen
about SELECT FROM LIMIT 1 ? The query will fail if the column doesn't exist. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] On one of my computers, php can't see an external javascript I included

2008-08-13 Thread Per Jessen
he .js file to my .php > file and it works. Check your apache log files to make sure your javascript source file is being loaded. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] On one of my computers, php can't see an external javascript I included

2008-08-13 Thread Per Jessen
googling1000 wrote: > > Hi, > > Thanks already for replying. > How do you check for that??? > And, what do you have to do to force Apache to load it??? > You're on Windows, right? Sorry, I don't know anything about Windows. /Per Jessen, Zürich --

Re: [PHP] mail() and exim4

2008-08-19 Thread Per Jessen
command line 'sendmail' or 'mail' is also an MUA, as is the PHP mail() function. I don't know anything about exim, but check that you've got 'sendmail' installed (for use from the command line). Alternatively, check what exim expects to use, and amend the php.ini::sendmail_path accordingly. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Accountancy for a webshop/ecommerce system

2008-08-20 Thread Per Jessen
a general ledger, journals, etc. This sounds like a severe case of scope-creep. I don't think any of that belongs in a webshop system, just like a webshop doesn't belong in a general ledger system. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Licensing

2008-08-21 Thread Per Jessen
;s one 'm' too many in "commmercial". GPL is probably sufficiently well known not to warrant an explanation, but what is QPL? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE: Sale 79% OFF !!!

2008-08-21 Thread Per Jessen
Ashley Sheridan wrote: > And do they really expect it to work?! Yes, and it does. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] file_exists() not working correctly?

2008-08-25 Thread Per Jessen
g directory as well as the permissions. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for email validation

2008-08-27 Thread Per Jessen
VamVan wrote: > Hello Guys, > > Does any have a regex for email validation? I need to allow only > period and underscore in the local part , we would need a @ and .com > or watever for domain. Option 1: /[EMAIL PROTECTED]/ This is probably what you meant: /[EMAIL PROTECTED]

Re: [PHP] Regex for email validation

2008-08-27 Thread Per Jessen
tedd wrote: >> >>Option 1: /[EMAIL PROTECTED]/ >> >>This is probably what you meant: >> >>/[EMAIL PROTECTED]/ >> >>/Per Jessen, Zürich > > Which is probably what you meant: > > eregi("[EMAIL PROTECTED],6}$", $email) >

Re: [PHP] Regex for email validation

2008-08-27 Thread Per Jessen
TED](\.[a-z0-9-]+)*\.([a-z]{2,})$"; For the domain part, I would check against "@([a-z0-9-]+\.)+[a-z0-9-]+" and then do a lookup for an A record. There are still some patterns that will fit the above, without being valid domain-names. /Per Jessen, Zürich -- PHP Gene

Re: [PHP] Regex for email validation

2008-08-27 Thread Per Jessen
s dead as the dinosaurs. I know it IS a valid format, but ... /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for email validation

2008-08-27 Thread Per Jessen
know > that Unicode characters can be used in IDNS and thus on both sides of > the @, You're wrong - IDNs only apply to the right side of the @. (check out what the 'D' means). Go on, send me that email to '[EMAIL PROTECTED]' ... for what it's worth, I can't even define an account like that, so my mailserver might well reject it. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for email validation

2008-08-27 Thread Per Jessen
Lupus Michaelis wrote: > Per Jessen a écrit : > >> That format is about as dead as the dinosaurs. > >Why ? I don't know, but I suspect due to lack of support in popular mailers and mail-servers. Also, the use of quotes does make it cumbersome to work with,

Re: [PHP] Regex for email validation

2008-08-28 Thread Per Jessen
en you'll see xn--u2g.com. I think most browsers will work with IDNs today, possibly with the exception of MSIE (?) > Now, email can be sent from that domain, but I have not found an > application that will send nor receive it. The software has simply > not caught up with the technology

Re: [PHP] Regex for email validation

2008-08-28 Thread Per Jessen
all the way, you could try doing an SMTP VRFY against the MX for the domain, but it's really taking it a bit too far. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for email validation

2008-08-28 Thread Per Jessen
e:KB_Swiss.svg /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for email validation

2008-08-30 Thread Per Jessen
k language/alphabet, but I take your point. I think the problem is mostly on the domain owner side though - if you register a domain for publishing something or other, but most of your intended audience cannot enter it in an easy, straight-forward way, you've only shot yourself in the foo

Re: [PHP] Regex for email validation

2008-08-30 Thread Per Jessen
http://rx-2.com > > That wasn't hard, now was it? What should have happened here, Tedd? I just got the message "you have the wrong Browser" - I'm using Firefox, I thought that was perfectly capable of using IDNs. /Per Jessen, Zürich -- PHP General Mailing Li

[PHP] Re: What's with the Rx symbol? (was: Regex for email validation)

2008-08-30 Thread Per Jessen
most European countries. So it's probably just me, but I've _never_ come across the Rx symbol before. I don't think it's as global as you think. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for email validation

2008-08-30 Thread Per Jessen
Per Jessen wrote: > tedd wrote: > >> But as it is now, it's not so much IF the domain name is easy to >> type in or not, but rather does the Rx.com show up in the URL once >> you get there? And it does for most browsers other than IE. >> >> You ca

Re: [PHP] Re: What's with the Rx symbol?

2008-08-30 Thread Per Jessen
tedd wrote: > At 1:30 PM +0200 8/30/08, Per Jessen wrote: >> I finally managed to get to Tedds site > > It's not that hard, try: http://rx-2.com > Yeah, but that _only_ takes me to rx-2.com, nothing else? > And you said: > >>Now, I haven't worked in

Re: [PHP] Individual bulk e-mails - performance question

2008-08-30 Thread Per Jessen
if for example the cron job will be triggered a second > time, while the first one has not finished. That's easily taken care of. Instead of a cron-job, you could have a script running as a daemon, checking for emails to be sent every 5mins. /Per Jessen, Zürich -- PHP General Maili

Re: [PHP] Re: What's with the Rx symbol?

2008-08-30 Thread Per Jessen
tedd wrote: > At 5:29 PM +0200 8/30/08, Per Jessen wrote: >>Well, I guess - sort of. Just because something is Unicode does not >>make it global, in my opinion. >>In fact, I would argue that most of Unicode is _not_ global at all. >>Think about the alphabets such as

Re: [PHP] Re: What's with the Rx symbol?

2008-08-30 Thread Per Jessen
fine. I have a testing domain which contains an 'ë' - also no problem. It seems to be just somewhat limited to those (and others I'm sure). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Individual bulk e-mails - performance question

2008-08-31 Thread Per Jessen
guess it's a matter of taste or paranoia, but I don't think it's necessary when the script is sufficiently simple: #!/bin/sh while true do sleep 300 done /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Individual bulk e-mails - performance question

2008-08-31 Thread Per Jessen
Robert Cummings wrote: > On Sun, 2008-08-31 at 12:12 +0200, Per Jessen wrote: >> Robert Cummings wrote: >> >> >> That's easily taken care of. Instead of a cron-job, you could >> >> have a script running as a daemon, checking for emails to be sent >

Re: [PHP] Re: What's with the Rx symbol?

2008-08-31 Thread Per Jessen
E as they are now for some browsers. But Tedd, that does actually work _very_ well. The only exceptions I know of are MSIE (the perpetual exception) and your symbol-domains. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: skinning a cat (was: Individual bulk e-mails - performance question)

2008-09-01 Thread Per Jessen
nchronizing scripts is a job for the shell, not PHP. lockfile=/var/lock//file # clear out a lock older than 60mins find $lockfile -cmin +60 | xargs rm test ! -f $lockfile && ( touch $lockfile rm -f $lockfile ) /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: skinning a cat

2008-09-01 Thread Per Jessen
t could also be taken care of by: find $lockfile -cmin +60 -print0 | xargs -0 rm IMO, the syntax of the -exec argument is too cumbersome. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: skinning a cat

2008-09-01 Thread Per Jessen
be better here? (with regard to atomicity) > I haven't thought it through, but I don't think it would change anything. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: skinning a cat

2008-09-01 Thread Per Jessen
Jochem Maas wrote: > Per Jessen schreef: >> Jochem Maas wrote: >> >>>> lockfile=/var/lock//file >>>> # clear out a lock older than 60mins >>>> find $lockfile -cmin +60 | xargs rm >>>> test ! -f $lockfile && ( >>>&g

Re: [PHP] Re: skinning a cat (was: Individual bulk e-mails - performance question)

2008-09-01 Thread Per Jessen
ns >> find $lockfile -cmin +60 | xargs rm >> test ! -f $lockfile && ( >> touch $lockfile >> >> rm -f $lockfile >> ) > > Try running that on windows. Why? - we don't use Windows. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: skinning a cat

2008-09-01 Thread Per Jessen
interesting. Thanks. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Shared memory, mutex functionality and spawning threads. Is it possible using PHP?

2008-09-01 Thread Per Jessen
is memory? > > My next question is related to the first one. I can't answer any of your questions, but if you need shared memory, mutexes and threading, I would advice against using PHP. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: What's with the Rx symbol?

2008-09-01 Thread Per Jessen
Very interesting, I had no idea. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Shared memory, mutex functionality and spawning threads. Is it possible using PHP?

2008-09-01 Thread Per Jessen
this was the topic of a very recent thread. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: skinning a cat

2008-09-01 Thread Per Jessen
Lupus Michaelis wrote: > Robert Cummings a écrit : > >> Try running that on windows. > >No problem > <http://technet.microsoft.com/en-us/interopmigration/bb380242.aspx> > And of course, there's also Cygwin. /Per Jessen, Zürich -- PHP General Ma

Re: [PHP] Google Chrome

2008-09-02 Thread Per Jessen
Richard Heyes wrote: > Hi, > > Looks like Google chrome is being released today (or soon). IE, > Firefox, Opera, Safari and now Chrome, hmmm, can anyone say "browser > war"? > Can anyone say "even more money & effort wasted on testing webpages"

Re: [PHP] Google Chrome

2008-09-02 Thread Per Jessen
Stut wrote: > On 2 Sep 2008, at 12:34, Per Jessen wrote: >> Richard Heyes wrote: >>> Hi, >>> >>> Looks like Google chrome is being released today (or soon). IE, >>> Firefox, Opera, Safari and now Chrome, hmmm, can anyone say "browser >>&g

Re: [PHP] Google Chrome

2008-09-02 Thread Per Jessen
Luke wrote: > isn't the webkit based on KHTML? > It's a fork of KHTML, yes. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] geolocation

2008-09-02 Thread Per Jessen
clive wrote: > Hi, > > Have any developed a site that determines a users location based on IP > address, Im not looking for accurate locations, just what country they > are coming from. > We use the information from http://countries.nerd.dk/ - it's a simple DNS lookup

Re: [PHP] Re: skinning a cat

2008-09-02 Thread Per Jessen
Robert Cummings wrote: > On Tue, 2008-09-02 at 07:52 +0200, Per Jessen wrote: >> Lupus Michaelis wrote: >> >> > Robert Cummings a écrit : >> > >> >> Try running that on windows. >> > >> >No problem >> > <http://tech

Re: [PHP] Re: skinning a cat

2008-09-02 Thread Per Jessen
and apply it to the other 99% which could have done with a much simpler solution. That's more overkill, IMHO. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Google Chrome

2008-09-02 Thread Per Jessen
Stut wrote: > On 2 Sep 2008, at 20:23, Diogo Neves wrote: >> Now is the time ;) > > Indeed: http://www.google.com/chrome > > But only for Windows for now :( > I guess we'll have to wait a little longer then ... /Per Jessen, Zürich -- PHP General Mailing

Re: [PHP] PHP on 64bit Ubuntu

2008-09-03 Thread Per Jessen
t would take up around 2.5 MB on the macbook, takes around > 12 MB on the linux server. > > Does anyone know what might be causing this? All pointers are twice the size, same goes for the runtime stack. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Google Chrome

2008-09-04 Thread Per Jessen
version (ok, not yet ready), but then I tried downloading from Windows, and I still got no link - which is when I spotted that Chrome is only for XP and Vista - not W2K. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sending out mass emails

2008-09-04 Thread Per Jessen
iguration Agree 100%. Postfix (or any other MTA) is much better at this. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] translations for PHP app

2008-09-08 Thread Per Jessen
worth trying http://www.elance.com ? (btw, "Indian" covers several different languages). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: running a very long process from php

2008-09-09 Thread Per Jessen
ey're not even very expensive - how about EUR50/month for a dual-core AMD with 2Gb RAM, dual 400GB SATA disks and unlimited bandwidth. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Regex help

2008-09-09 Thread Per Jessen
logy Manager >>> MQC Specialist >>> 11287 James St >>> Holland, MI 49424 >>> www.raoset.com >>> [EMAIL PROTECTED] >> >> RewriteRule ^jasonpruim112$ /p.php?purl=jasonpruim112 [L] > > Just tried it, and it pops up with a 404... I'll

RE: [PHP] New Server Install

2008-09-10 Thread Per Jessen
Robbert van Andel wrote: > The MySQL database is hosted on a different server. I am building a > new webserver, not mysql server. > Check that the user you're connecting with has the needed access rights. /Per Jessen, Zürich -- PHP General Mailing List (http://ww

RE: [PHP] Thank you...

2008-09-11 Thread Per Jessen
egrade very quickly. Just stop. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Securing pages & sections

2008-09-11 Thread Per Jessen
that the current user has the necessary access. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-09-12 Thread Per Jessen
il. How you generate your email is largely irrelevant and has little or no bearing on whether it gets identified as spam or not. To answer your specific question, I use here-doc plus exec(sendmail). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-09-12 Thread Per Jessen
s often use plain mail(). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

2008-09-12 Thread Per Jessen
maybe it doesn't work in older (4.3,4.4) versions? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Paypal Integration

2008-09-17 Thread Per Jessen
nk a Google logo instils trust. > Not necessarily. Here in Switzerland, the federal data protection agency has recently advised people to be careful with what data they let Google handle (or not). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Paypal Integration

2008-09-17 Thread Per Jessen
It was Google Chrome that prompted it, but at least in IT, people are in general careful with what data they let pass through America or an American corporation. Especially when it's about money. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Email Verification

2008-09-17 Thread Per Jessen
Tom Chubb wrote: > Can anyone offer advice on best practices for email address > verification? 1) check for a valid address syntax - that's easily done with a simply regex (leaving the most obscure variations out). 2) check that the domain-name exists and has an A record.

Re: [PHP] Email Verification

2008-09-17 Thread Per Jessen
to the SMTP server as well as mx lookup, etc. > > You could. Bear in mind that you can't do that if their mail server > happens to be down at the time. Greylisting is also likely to interfer with the process. > Like I said, my preferred option would be just to send the > us

Re: [PHP] Email Verification

2008-09-17 Thread Per Jessen
an email address could be validated with this: @[a-z0-9][a-z0-9-]*(\.[a-z0-9][a-z0-9-]*)+ A test for total length and valid use of hyphens should be added. See RFC1034. Then look up the A record. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] ANSI to ISO-8859-2

2008-09-19 Thread Per Jessen
t supported. ANSI is not a character set, it's a standards organisation. You may have meant ASCII, and the string does look as if it could be ASCII. The sequences like &#xNNN are HTML-style symbolic entities. Take a look at htmlentities(). /Per Jessen, Zürich -- PHP General M

Re: [PHP] ANSI to ISO-8859-2

2008-09-19 Thread Per Jessen
Robert Cummings wrote: > On Fri, 2008-09-19 at 09:39 +0200, Per Jessen wrote: >> Bc. Radek Krejca wrote: >> >> > Hello, >> > >> > I get from webservice strings like this: >> > >> > Česko anglické gymnázium >> >

Re: [PHP] Adding encryption to passwords

2008-09-19 Thread Per Jessen
Thodoris wrote: > So what do you think is the best way to use crypt, mcrypt, hash or > perhaps md5 and what are really the differences because I am not sure > if I get it right. We use md5 for that sort of thing. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php

Re: [PHP] Re: geolocation

2008-09-21 Thread Per Jessen
s of 256 IPs which I use between Iran, > Turkey, Germany, france, Morocco, Algeria and other countries... > Same for Compuserve or ALOL. So we have a few exceptions to prove the rule. Good. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SESSIONS vs. MySQL

2008-09-21 Thread Per Jessen
Eric Butera wrote: > > Wouldn't you (probably) loose sessions in /tmp if the box crashed > also? No, that wouldn't be the default behaviour. /tmp is typically on the filesystem, and it's not cleared on every reboot (unless your system has been configured to do so)

Re: [PHP] SESSIONS vs. MySQL

2008-09-22 Thread Per Jessen
. There's is overhead associated with both forms - the SESSION data must be serialized/de-serialized, the mysql calls organises data to/from an associative array etc., but what is hauled out of the database is essentially the same, it's only the transmission method that differs. /P

Re: [PHP] SESSIONS vs. MySQL

2008-09-22 Thread Per Jessen
Lupus Michaelis wrote: > Per Jessen a écrit : > >> No, that wouldn't be the default behaviour. /tmp is typically on the >> filesystem, and it's not cleared on every reboot (unless your system >> has been configured to do so). > >In Debian based, i

Re: Re[2]: [PHP] ANSI to ISO-8859-2

2008-09-22 Thread Per Jessen
also take a look at the syntactical definition of the string you're parsing - is it supposed to have embedded html symbolic entities? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encrypt database table

2008-09-22 Thread Per Jessen
[EMAIL PROTECTED] wrote: > Hi, > > What methods do you guys use to keep a mysql table encryped, or well > atleast a major part of it. I would use an encrypted filesystem. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] Re: Encrypt database table

2008-09-22 Thread Per Jessen
e 20 years ago, and not locking your screen when you were away from your desk was a sackable offence. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] PHP tags - any reasons to close ?>

2008-09-23 Thread Per Jessen
y one I have found > that does this.) vi has no problem doing that. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Per Jessen
27;t running with the correct PHP interpreter. > Is there a better way to set the crontab so I don't get that > output? You can always use MAILTO= to direct any output from a cronjob. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Per Jessen
- it shuold be something like this: php -v PHP 5.2.4 with Suhosin-Patch 0.9.6.2 (cli) (built: Sep 22 2007 02:01:31) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies I suspect yours might be saying 'cgi' instead of 'cli'

Re: [PHP] PHP + Cron jobs

2008-09-27 Thread Per Jessen
lossnagle Yep, looks good - check that your cron script is also running with that interpreter. I can't really think of why it wouldn't be, but ... /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How to submit form via PHP

2008-09-28 Thread Per Jessen
;t know if all browsers interpret it that way, but it does seem a reasonable assumption. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Name of graph

2008-09-30 Thread Per Jessen
How about just 'axis' ? > > You'll need a browser other then MSIE to see them. Thanks. here: http://www.phpguru.org/downloads/RGraph/examples/bar.html ? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Name of graph

2008-09-30 Thread Per Jessen
linear :-) That line is just a different representation (line graph) of the same numbers. A trend line computed by linear regression would be like this: http://jessen.ch/images/virus+malware-q3-2008.jpeg /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Sterilizing regexp

2008-09-30 Thread Per Jessen
my code yet, so if anyone > sees something wrong please hammer away, otherwise I hope it helps > save some one some time. I think I'm missing the purpose - your code looks like you've wrapped a function around preg_match() so you can pass arrays to it as well, but I don't see

Re: [PHP] Sterilizing regexp

2008-09-30 Thread Per Jessen
lly in the eye of the beholder, but personally I would have stuck to a set of hardcoded preg_matches(). /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP + Cron jobs

2008-10-01 Thread Per Jessen
php executables in both /usr and /usr/local? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Per Jessen
Alain Roger wrote: > how can i get the 'name' value for each row in this session stored > array ? thx. You haven't stored an array in the session, you've tried to store an object of class CBreadcrumb. Which AFAIK isn't supported. /Per Jessen, Zürich --

Re: [PHP] Re: PHP + Cron jobs

2008-10-01 Thread Per Jessen
27;php' and the other perhaps 'php-cgi'. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] store array into session variable and get it back later

2008-10-01 Thread Per Jessen
Stut wrote: > On 1 Oct 2008, at 11:40, Per Jessen wrote: > >> Alain Roger wrote: >> >>> how can i get the 'name' value for each row in this session stored >>> array ? thx. >> >> You haven't stored an array in the session, you've

Re: [PHP] Selecting all records between a date range

2008-10-02 Thread Per Jessen
;DATE_SUB(now(),INTERVAL 7 DAYS) /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] date_default_timezone_set and Time Zones

2008-10-03 Thread Per Jessen
1/08, 23:00:00, -0800] > > Shouldn't it instead be -0700? Am I misunderstanding how these > timezones work? Is it daylight savings time in LA on 31 January? /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] a link in php generated mail

2008-10-03 Thread Per Jessen
Sjef wrote: > Hallo, > I have an link in a php generated email that does not work. I tried > adding http:// but with no result. It says the link is blocked. I > created the mail with html formatting. Who is "It" (in "It says the link is blocked.") and how does it

Re: [PHP] Create DLL of PHP class

2008-10-03 Thread Per Jessen
Manoj Singh wrote: > Hello All, > I have the task to create DLL of PHP class. > > Please advise how to do it. I think you'll have to look up how to write a PHP extension. Then you implement your class in C as a PHP extension, and build that as a DLL. /Per Jessen, Zürich

Re: [PHP] Create DLL of PHP class

2008-10-03 Thread Per Jessen
Maciek Sokolewicz wrote: > Per Jessen wrote: >> Manoj Singh wrote: >> >>> Hello All, >>> I have the task to create DLL of PHP class. >>> >>> Please advise how to do it. >> >> I think you'll have to look up how to write a PHP

<    5   6   7   8   9   10   11   >