RE: [PHP] Getting browser resolution??

2003-08-22 Thread Thijs Lensselink
This is done by JavaScript or some other client side programming language. Remember that php is server side. -Oorspronkelijk bericht- Van: Bjarke Andersen [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 22 augustus 2003 14:48 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] Getting browser resolution?

RE: [PHP] Viewing PHP pages

2003-03-24 Thread Thijs Lensselink
Hey andy, I had this problem a while ago. And this is a server problem. This is what happens if the server is unable to execute the .php files. I can't look at my docs right now so can't give you a clue in how to fix this. Will have a look when i'm at home. Thijs -Oorspronkelijk bericht--

[PHP] string replace problem!!

2003-03-28 Thread Thijs Lensselink
Good day , I have the following string. ,slideimages[0],slideimages[1],slideimages[2] Wich starts with a ','. No my problem is i want to strip this first and only the first ','. i've tried $string = ",slideimages[0],slideimages[1],slideimages[2]"; $string = preg_replace('/^./','',$string,1); wi

RE: [PHP] string replace problem!!

2003-03-28 Thread Thijs Lensselink
ch Gray [mailto:[EMAIL PROTECTED] Verzonden: vrijdag 28 maart 2003 12:39 Aan: Thijs Lensselink; [EMAIL PROTECTED] Onderwerp: RE: [PHP] string replace problem!! > Good day , > > I have the following string. > ,slideimages[0],slideimages[1],slideimages[2] > Wich starts with a ',

RE: [PHP] If empty don't display...

2003-08-27 Thread Thijs Lensselink
Shouldn't it be if (empty($row9->prijs4pk)){ -Oorspronkelijk bericht- Van: Frank Keessen [mailto:[EMAIL PROTECTED] Verzonden: dinsdag 26 augustus 2003 22:14 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] If empty don't display... Hi there, Can you please have a look at the following code: I'v

RE: [PHP] date() function doesn't seem to work right...

2003-12-01 Thread Thijs Lensselink
Scott Fletcher wrote on maandag 1 december 2003 16:41: When I do this script, I didn't get a ":" and numbers in second. : --snip-- : date("Y-m-d H:i:s"); : --snip-- : : But when I do this script by adding a period to it, it worked : okay. --snip-- : date("Y-m-d H:i:s."); : --snip-- : : Thank

RE: [PHP] Re: strlen question

2004-07-23 Thread Thijs Lensselink
Well you want to check if the var is not set then don't show the title. // if item01 is not set if(!isset($_POST['item01'])) { // $title = ""; } msa wrote: > sorry, i'm not a coder.that means nothing to me.. > > try isset() how? > > "Mr. Bogomil Shopov" <[EMAIL PROTECTED]> wrote in me

[PHP] phpize missing files

2004-07-26 Thread Thijs Lensselink
or `configure.in' is required I checked to see if /usr/local/lib/php/build exists but it doesn't. Looks to me php didn't install the devel files. I searched some news groups and it looks like the are more people with this problem. But i havn't seen any answer. $ ./configure --

RE: [PHP] Query Results Question

2004-08-04 Thread Thijs Lensselink
It should be ` (back-ticks) not single quotes SELECT `ID`, `Vacancy Role`, `Vacancy Salary`, `Vacancy Location`, `Vacancy Type` FROM vacancy_details WHERE Publish = 'Yes' But you don't really need the back-ticks! Thijs Ford, Mike [LSS] wrote: > -Original Message- > From: Harlequin

RE: [PHP] Error message

2004-08-23 Thread Thijs Lensselink
define constant with "DB_PORTABILITY_ALL"; Pete wrote: > Hi List, > > I am getting a strange error notice for the following config file: > > /** > * Database > */ > $dsn = array( > 'phptype' => 'mysql', > 'username' => 'root', > 'password' => 'secretpass', > 'hostspec' => 'loca

RE: [PHP] PID needed to hammer squid

2004-08-27 Thread Thijs Lensselink
To get the pid id: raditha dissanayake wrote: > Mário Gamito wrote: > >> Hi, >> >> I need to kill (squid) -D >> pidof (squid) -D gives an error :( >> > man pidof > we have nowed moved to off topic territory. > > > -- > Raditha Dissanayake. > -

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] 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] 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-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] 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] 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 + 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] 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] 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] 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] 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

[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] 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

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] "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] 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] 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] 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] 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] 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] 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-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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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] 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 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 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] 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] 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] 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] 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: 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] 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] Button ???

2004-04-23 Thread Thijs Lensselink
Brent Clark wrote on vrijdag 23 april 2004 10:07: > Hi > I a few minutes ago I came across something interesting > > I subscribed to www.phparch.com and when clicking the final button for > "Complete Order" > The button went to to "dead" state, whereby you could not click on it > again. It just s

RE: [PHP] help needed with tiger tree hashes

