RE: [PHP] /etc/php.init changes not honored

2008-01-11 Thread Jürgen Wind
I do not see an entry stating Loaded Configuration File in the output this only available since php 5.2 (iirc) -- View this message in context: http://www.nabble.com/-etc-php.init-changes-not-honored-tp14746039p14759509.html Sent from the PHP - General mailing list archive at Nabble.com. --

Re: [PHP] First stupid post of the year.

2008-01-04 Thread Jürgen Wind
tedd-2 wrote: At 3:28 PM -0600 1/3/08, Richard Lynch wrote: On Wed, January 2, 2008 5:26 pm, tedd wrote: At 2:34 PM -0800 1/2/08, Jim Lucas wrote: This I think shows what tedd is looking for. so, from this I deduce that this should work. $submit = trim($submit, \xA0\x20); What do you

Re: [PHP] checkbox unchecked

2007-12-02 Thread Jürgen Wind
nice! but to avoid confusion it should read (assuming that $checked is a boolean variable): input type=hidden name=foo value=0/ input type=checkbox name=foo value=1?php if($checked) echo ' checked'; ?/ IMHO Larry Garfield wrote: First of all, using y and n for boolean values (such as a

Re: [PHP] Newbie question - current date - time

2007-11-16 Thread Jürgen Wind
my point was: date() doesn't work - it's Date() (at least in Firefox) tedd-2 wrote: At 2:13 PM -0500 11/15/07, Jeremy Mcentire wrote: On Nov 14, 2007, at 4:21 PM, Jürgen Wind wrote: better use Date() in js ... tedd-2 wrote: Current date/time for whom? For your server, use php's date

Re: [PHP] Newbie question - current date - time

2007-11-16 Thread Jürgen Wind
tedd-2 wrote: I used small case because this is a php list and I didn't want to confuse anyone with trying to get Date() to work in php. no need to worry, in *php* functions are not case sensitive. cheers Jürgen -- View this message in context:

Re: [PHP] Newbie question - current date - time

2007-11-14 Thread Jürgen Wind
better use Date() in js ... tedd-2 wrote: Current date/time for whom? For your server, use php's date(). For the user, use javascript's date(). It's so cool to be multilingual. :-) Cheers, tedd -- --- http://sperling.com http://ancientstones.com

RE: RE: [PHP] round()

2007-10-12 Thread Jürgen Wind
tedd wrote: At 7:30 PM -0700 10/11/07, Instruct ICC wrote: Now I see why BCMath was mentioned. Yes, but precision is not the issue. It doesn't make any difference if you are rounding. (a) 1.489123451985765 or (b) 148912345198576.5 You still have to make a decision as to

[PHP] RE: round()

2007-10-11 Thread Jürgen Wind
I get correct results: 5.2.4 PHP_VERSION round(5.555,2):5.56 toFixed(5.555,2):5.56 admin-214 wrote: While we're entertaining algorithms, has anyone else noticed that php's round() isn't the most accurate algorithm to round? If you will refer to chafy's reply on 28-Feb-2007

[PHP] RE: round()

2007-10-11 Thread Jürgen Wind
well, seems to be OS dependent: PHP_OS:Linux (Suse 9.x 32bit) | PHP_VERSION:5.0.3 $t=1.255; round($t,2):1.26 $t += .0001; round($t,2):1.26 PHP_OS:WINNT (2000) | PHP_VERSION:5.2.4 $t=1.255; round($t,2):1.25 $t += .0001; round($t,2):1.26 -- View this message in context:

Re: [PHP] 500 Internal Server Error

2007-09-30 Thread Jürgen Wind
somewhere I read that php on win doesn't like spaces in the path ... (IIRC) Francisco Frost wrote: No, it's not, but I found out by enabling the show errors in php.ini that for about 80 items it's saying PHP Startup: Unable to load dynamic library 'C:\Program Files\PHP\ext\ then the

Re: [PHP] read post data as a buffer

2007-09-25 Thread Jürgen Wind
You may be looking for this : http://martinjansen.com/2007/04/upload-progress/ David Blanco-3 wrote: Hi! I think that is not possible to read post data as a buffer with php like it´s in perl. If this is true, how do you deal with large file uploads to know the status of the operation

Re: [PHP] newbie trying to find segfault reasons

2007-09-20 Thread Jürgen Wind
just don't use php 5.1.6 Chris Curvey-2 wrote: Hey all, I'm kinda new at PHP (but not entirely new). I'm having a heck of a time with PHP causing my apache processes to segfault. I've found a few cases where it's something simple, like referring to an object property that does not

Re: [PHP] Bit-size of machine

2007-06-27 Thread Jürgen Wind
Shekar Iyer wrote: In other words, How do I find if the system on which PHP is running is 32-bit or 64-bit programmatically? echo 'This is a ', is_int(2147483647 + 1) ? 64 : 32 , ' bit box'; HTH -- View this message in context:

Re: [PHP] Problem with uploading file using FireFox

2007-04-21 Thread Jürgen Wind
Richard Kurth-2 wrote: I know this is not a PHP problem it is a Browser problem but I need a workaround to make this work. So I can finishing my php script Using this to select the file and path form action=test7.php method=post input type=file name=uploadfile id=original

Re: [PHP] Cheap Ping

2007-04-13 Thread Jürgen Wind
Jim Lucas-2 wrote: Richard Lynch wrote: On Fri, April 13, 2007 12:20 am, Jim Lucas wrote: Is there some way I can set a shorter limit? http://us.php.net/manual/en/function.stream-set-timeout.php Bzzzt. That's for an already-opened stream. :-) I figured that the op would figure

Re: [PHP] Saving css state in javascript and passing to php via form submit

2007-04-01 Thread Jürgen Wind
Richard Lynch wrote: On Fri, March 30, 2007 12:13 pm, Juergen Wind wrote: Tijnema ! wrote: You can use session within javascript too i believe. no, sessions are completely serverside, but you can use js to pass variables using the query string when sending a xmlHttpRequest.

Re: [PHP] PDO and buffered queries

2007-04-01 Thread Jürgen Wind
Larry Garfield wrote: ...segfaults under PHP 5.1.6 ... php 5.1.5/6 was the source for many segfaults (f.e. using phpmyadmin) better don't use it any more. See also: http://bugs.php.net/bug.php?id=39036 -- View this message in context:

Re: [PHP] GET doesn't work as POST

2007-02-24 Thread Jürgen Wind
Dotan Cohen wrote: On 24/02/07, Otto Wyss [EMAIL PROTECTED] wrote: With method=post just $kind works fine (register_global) yet I've also tried any combination of $_GET['kind'] and $_POST['kind']. With method=get it doesn't work. O. Wyss Try $_GET[kind] Dotan Cohen

Re: [PHP] Which version of phpmyadmin is stable for php 5.1.6 and FC6 System

2007-02-22 Thread Jürgen Wind
edwardspl wrote: cajbecu wrote: [EMAIL PROTECTED] wrote: Dear All, Which version of phpmyadmin is suitable for php 5.1.6 ? Edward. the latest :) cajb. So, Which version no. ? next version will come in the next days(hours?) : pma 2.10.0 (not sure if it will work with

Re: [PHP] New Menu Bar - Can people test it for me?

2007-02-21 Thread Jürgen Wind
Scott Gunn-2 wrote: http://www.thebigspider.co.uk/test/menu.html works/looks nice on FF3 (Minefield ;) Juergen -- View this message in context: http://www.nabble.com/New-Menu-Bar---Can-people-test-it-for-me--tf3266443.html#a9083270 Sent from the PHP - General mailing list archive

Re: [PHP] how can I find out if I have mcrypt and mhash installed?

2007-02-21 Thread Jürgen Wind
Ross Hulford wrote: Thought it would be in the phpinfo() but cannot find it. R. ?php echo 'mcrypt is '; if(!function_exists('mcrypt_encrypt')) echo '*NOT* '; echo 'available'; ? J. -- View this message in context:

Re: [PHP] how can I find out if I have mcrypt and mhash installed?

2007-02-21 Thread Jürgen Wind
Jürgen Wind wrote: Ross Hulford wrote: Thought it would be in the phpinfo() but cannot find it. R. ?php echo 'mcrypt is '; if(!function_exists('mcrypt_encrypt')) echo '*NOT* '; echo 'available'; ? J. ... but if you intend to activate it : remove

Re: [PHP] Storing compiled code on the server

2007-02-21 Thread Jürgen Wind
Andrei Verovski (aka MacGuru) wrote: On Wednesday 21 February 2007 16:52:40 Brian Dunning wrote: I have a few scripts that I want to protect from the prying eyes of even people with root access to my server. The best suggestion I've heard is to store only the compiled version on the

Re: [PHP] How can I know if a browser is cookies enables?

2007-02-05 Thread Jürgen Wind
How can I know if a web browser is cookies enables? Send them ONE cookie and see if you get it back on the next page. yep Actually, just use session_start() and see if it works or not is even easier. having sessions working is not dependent on cookies. -- View this message in context:

Re: [PHP] _GET('name') truncates

2007-02-05 Thread Jürgen Wind
Ramon-15 wrote: Hi all, I've written a php script, called test.php, consisting of the following statements: ?php error_reporting(E_ALL); $query = $_GET['sql']; echo $query; ? Using the script with 'small' values for the parameter sql works fine. Although, using the script with

Re: [PHP] Login script login

2007-02-02 Thread Jürgen Wind
Stut wrote: I'm not totally clear what the question was in there. Personally I keep this simple... ?php $_POST['number'] = (isset($_POST['number']) ? trim($_POST['number']) : ''); $_POST['email'] = (isset($_POST['email']) ? trim($_POST['email']) : ''); if

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-15 Thread Jürgen Wind
Gert Cuykens wrote: Added db5c29 it includes a new server memory login module some small layout and code modifications. hmm, syntax error: dg.delete()\n dg.js (line 241) do you know the Firebug extension for Firefox? at least you should test your code before upload ;) -- View this

