[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-06 Thread Jan Ehrhardt
rg/trac/ticket/4093 >>> >> Is this a known issue? > >Is there anything I can do? Could you test if your problems are solved when you use the latest opcache from github? https://github.com/zendtech/ZendOptimizerPlus Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-02 Thread Jan Ehrhardt
Jan Ehrhardt in php.general (Mon, 02 Sep 2013 10:57:14 +0200): >Could you try to add a function_exists check to >libs/upgradephp/upgrade.php? > >This at the function declaration of _json_encode: >if (!function_exists('_json_encode')) { function _json_encode($var, ... &g

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-02 Thread Jan Ehrhardt
ling itself a lot of times and that opcache is trailing behind (or something like that). Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-01 Thread Jan Ehrhardt
oading data...' and my Apache log showed a segfault. So, if it was no known issue it is confirmed now. Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: PHP-5.5.2 +opcache segfaults with Piwik

2013-09-01 Thread Jan Ehrhardt
19.569714 2013] [core:notice] [pid 25411] AH00052: child pid 25450 exit signal Segmentation fault (11) However, nothing special is displaying on the page. You have to grep your Apache error_log to know that it happens. How did you notice? Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How can I submit more than 2000 items of data?

2013-08-19 Thread Jan Ehrhardt
Mihai Anghel in php.general (Mon, 19 Aug 2013 11:30:01 +0300): >Check this http://www.php.net/manual/en/ini.core.php#ini.post-max-size Keyword: max_input_vars. Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] fpdf problem?

2013-08-09 Thread Jan Ehrhardt
10.0.9200.16635, Update version 10.0.7, W7 Pro 64-bits. Adobe Reader XI, version 11.0.3. Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: OPcache Instead of APC Now?

2013-07-30 Thread Jan Ehrhardt
many issues under PHP 5.5. For APC's data caching you should take a look at APCU (APC without the opcode cache): https://github.com/krakjoe/apcu Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] 64bit php5.5.0beta3 on Windows

2013-04-25 Thread Jan Vávra
HP_INT_MAX."\n"; 4 2147483647 This is weird. I've expected working filesize and values 8, 2 ^63. Jan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Extremely slow cURL curl_exec execution/response with 5.4.13

2013-03-22 Thread Jan Ehrhardt
Jan Ehrhardt in php.general (Fri, 22 Mar 2013 10:40:56 +0100): >Ron in php.general (Thu, 21 Mar 2013 17:25:39 -0500): >>When upgrading from 5.4.12 to 5.4.13, cURL curl_exec calls are taking >>something like 700ms to complete. (Even to a file on the same server.) >>If I

[PHP] Re: Extremely slow cURL curl_exec execution/response with 5.4.13

2013-03-22 Thread Jan Ehrhardt
cted. Anyone else having issues or have suggestions as to how to >debug/proceed? > >PHP 5.4.13 on Apache 2.4.4 on Windows Server 2008 R2 Could you try the php_curl.dll from my build? See http://www.apachelounge.com/viewtopic.php?t=5233 for the right version. Jan -- PHP General Mailing Lis

[PHP] Re: [PHP-DEV] PHP 5.3.22RC1 and 5.4.12RC1 Released for Testing!

2013-02-19 Thread Jan Ehrhardt
Stas Malyshev in php.internals (Tue, 19 Feb 2013 15:35:54 -0800): >> Johannes Schlüter in php.internals (Thu, 31 Jan 2013 16:00:17 +0100): >>> If no critical issues is found in this RC, the final version will be >>> released in two weeks. >> >> Just curious: wh

[PHP] Re: [PHP-DEV] PHP 5.3.22RC1 and 5.4.12RC1 Released for Testing!

2013-02-19 Thread Jan Ehrhardt
Johannes Schlüter in php.internals (Thu, 31 Jan 2013 16:00:17 +0100): >If no critical issues is found in this RC, the final version will be >released in two weeks. Just curious: what is keeping 5.3.22 and 5.4.12 from being released? Are there any issues? Jan -- PHP General Mailing List

Re: [PHP] Undefined Variables

2013-02-14 Thread Jan Ehrhardt
d store it in the watchdog file. Then the performance will be degraded. Jan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Configuration Issue (Error 310 ERR_TOO_MANY_REDIRECTS)

2013-01-09 Thread Jan Ehrhardt
Ken Kixmoeller in php.general (Wed, 9 Jan 2013 14:25:33 -0600): >I have searched for 2 days trying to find references for this. I see a lot >of PHP-driven applications having the same problem (mostly blogs), but no >"under the hood" fixes. It might be a rewrite rule that rewri

[PHP] Php application with session used in a cluster

2012-12-12 Thread Jan Vávra
configured to something else. And the last possibility is: 4. Can apache mod_proxy_balancer stick cookies by the session cookie name? Each app server can have its own session.cookie_name=PHPSESSION-X. But it is a query for a different forum... Can anybody give me an advice? Thanks. Jan.

Re: [PHP] Serving an image

2012-10-15 Thread Jan Ehrhardt
viper in php.general (Mon, 15 Oct 2012 17:58:06 +0200): >then in your email you can put: >http://myurl.com/image.php?id=5"; /> Many receiving e-mail clients will not show external images. External images are used by spammers to trach if a message is read. Jan -- PHP General Mail

Re: [PHP] Fwd: ezmlm warning

2011-07-20 Thread Jan Reiter
Hi, I'm in Germany and I got it, too. I get those about once in 6 month ... nothing to worry about, is it?? Regards Original-Nachricht > Datum: Wed, 20 Jul 2011 07:12:58 -0400 > Von: Tim Thorburn > An: php-general@lists.php.net > Betreff: Re: [PHP] Fwd: ezmlm warning > On 7

[PHP] Bug #52782: DOMDocument subclass forgotten using ->ownerDocument after closure

2010-10-05 Thread Jan Moesen
it only seems to happen with that closure. I have checked versions 5.3.1, 5.3.2, 5.3.3 and now the latest 5.3.4 snapshot compiled with './configure && make'. More details and a test case: http://bugs.php.net/bug.php?id=52782 Jan -- PHP General Mailing List (http://www.php.ne

Re: [PHP] two questions on serverside validation

2010-08-27 Thread Jan G.B.
quot;value2", but this will not have any impact for this snippet of code. This snipped of code just set's a checkbox to being checked when the value is the one expected. That's fine, so far. A classic whitelist. But make sure the other code which we don't see - does not out

Re: [PHP] two questions on serverside validation

2010-08-27 Thread Jan G.B.
2010/8/27 Jan G.B. : > But make sure the other code which we don't see > - does not outpot any _POST / _GET / _REQUEST / _COOKIE variables > without encoding the contents (f.e. htmlspecialchars), or > - does not send and user supplied data without scaping the sb-related >

Re: [PHP] two questions on serverside validation

2010-08-25 Thread Jan G.B.
2010/8/25 Marc Guay : >> function html($text) >> { >>        return htmlentities($text, ENT_QUOTES, 'UTF-8'); >> } >> >> function htmlout($text) >> { >>        return html($text); >> } > > Possibly irrelevant, and definitely not related to your questions, but > is it just me or is htmlout() a usele

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Jan G.B.
2010/8/24 Peter Lind : > On 24 August 2010 16:25, Jan G.B. wrote: >> 2010/8/24 Bob McConnell : >>> From: Peter Lind >>> >>>> On 24 August 2010 15:43, Gary wrote: >>>>> Jan G.B. wrote: >>>>> >>>>>> The

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Jan G.B.
2010/8/24 Bob McConnell : > From: Peter Lind > >> On 24 August 2010 15:43, Gary wrote: >>> Jan G.B. wrote: >>> >>>> The weakness of MD5 is mainly because MD5 collisions are possible. >>>> That means, that different strings can have the sam

Re: [PHP] mysqldump

2010-08-24 Thread Jan G.B.
2010/8/18 Daniel P. Brown : > On Tue, Aug 17, 2010 at 15:19, tedd wrote: >> >> Bingo -- that worked. >> >> It's interesting that a space is optional between -u and user, but required >> to be absent between -p and password. Seems not symmetrical to me. > >    The command I sent was because - as I

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-24 Thread Jan G.B.
2010/8/19 Andre Polykanine : > Hello Nathan, > > Sorry, could you provide any links to read for a security noob?) > Actually, I know that the md5 is decryptable (there are bases with > words encrypted in md5), but I thought the SHA1 was secure... > -- > With best regards from Ukraine, > Andre > ---

Re: [PHP] SQL Syntax [improved SQL]

2010-06-16 Thread Jan Reiter
FROM tmp_size JOIN tmp_qi USING(pid) JOIN pictures USING(pid); DROP temporary table if exists tmp_size; DROP temporary table if exists tmp_qi; This takes 0.12 seconds to return, which is quite bearable for now. Thanks again for all your input! Regards, Jan -- PHP General Mailing List (http://

RE: [PHP] SQL Syntax

2010-06-16 Thread Jan Reiter
emporary tables will speed things up a bit. I'm testing that next. Another attempt could be to switch DB engines from InnoDB to MyISAM ... I'll see what it results in. :D. This is just a private test on a sandbox machine. I earn my living flying airliners, not programming. Thanks and Reg

RE: [PHP] Re: SQL Syntax

2010-06-16 Thread Jan Reiter
or integer values | val_vc(NULL): a field for string values | my class decides wich of these value types to use, the other is NULL My class emulates a foreign_key behavior on aid between picture_attribute and picture_attrib_rel. THANK YOU ALL!! Regards, Jan -- PHP General Ma

[PHP] SQL Syntax

2010-06-15 Thread Jan Reiter
p, if you know what I mean. AND THAT DRIVES ME CRAZY!! I appreciate your thoughts on this. Regards, Jan

RE: [PHP] SQL Syntax

2010-06-15 Thread Jan Reiter
option, but that would immensely decrease flexibility. I guess I have to keep on cooking my brain on this ;-) I think I did it before, a few years ago when MySQL didn't support views yet, but I can't find that stuff ... @Dan: Thanks for forwarding my mail to the MySQL List! Re

Re: [PHP] regular expression

2010-06-02 Thread Jan G.B.
2010/6/1 Peter Lind : > On 1 June 2010 17:33, Ashley Sheridan wrote: >> On Tue, 2010-06-01 at 16:31 +0100, Richard Quadling wrote: >> >>> $re1 = '/^[a-z]++$/i'; >>> $re2 = '/^[a-z ]++$/i'; >>> >>> >>> >>> -- >>> - >>> Richard Quadling >>> "Standing on the shoulders of some very clever giants!"

Re: [PHP] NetBeans Question

2010-05-31 Thread Jan G.B.
Hi there. I'm also a User of the Netbeans IDE and I can tell you the following: - Netbeans is the only IDE who can load very large PHP scripts (f.e. >1mb PHP Script with a multiple of 10thousands of lines) with syntax highlighting and SUPERB code completion. It works with include files, you can

Re: [PHP] Can't find my error

2010-05-07 Thread Jan G.B.
2010/5/6 David McGlone : > On Wednesday 05 May 2010 16:19:35 Paul M Foster wrote: >> On Wed, May 05, 2010 at 01:03:41PM -0400, David McGlone wrote: >> > On Wednesday 05 May 2010 12:51:00 Ashley Sheridan wrote: >> > > On Wed, 2010-05-05 at 12:55 -0400, David McGlone wrote: >> > > > I've checked and

Re: [PHP] Weird problem with is_file()

2010-04-26 Thread Jan G.B.
2010/4/25 Michelle Konzack : > Hi, > > I have a code sniplet which does not work and I do not know why: > > 8<-- >  $isfile=shell_exec("ls /tmp/tdphp-vserver/SESSION_" . > $_SERVER['REMOTE_ADDR'] . "_" . $_COOKIE['VSERVER_AUTHUSER

Re: [PHP] escape \n

2010-04-23 Thread Jan G.B.
You can also just send out the correct Header for plain text. But your HTMl will not be interpreted then.. So this makes only sense if you actually want plain text as the output format. header("Content-type: text/plain; charset=utf8"); echo "foo\nbar"; Regards 2010/4/23 Nick Balestra : > Thanks

[PHP] htmlentitites ENT_QUOTES in HTML attributes?

2010-04-23 Thread Jan G.B.
Hi List, I just figured, that the Browsers on my system do interpret ' inside href or onclick attribute as a plain '. Imagine the user input is the following line: param2" foo';);alert(document.cookie);alert(' Which is being written by the script like that: test USER_INPUT is sent through htm

Re: [PHP] Basic switch statement

2010-04-16 Thread Jan G.B.
2010/4/16 Adam Richardson : > On Thu, Apr 15, 2010 at 5:55 PM, Jason Pruim > wrote: > >> >> On Apr 15, 2010, at 8:55 AM, tedd wrote: >> >>  At 4:13 PM -0400 4/14/10, Al wrote: >>> Incidentally, about formatting scripts, one of the reasons I like phpEdit is that it has a terrific code bea

Re: Re[2]: [PHP] Still searching for a bugtracking system

2010-04-01 Thread Jan G.B.
2010/3/30 Andre Polykanine : > Hello Jan, > > And what do you use then?) > Sadly, I'm bound to use what I dislike. Mantis. ;) It's not my decision and in our business model there's no major benefit in switching the software, at this point. I can live with it. Regard

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Jan G.B.
2010/3/30 Nathan Rixham : > Jan G.B. wrote: >> 2010/3/29 Nathan Rixham >> >>> Jan G.B. wrote: >>>> 2010/3/29 Nathan Rixham >>>> >>>>> Jan G.B. wrote: >>>>>> Top posting sucks, so I'll answer the post somewher

Re: [PHP] Still searching for a bugtracking system

2010-03-30 Thread Jan G.B.
2010/3/30 Alex Major > > Surely if it's not suitable for your situation, it's not the best? :) > > Mantis is what I'd recommend and believe has already been recommend to you. > Runs using PHP and MySQL, it's flexible for public or private projects, > multiple projects etc. > > I do agree with you

Re: [PHP] how to provide download of files mow in documentroot

2010-03-30 Thread Jan G.B.
2010/3/29 Nathan Rixham > Jan G.B. wrote: > > 2010/3/29 Nathan Rixham > > > >> Jan G.B. wrote: > >>> Top posting sucks, so I'll answer the post somewhere down there. > >>> > >>> > >>> 2010/3/29 Devendra Jadhav &g

Re: [PHP] how to provide download of files mow in documentroot

2010-03-29 Thread Jan G.B.
2010/3/29 Nathan Rixham > Jan G.B. wrote: > > Top posting sucks, so I'll answer the post somewhere down there. > > > > > > 2010/3/29 Devendra Jadhav > > > >> Then you can do file_get_contents within PHP. or any file handling > >> mechanis

Re: [PHP] how to provide download of files mow in documentroot

2010-03-29 Thread Jan G.B.
Top posting sucks, so I'll answer the post somewhere down there. 2010/3/29 Devendra Jadhav > Then you can do file_get_contents within PHP. or any file handling > mechanism. > >> On Mon, Mar 29, 2010 at 1:00 AM, ebhakt wrote: > >>> Hi > >>> i am writing a web application in php > >>> this webap

Re: [PHP] bug tracking system

2010-03-29 Thread Jan G.B.
2010/3/29 Anshul Agrawal > There is something new based on Trac but written in PHP. > > mtrack (http://bitbucket.org/wez/mtrack/wiki/Home) > > It is written by one of the PHP Core Developers (Wez Furlong). May be you > want to try it out. > > And there's something quite new that's aimed to be lik

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-24 Thread Jan G.B.
2010/3/24 Marten Lehmann > Hello, > > > dan...@daniel-laptop:~$ php test.php> /dev/null >> Error 1 >> Error 2 >> dan...@daniel-laptop:~$ ./src/php-5.2.12/sapi/cli/php test.php> >> /dev/null >> Error 1 >> Error 2 >> > > well, using php-cli instead of php-cgi, this finally worked: > > fwrite(ST

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Jan G.B.
2010/3/23 Daniel Egeberg > On Tue, Mar 23, 2010 at 11:47, Marten Lehmann wrote: > > Hello, > > > > I found different code examples like this, which use the file handle > STDERR > > just like this: > > > > > fwrite(STDERR, "hello\n"); > > ?> > > > > Also, the PHP documentation of input/output st

Re: [PHP] constants STDOUT, STDERR, STDIN not working in 5.2.x?

2010-03-23 Thread Jan G.B.
> Warning: fwrite(): supplied argument is not a valid stream resource > in /test.php on line 4 > > How can I access the original STDERR handle? The constant should be there, > but does not exist. > > regards > Marten > > Hi, I can reproduce it with some differences.

Re: [PHP] PHP SMTP Mailers

2010-03-20 Thread Jan G.B.
2010/3/20 King Coffee > Hi, > > I'm executing a third-parity standard PHP application on a Windows IIS 7 > shared hosting server. > > I need to convert, or use, a SMTP mailer service. I found two SMTP PHP > scripts - I think may work. > > The sourceforge.net PHPMailer project and the pear.php.ne

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 Ashley Sheridan > On Thu, 2010-03-18 at 18:09 +0100, Jan G.B. wrote: > > 2010/3/18 Ashley Sheridan > > > I'd rather have short tags turned off than remember each time that I have > > to keep breaking up the < and ?php before I output it in-c

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 Ashley Sheridan > I'd rather have short tags turned off than remember each time that I have > to keep breaking up the < and ?php before I output it in-case the parser > gets confused. > You don't need to break anything up. It's perfectly valid and without problems: '; ?>

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 Ashley Sheridan > Technically, PHP isn't embedded in any language; it's the other way around. > > XML and PHP are used together more often than you might realise. Consider > Ajax and RSS, which are becoming more and more popular. Also, there are > sites out there that are almost entirel

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 tedd : > Calling it "ranting" or "religious" unjustly demeans the discussion and is > inflammatory. > In all of this, I've simply said it's your choice. What I said was: *persons ranting about short open tags* *are just like some religious people * I did not address you. On the other h

Re: [PHP] Re: PHP in HTML code

2010-03-18 Thread Jan G.B.
2010/3/18 Pete Ford : > On 17/03/10 18:59, Tommy Pham wrote: >> >> On Wed, Mar 17, 2010 at 11:01 AM, Rene Veerman  wrote: >>> >>> hmm.. seems easier to me to push a filetree of .php's with>> the str_replace(), than it is to get all the>> with your wishes, which may not apply to their situation ;-)

Re: [PHP] PHP MySQL Insert Statements

2010-03-16 Thread Jan G.B.
2010/3/12 Martine Osias > Hi, > > My insert statements on this web page don't execute. The select statements > do work. This tells me that the database connection is working. The username > and password are the administrator's. What else could prevent the insert > statements from executing? > > T

Re: [PHP] A better php document?

2009-10-28 Thread Jan Marques
g if some body can point me some better PHP > document? > > http://www.php.net/manual/en/ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- met vriendelijke groet, kind regards, Jan Marques ---Disclaime

RE: [PHP] get an object property

2009-09-12 Thread Jan Reiter
function getA(){return $this->arr['a'];} } $o = array( new o(1), new o(2) ); if ( end($o)->getA() > 1 ) { echo "yeah"; } Which works fine as well ... Regards, jan -Original Message- From: Tom Worster [mailto:f...@thefsb.org] Sent: Saturday, September 1

RE: [PHP] preg_match()

2009-09-09 Thread Jan Reiter
x27; texid'][$i]); } unset($matches); return true; } Regards -Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: Wednesday, September 09, 2009 7:57 PM To: Jan Reiter Cc: php-general@lists.php.net Subject: [PHP] Re: preg_match()

RE: [PHP] preg_match()

2009-09-09 Thread Jan Reiter
trying to avoid. But maybe that's what I have to after all if there is no other way. Thanks & Regards, Jan -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Wednesday, September 09, 2009 6:21 PM To: Jan Reiter Cc: php-general@lists.php.net Subject: R

[PHP] preg_match()

2009-09-09 Thread Jan Reiter
( 3 tex_idxs ( 1 2 ) 0 0 1 0 1 ) prim_state ( 3 tex_idxs ( 1 2 ) 0 4 1 0 1 ) [.] ) Thank You! Regards, Jan

Re: [PHP] MySQL Queries in PHP

2009-07-14 Thread Jan G.B.
2009/7/14 Tom Chubb > 2009/7/14 Eddie Drapkin > > > On Tue, Jul 14, 2009 at 2:29 AM, Tom Chubb wrote: > > > Hi List, > > > Just wanted to pick your brains please? > > > I'm trying to standardise on the way I query databases and move away > from > > > the Dreamweaver built-in functions (which I k

Re: [PHP] How to authnticate and use contents from ${HOME}

2009-07-07 Thread Jan G.B.
2009/7/6 Isaac Dover > Hi Chantale, as Bastien mentioned, a preconfigured package might be the > best > way to go. Wikipedia has more information: > > http://en.wikipedia.org/wiki/List_of_LAMP_Packages > > What are you wanting to build in your interface? > > - Isaac > > On Mon, Jul 6, 2009 at 9:

Re: [PHP] Browser Alert

2009-07-07 Thread Jan G.B.
2009/7/4 tedd > > So, if you're having problems with Safari 4.0 on Mac OSX uploading files, > you're not alone. > s/uploading files// ;) To make this posting useful: The thing might be related to this Bug http://www.webmasterworld.com/macintosh_webmaster/3300569.htm But, since you did post o

Re: [PHP] fopen() on a network share?

2009-06-16 Thread Jan G.B.
2009/6/16 Andrew Ballard > On Mon, Jun 15, 2009 at 7:24 PM, Shawn McKenzie > wrote: > > Brian Dunning wrote: > >> Extra info, in case needed: my code says > >> > >> fopen('\\servername\sharename\folder\file.xml', 'w'); > >> > >> and it returns "Failed to open stream, no such file or directory". I

Re: [PHP] Preventing XSS Attacks

2009-06-11 Thread Jan G.B.
2009/6/11 HallMarc Websites > > > > -Original Message- > > From: tedd [mailto:tedd.sperl...@gmail.com] > > Sent: Thursday, June 11, 2009 9:28 AM > > To: PHP-General List > > Subject: Re: [PHP] Preventing XSS Attacks > > > > At 7:08 PM +0100 6/10/09, Ashley Sheridan wrote: > > > > > >So so

Re: [PHP] Re: SHOULD I NOT USE "ELSE" IN IF STATEMENTS....?

2009-06-11 Thread Jan G.B.
2009/6/10 Clancy > On Tue, 09 Jun 2009 12:22:22 -0400, rob...@interjinn.com (Robert Cummings) > wrote: > > >Craige Leeder wrote: > >> I'm not sure I agree with NEVER using else. Sometimes else is a very > >> logical way to organize code. However, it should not be used for data > >> validation IE:

Re: [PHP]Cannot output the same data from text file in PHP

2009-05-14 Thread Jan G.B.
You could even make it shorter, if you don't need the line numbers anyway: 2009/5/14 Peter Ford : > Moses wrote: >> Hi Folks, >> >> I have a written a script in PHP which outputs the result from a text file. >> The PHP script is as follows: >> >> > $alldata = file("result.txt"); >> echo ""; >>

Re: [PHP] irrational behavior

2009-05-12 Thread Jan G.B.
2009/5/12 PJ : > Could somebody please explain this? > When the line - sort($category) is commented out, the output returns > Notice: Undefined offset: in the line "36" for all the repeats (29 in > this case) Sure thing if you consider this: > The code below: > $SQL = "SELECT name >FRO

Re: [PHP] Re: SQL Injection - Solution

2009-05-07 Thread Jan G.B.
What about declare, cast, unhex, exec etc.? You Replace everything with "" isn't so good, I believe. Others mentiond it before, that *, =, select, from ETC. are valid words and characters in an other context. Anayse some attacks before trying to defend them. Injections can be heavily db-dependent,

Re: [PHP] Re: elseif statements

2009-05-06 Thread Jan G.B.
Hi Gary, 2009/5/5 Gary : > Jan > > Thanks for your note. > > So your wrote: > > $x = (3)*(2) makes no sense. > $x = 3 * 2 works, as > $x = (3 * 2) does, too. > But this is not an error at all. ^^ > > In the first example($x

Re: [PHP] elseif statements

2009-05-05 Thread Jan G.B.
2009/5/5 tedd : > At 10:13 AM -0400 5/5/09, Robert Cummings wrote: >> >> On Tue, 2009-05-05 at 10:05 -0400, Robert Cummings wrote: >>> >>>  On Tue, 2009-05-05 at 09:49 -0400, tedd wrote: >>>  > At 2:57 PM -0400 5/4/09, Gary wrote: >>>  > >I am trying to get this to work, however it only reads the s

Re: [PHP] Re: elseif statements

2009-05-05 Thread Jan G.B.
000)) { > echo 'While it appears you may enjoy some savings, the > dollar amount may not reach the threshold required for action. If property > values in your area continue to decline, you may wish to revisit this issue > again next year.'; > } > elseif(isset($chester_assess_difference)

Re: [PHP] Non-Object errors

2009-04-28 Thread Jan G.B.
2009/4/28 Miller, Terion : > Can someone help with how to make this work, trying to get the number of > rows but am getting the "trying to get property of non-object" > > Code- > > $query = "select blah, blah, blah from table where ".$type." like > '%".$name."%'"; > > $result = mysq

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

2009-04-28 Thread Jan G.B.
2009/4/28 Luke : > > > 2009/4/28 Jan G.B. >> >> 2009/4/28 Jay Blanchard : >> > Our company wants to do e-mail verification and does not want to use the >> > requests / response method (clicking a link in the e-mail to verify the >> > address), which

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

2009-04-28 Thread Jan G.B.
2009/4/28 Jay Blanchard : > Our company wants to do e-mail verification and does not want to use the > requests / response method (clicking a link in the e-mail to verify the > address), which as we all know is the only way you can be truly sure. I > found this; > > http://verify-email.org/ > > Whi

Re: [PHP] Re: Help with scandir()

2009-04-27 Thread Jan G.B.
2009/4/26 Nathan Rixham : > Deivys Delgado Hernandez wrote: >> >> Hi, >> I'm having problems when i try to use the function scandir()  in a Novell >> Netware Volumen or a Windows Shared Folder >> they both are mapped as a windows network drive, so i suppose i could >> access them as local drive, bu

Re: [PHP] help with explode()

2009-04-24 Thread Jan G.B.
2009/4/24 Adam Williams : > > > Jan G.B. wrote: >> >> You could try it with regular expression matching.. >> for example: >> >    preg_match_all('/([a-z]+|"[a-z ]+")/i', $searchstring, $resultarray); >> ?> >> >> >>

Re: [PHP] MAIL Error

2009-04-24 Thread Jan G.B.
2009/4/24 Bastien Koert : > > > On Fri, Apr 24, 2009 at 10:03 AM, tedd wrote: >> Whereas, your opinion doesn't matter much because you haven't contributed >> anything I can remember Tedd, it's not my problem that your sight is limited. I don't believe the Netiquette states that "whatever one say

Re: [PHP] help with explode()

2009-04-24 Thread Jan G.B.
2009/4/24 Adam Williams : > I have a form where users submit search terms and it explodes the terms into > an array based upon spaces.  But, how can I have explode() keep words in > quotation marks together?  For example, if someone enters on the form: > > John Jill "Judy Smith" > > and I run $term

Re: [PHP] error with hosting

2009-04-24 Thread Jan G.B.
2009/4/24 Andrew Ballard : > On Tue, Apr 21, 2009 at 1:20 PM, Jan G.B. wrote: >> Do yourself a favour: >> >> * remopve that 1337 hax0r name - it makes you look like a dumbass > > This coming from someone whose e-mail address is ro0ot.w...@? > Sounds a little ir

Re: [PHP] [php] graph with two or more input display

2009-04-24 Thread Jan G.B.
2009/4/24 Andrew Williams : > Hi All, > > Does anyone know of any php grahp that will enable you to show/analyse more > than one inputs like price versus time? > Hi Andrew, we're using PEAR:Image_graph here and it's good for our needs. Maybe you should check it out. PEAR:Image_graph http://pea

Re: [PHP] MAIL Error

2009-04-24 Thread Jan G.B.
2009/4/22 Daniel Brown : > On Wed, Apr 22, 2009 at 12:31, Jan G.B. wrote: >> I believe that you all should just overread the huge signature. >> You've wasted a lot bandwidth with this discussion about the signature. :-) >> It's not interesting. >> You could ha

Re: [PHP] MAIL Error

2009-04-24 Thread Jan G.B.
2009/4/22 tedd : > At 6:31 PM +0200 4/22/09, Jan G.B. wrote: >> >> I believe that you all should just overread the huge signature. >> You've wasted a lot bandwidth with this discussion about the signature. >> :-) >> It's not interesting. >> You cou

Re: [PHP] MAIL Error

2009-04-22 Thread Jan G.B.
I believe that you all should just overread the huge signature. You've wasted a lot bandwidth with this discussion about the signature. :-) It's not interesting. You could have send your pointless replies to the person, skipping the mailing list, so that we aren't annoyed by your drivel which is se

Re: [PHP] MySQL, MD5 and SHA1

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

Re: [PHP] MySQL, MD5 and SHA1

2009-04-21 Thread Jan G.B.
2009/4/21 Andrew Ballard : > On Tue, Apr 21, 2009 at 8:34 AM, Grega Leskovsek wrote: >> provided I want to store hash of a password in MySQL ... Using MySQL, >> the whole check can be achieved with a SQL query, since the MD5 >> function is provided as part of the database query language ... >> Can

Re: [PHP] error with hosting

2009-04-21 Thread Jan G.B.
2009/4/21 ®0L¥ : > I have a littli application in PHP that I do with appserv, in my local > server work ok but when I upload de page.php to the hosting server don't > work, the hosting say in your page that support php and the web server is > apache because the directory is httpdocs, and why my pag

Re: [PHP] escape your variables

2009-04-21 Thread Jan G.B.
2009/4/21 Chris : > How does one deal with that? Do you use mysql_real_escape_string? e.g. >>> $db_host = 'localhost'; $db_user = 'auser'; $db_pwd = 'apassword'; $database = 'adatabase'; $table = 'authorBook'; if (!mysql_connect($db_host, $db_user,

Re: [PHP] problem with my class

2009-04-16 Thread Jan G.B.
Excuse my bad spelling. I should have read the message again before hitting send. :-) 2009/4/16 Jan G.B. : >> I think the problem was with the $title. As above, you defined the private >> variable $rtitle but you were trying to call the variable later as $title. >> > > &

Re: [PHP] problem with my class

2009-04-16 Thread Jan G.B.
r 16, 2009 at 2:41 PM, Thijs Lensselink >> wrote: >> >> > Luke wrote: >> > > 2009/4/16 Jan G.B. >> > > >> > >> 2009/4/16 Luke : >> > >>> Hi guys, >> > >>> >> > >>> I've been l

Re: [PHP] problem with my class

2009-04-16 Thread 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 the data being > sent when the class is instantiated

Re: [PHP] What was the unix timestamp of last week, Monday 12:00 am?

2009-04-14 Thread Jan G.B.
2009/4/13 René Fournier : > "What was the unix timestamp of last week, Monday 12:00 am?" > Depends on when I read your message. :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] what to use instead of foreach

2009-04-14 Thread Jan G.B.
2009/4/13 PJ : > I have already tried with several count and for schemes. None work > because foreach ignores any counters once in the loop. Also, this > foreach is nested within another foreach; don't know if that affects > anything. Have you heard of while()? You can use it in combination with

Re: [PHP] $_GET

2009-04-14 Thread Jan G.B.
2009/4/12 Ron Piggott : > > At the very start of my index.php I have the following lines of code: > > foreach($_GET as $key => $val) { > $$key = $_GET[$val]; > echo $_GET[$val] . ""; > } > > What I don't understand is why the output is > > > Well, this would happen if you open /page.php?var= tha

Re: [PHP] Escape Data In/Out of db

2009-04-09 Thread Jan G.B.
2009/4/9 tedd : > Hi gang: -.- > > I'm gathering information from a user, storing that data in a db, and then > showing it back to the user. It's a simple process and can bee seen here in > this address book demo (not real people): > > http://php1.net/a/edit-db-demo > > I gather information from

Re: [PHP] codeigniter 'secure, non-secure content' pop up message in IE7

2009-04-09 Thread Jan G.B.
2009/4/9 Yannick Mortier : > 2009/4/9 9el : >> -- Forwarded message -- >> From: Sabrina Akter >> Date: Thu, Apr 9, 2009 at 1:12 AM >> Subject: codeigniter 'secure, non-secure content' pop up message in IE7 >> To: phpexpe...@yahoogroups.com >> >> >> Hello Experts, >> >> I badly need

Re: [PHP] difficult select problem

2009-04-08 Thread Jan G.B.
2009/4/7 Bastien Koert : > On Tue, Apr 7, 2009 at 1:10 PM, Michael A. Peters wrote: > >> PJ wrote: >> >>> Bob McConnell wrote: >>> From: PJ > First, let me thank you all for responding and offering suggestions. I > appreciate it and I am learning things. > However, it looks l

Re: [PHP] file_get_contents for URLs?

2009-04-07 Thread Jan G.B.
Well, you might want to do it with curl, you might want to write your own socketscript, or your just check the return variable of file_get_contents() - it'll be false on failure and it won't try to get an invalid URL forever. Guess the error is somewhere else, when your script continues indefinitel

Re: [PHP] Button id's - firefox and IE different ?

2009-04-03 Thread Jan G.B.
Is it mandatory to annoy the whole list with your crap? If you want to keep on informing me or insulting me or feel free to send it directly to me. I'll add you to my killfile in no time. get a life 2009/4/3 Igor Escobar : > Better then READ is UNDERSTAND. > >> >> >> 2009/4/2 Igor Escobar : >> >>

Re: [PHP] Button id's - firefox and IE different ?

2009-04-03 Thread Jan G.B.
ng by the right way...can be sure that. > > > Regards, > Igor Escoar > Systems Analyst & Interface Designer > > -- > > Personal Blog > ~ blog.igorescobar.com > Online Portifolio > ~ www.igorescobar.com > Twitter > ~ @igorescobar > > > > > >

  1   2   3   4   >