Re: [PHP] Re: mysql_real_escape_string("asdasddas") ??? wtf

2009-02-21 Thread Per Jessen
actly why. If the current character set is unimportant, you can use mysql_escape_string() instead. (yes, I know it's deprecated). -- Per Jessen, Zürich (4.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unique User Hashes

2009-02-21 Thread Per Jessen
places. Here in Switzerland for instance. /Per -- Per Jessen, Zürich (3.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unique User Hashes

2009-02-21 Thread Per Jessen
ty to prove your own identity), but your point is valid nonetheless. > But I just don't see any way of uniquely identifying a user online > without some sort of unique user input -- do you? Nope. -- Per Jessen, Zürich (6.0°C) -- PHP General Mailing List (http://www.php.net/) T

Re: [PHP] redirecting output for a spawned child process..

2009-02-21 Thread Per Jessen
directed... You basically need to do something about the stdin, stdout and stderr file descriptors that your child inherited from the parent at time of fork(). I can't seem to find many PHP functions that deal with file descriptors though. -- Per Jessen, Zürich (2.6°C) -- PHP General Mail

Re: [PHP] headers: setting right for browser to force reload at a certain point in time

2009-02-23 Thread Per Jessen
en you serve them, then they will automatically be checked by the browser. /Per -- Per Jessen, Zürich (2.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] headers: setting right for browser to force reload at a certain point in time

2009-02-23 Thread Per Jessen
FF - one of your graphics for instance - then hit Ctrl-i to get the info page. That will tell you exactly how FF sees the file - expiry time etc. /Per -- Per Jessen, Zürich (2.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] headers: setting right for browser to force reload at a certain point in time

2009-02-23 Thread Per Jessen
German Geek wrote: > This didn't work. ctrl+i brought up my bookmarks. ?? Do i need a > special plugin/extension? Have web developer etc. Nope, this is standard FF. Ctrl+i should give you the "Page Info" window. Try looking for that in your menubar and pulldowns. -

Re: [PHP] ms-word reading from PHP on linux O.S

2009-02-23 Thread Per Jessen
Srinivasa Rao D wrote: > Hi all, > * How better, i can read ms-word doc files from PHP on LINUX > OS*. [snip] > > *Is there are any other softwares that can fetch text from MS-WORD > file?.* OpenOffice. -- Per Jessen, Zürich (1.9°C) -- PHP General

Re: [PHP] Why PHP won

2009-02-23 Thread Per Jessen
uot;? I publish everything in xhtml, no browser has had a problem with that yet. -- Per Jessen, Zürich (2.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why PHP won

2009-02-24 Thread Per Jessen
Michael A. Peters wrote: > Per Jessen wrote: >> Michael A. Peters wrote: >> >> [anip] >>> and you can use DOMDocument to completely >>> construct the page before sending it to the browser - allowing you >>> to translate xhtml to html for br

Re: [PHP] XML and :

2009-02-24 Thread Per Jessen
->imo:anbieternr does not work in that case. > > Has somebody an idea how to adress this? When used like that 'imo' becomes a name-space. I don't know what sort of parsing you're doing, but typically you would need to set that first. -- Per Jessen, Zürich (-1.5°C) --

Re: [PHP] Converting Euro sign

2009-02-26 Thread Per Jessen
irst > of all I do not even know if the xml file is utf8encoded (I doubt it), It should say in the XML file. -- Per Jessen, Zürich (3.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A puzzler (well, for me at least)

2009-02-26 Thread Per Jessen
s? Quicker? Not taking pipelining into account, a 3GHz processor will execute one instruction in 333 picoseconds, so three instructions in a nanosecond. How many instructions to a line of code? 10,000 ? -- Per Jessen, Zürich (4.6°C) -- PHP General Mailing List (http://www.php.net/) To u

Re: [PHP] "use strict" or similar in PHP?

2009-02-26 Thread Per Jessen
Hans Schultz wrote: > Is there some way for PHP to cache some data on the page? I like very > much PHP's speed but it would be even better to be able to cache some > frequently used data from database? Databases such as MySQL are very good at caching. -- Per Jessen, Zürich (3

Re: [PHP] make libphp5.so

2009-02-28 Thread Per Jessen
The Doctor wrote: > I am running into problems compiling a shared module on > BSD/OS 4.3.1 . > You neglected to mention _which_ problems. [snip] > I want to surpress static maode and fully concentrate only in the so. disable-static, enabled-shared ? -- Per Jessen, Z

Re: [PHP] preg_match and dates

2009-03-02 Thread Per Jessen
serious, that kind of thing in > there several times) > > To at least get started though, is there a wildcard defined that says > match a month? > > IE > > /^([0-9]{2})[\s-](MONTH_MATCH)[\s-]([0-9]{4,4}$/ > > where MONTH is some special magic that matches Mar March

Re: [PHP] preg_match and dates

2009-03-02 Thread Per Jessen
attern, $clean, $verb_date); If I were you, I'd write several regexes, one for each date format you wish to recognize. It makes the regexes much easier to read, and you can still write sub-expressions for catching e.g. months and then reuse those in your main regexes. /Per Jessen --

Re: [PHP] whoami explanation

2009-03-03 Thread Per Jessen
ANUAL***_ * - exec()* executes the given > /command/ ) does not, > COPIED AND PASTED: > | // outputs the username that owns the running php/httpd process > // (on a system with the "whoami" executable in the path) > echo exec('whoami'); > ?> | > What is going on

Re: [PHP] whoami explanation

2009-03-03 Thread Per Jessen
my current keyboard, the back tick is sat on the key to the left of '1' on the top row. /Per -- Per Jessen, Zürich (6.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stdin, stdout, stderr, 3

2009-03-09 Thread Per Jessen
ource, though I don't > believe it's even yet been given a name, so we'll have to change that. "UNIX Channel 3" ?? It's just file descriptor 3, that's all. In the old days, it was occasionally called "stdaux", but AFAIK that's not used any mo

Re: [PHP] stdin, stdout, stderr, 3

2009-03-09 Thread Per Jessen
ow I have never heard streams or file descriptors referred to as "channels". Well, certainly not in UNIX. As for stdaux, I don't think it's being used any more at all. Like Bob suggested, I think it might very well be a DOS reference. -- Per Jessen, Zürich (1.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Working directory of PHP pages?

2009-03-11 Thread Per Jessen
en. It looks in whichever directory the URL indicates. With Multiviews enabled, Apache will look for anything matching 'index.*' and decided which file is the best match and then serve that. /Per -- Per Jessen, Zürich (5.8°C) -- PHP General Mailing List (http://www.php.net/) To un

Re: [PHP] Fatal error: Call to undefined function: mysqli_connect() in

2009-03-14 Thread Per Jessen
not work either. > > I have also genericised the username and password for this post. Host > name is correct. > > Can anyone enlighted me as to what I am not doing correctly? > > > Fatal error: Call to undefined function: mysqli_connect() in Check if the mysqli extension

Re: [PHP] Fatal error: Call to undefined function: mysqli_connect() in

2009-03-14 Thread Per Jessen
d the extension, add "extension=mysqli.so" to your php.ini (if it's not already there). /Per -- Per Jessen, Zürich (10.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fatal error: Call to undefined function: mysqli_connect() in

2009-03-14 Thread Per Jessen
en this as: $dbc = mysqli_connect($hostname,$username,$password,$usertable) or die('Error connecting to MySQL server'); /Per -- Per Jessen, Zürich (10.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fatal error: Call to undefined function: mysqli_connect() in

2009-03-14 Thread Per Jessen
qli, the extension wasn't loaded. Or try using extension_loaded('mysqli') and see what that says. To load the extension, you could use dl() in your code although it might have been disabled. Otherwise you need to modify the correct php.ini and add the extension=mysqli.so line. /

Re: [PHP] GeoIP?

2009-03-15 Thread Per Jessen
want to load the whole GeoIP Database in my scripts. The easiest is to use a DNS service - this is the best one I know: http://countries.nerd.dk/ /Per -- Per Jessen, Zürich (9.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: GeoIP?

2009-03-16 Thread Per Jessen
Michelle Konzack wrote: > Hello Per, > > Am 2009-03-15 15:12:47, schrieb Per Jessen: >> The easiest is to use a DNS service - this is the best one I know: >> http://countries.nerd.dk/ > > This is cool... > I'm glad you like it - it really is cool.

Re: [PHP] Fork and zombies

2009-03-16 Thread Per Jessen
urn; > } else { > // make API call > } > > While this works, it unfortunately leaves behind a zombie process > every single time. You need to call pcntl_wait() or pcntl_waitpid(). /Per -- Per Jessen, Zürich (4.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fork and zombies

2009-03-16 Thread Per Jessen
etes before it exits. No it doesn't - just call pcntl_wait() with WNOHANG to check the status of a child. /Per -- Per Jessen, Zürich (6.5°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Fork and zombies

2009-03-17 Thread Per Jessen
: echo "some sort of error in pcntl_wait()\n"; break; case 0: break; default: echo "child $p finished\n"; } } Second, it sounds like you're expecting to reuse your database connection from getInfo() in the child you're forking in makeAPIcall()? I

Re: [PHP] Fork and zombies

2009-03-17 Thread Per Jessen
nless you specifically want to wait for each child to finish before starting another one. > But it still has the same problem, and I'm also trying to avoid > pcntl_wait or pcntl_waitpid at all because I still want to do it > asynchronously. pcntl_wait(WNOHANG) will make ever

Re: [PHP] Fork and zombies

2009-03-17 Thread Per Jessen
m. I think the database problem is caused by your child inheriting the connection, and then closing it - whilst the parent is still using it. Your parent needs to open a new connection. /Per -- Per Jessen, Zürich (8.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] Re: Fork and zombies

2009-03-17 Thread Per Jessen
Waynn Lue wrote: > (Apologies for topposting, I'm on my blackberry). Hm, so you think > exiting from the child thread causes the db resource to get reclaimed? > Yeah, something like that. The connection is definitely closed when the child exits. /Per -- Per Jessen, Zürich (8

Re: [PHP] Re: Fork and zombies

2009-03-17 Thread Per Jessen
Jochem Maas wrote: > Per Jessen schreef: >> Waynn Lue wrote: >> >>> (Apologies for topposting, I'm on my blackberry). Hm, so you think >>> exiting from the child thread causes the db resource to get >>> reclaimed? >>> >> >>

Re: [PHP] Re: Fork and zombies

2009-03-18 Thread Per Jessen
the only solution is > to rewrite the functions to use a new db connection every time? Each child should open its own database connection (if it needs one), and the parent should not keep the connection open at time of fork(). /Per -- Per Jessen, Zürich (4.6°C) -- PHP General Mailing List

Re: [PHP] Re: Fork and zombies

2009-03-18 Thread Per Jessen
but that requires changing multiple places, while this >> can be localised to just the dispatcher function. Does the first >> solution I propose seem sane? I think it is best done in the dispatcher. I have such a setup in at least one place - I've set a max of 4 jobs, and I si

Re: [PHP] Looking for PHP alternatives to mailman

2009-03-19 Thread Per Jessen
lists on mailman, works very well. /Per -- Per Jessen, Zürich (0.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Looking for PHP alternatives to mailman

2009-03-20 Thread Per Jessen
mike wrote: > On Fri, Mar 20, 2009 at 12:35 AM, mike wrote: >> On Thu, Mar 19, 2009 at 11:34 PM, Per Jessen >> wrote: >> >>> ecartis is one option. >> >> now this is a good lead! > > except not touched since 2003 it seems. > > sigh. well

Re: [PHP] Looking for PHP alternatives to mailman

2009-03-20 Thread Per Jessen
mike wrote: > On Fri, Mar 20, 2009 at 12:56 AM, Per Jessen wrote: > >> Well, for one thing, the latter is usually for commercial purposes, >> the former isn't. > > mailing lists can definately support commercial ventures. i am doing > this for my company, in fa

Re: [PHP] linux sha1sum .vs php sha1

2009-03-20 Thread Per Jessen
echo a.dat > sha1sum -t!= php > > any thoughts... Try "echo -n" /Per -- Per Jessen, Zürich (3.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
t; $idList = implode(',', $TidList); > > My problem is that some of the values gets concenated, others ere > missing 2 or 3 cifres and some just doesn't show up. I can't reproduce that behaviour - I tried with ascii ('klop') and utf8 ('Köhler'

Re: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
TG wrote: > I don't think that would be a problem, the size of the array. I've > used implode at least once or twice on fairly large arrays. More > likely is something weird with your data. Yeah, like the odd backspace or carriage return perhaps. /Per -- Per Je

RE: [PHP] Problems with implode

2009-03-24 Thread Per Jessen
ested his code that far? Is there a possibility that some of the id's are _not_ just plain integers made up of 0-9? /Per -- Per Jessen, Zürich (4.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cygwin - compilation of PHP extension

2009-03-30 Thread Per Jessen
normally meant to cope with cygwin, but if the dll wasn't created /Per -- Per Jessen, Zürich (6.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Cygwin - compilation of PHP extension

2009-03-30 Thread Per Jessen
/configure make make install -- Per Jessen, Zürich (5.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] extention question

2009-04-01 Thread Per Jessen
MikeP wrote: > Hello, > How do I know if an extension (specifically php-domxml) has to be > compiled or can just be loaded. To see if it has already been compiled, check /usr/lib/phpx/extensions /Per -- Per Jessen, Zürich (6.8°C) -- PHP General Mailing List (http://www.php

Re: [PHP] XML data extraction

2009-04-02 Thread Per Jessen
Andrew Williams wrote: > Best All, > > How can you best and accurately extract XLM data to DB table. e.g.: > Use XSLT to generate SQL INSERT statements. /Per -- Per Jessen, Zürich (11.3°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] XML data extraction

2009-04-02 Thread Per Jessen
rom XML format to a text format suitable for use as insert SQL insert statements. All you need to do is write the stylesheet that takes format1 and converts it to format2. If you've not dealt with XSL before it can be a little daunting, but I think you'll get the idea fairly quickly.

Re: [PHP] Weird problem with T_gettext()

2009-04-04 Thread Per Jessen
that "php-gettext" does not do a fallback, if I > have only "de" and not "de_DE". Fallback to what? I only have 'de' in my browser language preferences, and your site came up fine in German. /Per -- Per Jessen, Zürich (11.7°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP-MYSQL Question

2009-04-07 Thread Per Jessen
abdulazeez alugo wrote: > > Hi guys, > > Please can anyone tell me what I'm doing wrong with the code below? It > keep returning unsuccessful. > Why don't you print out mysql_error() ? It'll tell you right away. /Per -- Per Jessen, Zürich (20.1°C)

Re: [PHP] extracting text - regex

2009-04-08 Thread Per Jessen
ext "bla blub" out of this example. > This might do the trick (not tested): preg_match( "/]*>([^<]*)<\/div>", $yourtext, $match ); print $match[1]; /Per -- Per Jessen, Zürich (16.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Per Jessen
header("Content-Type: text/html; charset=utf-8"); > > But still... no luck :-( > > Has somebody an idea why?? Check that the page really is displayed with the right encoding - in FF, Ctrl-I. /Per -- Per Jessen, Zürich (16.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Per Jessen
rhaps 3.0 changed that? /Per -- Per Jessen, Zürich (9.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] opening utf-8 files - chinese mb characters

2009-04-08 Thread Per Jessen
wget -S to see what your server is sending. Or sent me a link off-line, and I'll check for you. /Per -- Per Jessen, Zürich (10.0°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] files creation/access dates

2009-04-14 Thread Per Jessen
Tom Sparks wrote: > > how do I get the creation dates on a file? > how do I get the last access date on a file? > http://php.net/manual/en/function.stat.php /Per -- Per Jessen, Zürich (14.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:/

Re: [PHP] MySQL, MD5 and SHA1

2009-04-21 Thread Per Jessen
could have just checked the mysql manual? But yes, there is also a SHA1 function. /Per -- Per Jessen, Zürich (19.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Encrypting email

2009-04-21 Thread Per Jessen
at's no problem. Look up "openssl smime -encrypt" /Per -- Per Jessen, Zürich (19.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Encrypting email

2009-04-21 Thread Per Jessen
ifferent issues. You may want to look at it that >> way. > > But can it be done so the recipient's email client will automatically > open and decrypt the message? How do you make it as seamless as > possible for them, preferably so they don't even realize the mes

RE: [PHP] Encrypting email

2009-04-21 Thread Per Jessen
know the intended receiver as such. > Both the sender and receiver must agree on the encrypting mechanism S/MIME. /Per -- Per Jessen, Zürich (20.5°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Encrypting email

2009-04-21 Thread Per Jessen
are likely to have different clients. That end is > completely outside of my control or influence. Use S/MIME. It's standard, and it's supported by e.g. both outlook and thunderbird. -- Per Jessen, Zürich (18.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubsc

Re: [PHP] MySQL, MD5 and SHA1

2009-04-21 Thread Per Jessen
Jan G.B. wrote: > A web application that uses an external db server would be quite ... > uhm... slow! Anyone did this, yet? ;) Certainly, and it's not slow. It depends entirely on your connection to the public internet. -- Per Jessen, Zürich (18.2°C) -- PHP General Mailing

Re: [PHP] Can PHP determine if the STDOUT to a CLI script is being redirected?

2009-04-22 Thread Per Jessen
y > nicely), but I want to suppress the codes if the output is being > filtered or redirected to a file. Check out posix_isatty() /Per -- Per Jessen, Zürich (16.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Can PHP determine if the STDOUT to a CLI script is being redirected?

2009-04-22 Thread Per Jessen
Richard Quadling wrote: > 2009/4/22 Per Jessen : >> Richard Quadling wrote: >> >>> Hi. >>> >>> Is there a simple way for a CLI based PHP script to determine if its >>> output is being redirected to a file or piped through a filter >>> (

Re: [PHP] Multiple return statements in a function.

2009-04-23 Thread Per Jessen
> } else { > return ('Not Array'); > } > } > > What is your take? And is there any benefit to either method? It's only about style and coding logic. In essence, all the return does is pop the previous IP off the stack and adjust the stack pointer.

Re: [PHP] Multiple return statements in a function.

2009-04-23 Thread Per Jessen
rc=1; break; } if ( cond5 ) { errormsg; rc=1; break; } if ( cond6 ) { errormsg; rc=1; break; } if ( cond7 ) { errormsg; rc=1; break; } break; } return rc; -- Per Jessen, Zürich (16.6°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Multiple return statements in a function.

2009-04-23 Thread Per Jessen
little point in continuing, > so an immediate return is the order of the day. Well, I usually use that construct where I can have a number of different error-conditions - e.g. if I have a sequence of socket create, DNS lookup, bind, connect etc. /Per -- Per Jessen, Zürich (15.6°C) -- P

Re: [PHP] MySQL, MD5 and SHA1

2009-04-24 Thread Per Jessen
Jan G.B. wrote: > 2009/4/21 Per Jessen : >> Jan G.B. wrote: >> >>> A web application that uses an external db server would be quite ... >>> uhm... slow! Anyone did this, yet? ;) >> >> Certainly, and it's not slow.  It depends entirely on your conn

Re: [PHP] E-Mail Verification - Yes, I know....

2009-04-28 Thread Per Jessen
by most > servers. verify-email.org doesn't use VRFY anyway. It just starts an SMTP-conversation, but terminates after RCPT TO. /Per -- Per Jessen, Zürich (8.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] speaking of control structures...

2009-05-06 Thread Per Jessen
. Another alternative >> is to use Exceptions which might be the most proper way to do it. > > in a thread off-list i commented on the use of a function. here's what > i said: Shawn McKenzie already posted the right solution - did you miss it? /Per -- Per Jessen, Züric

Re: [PHP] Re: [php] tcp server connection

2009-05-12 Thread Per Jessen
example.com/blah/blah"; and you'll get some data using a TCP server connection. Oh, sorry - I forgot about the "useful" bit ... /Per -- Per Jessen, Zürich (21.0°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SMS gateway

2009-05-13 Thread Per Jessen
y you could - I've been using sms_client for 3-4 years, paying a fixed fee of 30Rappen per SMS via my phonebill. It works very well. I trigger the SMS by email, but it could just as easily be done from some PHP code. sms_client is open source, btw. /Per -- Per Jessen, Zürich (17.6°

RE: [PHP] Sending SMS through website

2009-05-13 Thread Per Jessen
ms interfaces, so I'd disagree with your initial claim. /Per -- Per Jessen, Zürich (18.0°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: [PHP ADVANCE] tcp CLIENT server connection and authentication

2009-05-13 Thread Per Jessen
g a login packet. If a login packet is not received within 30 seconds the server will terminate the session. " Now you just need to determine what a login packet should look like. /Per -- Per Jessen, Zürich (18.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] read the last line in a file?

2009-05-16 Thread Per Jessen
itten. but i'm > not sure how to do that. > > any ideas? 1) the inotify interface will alert you when a file or directory changes. 2) run tail -f logfile | and read from stdin. (not tested). 3) if you can change the logfile to a fifo, you're all set. /Per -- Per Jessen, Z

Re: [PHP] read the last line in a file?

2009-05-17 Thread Per Jessen
an outputting to sdtout... Once piped to your script, reading from stdout will be just like reading from a fifo. /Per -- Per Jessen, Zürich (16.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MYSQL 5 auto increment not working

2009-05-21 Thread Per Jessen
E TABLE `children` ( > `cid` int(4) NOT NULL auto_increment, > `cname` char(50) default NULL, > `csname` char(50) default NULL, > PRIMARY KEY (`cid`) > ) ENGINE=InnoDB > > I use PHP 5.1 and MYSQL 5 I've just tried creating that table and doing a few inserts -

Re: [PHP] WHY ARE lists.php.ne USER EMAIL BEING PUBLISH ON THE INTERNET

2009-05-22 Thread Per Jessen
such as marc.info carry archives of e.g. php-general? I'm sure the list is also available at gmane.org. Why are you writing in capitals - are you angry? /Per -- Per Jessen, Zürich (18.3°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Why are lists.php.net user email being publish on the internet

2009-05-22 Thread Per Jessen
Andrew Williams wrote: > I have no problem with it at least user email address should be > removed off the publication. > - Show quoted text - Don't worry, at e.g. marc.info the addresses have been appropriately obscured. /Per -- Per Jessen, Zürich (20.4°C) -- PHP Genera

Re: [PHP] PHP scalability problem

2009-05-26 Thread Per Jessen
've got a scalability problem. /Per -- Per Jessen, Zürich (10.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Confirmation email caught by spam filter

2009-05-27 Thread Per Jessen
sending the email from, and how that mailserver is configured. The email content of a non-spam email is hardly ever enough to get it classified as spam. > Also, how can I get bounced emails? Put in the correct envelope address. Use the '-r' option. /Per -- Per Jessen, Zürich (19

Re: [PHP] Confirmation email caught by spam filter

2009-05-27 Thread Per Jessen
a real problem - lots of companies have different inbound and outbound servers. /Per -- Per Jessen, Zürich (14.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Create multipart email

2009-05-28 Thread Per Jessen
n't work. /Per -- Per Jessen, Zürich (20.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Confirmation email caught by spam filter

2009-05-28 Thread Per Jessen
Ashley Sheridan wrote: > On Thu, 2009-05-28 at 07:45 +0200, Per Jessen wrote: >> Ashley Sheridan wrote: >> >> > I've also seen this happen where the address that the mail was sent >> > from is different from the MX record for the domain the email says &g

Re: [PHP] detecting spam keywords with stripos

2009-05-29 Thread Per Jessen
> > First thought: use strpos, but this does not help in all cases > Second thought: split text into words and use in_array, but this does > not find things like "zu Hause" or "flexible/Arbeit" First thought - use Spamassassin. Second thought - use regexes.

Re: [PHP] detecting spam keywords with stripos

2009-05-29 Thread Per Jessen
t it's easy to "roll your own" too. > If they require the headers of an email you can supply fake ones and > remove any effect headers have on the score. SA doesn't require them, and without them scoring would (obviously) be based on the text only. /Per -- Per Jes

Re: [PHP] Comparing data - big file

2009-06-01 Thread Per Jessen
eed to compare > the changes - how would you suggest me to do it? diff. > I also don't have the old file. Recreate it? /Per -- Per Jessen, Zürich (18.8°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] https setup

2009-06-05 Thread Per Jessen
uot;netstat -ltn". Or check your "listen.conf" file. /Per -- Per Jessen, Zürich (20.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Time limit on recursive procedure?

2009-06-07 Thread Per Jessen
way I read the manual, the timer should be reset each time I call > rec_scanl, You keep calling it so as long as the execution time between each call is < 1 second, your script will keep going. /Per -- Per Jessen, Zürich (15.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php applications

2009-06-08 Thread Per Jessen
line scripting all the time. In fact, any script with a relation to a website with PHP I will also write in PHP. /Per -- Per Jessen, Zürich (17.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP running Python script - not waiting for Python script to finish

2009-06-09 Thread Per Jessen
er, I think, 'times out' before the Python script is > finished and therefore kills Python and displays no output from > Python. After some intense googling, I haven't found an answer, Can't you just change whichever timeout it is that terminates your script? /Per --

Re: [PHP] order by what?

2009-06-11 Thread Per Jessen
sly, one cannot > expect people to change their browser or whatever adjustments just for > my little diamonds. Set the correct character set for your output. It's in the HTTP header. /Per -- Per Jessen, Zürich (20.2°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

[PHP] about locale settings

2009-06-13 Thread Per Jessen
sing here? I have no problem with the setlocale(LC_ALL,'') call, but I'd like to understand why I need it. -- Per Jessen, Zürich (16.1°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] I2C and PHP

2009-06-16 Thread Per Jessen
g exactly one byte = 0xFF. That should work with your /dev/i2c interface as well - if not, something else is getting in your way. /Per -- Per Jessen, Zürich (16.9°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] about locale settings

2009-06-16 Thread Per Jessen
Per Jessen wrote: > When I've set LC_ALL before calling php, why do I need to call > setlocale() in the script too: > > LC_ALL=de_DE.utf8 php -r "print strftime('%B');" > June > > LC_ALL=de_DE.utf8 php -r "setlocale(LC_ALL,''); print

Re: [PHP] about locale settings

2009-06-16 Thread Per Jessen
Daniel Brown wrote: > On Tue, Jun 16, 2009 at 12:51, Per Jessen wrote: >> >> Am I the only one to run into these oddball problems?  Doesn't anyone >> else use different locales?  I think the above is a bug - php >> _should_ respect the LC_ALL setting without being

Re: [PHP] about locale settings

2009-06-18 Thread Per Jessen
Daniel Brown wrote: > On Tue, Jun 16, 2009 at 15:33, Per Jessen wrote: >> >> Environment >> >> Variable => Value >> LC_ALL => de_DE.utf8 >> >> Is that what you were after? > > Sure is. Unfortunately, that means it's not an enviro

Re: [PHP] about locale settings

2009-06-19 Thread Per Jessen
Daniel Brown wrote: > On Thu, Jun 18, 2009 at 14:52, Per Jessen wrote: >> >> Now Dan, I hate to be a pest, but them minutes of yours seem to be >> running a teeny bit slow? :-) > > It's the uhh time difference between Zurich and > Scranton...? [*

Re: [PHP] Passing Values between C App and PHP

2009-06-22 Thread Per Jessen
nds to simple http-style requests and I call it from php to produce this page: http://jessen.ch/refrigeration/ (in dire need up an update). /Per -- Per Jessen, Zürich (14.4°C) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] sharing PHP sessions between web servers using NFS

2009-06-22 Thread Per Jessen
Randy Paries wrote: > Hello, > I have three web servers (in a lvs cluster) > in the cluster they all think they are www.mydomain.com > With LVS you can not guarantee that each request is going to come in > via the same server I thought LVS had some session persistence stuff ?

<    1   2   3   4   5   6   7   8   9   10   >