Re: [PHP] Re: filter_input and $_POST deep array

2011-09-23 Thread Thijs Lensselink
I was sure filter_input would work on nested levels. But it doesn't as you point out. You could do something like this if you want to filter the same types array_walk_recursive($_POST, function(&$value) { $value = filter_var($value, FILTER_SANITIZE_STRING); }); > > Thanks

Re: [PHP] Re: filter_input and $_POST deep array

2011-09-23 Thread Thijs Lensselink
On 09/23/2011 03:17 PM, jean-baptiste verrey wrote: > seems that the only solution is to still use $_POST and use filter_var > instead, it could have been better! You can foreach the $_Post['login'] array and use filter_input on each iteration to do the filtering. Or maybe the filter_input_array is

Re: [PHP] Help needed with mysql import

2011-03-01 Thread Thijs Lensselink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 03/02/2011 07:56 AM, Ashim Kapoor wrote: > Dear all, > > I am trying to make a website with php and I found the following code in a > book and I am trying to import it. The following are the beginning of the > file i am trying to import with the co

Re: [PHP] Re: php-general Digest 14 Feb 2011 03:32:02 -0000 Issue 7180

2011-02-14 Thread Thijs Lensselink
On 02/14/2011 05:53 AM, Florin Jurcovici wrote: > Hi. > >>> Me stupid, my bad. >>> >>> Turns out the bug isn't in my code, but in the debugger. I'm working >>> with the trial version of Zend Studio. When inside the call to the >>> static method, everything is undefined. If I look at variables usin

Re: [PHP] PHP arguments getting lost in call!?

2011-02-13 Thread Thijs Lensselink
On 02/13/2011 10:00 AM, Florin Jurcovici wrote: > Me stupid, my bad. > > Turns out the bug isn't in my code, but in the debugger. I'm working > with the trial version of Zend Studio. When inside the call to the > static method, everything is undefined. If I look at variables using > the Expression

Re: [PHP] Simplifying MySql queries

2011-02-12 Thread Thijs Lensselink
On 02/12/2011 09:40 PM, Andre Polykanine wrote: > Hi all, > I'm using in my PHP script the following four MySql queries: > $q1=mysql_query("SELECT *FROM`CandidateQuestions`WHERE > `Category`='1' ORDER BY RAND() LIMIT 1"); > $q2=mysql_query("SELECT *FROM`CandidateQuestion

Re: [PHP] override built-in mail()

2011-02-04 Thread Thijs Lensselink
On 02/04/2011 09:49 PM, David Harkness wrote: > On Fri, Feb 4, 2011 at 12:42 PM, Hansen, Mike wrote: > >> I would opt for using my_mail and not overriding a built-in function. It >> seems to me that it would just cause confusion for the next developer who >> takes care of your code. You know, tha

Re: [PHP] override built-in mail()

2011-02-04 Thread Thijs Lensselink
On 02/04/2011 08:44 PM, Thijs Lensselink wrote: > On 02/04/2011 08:38 PM, Steve Staples wrote: >> On Fri, 2011-02-04 at 20:25 +0100, Thijs Lensselink wrote: >>> On 02/04/2011 04:59 PM, Steve Staples wrote: >>>> On Fri, 2011-02-04 at 07:51 -0800, Jim Lucas wrote: &g

Re: [PHP] override built-in mail()

2011-02-04 Thread Thijs Lensselink
On 02/04/2011 08:38 PM, Steve Staples wrote: > On Fri, 2011-02-04 at 20:25 +0100, Thijs Lensselink wrote: >> On 02/04/2011 04:59 PM, Steve Staples wrote: >>> On Fri, 2011-02-04 at 07:51 -0800, Jim Lucas wrote: >>>> On 2/4/2011 5:37 AM, Steve Staples wrote: >>&

Re: [PHP] override built-in mail()

2011-02-04 Thread Thijs Lensselink
On 02/04/2011 04:59 PM, Steve Staples wrote: > On Fri, 2011-02-04 at 07:51 -0800, Jim Lucas wrote: >> On 2/4/2011 5:37 AM, Steve Staples wrote: >>> Hello Guys/Gals, >>> >>> it's friday (at least where I am it is) and I have an issue with a >>> script that I just started using again. The problem is

Re: [PHP] PEAR & PHP

2011-01-30 Thread Thijs Lensselink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/30/2011 05:43 AM, Ethan Rosenberg wrote: > Dear list - > > I enter the command pear list, and get errors. See below -- > > ethan@rosenberg:/usr/lib/php5$ ls -l > total 12 > drwxr-xr-x 2 root root 4096 Jan 6 00:53 20090626+lfs > drwxr-xr-x 2 r

Re: [PHP] Different sessions, same client