[PHP] Re: colon in coma [was: Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?]

2007-01-15 Thread Jürgen Wind
Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2007-01-13 18:59:10 -0800: }, //-- offending colon # [EMAIL PROTECTED] / 2007-01-14 04:49:10 +0100: ah ok i am sorry, you can just remove the , (the offending colon) Guyes, what were you doing during your biology classes? ;) -- How

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-15 Thread Jürgen Wind
Gert Cuykens wrote: On 1/15/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: Added db5c29 it includes a new server memory login module some small layout and code modifications. hmm, syntax error: dg.delete()\n dg.js (line 241) do you know the Firebug extension

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-13 Thread Jürgen Wind
Gert Cuykens wrote: It's a web based sql console that you can use instead of phpmyadmin. nice idea, but i got lots of js errors (i.e. resulting from an orphaned colon in almost every .js file) i tried db5c28.tar.bz2 from sf.net -- View this message in context:

Re: [PHP] Anyone would like to test my open source application http://sourceforge.net/projects/dfo/ ?

2007-01-13 Thread Jürgen Wind
Gert Cuykens wrote: On 1/14/07, Jürgen Wind [EMAIL PROTECTED] wrote: Gert Cuykens wrote: It's a web based sql console that you can use instead of phpmyadmin. nice idea, but i got lots of js errors (i.e. resulting from an orphaned colon in almost every .js file) i tried db5c28