2004-06-04 Thread Thijs Lensselink
check: http://www.cs.technion.ac.il/~biham/Reports/Tiger/testresults.html The results you posted seem to be right. Carl S. in 't Veld wrote on vrijdag 4 juni 2004 0:52: > I am trying to generate tiger tree hashes the same way as > directconnect does, but I am failing. > > I checked the output fr

RE: [PHP] MySQL & PHP

2004-06-04 Thread Thijs Lensselink
Looks like the mysql module for php is not loaded. Is extension=mysql.so included in the php.ini. Nunners wrote on vrijdag 4 juni 2004 14:07: > I've just installed Fedora Core 2, including I believe both PHP & > MySQL.. However whenever I try and run something that connects to > MySQL, it comes u

RE: [PHP] Passing args to a PHP script from the command line

2004-06-10 Thread Thijs Lensselink
Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 12:58: > Hi All, > > Can anyone tell me how to pass arguments to a PHP script from the > command line? I know I need to use the -args option but how exactly, > I have tried the following... > > /usr/bin/php myscript.php -args key=value You

RE: [PHP] Passing args to a PHP script from the command line

2004-06-10 Thread Thijs Lensselink
Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 14:27: >> Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 12:58: >> >>> Hi All, >>> >>> Can anyone tell me how to pass arguments to a PHP script from the >>> command line? I know I need to use the -args option but how >>> exactly, I h

RE: [PHP] Passing args to a PHP script from the command line

2004-06-10 Thread Thijs Lensselink
Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 15:11: >> Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 14:27: >> Phil Ewington - 43 Plc wrote on donderdag 10 juni 2004 12:58: > Hi All, > > Can anyone tell me how to pass arguments to a PHP script from the >

RE: [PHP] PHP 4 and PHP 5 on same windows server

2004-06-17 Thread Thijs Lensselink
Well you can compile php4 as apache module (.so) and load it the normal way. Then you can compile php5 as a cgi binary and load it in a virtual host like this: ScriptAlias /cgi-bin/ /var/www/cgi-bin/ Action php5-script /cgi-bin/php5/php AddHandler php5-script .php .phtml Options +

Re: [PHP] Looking for xslt extension that was part of php4

2007-08-14 Thread Thijs Lensselink
On Tue, 14 Aug 2007 15:13:48 +0200, Per Jessen <[EMAIL PROTECTED]> wrote: > I am moving a web application from php4 to php5, and have just stumbled > over the lack of the xslt() extension in php5. The manual says it's > been moved to PECL = pecl.php.net, but I can't find it there. Does > anyone k

Re: [PHP] Looking for xslt extension that was part of php4

2007-08-14 Thread Thijs Lensselink
On Tue, 14 Aug 2007 15:13:48 +0200, Per Jessen <[EMAIL PROTECTED]> wrote: > I am moving a web application from php4 to php5, and have just stumbled > over the lack of the xslt() extension in php5. The manual says it's > been moved to PECL = pecl.php.net, but I can't find it there. Does > anyone k

Re: [PHP] apache/php with sybase12.5

2007-08-17 Thread Thijs Lensselink
On Fri, 17 Aug 2007 16:00:35 +0300, "ROUKOS Michel" <[EMAIL PROTECTED]> wrote: > Hi, > > I am integrating httpd-2.0.59 with php-5.2.1 and Sybase 12.5 on a > solaris 8 machine. I followed these steps: > Install apache: > > ./configure --prefix=/usr/local/apache2 --enable-so > make > make install >

Re: [PHP] Regular Expression just one step away from what I need....

2007-08-17 Thread Thijs Lensselink
Jay Blanchard wrote: > Given the string 'foo''bar''glorp' (all quotes are single quotes)I had > hoped to find a regular expression using preg_match that would return an > array containing just those words without having to go through > additional gyrations, like exploding a string to get an array.

Re: [PHP] apache/php with sybase12.5

2007-08-18 Thread Thijs Lensselink
ROUKOS Michel wrote: > Hi, > I installed libtool 1.5 and tried again. The libphp.so was not created > as well. > I tried also to run with > ./configure --with-apx2=/usr/local/apache2/bin/apxs > make > make install > > same results: libphp5.so is not created under modules/ directory. > > Thanks an

Re: [PHP] is this a bug?

2007-08-20 Thread Thijs Lensselink
On Mon, 20 Aug 2007 02:24:49 -0300, Augusto Morais <[EMAIL PROTECTED]> wrote: > I dont know what is happening... > > > Can somebody clarify the situation for me? > > > here is the situation: > >i have 3 files: > > class.php > foo.php > bar.php > > // - class.php > class globalactions { >

Re: [PHP] Pass $_GET to php cli.

2007-08-20 Thread Thijs Lensselink
On Mon, 20 Aug 2007 14:15:47 +0200, N0K <[EMAIL PROTECTED]> wrote: > Hello. > > I trying something without results. > > I have a zend optimized php script. This script only request you a > password, and then you go to admin page. > If a do in a browser: > http://www.example.com/administration.php