2011-01-23 Thread Thijs Lensselink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/23/2011 07:33 AM, Paul M Foster wrote: > Storing any sort of login/auth data in cookies has regularly been panned > on this list. The preference seems to be to store whatever login/auth > information *must* be stored in the $_SESSION variable. >

Re: [PHP] How to get cpu consumption of a php script

2011-01-17 Thread Thijs Lensselink
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/17/2011 11:23 AM, Tanoor Dieng wrote: > Hi everybody, > I'm a php developper for a high traffic website. Our web servers run with > lightty? > > We have some issues with the cpu consumption of our servers. > > The problem is that, we don't know

Re: [PHP] parse_ini_file() seems to be broken in PHP 5.2.4-2ubuntu5.12

2010-11-11 Thread Thijs Lensselink
On Wed, 10 Nov 2010 18:08:01 -0800, "Daevid Vincent" wrote: http://php.net/manual/en/function.parse-ini-file.php Why doesn't PHP parse the 'null', 'true', 'false', etc into their proper equivalents? What's worse is that it does this mangling of my RAW values to be strings and sets them to "1

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Thijs Lensselink
On Wed, 3 Nov 2010 19:53:52 +0800, David Nelson wrote: Hi, :-) On Wed, Nov 3, 2010 at 19:29, Peter Lind wrote: That's not going to happen. My point was you could check in the original file if the function is defined and if not then define it. OK, thanks, Thijs and Peter, it looks like I'm

Re: [PHP] include() and duplicate function definition

2010-11-03 Thread Thijs Lensselink
On Wed, 3 Nov 2010 17:59:06 +0800, David Nelson wrote: Hi, :-) I'm making a child theme for WordPress. I need to rewrite one function defined in "../sometheme/functions/actions.php" and put that rewritten function in "wp-content/themes/sometheme-child/functions/actions.php". But I want to

Re: [PHP] Reminder On Mailing List Rules

2010-10-22 Thread Thijs Lensselink
On Thu, 21 Oct 2010 16:30:03 +0100, Ashley Sheridan wrote: On Thu, 2010-10-21 at 10:25 -0400, Daniel Brown wrote: Hey, Folks; Just a gentle reminder after watching things get worse by the day: it is one of the rules of this and all official php.net mailing lists that you must not top-p

Re: [PHP] floored by floor()

2010-10-13 Thread Thijs Lensselink
On 10/14/2010 07:48 AM, Mattias Thorslund wrote: Hi List, I'm having a problem with the behavior of the floor() function: echo floor(327.03 * 100)."\n"; //prints "32702" and not "32703"!! Sanity check: var_dump(327.03 * 100); //prints "float(32703)" as expected Any ideas why this happens, an

Re: [PHP] Zend studio location Cross-Domain Scripting Vulnerability

2010-10-12 Thread Thijs Lensselink
On 10/13/2010 12:19 AM, Daevid Vincent wrote: http://80vul.com/Zend%20studio/Zend%20studio%20location%20Cross.htm Interesting. A co-worker and I were JUST noticing how our PHPDoc comments were being parsed pretty much verbatim including tags and links and stuff and thought, "wow, that's stupid

Re: [PHP] Could this be a bug?