Re: [PHP] Javascript detection , working version

2007-01-12 Thread Jürgen Wind
Ruben Rubio Rey wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A good way to detect if javascript exists is (cross-browser, cross-platform): You try to load javascript_exists.htm. - javascript_exists.htm:

Re: [PHP] Javascript detection , working version

2007-01-12 Thread Jürgen Wind
Ruben Rubio Rey wrote: A good way to detect if javascript exists is (cross-browser, cross-platform): You try to load javascript_exists.htm. - javascript_exists.htm: noscript meta http-equiv=refresh content=0;

Re: [PHP] Javascript detection , working version

2007-01-11 Thread Jürgen Wind
tedd wrote: index.php, jstest110.php) , make it one. ok ---8--- It would be cool if I could send js value via a POST instead of GET-- can that be done? have a look http://149.222.235.16/jstest/70112/index.php ( POST version ) tedd PS: I read somewhere that using noscript is not recommended.

Re: [PHP] Javascript detection , working version

2007-01-10 Thread Jürgen Wind
Curt Zirzow-2 wrote: On 1/1/07, Jürgen Wind [EMAIL PROTECTED] wrote: well, no cute css, but (hopefully) working - here is my quick dirty version : http://149.222.235.16/public/ I dont understand the point. Curt, sorry, i should have posted the original code (it's merely js/html

