php-general Digest 27 Jun 2006 13:16:13 -0000 Issue 4208

2006-06-27 Thread php-general-digest-help
php-general Digest 27 Jun 2006 13:16:13 - Issue 4208 Topics (messages 238674 through 238697): Question regarding OS 238674 by: Mayank Maheshwary 238675 by: Ligaya Turmelle 238676 by: tedd 238679 by: Jochem Maas Re: uploading... 238677 by: Chris

Re: [PHP] Question regarding OS

2006-06-27 Thread Jochem Maas
Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? yes. php_uname() read about it here http://php.net/manual/en/function.php-uname.php and then read 10 pages either side just for fun :-) Thank you. M. -- PHP General Mailing

Re: [PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-27 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hello I am pleased if someone could explain me the behaviour since is wrong the following function call: ($row = $result-fetchRow(DB_FETCHMODE_ASSOC, $_SESSION[searchFormVars][offset]+$rowCounter)); I'll explain your behaviour: you repeatedly ask the same

Re: [PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-27 Thread Chris
[EMAIL PROTECTED] wrote: Hello I am pleased if someone could explain me the behaviour since is wrong the following function call: ($row = $result-fetchRow(DB_FETCHMODE_ASSOC, $_SESSION[searchFormVars][offset]+$rowCounter)); as you will find them on the bottom of the email. By the way,

[PHP] ��Ң�¶١ Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office

2006-06-27 Thread paisarn
àÃÒ¢Ò¶١ Licensed Windows XP Pro, win 98, 98 se, Office XP Small, Office XP Professional, Office Pro 2003 ¶Ù¡ÁÒ¡ ¢Í§á·éá¹è¹Í¹ 100 % µÔ´µèÍ Paisarn 06-5881135 - Windows 95 ẺÁÕ CD ¤ÃºªØ´ 200 bath - Windows 98 book+COA only 800 bath - Windows 98 book+COA+CD 1,000 bath - Windows 98 SE book +

[PHP] working on a template system...

2006-06-27 Thread sempsteen
hi, i'm working on a template system. Basically i'm building raw contents in arrays and then put them in templates by some special tags. for loop systems my basic array structure is like this: $array['key'][]['keyword'] = ... for example, for a bulletin board system, array structure for

[PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-27 Thread j . kuehne
Hello I am pleased if someone could explain me the behaviour since is wrong the following function call: ($row = $result-fetchRow(DB_FETCHMODE_ASSOC, $_SESSION[searchFormVars][offset]+$rowCounter)); as you will find them on the bottom of the email. By the way, fetchRow() is a method from

Re: [PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-27 Thread Chris
Hmm. I wonder if his mail server is stuffed. Can we get this guy removed from the list? This is getting annoying :/ -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-27 Thread j . kuehne
Hello I am pleased if someone could explain me the behaviour since is wrong the following function call: ($row = $result-fetchRow(DB_FETCHMODE_ASSOC, $_SESSION[searchFormVars][offset]+$rowCounter)); as you will find them below. By the way, fetchRow() is a method from class DB(.php). However

Re: [PHP] Fatal error: Call to a member function fetchRow() on a non-object in C:\Xampp\xampp\htdocs...

2006-06-27 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Hello I am pleased if someone could explain me the behaviour since is wrong the following function call: ($row = $result-fetchRow(DB_FETCHMODE_ASSOC, $_SESSION[searchFormVars][offset]+$rowCounter)); I am pleased if you'd off with the broken record (pun

[PHP] Controlling a scanner with PHP

2006-06-27 Thread George Pitcher
Hi, I have been asked to look at extending one of my CMS systems to incorporate integration to a library management system, as well as LDAP and Active Directory. The requirement also asks for scanning and OCR of documents to be controlled by the CMS. Does anyone have any experience of

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Peter Lauri
Probably nobody, as PHP is a Server Side Scripting Language. -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 7:16 PM To: php-general@lists.php.net Subject: [PHP] Controlling a scanner with PHP Hi, I have been asked to look at extending one

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Jay Blanchard
[snip] I have been asked to look at extending one of my CMS systems to incorporate integration to a library management system, as well as LDAP and Active Directory. The requirement also asks for scanning and OCR of documents to be controlled by the CMS. Does anyone have any experience of

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Peter Lauri
Maybe JavaScript can do it for you? -Original Message- From: George Pitcher [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 8:01 PM To: Peter Lauri Subject: RE: [PHP] Controlling a scanner with PHP Peter, I take it you have spoken to everyone on the list then? I know that PHP

[PHP] FTP Problems

2006-06-27 Thread James Nunnerley
I'm trying to create some functionality which requires FTPing onto another server, using the php functions. Doing the following comes up with a successful login, but cannot display the current directory; yet when I FTP directory from the server which is serving the php pages, it works fine. //

Re: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Stut
Peter Lauri wrote: Probably nobody, as PHP is a Server Side Scripting Language. If there's one thing I hate it's needless pigeonholing. PHP is not a Server Side Scripting Language. It is a scripting language for sure, but is by no means limited to being used on a server never mind on a web

Re: [PHP] FTP Problems

2006-06-27 Thread nicolas figaro
I had many troubles with ftp_nlist since I discovered the -a option. try this : $buff = ftp_nlist($conn_id,-a); N F James Nunnerley a écrit : I'm trying to create some functionality which requires FTPing onto another server, using the php functions. Doing the following comes up with a

Re: [PHP] Controlling a scanner with PHP

2006-06-27 Thread chris smith
On 6/27/06, George Pitcher [EMAIL PROTECTED] wrote: Hi, I have been asked to look at extending one of my CMS systems to incorporate integration to a library management system, as well as LDAP and Active Directory. The requirement also asks for scanning and OCR of documents to be controlled by

RE: [PHP] FTP Problems

2006-06-27 Thread James Nunnerley
Nope - unfortunately, no change, still the same problems, logging in but no ftp_nlist or indeed ftp_rawlist Cheers Nunners -Original Message- From: nicolas figaro [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 14:12 To: James Nunnerley Cc: php-general@lists.php.net Subject: Re: [PHP] FTP

Re: [PHP] FTP Problems

2006-06-27 Thread chris smith
On 6/27/06, James Nunnerley [EMAIL PROTECTED] wrote: I'm trying to create some functionality which requires FTPing onto another server, using the php functions. Doing the following comes up with a successful login, but cannot display the current directory; yet when I FTP directory from the

Re: [PHP] FTP Problems

2006-06-27 Thread nicolas figaro
James Nunnerley a écrit : Nope - unfortunately, no change, still the same problems, logging in but no ftp_nlist or indeed ftp_rawlist even with a pathname ? ftp_nlist($conn_id, -a /) do you have any log on the server ? ( you can also sniff the network to watch what php sends). NF Cheers

RE: [PHP] FTP Problems

2006-06-27 Thread James Nunnerley
Thanks for the reply Chris. How would you suggest displaying the current home directory for the user? I've tried / and indeed the real directory name on that particular server. Funnily enough, I've also just tried a generic php/ftp script tool, and it works on a third party server into the one

RE: [PHP] FTP Problems

2006-06-27 Thread James Nunnerley
Just tried that, and still the same result - I think it's the server - going to ask the server admin now! -Original Message- From: nicolas figaro [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 14:19 To: PHP List Subject: Re: [PHP] FTP Problems James Nunnerley a écrit : Nope -

Re: [PHP] working on a template system...

2006-06-27 Thread Martin Marques
Why not try to use one of the template systems that already exist? HTML_Template_IT, Smarty, etc. On Tue, 27 Jun 2006 10:22:42 +0300, sempsteen [EMAIL PROTECTED] wrote: hi, i'm working on a template system. Basically i'm building raw contents in arrays and then put them in templates by some

Re: [PHP] FTP Problems

2006-06-27 Thread Jochem Maas
James Nunnerley wrote: Thanks for the reply Chris. How would you suggest displaying the current home directory for the user? I've tried / and indeed the real directory name on that particular server. you could try '~/' (or maybe just'~') as the dir name which equates to the 'the current

Re: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Miles Thompson
George, You always have the interesting challenges served to you. Is this at the client or the server end? Controlled through the browser? Only at the browser on the server? I think there's a discussion about .com objects in the manual. Have fun - Miles At 09:16 AM 6/27/2006, George

[PHP] modify xml before parse

2006-06-27 Thread weetat
Hi all, I need to read xml file before it was parsed by PHP DOM functions. The xml file have some encrypted value as shown below : InstanceName![CDATA[ù?¸€ü÷Œúù?àù?؀Z4À„Ï]]/InstanceName Anybody have any suggestion how to do it ? Thanks. - weetat -- PHP General Mailing

RE: [PHP] FTP Problems

2006-06-27 Thread James Nunnerley
Thanks all - it would seem that php is failing to set the passive mode to true - I can get around it temporarily, but need to find a more permanent option. Does anyone have any experience as to why setting ftp_pasv to true fails? -Original Message- From: Jochem Maas [mailto:[EMAIL

RE: [PHP] FTP Problems

2006-06-27 Thread James Nunnerley
Ah - whoops - just worked out why - you need to set the passive mode after you login, not after a connect! Silly solution! -Original Message- From: James Nunnerley [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 14:37 To: 'Jochem Maas' Cc: 'chris smith'; php-general@lists.php.net Subject:

Re: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Paul Scott
On Tue, 2006-06-27 at 10:31 -0300, Miles Thompson wrote: George, You always have the interesting challenges served to you. Is this at the client or the server end? Controlled through the browser? Only at the browser on the server? I think there's a discussion about .com objects in the

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Peter Lauri
Stut, You are correct. PHP can be used in much more extent, but my tiny box where I use PHP has never touched that area though :) I did truly enjoy the continuing of the thread, because I learned that PHP is much more then a Web Server Scripting Language :) /Peter -Original Message-

Re: [PHP] FTP Problems

2006-06-27 Thread Jochem Maas
James Nunnerley wrote: Ah - whoops - just worked out why - you need to set the passive mode after you login, not after a connect! Silly solution! sharing the fix was anything but silly - :-) -Original Message- From: James Nunnerley [mailto:[EMAIL PROTECTED] Sent: 27 June 2006

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Arno Kuhl
-Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 03:11 To: Peter Lauri Cc: 'George Pitcher'; php-general@lists.php.net Subject: Re: [PHP] Controlling a scanner with PHP Peter Lauri wrote: Probably nobody, as PHP is a Server Side Scripting Language. If there's

Re: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Brad Bonkoski
Arno Kuhl wrote: -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 03:11 To: Peter Lauri Cc: 'George Pitcher'; php-general@lists.php.net Subject: Re: [PHP] Controlling a scanner with PHP Peter Lauri wrote: Probably nobody, as PHP is a Server Side

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Chris Boget
I also thought it always had to be run under a web server, and would be interested to know what the other options/ opportunities are. You can run it from the command line. See http://us3.php.net/manual/en/features.commandline.php thnx, Chris -- PHP General Mailing List

Re: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Stut
Arno Kuhl wrote: Stut, that's an interesting point you raised. I know it's moving off the original topic, but when you say by no means limited to being used on a server never mind on a web server, what is it that interprets the code and where does the output go to, or the input come from? I also

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Miles Thompson
At 11:33 AM 6/27/2006, Arno Kuhl wrote: -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: 27 June 2006 03:11 To: Peter Lauri Cc: 'George Pitcher'; php-general@lists.php.net Subject: Re: [PHP] Controlling a scanner with PHP Peter Lauri wrote: Probably nobody, as PHP is a

Re: [PHP] Preventing double-clicks APPEARS TO WORK FINE

2006-06-27 Thread John Meyer
Jay Blanchard wrote: [snip] JavaScript can't be used for such things, or at least it can't be relied upon. What if the user has disabled JavaScript? Or what if the user has specifically disabled the JavaScript behaviour you are relying on? [/snip] Egg Zachary. That was why I wanted a PHP

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Jay Blanchard
[snip] You can do the cron job thing and call it from the command line. [/snip] You can also execute a 'command line' php script from other applications as well. Even though 'command line' PHP scripting has some additional features we used to run PHP scripts from the command line before the

[PHP] Re: modify xml before parse

2006-06-27 Thread Adam Zey
weetat wrote: Hi all, I need to read xml file before it was parsed by PHP DOM functions. The xml file have some encrypted value as shown below : InstanceName![CDATA[ù?¸€ü÷Œúù?àù?؀Z4À„Ï]]/InstanceName Anybody have any suggestion how to do it ? Thanks. - weetat $xmlfile =

[PHP] how can I decode such a string ?

2006-06-27 Thread nicolas figaro
Hi, I'd like to convert a string generated by a mail client like the following one : test nf =?ISO-8859-15?Q?=E9_123456789012?= back to the original one test nf é 123456789012. Is there a (simple) way to do this ? thanks N F -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: PHP 5, Windows, and MySQL

2006-06-27 Thread Jeremy Schreckhise
I ran into the same problems; here is how I solved them. 1. Install MySQL 5 2. Install PHP 5 3. Modify php.ini extensions directive to point to php_mysql.dll (the one that was packaged with php 5) 4. Here is the tricky one make sure mysql is finding the libmysql.dll packaged

RE: [PHP] Re: A variable inside a variable?

2006-06-27 Thread Jeremy Schreckhise
I ran into the same problems; here is how I solved them. 1. Install MySQL 5 2. Install PHP 5 3. Modify php.ini extensions directive to point to php_mysql.dll (the one that was packaged with php 5) 4. Here is the tricky one make sure mysql is finding the libmysql.dll packaged

RE: [PHP] Re: PHP 5, Windows, and MySQL

2006-06-27 Thread Jeremy Schreckhise
Here is the direct download portal for the two corrected crucial .dlls. http://dev.mysql.com/downloads/connector/php/ -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 10:14 AM To: php-general@lists.php.net Subject: [PHP] Re: PHP 5,

[PHP] Re: how can I decode such a string ?

2006-06-27 Thread Al
nicolas figaro wrote: Hi, I'd like to convert a string generated by a mail client like the following one : test nf =?ISO-8859-15?Q?=E9_123456789012?= back to the original one test nf é 123456789012. Is there a (simple) way to do this ? thanks N F Yes, with a regex expression -- PHP

[PHP] php 4.4.2 spec

2006-06-27 Thread Paul Aviles
Does anyone have a 4.4.2 spec file that works for creating an rpm? Regards -pa -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: PHP 5, Windows, and MySQL

2006-06-27 Thread Beauford
Done all this, I spent another two hours last night and have gone back to PHP 4.4 which works perfect. I have followed every article I could find to the 'T' and it just refuses to work. I have version 4.1.15 of MySQL. I'm afraid to upgrade that as who know what mess it will cause. libmysql.dll

RE: [PHP] Re: PHP 5, Windows, and MySQL

2006-06-27 Thread Jeremy Schreckhise
But is libmysql.dll the dll from mysql; the one packaged with php 5 will not work. Jeremy Schreckhise, M.B.A -Original Message- From: Beauford [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 10:33 AM To: php-general@lists.php.net Subject: RE: [PHP] Re: PHP 5, Windows, and MySQL

[PHP] PHP LDAP - Single Sign On

2006-06-27 Thread Adrian Bruce
Hi all Sorry if this has been asked before but i am currently drawing a blank STW etc.. is there any way of retrieving the user name of a user (through the browser) that has logged on to a network (windows OS). I have used php with LDAP before and made the user log into the website, however

RE: [PHP] PHP LDAP - Single Sign On

2006-06-27 Thread Jay Blanchard
[snip] Sorry if this has been asked before but i am currently drawing a blank STW etc.. is there any way of retrieving the user name of a user (through the browser) that has logged on to a network (windows OS). I have used php with LDAP before and made the user log into the website, however i

[PHP] Re: how can I decode such a string ?

2006-06-27 Thread M. Sokolewicz
Al wrote: nicolas figaro wrote: Hi, I'd like to convert a string generated by a mail client like the following one : test nf =?ISO-8859-15?Q?=E9_123456789012?= back to the original one test nf é 123456789012. Is there a (simple) way to do this ? thanks N F Yes, with a regex

RE: [PHP] PHP 5, Windows, and MySQL

2006-06-27 Thread Beauford
I have done everything that everyone has suggested here, and 1000 other variations that I have found along the way. So if I'm doing something wrong - please let me know, 'cause I don't see it. MySQL 4.1 has been working great for 4 years and PHP4.4 gives me no problems. Anything 5 and above won't

[PHP] Ereg problem

2006-06-27 Thread Beauford
One more in my recent woes. The last elseif does not work in the code below - even if the string is correct it always says it's incorrect. Even if I remove everything else and just have the ereg satement is doesn't work either. The code below is in a function and $_POST['password1'] is passed to

RE: [PHP] Re: PHP 5, Windows, and MySQL

2006-06-27 Thread Beauford
Neither one will work. -Original Message- From: Jeremy Schreckhise [mailto:[EMAIL PROTECTED] Sent: June 27, 2006 11:37 AM To: 'Beauford'; php-general@lists.php.net Subject: RE: [PHP] Re: PHP 5, Windows, and MySQL But is libmysql.dll the dll from mysql; the one packaged with php 5 will

[PHP] Re: how can I decode such a string ?

2006-06-27 Thread Al
nicolas figaro wrote: Hi, I'd like to convert a string generated by a mail client like the following one : test nf =?ISO-8859-15?Q?=E9_123456789012?= back to the original one test nf é 123456789012. Is there a (simple) way to do this ? thanks N F I'm short of time, but, this should get

Re: [PHP] Ereg problem

2006-06-27 Thread Robert Cummings
On Tue, 2006-06-27 at 12:14, Beauford wrote: One more in my recent woes. The last elseif does not work in the code below - even if the string is correct it always says it's incorrect. Even if I remove everything else and just have the ereg satement is doesn't work either. The code below is

[PHP] Calculations

2006-06-27 Thread Alex Major
Hi there list. Thanks for your help with my other questions. I was carrying on working through, and stumbled across a problem when trying to times something by the 'power' of something. By this I mean..in maths you can write 3 * (2 ^ 3), the answer to which would be 24. (as 2 ^ 3 = 8). The

Re: [PHP] Calculations

2006-06-27 Thread Frank M. Kromann
Take a look at the pow() function http://php.net/pow - Frank Hi there list. Thanks for your help with my other questions. I was carrying on working through, and stumbled across a problem when trying to times something by the 'power' of something. By this I mean..in maths you can write 3

[PHP] Re: Calculations

2006-06-27 Thread Adam Zey
Alex Major wrote: Hi there list. Thanks for your help with my other questions. I was carrying on working through, and stumbled across a problem when trying to times something by the 'power' of something. By this I mean..in maths you can write 3 * (2 ^ 3), the answer to which would be 24. (as 2

Re: [PHP] Calculations

2006-06-27 Thread tedd
At 6:26 PM +0100 6/27/06, Alex Major wrote: Hi there list. Thanks for your help with my other questions. I was carrying on working through, and stumbled across a problem when trying to times something by the 'power' of something. By this I mean..in maths you can write 3 * (2 ^ 3), the answer to

Re: [PHP] Calculations

2006-06-27 Thread tg-php
Try: pow($base, $exp); http://us2.php.net/manual/en/function.pow.php Not sure why PHP doesn't use the ^.. havn't looked to see if it's already used for something else. -TG = = = Original message = = = Hi there list. Thanks for your help with my other questions. I was carrying on working

RE: [PHP] Calculations

2006-06-27 Thread Jay Blanchard
[snip] Any ideas how I would go about changing my calculation, as php dosn't seem to recognise ^ meaning 'to the power of'. [/snip] The first thing I would do is read http://www.php.net/math and follow the link to http://www.php.net/manual/en/ref.bc.php which would have me arriving at

Re: [PHP] Calculations

2006-06-27 Thread tedd
At 1:45 PM -0400 6/27/06, [EMAIL PROTECTED] wrote: Try: pow($base, $exp); http://us2.php.net/manual/en/function.pow.php Not sure why PHP doesn't use the ^.. havn't looked to see if it's already used for something else. -TG Yes, I found that surprising myself. BUT, I did find the answer in

Re: [PHP] Calculations

2006-06-27 Thread tg-php
When my level of free time matches my level of curiousity, I'll have to research it further. For now, I'm ok with not knowing unless someone posts the answer here. hah -TG = = = Original message = = = At 1:45 PM -0400 6/27/06, [EMAIL PROTECTED] wrote: Try: pow($base, $exp);

[PHP] PHP sounds (part two)

2006-06-27 Thread tedd
Hi gang: Hopefully, you kind people will indulge me again. I think I have my sound problem solved. Please review and report: http://xn--ovg.com/snd It's just a test -- click the corresponding button and I'll receive your answer, your browser, and your OS. No need to do anything other than

Re: [PHP] Ereg problem

2006-06-27 Thread John Nichel
Beauford wrote: Please turn of your mail client's request for return receipts when sending to a mailing list. -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Calculations

2006-06-27 Thread Kristen G. Thorson
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 2:11 PM To: php-general@lists.php.net Subject: Re: [PHP] Calculations When my level of free time matches my level of curiousity, I'll have to research it further. For now, I'm ok

RE: [PHP] Calculations

2006-06-27 Thread tg-php
Ahh.. thanks from the lazy programmer :) I knew I had seen it somewhere. Guess they ran out of symbols and decided XOR was more important than exponential operations. hah My vote would have been for ^ to remain for exponents and something overly complicated like |X| for xor..hah -TG = = =

RE: [PHP] Calculations

2006-06-27 Thread tedd
At 2:30 PM -0400 6/27/06, Kristen G. Thorson wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 2:11 PM To: php-general@lists.php.net Subject: Re: [PHP] Calculations When my level of free time matches my level of curiousity,

Re: [PHP] Calculations

2006-06-27 Thread Adam Zey
tedd wrote: At 2:30 PM -0400 6/27/06, Kristen G. Thorson wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 27, 2006 2:11 PM To: php-general@lists.php.net Subject: Re: [PHP] Calculations When my level of free time matches my level of

Re: [PHP] Question regarding OS

2006-06-27 Thread Ligaya Turmelle
Jochem Maas wrote: Mayank Maheshwary wrote: Hi, Is there a function that can detect the OS on which the script is running? yes. php_uname() read about it here http://php.net/manual/en/function.php-uname.php and then read 10 pages either side just for fun :-) Thank you. M. Ha -

Re: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Richard Lynch
On Tue, June 27, 2006 7:16 am, George Pitcher wrote: I have been asked to look at extending one of my CMS systems to incorporate integration to a library management system, as well as LDAP and Active Directory. http://php.net/ldap should help, though I understand that there is some stupid

Re: [PHP] FTP Problems

2006-06-27 Thread Chris
James Nunnerley wrote: Thanks for the reply Chris. How would you suggest displaying the current home directory for the user? I've tried / and indeed the real directory name on that particular server. Funnily enough, I've also just tried a generic php/ftp script tool, and it works on a third

Re: [PHP] php 4.4.2 spec

2006-06-27 Thread Chris
Paul Aviles wrote: Does anyone have a 4.4.2 spec file that works for creating an rpm? There should be one in the tarball from the php site. It's called php4.spec.in -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

RE: [PHP] Controlling a scanner with PHP

2006-06-27 Thread Richard Lynch
On Tue, June 27, 2006 9:33 am, Arno Kuhl wrote: Stut, that's an interesting point you raised. I know it's moving off the original topic, but when you say by no means limited to being used on a server never mind on a web server, what is it that interprets the code and where does the output

Re: [PHP] PHP 5, Windows, and MySQL

2006-06-27 Thread Chris
Beauford wrote: I have done everything that everyone has suggested here, and 1000 other variations that I have found along the way. So if I'm doing something wrong - please let me know, 'cause I don't see it. MySQL 4.1 has been working great for 4 years and PHP4.4 gives me no problems. Anything

Re: [PHP] If statement question

2006-06-27 Thread Richard Lynch
On Mon, June 26, 2006 1:23 pm, Robert Cummings wrote: I can't think of any language that processes the contents of a conditional block when the test condition fails. I believe that PHP with Runkit would let you set that up to happen, if it was something you actually wanted... :-) And Common

Re: [PHP] Array to String

2006-06-27 Thread Richard Lynch
On Mon, June 26, 2006 2:06 am, Jochem Maas wrote: if (!get_magic_quotes_gpc()) { if (isset($_POST)) { foreach ($_POST as $key = $value) { $_POST[$key] = trim(addslashes($value)); } } if (isset($_GET)) { foreach ($_GET as $key = $value) {

RE: [PHP] Ereg problem

2006-06-27 Thread Beauford
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: June 27, 2006 12:58 PM To: Beauford Cc: PHP-General Subject: Re: [PHP] Ereg problem On Tue, 2006-06-27 at 12:14, Beauford wrote: One more in my recent woes. The last elseif does not work in the code below -

Re: [PHP] working on a template system...

2006-06-27 Thread Ligaya Turmelle
Martin Marques wrote: Why not try to use one of the template systems that already exist? HTML_Template_IT, Smarty, etc. On Tue, 27 Jun 2006 10:22:42 +0300, sempsteen [EMAIL PROTECTED] wrote: hi, i'm working on a template system. Basically i'm building raw contents in arrays and then put them

Re: [PHP] uploading...

2006-06-27 Thread BBC
BBC wrote: OK John I'm sorry if my question was not specific - The out put error was: Fatal error: call to a member function an o non object in /url/data.php on line 34 - And the lines are: 34. $db-query(INSERT INTO `products` $db isn't an object. Does it connect to the

Re: [PHP] uploading...

2006-06-27 Thread Chris
BBC wrote: BBC wrote: OK John I'm sorry if my question was not specific - The out put error was: Fatal error: call to a member function an o non object in /url/data.php on line 34 - And the lines are: 34. $db-query(INSERT INTO `products` $db isn't an object. Does it connect to the

Re: [PHP] Cookie Question

2006-06-27 Thread Richard Lynch
Because their clock is set wrong on their computer... Better to set a very long timeout and then handle the expiration yourself. Sorry. On Fri, June 23, 2006 5:26 pm, Tom Ray [Lists] wrote: I've run into something rather odd with cookies today. I'm working with this admin section on a site

Re: [PHP] PHP 5, Windows, and MySQL

2006-06-27 Thread David Robley
Chris wrote: Beauford wrote: I have done everything that everyone has suggested here, and 1000 other variations that I have found along the way. So if I'm doing something wrong - please let me know, 'cause I don't see it. MySQL 4.1 has been working great for 4 years and PHP4.4 gives me no

Re: [PHP] uploading...

2006-06-27 Thread Richard Lynch
On Tue, June 27, 2006 9:23 pm, BBC wrote: BBC wrote: OK John I'm sorry if my question was not specific - The out put error was: Fatal error: call to a member function an o non object in /url/data.php on line 34 - And the lines are: 34. $db-query(INSERT INTO `products`