2010-09-14 Thread Thijs Lensselink
On 09/14/2010 11:31 PM, Camilo Sperberg wrote: On Tue, Sep 14, 2010 at 02:46, Thijs Lensselink wrote: On 09/14/2010 08:33 AM, Thijs Lensselink wrote: On 09/14/2010 12:16 AM, Camilo Sperberg wrote: I have some really strange behaviour going on here, and I think it could be a (minor

Re: [PHP] Could this be a bug?

2010-09-13 Thread Thijs Lensselink
On 09/14/2010 08:33 AM, Thijs Lensselink wrote: On 09/14/2010 12:16 AM, Camilo Sperberg wrote: I have some really strange behaviour going on here, and I think it could be a (minor) PHP's bug. I am not really sure about what happens internally, but my best guess would be that after a m

Re: [PHP] Could this be a bug?

2010-09-13 Thread Thijs Lensselink
On 09/14/2010 12:16 AM, Camilo Sperberg wrote: I have some really strange behaviour going on here, and I think it could be a (minor) PHP's bug. I am not really sure about what happens internally, but my best guess would be that after a memory exhaustion, when I try to execute a custom error hand

Re: [PHP] State and City Database

2010-07-09 Thread Thijs Lensselink
On 07/07/2010 10:02 PM, tedd wrote: Hi gang: Does anyone have a source for a US State and City database? Cheers, tedd Hey Tedd, Maybe this helps. I used the data files for some other projects.. http://earth-info.nga.mil/gns/html/ http://geonames.usgs.gov/ -- PHP General Mailing List

Re: [PHP] configure php 5.2.12 with-pdflib failes after upgrade from php 5.2.9

2010-06-11 Thread Thijs Lensselink
On Fri, 11 Jun 2010 09:24:09 +0200, Merlin Morgenstern wrote: > Hi there, > > I had a working version 5.2.9 running on my suse system. Then I upgraded > to 5.2.12 with the same configure command. Unfortunatelly I lost pdf > creation now. > > Here is what the configure output says: > > > Noti

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Thijs Lensselink
Gary . wrote: On 4/28/10, Thijs Lensselink wrote: Gary . wrote: class Pg_Error { private static $errors = array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); Shouldn't this be: array(self::INTEGRITY_CONST_UNIQUE => 'uniq

Re: [PHP] What is wrong with this code?

2010-04-28 Thread Thijs Lensselink
Gary . wrote: class Pg_Error { private static $errors = array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); Shouldn't this be: array(self::INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); ... public static function getMessage($ec) { $

Re: [PHP] "Call to undefined method" on class property!?

2010-01-07 Thread Thijs Lensselink
Allen McCabe wrote: I have a singleton database object in a global file at the top of my document. In most other locations I am able to access it just fine, however in my footer I want to loop through a properties list for links (I am saving links to a database, each with its own properties). He

Re: [PHP] 404 page

2009-12-27 Thread Thijs Lensselink
navneet sharma wrote: Hi, - About 404 error document... Make sure filenotfound.html is in public_html or www directory as your are using shared hosting... - Generally in share hosting environment you are not allowed to modify php.ini (GoDaddy allows), you can modify some property of httpd.conf

Re: [PHP] Saving server side file to local machine with JS

2009-07-27 Thread Thijs Lensselink
Skip Evans wrote: > Sorry, I should have been clearer. > > When PHP finishes creating the file I need one of the JS alert type > windows to appear that says.. > > "Your file has completed, would you like to save it to your machine?" > > Like you get when you download a file. > > If I knew the J

[PHP] php.net down?

2009-07-16 Thread Thijs Lensselink
Anybody noticed php.net is down? It's responding to pings. But no pages load. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Mac OS X Server

2009-07-15 Thread Thijs Lensselink
The Doctor wrote: > ALl right, > > I just install MySQL 5.1.36 on a Mac OS X Server but the PHP > is looking at the Mysql 5.0.67 ? > > How do I tell the php.ini to look at the 5.1 instead of the 5.0? > You don't do that from the php.ini file. Either recompile PHP against the new MySQL source. I

Re: [PHP] problem with my class

2009-04-16 Thread Thijs Lensselink
Luke Slater wrote: > On Thu, Apr 16, 2009 at 2:41 PM, Thijs Lensselink <mailto:p...@addmissions.nl>> wrote: > > Luke wrote: > > 2009/4/16 Jan G.B. <mailto:ro0ot.w...@googlemail.com>> > > > >> 2009/4/16 Luke

Re: [PHP] problem with my class

2009-04-16 Thread Thijs Lensselink
Luke wrote: > 2009/4/16 Jan G.B. > >> 2009/4/16 Luke : >>> Hi guys, >>> >>> I've been learning about object oriented programming and I wrote this >> test >>> class but it doesn't seem to be working, it throws no errors but doesn't >>> insert anything to the database either. I have made sure that

Re: [PHP] integrating perl and PHP problem

2009-04-08 Thread Thijs Lensselink
Moses wrote: > Hi Everyone, > > I have a perl program which I would like to display its > results in PHP. I have read PHP book and the solution > is to convert the perl program which is not easy. I have > tried a simple example but it is not working. The perl script > is > > #! /usr/bin/perl -w >

Re: [PHP] PHP + MySQL - Load last inserts

2009-03-30 Thread Thijs Lensselink
Sebastian Muszytowski wrote: > Hello :) > > I have some troubles with php and mysql. I have a normal MySQL Query > and this returns X > 3 rows. > Now i want to get the last 3 inserted values. For Example i've inserted > > A, B, C, D, E > > I want to get the last inserted values, e.g. E D C (in

Re: [PHP] LOAD INFILE

2009-03-30 Thread Thijs Lensselink
John Boy wrote: > Hi > > I want to upload a .csv file from my local pc to a mysql server. My local > machine is XP2. I have used the following but the file does not upload. When > using php MyAdmin it returns the error 'file not found'. Can anyone help? > > // Include our login information > i

Re: [PHP] bad interpreter error from CLI

2009-03-13 Thread Thijs Lensselink
Thodoris wrote: > Hi gang, >I am trying to run a script from cli which goes like this: > > #!/usr/bin/php > passthru("printenv"); > ?> > > The error I get is this: > /usr/bin/php^M: bad interpreter: Permission denied > > the php binary is indeed in this location and when I run the same scri

Re: [PHP] PHP 5.2.9 - 5.2.9-1 and curl