Re: [PHP] Javascript detection , working version

2007-01-10 Thread Jürgen Wind
index.php, jstest110.php) , make it one. no, it was just a proof of concept It would be cool if I could send js value via a POST instead of GET-- can that be done? should be possible with some onload/xhtmlrequest tedd PS: I read somewhere that using noscript is not recommended. hmm, any links

Re: [PHP] Javascript detection , working version

2007-01-09 Thread Jürgen Wind
/07, Satyam wrote: - Original Message - From: Robert Cummings [EMAIL PROTECTED] To: Jürgen Wind [EMAIL PROTECTED] Cc: php-general@lists.php.net Sent: Tuesday, January 02, 2007 8:57 PM Subject: Re: [PHP] Javascript detection , working version On Tue, 2007-01-02 at 11:32 -0800, Jürgen Wind

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Jürgen Wind
tedd, plz no personal mail, i like better to discuss things in the forum and thus hear other meanings and experiences. Your solution was very simple and worked very well. tx, i always try to keep things logical and as simple as possible ;) this is just a quick example to show how to bring info

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Jürgen Wind
Robert Cummings wrote: Out of curiosity, can you guarantee the Javascript redirect will always occur before the meta redirect when Javascript is enabled? Otherwise you have a race condition. Cheers, Rob. i have no idea, it is just a quickdirty hack, i'm no js expert ;) the js part

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Jürgen Wind
Satyam wrote: What I usually do is to make the entry page the one that would be used without JavaScript and branch only if JavaScript is present. Satyam yes, that's the best solution, updated version: http://149.222.235.16/jstest/ -- View this message in context:

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Jürgen Wind
Robert Cummings wrote: Out of curiosity, can you guarantee the Javascript redirect will always occur before the meta redirect when Javascript is enabled? Otherwise you have a race condition. Cheers, Rob. yes, you where right (i noticed some problems with opera) updated version:

Re: [PHP] Javascript detection , working version

2007-01-02 Thread Jürgen Wind
that's why i prefer discussing here in the forum, we benefit from the experiences of each other :) updated version: http://149.222.235.16/jstest/ -- View this message in context: http://www.nabble.com/Javascript-detection-tf2905451.html#a8132203 Sent from the PHP - General mailing list archive

Re: [PHP] Javascript detection

2007-01-01 Thread Jürgen Wind
does not work on SeaMonkey and Opera (IE not tested). -- View this message in context: http://www.nabble.com/Javascript-detection-tf2905451.html#a8117266 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Javascript detection , working version

2007-01-01 Thread Jürgen Wind
well, no cute css, but (hopefully) working - here is my quick dirty version : http://149.222.235.16/public/ -- View this message in context: http://www.nabble.com/Javascript-detection-tf2905451.html#a8118787 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General