Re: [PHP] Re: Pass $_GET to php cli.

2007-08-20 Thread Thijs Lensselink
On Mon, 20 Aug 2007 14:41:03 +0200, Per Jessen <[EMAIL PROTECTED]> wrote: > N0K wrote: > >> So, im trying to the the same in php command line >>=20 >> i have test with many things, but i dont know how to specify this >> variable to the php cli, >> some tested example: >>=20 >> php administration.p

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Thijs Lensselink
On Fri, 24 Aug 2007 07:57:48 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > Dear all > > Im using nusoap to create a cleint and I am having a small issue but its a > fairly large one because I cant get the correct XML to send. > > I have a scenario as follows: > > My client: > > $wsdlfile="

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Thijs Lensselink
On Fri, 24 Aug 2007 11:53:12 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > >> It's probably better to ask on a NuSOAP list. >> >> The call method needs an array with parameters as far as i remember. >> But i never use the call method anyway. I always go for the send method. >> >> First create

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Thijs Lensselink
On Fri, 24 Aug 2007 12:39:06 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > > > Thijs Lensselink wrote: >> On Fri, 24 Aug 2007 11:53:12 +0200, Angelo Zanetti <[EMAIL PROTECTED]> > wrote: >> >>>> It's probably better to ask on a NuSOA

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Thijs Lensselink
On Fri, 24 Aug 2007 13:55:29 +0200, Angelo Zanetti <[EMAIL PROTECTED]> wrote: > > > Thijs Lensselink wrote: >> On Fri, 24 Aug 2007 12:39:06 +0200, Angelo Zanetti <[EMAIL PROTECTED]> > wrote: >> >>> Thijs Lensselink wrote: >>> >>>

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Thijs Lensselink
Angelo Zanetti wrote: > > > Thijs Lensselink wrote: >> On Fri, 24 Aug 2007 07:57:48 +0200, Angelo Zanetti >> <[EMAIL PROTECTED]> wrote: >> >>> Dear all >>> >>> Im using nusoap to create a cleint and I am having a small issue but >&

Re: [PHP] Heredocs

2007-08-29 Thread Thijs Lensselink
On Wed, 29 Aug 2007 13:01:07 +0200, RodgerW <[EMAIL PROTECTED]> wrote: > Are heredocs supported by PHP 5.2.3 running in WinXP/Apache2.2.4 ? > I prrint via heredocs and its not working. Print with single quotes and > double quotes work. > > > string init method 3: hered

Re: [PHP] Maximum function nesting level of '100' reached

2007-10-26 Thread Thijs Lensselink
Jochem Maas wrote: > T.Lensselink wrote: > > > ... > > >>> php -r 'function foo() { static $x = 1; echo "foo ", $x++, "\n"; foo(); } >>> foo();' >>> >>> ... >>> >>> Running your code shows that there is a limit. Although it doesn't throw >>> an >>> error.

Re: [PHP] building php with DB extension without installing DB locally

2008-01-22 Thread Thijs Lensselink
Quoting Jochem Maas <[EMAIL PROTECTED]>: [EMAIL PROTECTED] schreef: Quoting Jochem Maas <[EMAIL PROTECTED]>: hi guys, I want to build php with firebirdDB (ibase) extension (for the purposes of this exercise it could just as well be mysql) without installing firebird on the local machine

Re: [PHP] including files outside of document root

2008-01-23 Thread Thijs Lensselink
Quoting Jason Pruim <[EMAIL PROTECTED]>: On Jan 22, 2008, at 3:57 PM, Jason Pruim wrote: Hi everyone, Been doing some reading on security and have decided that I should be storing my include files outside of the document root... Which I understand how to do it, but what I'm wondering,

Re: [PHP] Functions are driving me crazy....

2008-01-25 Thread Thijs Lensselink
Jason Pruim wrote: Hi everyone :) So partly to get an answer, and partly to boost my post rankings for the week I have a question. I am attempting to write an authentication function which would query a database, check the username/password and return true if it matches. If it doesn't match

Re: [PHP] Functions are driving me crazy....

2008-01-25 Thread Thijs Lensselink
Nathan Nobbe wrote: On Jan 25, 2008 3:35 PM, Thijs Lensselink <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Change: }return $authenticated; to return $authenticated; } else it will never return the value from the function. But it will alw

RE: [PHP] URL modification

2008-02-22 Thread Thijs Lensselink
Quoting Xavier de Lapeyre <[EMAIL PROTECTED]>: Thnks, H... made a quick look into it. Seems to be apache compatible. I'm designing a site to be hosted on an IIS Server. Does it still works there? Regards, Xavier de Lapeyre Web Developer Enterprise Data Services 24, Dr Roux Street, Rose Hil

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

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] 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] 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]>: 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] 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] 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] 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] 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] 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] 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 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] 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] 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] 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] 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] 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] 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] 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 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

  1   2   >