2009-03-12 Thread Thijs Lensselink
Niki wrote: > Hi all, > > I'm using PHP 5.2.9 on a Windows dedicated server. Could you kindly > confirm me that I have to update to PHP 5.2.9-1 > (http://www.php.net/archive/2009.php#id2009-03-10-1) only if I have > "curl" extension enabled (extension=php_curl.dll in php.ini) ? Well nobody forces

Re: [PHP] How to work with Webservices (.asmx) server

2009-03-11 Thread Thijs Lensselink
sounds tasty. Always thought we Dutch are the only ones crazy enough to eat this stuff :) > > Anton > > 2009/3/11 Thijs Lensselink > >> Hoi Anton, >> >> Great job on the Dutch part :) But please keep the thread on list. >> >> You have set the ser

Re: [PHP] How to work with Webservices (.asmx) server

2009-03-11 Thread Thijs Lensselink
? should I not have the > target server URL (or is this also pointing to the Web Services Servers > WSDL not setup correctly and will my client only work if I run it from > the same PC? ) This is what confuses me so . > > > Regards > > 2009/3/10 Thijs

Re: [PHP] How to work with Webservices (.asmx) server

2009-03-10 Thread Thijs Lensselink
Anton Heuschen wrote: > I am confused with XML-RPC / SOAP and WSDL ... > > If you have a server with a script/file like test.asmx and some web > services ...below example of service format : > > SOAP 1.2 > > The following is a sample SOAP 1.2 request and response. The > placeholders shown need t

Re: [PHP] Newbie Help - No .php file extension

2009-02-09 Thread Thijs Lensselink
Hibbert Miller wrote: > Hello,I have been asked to install an existing PHP/MySQL application on a > system using Windows Vista. > What application are we talking about here? Is it a known Open/Closed source application? Is it supposed to run on windows? > I have installed PHP 5.2.8, MySQL 5.1.31

Re: [PHP] PHP Dev Facts

2008-10-17 Thread Thijs Lensselink
Quoting Nathan Rixham <[EMAIL PROTECTED]>: Evening All, I'd be /really/ interested to know who uses what! *Procedural or OOP?* OO *Dev OS* Ubuntu / Windows XP *Dev PHP Version* 5.2.6 *Live Server OS* Debian / Suse *Live Server PHP Version* 5.2.6 *Which HTTP Server Soft

Re: [PHP] Static method variable