Re: [PHP] Chocked

2006-12-28 Thread Jürgen Wind
what if you prepend your path with ./ : include_once(./classes/first.class.php); include_once(./second.class.php); is the include path configured correctly? -- View this message in context: http://www.nabble.com/Chocked-tf2892714.html#a8082223 Sent from the PHP - General mailing list

Re: [PHP] Script's length, echo, and execution speed

2006-12-23 Thread Jürgen Wind
Casey Chu wrote: Yeah, try testing. Maybe something like this: ?php $form = form action=' ' method='post'textarea name='code'/textareabr /button type='submit'Execute/button/form; if ($_POST['code']) { echo div style='border: 1px'; $time_start = microtime_float();

Re: [PHP] New windows build

2006-12-18 Thread Jürgen Wind
edink wrote: Hello all, Since we will soon be switching to the new Microsoft compiler for making official PHP builds I have created a couple test builds to see how it goes. There were some initial problems and we do have to adjust things in the build to accommodate for changes of how

Re: [PHP] PHP 5.2.0 Session Handling Bug? Can someone test this please?

2006-11-16 Thread Jürgen Wind
Colin Guthrie-6 wrote: Hi, I've noticed a bug with PHP 5.2.0 when dealing with sessions and posting quite large forms. I've attached a file that highlights the bug. Can people test this please and if it is confirmed i'll post upsteam. Just want to rule out my distro's packaging

Re: [PHP] Checking file existence

2006-11-15 Thread Jürgen Wind
Ashley M. Kirchner wrote: I have files that are named in the following manner: file..jpg (where is an hhmm timestamp [hour and minutes]) What's the best way to take the current hhmm timestamp and run backwards finding the previous 5 files, and checking whether

Re: [PHP] Checking file existence

2006-11-15 Thread Jürgen Wind
sorry, clicked on send too fast ;) i'd extract the minues and seconds , generate an array of timestamps and sort that array desc -- View this message in context: http://www.nabble.com/Checking-file-existence-tf2636778.html#a7359891 Sent from the PHP - General mailing list archive at

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Jürgen Wind
Henrik Hudson wrote: Hey List- running: apache 2.2, freebsd 6.2 and php 4.4.4 I've got a wierd issue. I've got a script that does this: $domain = www.google.com; $ip = gethostbyname($domain); echo $ip; $hostname = gethostbyaddr(72.14.205.99); echo $hostname; Using dig,

Re: [PHP] gethostbyname failing?

2006-11-09 Thread Jürgen Wind
maybe this is related: from http://de3.php.net/manual/en/function.gethostbyname.php (user comments) christian at SPAM at IS at DEAD at MEAT at karg dot org 01-Apr-2003 02:12 I had difficulty getting gethostbyname to work under OpenBSD 3.2 and Apache, until I discovered that the default Apache

Re: [PHP] php.ini

2006-11-09 Thread Jürgen Wind
PHP is not supposed to look for php.ini in PATH. (from http://bugs.php.net/bug.php?id=39432) zerof wrote: Alain Roger escreveu: Hi, everytime i install PHP, my php.ini must be installed in C:\windows\ folder. How can i do to force system to read php.ini file from C:\PHP\ folder only

Re: [PHP] Permanent Links - Blog

2006-11-08 Thread Jürgen Wind
Raphael Martins-2 wrote: Hi, How do I implement that http://myhost/blog/date/of/post/name-of-the-post; thing, instead of http://myhost/blog/view.php?id=id-of-the-post; ? I´ve seen this in many blogs, but it´s easy to implement? See it in action at wikipedia, blogger blogs, simplebits

Re: [PHP] problems with SOAP-PHP5 and heritage

2006-11-07 Thread Jürgen Wind
if you want sombody using nabble.com having a look into the attached .php files, you should zip them before upload(i got them without any linefeeds). -- View this message in context: http://www.nabble.com/problems-with-SOAP-PHP5-and-heritage-tf2588326.html#a7223514 Sent from the PHP - General

Re: [PHP] problems with SOAP-PHP5 and heritage

2006-11-07 Thread Jürgen Wind
Jürgen Wind wrote: if you want sombody using nabble.com having a look into the attached .php files, you should zip them before upload(i got them without any linefeeds). but it may be a nabble.com bug, i filed a bugreport anyhow. -- View this message in context: http://www.nabble.com

Re: [PHP] [newbie in session] Is is right behavior???

2006-11-05 Thread Jürgen Wind
Mariusz Topczewski wrote: On some PC when i load the page, the is no content, and on other PC the page is loaded properly. On computer where the page is blank i have to press F5 (refresh), and the page appear ?. this problem can also be observed on some win boxes when running

Re: [PHP] why so slow?

2006-11-01 Thread Jürgen Wind
Frank Arensmeier wrote: My suggestion: stripp out the JS from Google. Test you page again. Should the page load as slowly as before, it might have to do with PHP. Then, give us more details about your script) /frank 1 nov 2006 kl. 10.53 skrev Robert Cummings: On Wed,

Re: [PHP] Creating Tree Structure from associative array

2006-10-20 Thread Jürgen Wind
Robert Cummings wrote: On Thu, 2006-10-19 at 23:58 -0500, Larry Garfield wrote: That depends on what your data structure is, exactly, and what sort of tree structure you want on the other side. Please be more specific. On Thursday 19 October 2006 09:08, Angelo Zanetti wrote: Hi

Re: [PHP] connectivity weirdness

2006-10-20 Thread Jürgen Wind
?php echo file_get_contents('http://php.net/');? takes only 2 seconds here. w2k php5.14 FF1.5.0.7 -- View this message in context: http://www.nabble.com/connectivity-weirdness-tf2481786.html#a6920671 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List

Re: [PHP] Recieve information on a html site using php?

2006-10-20 Thread Jürgen Wind
Marc Roberts wrote: Thanks for the response, I think I have solved the problem using the code in the attached text document. Thanks for the help, Marc Roman Neuhauser wrote: # [EMAIL PROTECTED] / 2006-10-18 17:23:53 +0200: Is it possible to receive information on a html site,

Re: [PHP] session - cookie issues

2006-10-20 Thread Jürgen Wind
Dave Goodchild wrote: Hi all, I am having issues with users not being able to post their details to my site. The system uses sessions, so when they hit the index page a test cookie is set thus: setcookie('djst', 'test'); and then I test whether that cookie is set on the next page.

[PHP] RE: Seperate HTML from PHP

2006-10-11 Thread Jürgen Wind
brilliant! -- View this message in context: http://www.nabble.com/Seperate-HTML-from-PHP-tf2415209.html#a6753706 Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php/css and .htaccess

2006-09-20 Thread Jürgen Wind
Christopher Weldon wrote: tedd wrote: Hi gang: I embedded php code inside css and changed my .htaccess to read -- FilesMatch \.(htm|html|css)$ SetHandler application/x-httpd-php /FilesMatch -- so that the css file would be processed and executed by php. The end result was that

Re: [PHP] Frustrated trying to get help from your site

2006-09-19 Thread Jürgen Wind
Jon Anderson wrote: Jay Blanchard wrote: So let me send a rant to other users, in fact a general list of users, because I cannot read. If I could I would know that I subscribed to a list where questions are asked to other users rather than me trying to send an e-mail to the president of

Re: [PHP] PHP Access Violations

2006-09-09 Thread Jürgen Wind
did you try mysql 5.0.24a? there where some problems with 5.0.24 (segfaults...) -- View this message in context: http://www.nabble.com/PHP-Access-Violations-tf023.html#a6227018 Sent from the PHP - General forum at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To