2008-09-18 Thread Thijs Lensselink
Quoting Christoph Boget <[EMAIL PROTECTED]>: Perhaps I'm misunderstanding what a static method variable is supposed to do. I thought the value would be static for an class' instance but it appears it is static across all instances of the class. Consider: class StaticTest { public function _

Re: [PHP] Is this a bug?

2008-08-30 Thread Thijs Lensselink
Jochem Maas wrote: > T Lensselink schreef: >> Catalin Zamfir Alexandru, DATAGRAM SRL wrote: >>> Hello guys, >>> >>> I've been stalking on the list for some time. Didn't >>> have >>> anything to report/talk, until now. I have a code like this, maybe >>> you guys >>> can reproduce it,

Re: [PHP] Braindead

2008-08-29 Thread Thijs Lensselink
Chris Haensel wrote: > Hi guys, > > maybe I am too stupid, but I can not see a solution for this. Have been > cracking up my brain for the last hours, so I finally dare to ask. > > I have a database table with some columns > > > text1 | text2 | text3 | text4 >

Re: [PHP] Semi-ADVERT, not really spam, sorry for it

2008-08-19 Thread Thijs Lensselink
Quoting Jochem Maas <[EMAIL PROTECTED]>: metastable schreef: V S Rawat wrote: If you provide "paid" help in code development/ testing/ troubleshooting related to php or other software areas, please feel free to drop a line to me at my id mentioned below. Please don't write here as some other m

Re: [PHP] pdo compilation question

2008-08-19 Thread Thijs Lensselink
Quoting Tim Rupp <[EMAIL PROTECTED]>: Hi list, I hope this is the right area to ask, I'm trying to compile PDO support in 5.2.6 and am following the instructions here http://us2.php.net/manual/en/pdo.installation.php My compile line is the following ./configure --enable-force-cgi-redirect

Re: [PHP] Why PHP4?

2008-07-30 Thread Thijs Lensselink
Quoting Hélio Rocha <[EMAIL PROTECTED]>: Sorry to disagree, But I think that with PHP4 a lot of people start thinking that they could be programmers (maybe they can, developers it's another story). When php5 came they didn't know how do deal with the deprecated methods and worst, some hosters d

RE: [PHP] uploading big files with PHP

2008-07-25 Thread Thijs Lensselink
Quoting Angelo Zanetti <[EMAIL PROTECTED]>: -Original Message- From: Thijs Lensselink [mailto:[EMAIL PROTECTED] Sent: 25 July 2008 12:08 To: php-general@lists.php.net Subject: Re: [PHP] uploading big files with PHP Quoting Angelo Zanetti <[EMAIL PROTECTED]>: Hi all We

Re: [PHP] uploading big files with PHP

2008-07-25 Thread Thijs Lensselink
Quoting Angelo Zanetti <[EMAIL PROTECTED]>: Hi all We are pitching to develop a website where the admin has to upload big video files but I'm not sure how this can be done as the file upload will most probably time out. How do current websites do it? Is there somehow a way to make use of FTP t

Re: [PHP] [soap]about compress

2008-07-25 Thread Thijs Lensselink
Quoting 付兴林 <[EMAIL PROTECTED]>: I have an issue about soap. Is the data returned from servier compressed by gzip, When using soap in php5 to creat web service? Can we set for compress lever or not compress? _ 这里好多好玩的视频,用鼠标点到视

Re: [PHP] After INSERT form submit - Data doesn't refresh!

2008-07-22 Thread Thijs Lensselink
that the user can fill in somewhere after that So honestly I don't think it's this code that makes the difference. I still believe this is a browser cache issue. I could be wrong though. On Jul 22, 2008, at 9:08 AM, Thijs Lensselink wrote: Quoting "Rahul S. Johari" <[E

Re: [PHP] After INSERT form submit - Data doesn't refresh!

2008-07-22 Thread Thijs Lensselink
Quoting "Rahul S. Johari" <[EMAIL PROTECTED]>: Here's what it is: I have a php page, "a.php", which contains these three things: - SELECT statement to display records from a mySQL Table - HTML Form for inserting data into the mySQL Table - INSERT statement to insert that row into the mySQL

Re: [PHP] After INSERT form submit - Data doesn't refresh!

2008-07-22 Thread Thijs Lensselink
Quoting "Rahul S. Johari" <[EMAIL PROTECTED]>: Here's what it is: I have a php page, "a.php", which contains these three things: - SELECT statement to display records from a mySQL Table - HTML Form for inserting data into the mySQL Table - INSERT statement to insert that row into the mySQL

Re: [PHP] How can i get the location of an exit()/die() from within register_shutdown_function()?

2008-07-16 Thread Thijs Lensselink
Quoting Mathijs van Veluw <[EMAIL PROTECTED]>: Hello there, I have an shutdown function to catch fatal-errors etc.. Now when there is an exit() somewhere i get an empty message from get_last_error(). I want to know the location of this exit() or die(). Is there a way to get the file and line-n

Re: [PHP] Login without cookies enabled help

2008-07-15 Thread Thijs Lensselink
Quoting Shelley <[EMAIL PROTECTED]>: Hi all, What is your way to organize user login without Client Cookies being disabled? Sample code will be appreciated. Waiting for your reply... -- Regards, Shelley You can use sessions to store data on the server instead of the client. http://nl

Re: FW: [PHP] REALLY NEWB QUESTION - include issue

2008-07-01 Thread Thijs Lensselink
anks, T -----Original Message- From: Thijs Lensselink [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 1:58 AM To: php-general@lists.php.net Subject: RE: [PHP] REALLY NEWB QUESTION - include issue Quoting TS <[EMAIL PROTECTED]>: Code segment? Exact error message? (Is

Re: [PHP] Simple array problem

2008-07-01 Thread Thijs Lensselink
Quoting Brian Dunning <[EMAIL PROTECTED]>: I'm trying to add a number to a value in an array. Pretend I have this: $new_value = array('orange', 2); $arr = array( array('blue', 4), array('orange', 5), array('green', 6)); I want to add the new value to the existing matchi

RE: [PHP] REALLY NEWB QUESTION - include issue

2008-07-01 Thread Thijs Lensselink
Quoting TS <[EMAIL PROTECTED]>: Code segment? Exact error message? (Is there more context?) Include (/file); Function.include]: open_basedir restriction in effect. File(/var/www/vhosts/domain/httpdocs/file.php) is not within the allowed path(s): (/var/www/vhosts/differentdomain/httpdocs:/tmp)

Re: [PHP] can you give me example of website using postgresql database?

2008-06-30 Thread Thijs Lensselink
Quoting paragasu <[EMAIL PROTECTED]>: i am planning to use postgresql for my next project (social network). anyone can point me any website using postgresql database? it will help me a lot.. thanks.. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/uns

Re: [PHP] unset and circular references

2008-06-27 Thread Thijs Lensselink
Quoting Abu Warez <[EMAIL PROTECTED]>: Hi, I'm using php 5.2.1 on an Ubuntu machine. I have the following class diagram (observer pattern): +-+ +-+ +-+ | class A |<#>->| class B |< >->| interface C | | | +

Re: [PHP] Variables in forms

2008-06-23 Thread Thijs Lensselink
Quoting Ron Piggott <[EMAIL PROTECTED]>: Jim what you sent is very helpful. I had an error message when I submitted the form with a POST your_cleaning_function gave me this error: Fatal error: Call to undefined function: your_cleaning_function() I am trying to save the ones that were check

RE: [PHP] PHP Runs But Does Not Display on Linux

2008-06-12 Thread Thijs Lensselink
Quoting "Wei, Alice J." <[EMAIL PROTECTED]>: Hello, I have reinstalled Apache back into my Linux machine, and placed the code Test This is test into the apache/htdocs folder titled hello.php When I execute it from the browser using an http:// address followed by

Re: [PHP] imap_open() error. (Can't open mailbox)

2008-06-09 Thread Thijs Lensselink
Quoting Mathijs van Veluw <[EMAIL PROTECTED]>: Thijs Lensselink wrote: Quoting Mathijs van Veluw <[EMAIL PROTECTED]>: Hello there, i use imap to read incoming mail from the the SMTP server. On the live server everythings works as it should. I can use imap_open('/path/to/f

Re: [PHP] imap_open() error. (Can't open mailbox)

2008-06-09 Thread Thijs Lensselink
Quoting Mathijs van Veluw <[EMAIL PROTECTED]>: Hello there, i use imap to read incoming mail from the the SMTP server. On the live server everythings works as it should. I can use imap_open('/path/to/file', '', ''), to read just one raw-mail. On my test env i can't get this to work. I get the

Re: [PHP] NuSOAP assistance.

2008-06-09 Thread Thijs Lensselink
Quoting Dan Joseph <[EMAIL PROTECTED]>: Hi Everyone, This is kind of a follow up to my SOAP question on Friday. I have decided that NuSOAP is my quickest solution. I am having some issues though. Everything looks like I have it in place, but I must be doing something wrong since the WSDL won

Re: [PHP] slowness mystery

2008-06-04 Thread Thijs Lensselink
Quoting Rene Veerman <[EMAIL PROTECTED]>: Using a statis .js file costs 3.54 seconds. Should i suspect apache now? You could try running the php script from the command line. And see how long it takes. Just to make sure if it's apache or PHP. Profiling the script will also help tracking dow

Re: [PHP] Avoid object twice

2008-06-04 Thread Thijs Lensselink
Quoting Yui Hiroaki <[EMAIL PROTECTED]>: My problem is that I would like to share the parameter. For instance, goolge map key. There are actually two files. example, main.php Above is part of code; I will excute main.php program. then other.php run But when other.php run

Re: [PHP] Avoid object twice

2008-06-04 Thread Thijs Lensselink
Quoting Yui Hiroaki <[EMAIL PROTECTED]>: Thank you for your advice me! -My.php--- word=$getword; } public function buff(){ mail("[EMAIL PROTECTED]","test","test"); } } ?> -- --b.php buff(

Re: [PHP] Avoid object twice

2008-06-03 Thread Thijs Lensselink
Quoting Yui Hiroaki <[EMAIL PROTECTED]>: Please look at my.php my.php load $obj=new My("Hello"); $obj->buff(); so, if a.php load, it absolutely got "hello" in load b.php Regards, Yui 2008/6/3 Thijs Lensselink <[EMAIL PROTECTED]>: Quoting Yui Hiroaki <

Re: [PHP] Avoid object twice

2008-06-03 Thread Thijs Lensselink
Quoting Yui Hiroaki <[EMAIL PROTECTED]>: Thank you for a good suggest! Somehow, I have to execute my.php also. This program have to run. 1)My.php 2)b.php My.php show "Hello" -> it is OK, b.php shows "Hello" "Good" it is NOT good. I need to get only "Good" Please give me a suggestion. Rega

Re: [PHP] PHP Code I Must find

2008-05-30 Thread Thijs Lensselink
Quoting John Taylor-Johnston <[EMAIL PROTECTED]>: Seen that in the manual. I'll need a routine of some sort I guess. I'll get my cookie cutters out tomorrow and see what I can create. I make cool gingerbread men, for a dude. **htmlentities() does most of what I want, sort of. **lists-php wrote:

Re: [PHP] validating textarea using php

2008-05-13 Thread Thijs Lensselink
Quoting Sudhakar <[EMAIL PROTECTED]>: hi i need to validate textarea of a html form using php presently my php code to validate the text area is if($comments == "" ) { $error.="Please enter your comments"; } with this code if a user hits the space bar once or couple of times as a matter of

Re: [PHP] AI file and mapping with PHP

2008-05-07 Thread Thijs Lensselink
Quoting Angelo Zanetti <[EMAIL PROTECTED]>: Hi Guys, We have a project where by we have a map in ai format (vector format). What we want to do is to programmatically come up with a solution that say on the map there is a restaurant at a certain location, that we can zoom into the map on that sp

Re: [PHP] PHP debugger

2008-04-28 Thread Thijs Lensselink
Quoting Daniel Brown <[EMAIL PROTECTED]>: On Mon, Apr 28, 2008 at 7:00 AM, J. Manuel Velasco - UBILIBET <[EMAIL PROTECTED]> wrote: Hello, Anybody knows a good debugger for PHP and basic usage? There's a pretty good one known as Jason Pruim. ;-P ROFL! -- Dedicated Servers - Inte

Re: [PHP] function returns no value

2008-04-21 Thread Thijs Lensselink
Quoting Ali Reza Sajedi <[EMAIL PROTECTED]>: I added var_dump($result); to the function. As part of the output I get the following: ["fields"]=> array(1) { ["fa"]=> string(22) "ورود به سایت"} which is the string which should be returned and printed. The result is there, however, it couldn't

Re: [PHP] AJAX and PHP

2008-04-21 Thread Thijs Lensselink
login. If you really want a reload. You have to do it with javascript. You could let PHP send back a status to javascript. And based on that. Either load a div with content. Or do a document.location = ''; Hope it helps. On Mon, Apr 21, 2008 at 11:40 AM, Thijs Lensselink

Re: [PHP] AJAX and PHP

2008-04-21 Thread Thijs Lensselink
anding this last issue. What exactly do you mean by redirecting to another PHP page? Al. On Mon, Apr 21, 2008 at 9:55 AM, Thijs Lensselink <[EMAIL PROTECTED]> wrote: Quoting Alain Roger <[EMAIL PROTECTED]>: Hi, > > i'm playing around with AJAX and PHP to create somethi

Re: [PHP] AJAX and PHP

2008-04-21 Thread Thijs Lensselink
Quoting Alain Roger <[EMAIL PROTECTED]>: Hi, i'm playing around with AJAX and PHP to create something like a "small desktop" application. basically the first step is to log in the system. for that i have a log-in form where users can choose the interface language. here is my problem : when the

Re: [PHP] PHP GD library installing

2008-04-10 Thread Thijs Lensselink
Quoting Robin Vickery <[EMAIL PROTECTED]>: On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote: Quoting Robin Vickery <[EMAIL PROTECTED]>: > On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote: > > > Quoting Luca Paolella <[EMAIL PROT

Re: [PHP] PHP GD library installing

2008-04-10 Thread Thijs Lensselink
Quoting Robin Vickery <[EMAIL PROTECTED]>: On 10/04/2008, Thijs Lensselink <[EMAIL PROTECTED]> wrote: Quoting Luca Paolella <[EMAIL PROTECTED]>: > How do I install/activate the GD library with my existing PHP version? > I'm quite sure it isn't already, since

Re: [PHP] PHP GD library installing

2008-04-10 Thread Thijs Lensselink
Quoting Luca Paolella <[EMAIL PROTECTED]>: How do I install/activate the GD library with my existing PHP version? I'm quite sure it isn't already, since I got this error: Fatal error: Call to undefined function imagecreate() in /Volumes/Data/Users/luca/Library/WebServer/Documents/reloadTest/ima

Re: [PHP] Re: fwrite/fclose troubles

2008-03-21 Thread Thijs Lensselink
Quoting Dave Goodchild <[EMAIL PROTECTED]>: Why are you writing a logging class? Why not use error_log and enable error logging? Maybe he wants to log user actions in an application? Can log so much more then just errors. But the answer to this problem was already given. :) On Fri, Mar

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Thijs Lensselink
Quoting Aschwin Wesselius <[EMAIL PROTECTED]>: Per Jessen wrote: header(location) mechanisms do come with a very huge disadvantage if you don't use them with caution. Requests are reinitialised, libraries loaded (again), DB connections setup/checked again, session lookups are being done, log

Re: [PHP] PHP 5 file_get_contents() problems

2008-03-18 Thread Thijs Lensselink
Quoting Greg Bowser <[EMAIL PROTECTED]>: for security reasons, allow_url_include can only be set from the main php.ini I wasn't sure about that one. Thanks for the correction. On Tue, Mar 18, 2008 at 10:22 AM, Thijs Lensselink <[EMAIL PROTECTED]> wrote: Quoting Chris

Re: [PHP] PHP 5 file_get_contents() problems

2008-03-18 Thread Thijs Lensselink
Quoting Chris <[EMAIL PROTECTED]>: I've encountered a situation where under PHP 5 the file_get_contents() function will not work properly (actually not at all) if the php.ini Filesystem configuration parameter, allow_url_include is set to OFF. According to the PHP documentation allow_url_include

Re: [PHP] General use of rewrite / redirect

2008-03-18 Thread Thijs Lensselink
Quoting Aschwin Wesselius <[EMAIL PROTECTED]>: Per Jessen wrote: Yes, that's a very typical setup. When the form is processed, you send a 303 redirect to the "Thank you" page. That way, if the user hits the "back" arrow, he's taken back to the form URL, not the post URL. (which would then war

Re: [PHP] A Quick Reminder....

2008-03-13 Thread Thijs Lensselink
Quoting tedd <[EMAIL PROTECTED]>: At 10:06 AM -0400 3/13/08, Thijs Lensselink wrote: Quoting tedd <[EMAIL PROTECTED]>: At 11:14 AM -0400 3/12/08, Jason Pruim wrote: Up here in the great big hand (Michigan for those who don't know) during the winter we have so much snow o

Re: [PHP] A Quick Reminder....

2008-03-13 Thread Thijs Lensselink
Quoting Daniel Brown <[EMAIL PROTECTED]>: On Thu, Mar 13, 2008 at 10:06 AM, Thijs Lensselink <[EMAIL PROTECTED]> wrote: It's always the Dutch huh! :) It's because in our small ountry all traffic is stuck all day long. So when it finally moves it goes all directions

Re: [PHP] A Quick Reminder....

2008-03-13 Thread Thijs Lensselink
Quoting tedd <[EMAIL PROTECTED]>: At 11:14 AM -0400 3/12/08, Jason Pruim wrote: Up here in the great big hand (Michigan for those who don't know) during the winter we have so much snow on the ground that you just kind of drive where ever looks like road... Even if it means you have peop

Re: [PHP] PHP & Ajax progress bar

2008-03-12 Thread Thijs Lensselink
Quoting Daniel Brown <[EMAIL PROTECTED]>: On Wed, Mar 12, 2008 at 11:03 AM, Philip Thompson <[EMAIL PROTECTED]> wrote: On Mar 12, 2008, at 9:52 AM, Thijs Lensselink wrote: > Quoting Philip Thompson <[EMAIL PROTECTED]>: >> >> How do you pronounce your name?

Re: [PHP] PHP & Ajax progress bar

2008-03-12 Thread Thijs Lensselink
Quoting Philip Thompson <[EMAIL PROTECTED]>: On Mar 12, 2008, at 5:02 AM, Thijs Lensselink wrote: Thijs Lensselink 写道: How do you pronounce your name? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Well.. how to explain th

RE: [PHP] Comparing files

2008-03-12 Thread Thijs Lensselink
Quoting Andrés Robinet <[EMAIL PROTECTED]>: -Original Message- From: Edward Kay [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 7:13 AM To: mathieu leddet; php-general@lists.php.net Subject: RE: [PHP] Comparing files > -Original Message- > From: mathieu leddet [mailt

Re: [PHP] Comparing files

2008-03-12 Thread Thijs Lensselink
Quoting mathieu leddet <[EMAIL PROTECTED]>: Hi all, I have a simple question : how can I ensure that 2 files are identical ? How about this ? 8<-- function files_identical($path1, $path2) { return (file_get_contents($path1) == fi

Re: [PHP] PHP & Ajax progress bar

2008-03-12 Thread Thijs Lensselink
Quoting Shelley <[EMAIL PROTECTED]>: Thijs Lensselink 写道: Quoting Mr Webber <[EMAIL PROTECTED]>: I haven't' tried this yet ... so I would appreciate your feedback. -Original Message- From: Thijs Lensselink [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12

RE: [PHP] PHP & Ajax progress bar

2008-03-12 Thread Thijs Lensselink
Quoting Mr Webber <[EMAIL PROTECTED]>: I haven't' tried this yet ... so I would appreciate your feedback. -Original Message----- From: Thijs Lensselink [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 12, 2008 4:28 AM To: php-general@lists.php.net Subject: Re: [PHP] PHP &am

Re: [PHP] PHP & Ajax progress bar

2008-03-12 Thread Thijs Lensselink
Quoting Shelley <[EMAIL PROTECTED]>: Hi all, I'm searching some file upload progress bar code. But no good result was found. :( So is there anybody please be kind enough to show some code here? Great thanks. -- Regard, Shelley (http://phparch.cn) -- PHP General Mailing List (http://www.php.n

Re: [PHP] Storing values between multiple page forms

2008-03-11 Thread Thijs Lensselink
Quoting Matty Sarro <[EMAIL PROTECTED]>: Greets all! I am working on a minor project for work for entering inventory information for servers we ship out. Here is my plan: First page - Get client name, number of servers, and find number of miscellaneous equipment(s) being shipped (UPS's, monitor

Re: [PHP] Deprecated configure options

2008-03-08 Thread Thijs Lensselink
Ian M. Evans wrote: Was just upgrading to 5.2.5 and used the same configure line as I used for 5.2.0. Got the following notice: "Notice: Following unknown configure options were used: --enable-pic --with-dom --with-png --with-xml --enable-track-vars --enable-trans-sid --enable-yp --enable-mbst

  1   2   >