RE: [PHP] Apache

2013-09-24 Thread Arno Kuhl
On 23 Sep 2013, at 11:37, Domain nikha.org m...@nikha.org wrote: Tamara Temple am Montag, 23. September 2013 - 06:49: GoDaddy's default plesk-generated configuration for FastCGI-served PHP files only looked to see if the file contained .php somewhere on it's path - i.e. it would happily

[PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
For the past week I've been trying to get to the bottom of an exploit, but googling hasn't been much help so far, nor has my service provider. Basically a file was uploaded with the filename xxx.php.pgif which contained nasty php code, and then the file was run directly from a browser. The upload

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
to be executed. I had some that modified my .htaccess file to go to a spam site when my site got a 404 error. That was nasty. Ken Sent from my iPad On Sep 19, 2013, at 7:35 AM, Arno Kuhl a...@dotcontent.net wrote: For the past week I've been trying to get to the bottom of an exploit, but googling

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
For the past week I've been trying to get to the bottom of an exploit, but googling hasn't been much help so far, nor has my service provider. Basically a file was uploaded with the filename xxx.php.pgif which contained nasty php code, and then the file was run directly from a browser. The

RE: [PHP] Apache's PHP handlers

2013-09-19 Thread Arno Kuhl
Arno: If you can request that file using a web browser, and it gets executed as PHP on your server then there is an error in the Apache configuration. Easy test: create a file in a text editor containing some PHP (?php phpinfo(); ? would be enough) and upload it to the www root of your site and

RE: [PHP] significance of escape character in string in PHP - MySQL

2013-03-18 Thread Arno Kuhl
There's no need for it to be a flame war. The mysql extension is officially not recommended for writing new code, so anyone using it should be informed of this fact. I think it should consist of more than don't use that, but at the very least that should cause the questioner to want to know why.

RE: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Arno Kuhl
-Original Message- From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] Sent: 12 March 2013 10:51 AM To: PHP General Subject: RE: [PHP] Re: UNLESS Statement Equivalent unless ( $a and $b ) = if ( ! ($a and $b) ) So in simple terms, just stick a ! (or the keyword not) in front of your

RE: [PHP] Re: UNLESS Statement Equivalent

2013-03-12 Thread Arno Kuhl
-Original Message- From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] Sent: 12 March 2013 10:51 AM To: PHP General Subject: RE: [PHP] Re: UNLESS Statement Equivalent unless ( $a and $b ) = if ( ! ($a and $b) ) So in simple terms, just stick a ! (or the keyword not) in front of your

RE: [PHP] Some date() oddities

2013-01-09 Thread Arno Kuhl
On Tue, 8 Jan 2013, Arno Kuhl wrote: Starting with a unix timestamp for 31 December 2012 13:12:12 (which is 1356952332) I calculate a week number: $ux_date = 1356952332; $weeknumber = date(W, $ux_date); // returns 01 instead of 52 I'm not that familiar with date, I tend to use strftime

[PHP] Some date() oddities

2013-01-08 Thread Arno Kuhl
I've bumped into an odd result with the date() function that I can't make sense of. Starting with a unix timestamp for 31 December 2012 13:12:12 (which is 1356952332) I calculate a week number: $ux_date = 1356952332; $weeknumber = date(W, $ux_date); // returns 01 instead of 52 I found

RE: [PHP] Unexpected Notice message

2012-07-05 Thread Arno Kuhl
-Original Message- From: Tim Streater [mailto:t...@clothears.org.uk] Sent: 04 July 2012 06:56 PM To: Marc Guay; php-general@lists.php.net Subject: Re: [PHP] Unexpected Notice message On 04 Jul 2012 at 16:51, Marc Guay marc.g...@gmail.com wrote: Notice: Use of undefined constant

[PHP] Unexpected Notice message

2012-07-04 Thread Arno Kuhl
I'm a bit baffled by a notice message displayed: Notice: Use of undefined constant QUERY_STRING - assumed 'QUERY_STRING' in .. The line in question has if (strlen($_SERVER[QUERY_STRING]) 0) { .. So I set a breakpoint on the line of the notice. The code executes to the breakpoint, I inspect the

RE: [PHP] Watch out for automatic type casting

2012-03-30 Thread Arno Kuhl
-Original Message- From: Simon Schick [mailto:simonsimc...@googlemail.com] Sent: 29 March 2012 07:19 PM To: a...@dotcontent.net Cc: php-general@lists.php.net Subject: Re: [PHP] Watch out for automatic type casting Hi, Arno FYI: I found a page in the php-manual that's exactly for that:

RE: [PHP] Watch out for automatic type casting

2012-03-30 Thread Arno Kuhl
-Original Message- From: Simon Schick [mailto:simonsimc...@googlemail.com] Sent: 29 March 2012 07:19 PM To: a...@dotcontent.net Cc: php-general@lists.php.net Subject: Re: [PHP] Watch out for automatic type casting Hi, Arno FYI: I found a page in the php-manual that's exactly for that:

[PHP] Watch out for automatic type casting

2012-03-29 Thread Arno Kuhl
I found automatic typecasting can be a bit of a gotcha. $sText = this.is.a.test.text; if ( $pos = strpos($sText, test) !== FALSE) { echo substr($sText, 0, $pos)..substr($sText, $pos, strlen(test))..substr($sText, $pos+strlen(test)); } The code seems logical enough, and

RE: [PHP] foreach weirdness

2012-03-26 Thread Arno Kuhl
Requesting that will at least require a major-release (f.e. PHP 6.0) ... but I would rather request to add a notice or warning to the documentation of references to remind stuff like that. http://www.php.net/manual/en/language.references.php I think this is stuff more people will stumble over

RE: [PHP] foreach weirdness

2012-03-26 Thread Arno Kuhl
Note that somewhat similar error was discussed on this list a few months ago[1]. You could probably have solved it yourself if you searched the mailing list archives. - Matijn [1] http://www.mail-archive.com/php-general@lists.php.net/msg269552.html --- Thanks Matijn, I missed that discussion,

RE: [PHP] foreach weirdness

2012-03-25 Thread Arno Kuhl
See this following example that illustrates the problem: $array = array(0, 1, 2, 3, 4, 5, 6); foreach ($array as $index=$value) { if ( ($index+1) count($array) ) { $array[$index+1] += $value; } echo $value. ; } echo br /; foreach ($array as

RE: [PHP] foreach weirdness

2012-03-25 Thread Arno Kuhl
From: Simon Schick [mailto:simonsimc...@googlemail.com] Sent: 24 March 2012 12:30 AM To: Robert Cummings Cc: a...@dotcontent.net; php-general@lists.php.net Subject: Re: [PHP] foreach weirdness 2012/3/23 Robert Cummings rob...@interjinn.com On 12-03-23 11:16 AM, Arno Kuhl wrote: it still

[PHP] foreach weirdness

2012-03-23 Thread Arno Kuhl
The following snippet is copied from the php manual: foreach ($arr as $key = $value) { echo Key: $key; Value: $valuebr /\n; } I've always used the foreach loop that way. But recently I started hitting some really odd problems. See this following example that illustrates the problem:

RE: [PHP] foreach weirdness

2012-03-23 Thread Arno Kuhl
-Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: 23 March 2012 06:11 PM To: a...@dotcontent.net Cc: php-general@lists.php.net Subject: Re: [PHP] foreach weirdness On 12-03-23 11:16 AM, Arno Kuhl wrote: The following snippet is copied from the php manual

RE: [PHP] Getting knotted with quotes encoding - (one possible solution)

2012-03-19 Thread Arno Kuhl
...@tamaratemple.com wrote: On Tue, 13 Mar 2012 16:35:44 +0200, Arno Kuhl a...@dotcontent.net sent: From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 13 March 2012 03:25 PM To: a...@dotcontent.net; php-general@lists.php.net Subject: Re: [PHP] Getting knotted with quotes encoding Arno

[PHP] Getting knotted with quotes encoding

2012-03-13 Thread Arno Kuhl
I've been battling with quotes encoding when outputting javascript with php. It can't be unique, so I'm hoping someone has a working solution they're willing to share. The following works perfectly as long as there aren't any single quotes in the link text: echo span

RE: [PHP] Getting knotted with quotes encoding - (one possible solution)

2012-03-13 Thread Arno Kuhl
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 13 March 2012 03:25 PM To: a...@dotcontent.net; php-general@lists.php.net Subject: Re: [PHP] Getting knotted with quotes encoding Arno Kuhl a...@dotcontent.net wrote: I've been battling with quotes encoding when outputting

[PHP] ip2long and ipv6

2012-01-09 Thread Arno Kuhl
My dev and test tools are windows based and the apps deployed on linux, and it's been working well. But moving to win7 created problems because it uses ipv6 and code for ratings is for ipv4. Specifically, using ip2long to save the ip as an int (to prevent duplicate votes) doesn't work in test

RE: [PHP] Seeking strategy/algorithm for maintaining order of records

2011-10-17 Thread Arno Kuhl
From: Stephen [mailto:stephe...@rogers.com] Sent: 16 October 2011 11:33 PM To: php-general@lists.php.net Subject: Re: [PHP] Seeking strategy/algorithm for maintaining order of records Displaying in an order is easy when you have a field called order. SELECT descriptions FROM categories ORDER by

RE: [PHP] Dennis Ritchie, Father of Unix and C programming language, dead at 70

2011-10-15 Thread Arno Kuhl
-Original Message- From: Daevid Vincent [mailto:dae...@daevid.com] Sent: 14 October 2011 12:08 AM To: php-general@lists.php.net Subject: [PHP] Dennis Ritchie, Father of Unix and C programming language, dead at 70 #include stdio.h int main() { printf(R.I.P. Dennis Ritchie:

RE: [PHP] Check for open file

2011-03-04 Thread Arno Kuhl
-Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Thursday, March 03, 2011 2:03 PM To: sstap...@mnsi.net Cc: php-general@lists.php.net Subject: RE: [PHP] Check for open file As far as I was aware, if you're in the middle of writing to a file and

RE: [PHP] Paging and permissions

2011-02-09 Thread Arno Kuhl
On Tue, 2011-02-08 at 14:36 +0200, Arno Kuhl wrote: I'm hoping some clever php gurus have been here before and are willing to share some ideas. I have a site where articles are assigned to categories in containers. An article can be assigned to only one

RE: [PHP] Paging and permissions

2011-02-09 Thread Arno Kuhl
Instead of serializing the articles, you only need their IDs. Using $sql .= ' where id in (' . implode(',', $ids) . ')'; you can load the data for a page of results in a single query. Storing the IDs is much cheaper than the articles. If the permissions are fairly static (i.e. access for

[PHP] Paging and permissions

2011-02-08 Thread Arno Kuhl
I'm hoping some clever php gurus have been here before and are willing to share some ideas. I have a site where articles are assigned to categories in containers. An article can be assigned to only one category per container, but one or more containers. Access permissions can be set per article,

RE: [PHP] tutorial failure

2010-08-18 Thread Arno Kuhl
-Original Message- From: e-letter [mailto:inp...@gmail.com] Sent: 18 August 2010 10:44 AM To: php-general@lists.php.net Subject: [PHP] tutorial failure Readers, Copy below of message sent 15 August to php install digest list, but to date not including in mail archive? The tutorial

RE: [PHP] Recent Influx of Unrelated Discussions

2010-07-16 Thread Arno Kuhl
-Original Message- From: paras...@gmail.com [mailto:paras...@gmail.com] On Behalf Of Daniel Brown Sent: 15 July 2010 05:11 PM To: PHP General Subject: [PHP] Recent Influx of Unrelated Discussions Also known as off-topic posts. We're all guilty of them, but has anyone recently noticed

RE: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-25 Thread Arno Kuhl
-Original Message- From: Alice Wei [mailto:aj...@alumni.iu.edu] Sent: 24 May 2010 04:47 PM To: php-general@lists.php.net Subject: [PHP] Dynamic Menus in a PHP Form Issue Hi,I have a snippet as in the following: ul liSelect the type of your starting point of

RE: [PHP] PHP Application Structre

2010-05-10 Thread Arno Kuhl
-Original Message- From: Alex Major [mailto:p...@allydm.co.uk] Sent: 10 May 2010 12:39 PM From what I've seen and used, there seem to be three distinct ways of going about it. 1) Using a 'core' class which has a request handler in it. All pages in the site are accessed through that

RE: [PHP] PHP Application Structre

2010-05-10 Thread Arno Kuhl
_ From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 10 May 2010 01:58 PM To: a...@dotcontent.net Cc: 'Alex Major'; 'php-general General List' Subject: RE: [PHP] PHP Application Structre On Mon, 2010-05-10 at 13:15 +0200, Arno Kuhl wrote: -Original Message- From

RE: [PHP] Will PHP ever grow up and have threading?

2010-03-24 Thread Arno Kuhl
If you added threading to the bag of tricks it already has, you're getting into areas that make it more difficult to pick up for beginners (and that's not to mention the technical elements involved in actually adding threading to PHP) Currently the only other 'easy' language I know for beginners

RE: [PHP] Will PHP ever grow up and have threading?

2010-03-24 Thread Arno Kuhl
-Original Message- From: Rene Veerman [mailto:rene7...@gmail.com] Sent: 24 March 2010 11:31 AM Subject: Re: [PHP] Will PHP ever grow up and have threading? thanks for opening my eyes and telling to abandon ship in time. === Bye, enjoy the swim... Maybe by

[PHP] Using $$

2009-11-19 Thread Arno Kuhl
I was looking at some old code that I'm convinced once worked but now using php5 it doesn't seem to work anymore. $input = _REQUEST; if (is_array($$input)) { // do something } I know $_REQUEST is an array, but $$input is NULL (I was expecting it == $_REQUEST). I also tried ${$input}

RE: [PHP] Using $$

2009-11-19 Thread Arno Kuhl
-Original Message- From: Ford, Mike [mailto:m.f...@leedsmet.ac.uk] Sent: 19 November 2009 07:06 PM To: php-general@lists.php.net Subject: RE: [PHP] Using $$ -Original Message- From: Arno Kuhl [mailto:ak...@telkomsa.net] Sent: 19 November 2009 12:23 I was looking at some old

RE: [PHP] Need unrounded precision

2009-10-12 Thread Arno Kuhl
-Original Message- From: Andre Dubuc [mailto:aajdu...@webhart.net] Sent: 02 January 2010 03:20 AM To: php-general@lists.php.net Subject: [PHP] Need unrounded precision Hi, I need to extract the first digit after the decimal point from a number such as 28.56018, which should be '5'.

[PHP] Output buffering

2009-10-07 Thread Arno Kuhl
Has there been a change to the way output buffering works? The manual states for ob_get_contents() This will return the contents of the output buffer or FALSE, if output buffering isn't active. But the following works in php4.4.4 and php5.2.6 whether output buffering is on or not ?php

RE: [PHP] Output buffering

2009-10-07 Thread Arno Kuhl
From: djo...@gmail.com [mailto:djo...@gmail.com] On Behalf Of David Otton Sent: 07 October 2009 10:54 AM To: a...@dotcontent.net Cc: php-general@lists.php.net Subject: Re: [PHP] Output buffering 2009/10/7 Arno Kuhl ak...@telkomsa.net: According to the manual I shouldn't see anything at all when

RE: [PHP] Fixing the path

2009-09-14 Thread Arno Kuhl
-Original Message- From: Rico Secada [mailto:coolz...@it.dk] Some time ago I developed a small web application that a bunch of users has installed. I have always used the DOCUMENT_ROOT for my includes, but the other day I installed the application in a subdirectory, and as you've

[PHP] PHP configuration values

2009-09-11 Thread Arno Kuhl
I'm having some problems with the way my service provider is implementing FastCGI. My tests show that local configuration values are no longer used, even though those are the values reported by php when the script queries a setting (e.g. register_globals). In fact all settings done by script or in

RE: [PHP] PHP configuration values

2009-09-11 Thread Arno Kuhl
On Fri, Sep 11, 2009 at 3:06 AM, Arno Kuhl ak...@telkomsa.net wrote: I'm having some problems with the way my service provider is implementing FastCGI. My tests show that local configuration values are no longer used, even though those are the values reported by php when the script queries

RE: [PHP] header problem

2009-09-10 Thread Arno Kuhl
-Original Message- From: A.a.k [mailto:blue...@gmail.com] Sent: 10 September 2009 08:27 AM To: php-general@lists.php.net Subject: [PHP] header problem hello I recentrly uploaded my project from localhost to a hosting and found many errors and warnings which didnt have in local. one of

RE: [PHP] Re: page works on public web site, but not on my computer

2009-08-27 Thread Arno Kuhl
-Original Message- From: mike bode [mailto:mikebo...@hotmail.com] Sent: 27 August 2009 04:49 PM To: php-general@lists.php.net Subject: Re: [PHP] Re: page works on public web site, but not on my computer I understand, but that's not an option. I am not interested in getting into a Linux

RE: [PHP] anchor inside form

2009-08-25 Thread Arno Kuhl
-Original Message- From: leledumbo [mailto:leledumbo_c...@yahoo.co.id] Sent: 25 August 2009 09:55 AM To: php-general@lists.php.net Subject: [PHP] anchor inside form If I have an anchor inside form, how can I send form using the anchor without displaying target url? I've tried the code

RE: [PHP] (was: anchor inside form) js switched on/off

2009-08-25 Thread Arno Kuhl
You can use javascript behind a button or image or link to submit the form from anywhere in your html page. You don't need the anchor but you do need a form name. Something like: href=javascript:document.FormName.submit(); Cheers Arno And all it takes for that to break is for

RE: [PHP] Beginner question

2009-08-25 Thread Arno Kuhl
-Original Message- From: mike bode [mailto:mikebo...@hotmail.com] Sent: 25 August 2009 07:16 AM To: php-general@lists.php.net Subject: [PHP] Beginner question I am trying to use PHP on my web site I am developing now. I have installed Apache 2.2 and PHP 5.2. My problem is that I can

RE: [PHP] Invoking functions stored in a separate directory?

2009-08-21 Thread Arno Kuhl
-Original Message- From: Clancy [mailto:clanc...@cybec.com.au] Sent: 21 August 2009 01:26 PM To: php-general@lists.php.net Subject: [PHP] Invoking functions stored in a separate directory? I am developing an idea for a website engine which can be shared between several different

RE: [PHP] about to run PHP script when POST data.

2009-08-21 Thread Arno Kuhl
-Original Message- From: Jacky [mailto:newbde...@gmail.com] Sent: 21 August 2009 03:12 PM To: php-general@lists.php.net Subject: [PHP] about to run PHP script when POST data. Hi guys, As I know When we POST a big data(e.g. 500M) to a php script, the php script only can run after the big

RE: [PHP] SESSIONS lost sometimes

2009-08-20 Thread Arno Kuhl
-Original Message- From: Leon du Plessis [mailto:l...@dsgnit.com] Sent: 20 August 2009 09:44 AM To: php-general@lists.php.net Subject: RE: [PHP] SESSIONS lost sometimes Since we are on the subject: I have the following similar problem: When testing page on internet explorer, I find that

RE: [PHP] How to make sure that the target file to read is not under writing by others?

2009-08-20 Thread Arno Kuhl
-Original Message- From: Tom Worster [mailto:f...@thefsb.org] Sent: 20 August 2009 01:28 PM To: Clancy; php-general@lists.php.net Subject: Re: [PHP] How to make sure that the target file to read is not under writing by others? On 8/19/09 9:56 PM, Clancy clanc...@cybec.com.au wrote: I

RE: [PHP] How to make sure that the target file to read is not under writing by others?

2009-08-19 Thread Arno Kuhl
-Original Message- From: Dengxule [mailto:dengx...@gmail.com] Sent: 19 August 2009 09:56 AM To: Php Maillist Subject: [PHP] How to make sure that the target file to read is not under writing by others? Hi everyone: I have a crontab command to execuate my php-script every half an hour.

RE: [PHP] How to make sure that the target file to read is not under writing by others?

2009-08-19 Thread Arno Kuhl
+0200, Arno Kuhl wrote: -Original Message- From: Dengxule [mailto:dengx...@gmail.com] Sent: 19 August 2009 09:56 AM To: Php Maillist Subject: [PHP] How to make sure that the target file to read is not under writing by others? Hi everyone: I have a crontab command to execuate my

RE: [PHP] How to make sure that the target file to read is not under writing by others?

2009-08-19 Thread Arno Kuhl
+0200, Arno Kuhl wrote: -Original Message- From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: 19 August 2009 11:57 AM To: a...@dotcontent.net Cc: 'Dengxule'; 'Php Maillist' Subject: RE: [PHP] How to make sure that the target file to read is not under writing by others

RE: [PHP] How to make sure that the target file to read is not under writing by others?

2009-08-19 Thread Arno Kuhl
+0200, Arno Kuhl wrote: (any computer would instantly crash if that sort of basic housekeeping wasn't done) No, it really wouldn't! If it did, then you'd never have video playing software out there that supported broken downloads, no preview software for semi-downloaded items. Have you ever been

RE: [PHP] DB Question | A hotel reservation scenario

2009-08-18 Thread Arno Kuhl
-Original Message- From: Behzad [mailto:behzad.esl...@gmail.com] Sent: 18 August 2009 04:46 PM To: PHP General Mailing List Subject: [PHP] DB Question | A hotel reservation scenario Dear list, e-Greetings! I'm faced with an interesting and challenging problem. Consider a database,

RE: [PHP] Re: unsetting a referenced parameter in a function

2009-07-23 Thread Arno Kuhl
-Original Message- From: Shawn McKenzie [mailto:nos...@mckenzies.net] Sent: 23 July 2009 02:36 PM To: php-general@lists.php.net Subject: Re: [PHP] Re: unsetting a referenced parameter in a function Tom Worster wrote: On 7/22/09 6:09 PM, Shawn McKenzie nos...@mckenzies.net wrote: Tom

RE: [PHP] Obeying the rules (was Simple login form with cookies)

2009-07-10 Thread Arno Kuhl
I'm sure those who've been on this list a while muttered here we go again... when this thread started. Personally I think if there was a poll about this the bell curve would have some on the left demanding we all top post, many on the right of the curve demanding we all bottom post, and a solid

RE: [PHP] PHP doesn't see php.ini

2009-06-26 Thread Arno Kuhl
-Original Message- From: Tir [mailto:tirsa...@yandex.ru] Sent: 25 June 2009 08:48 PM To: php-general@lists.php.net Subject: Re: [PHP] PHP doesn't see php.ini Presume you did restart apache after making the change? Of course Is there anything in your phpinfo output that relates to your

RE: [PHP] This Friday's OT Thread

2009-06-26 Thread Arno Kuhl
-Original Message- From: Michelle Konzack [mailto:linux4miche...@tamay-dogan.net] Sent: 26 June 2009 03:20 PM To: php-general@lists.php.net Subject: Re: [PHP] This Friday's OT Thread ...and no one care about the foreign (european) sniper WHO killed Neda in Iran. Note: I can not

RE: [PHP] PHP doesn't see php.ini

2009-06-25 Thread Arno Kuhl
-Original Message- From: Bastien Koert [mailto:phps...@gmail.com] Sent: 25 June 2009 03:11 PM To: Tir Cc: php-general@lists.php.net Subject: Re: [PHP] PHP doesn't see php.ini On Wed, Jun 24, 2009 at 8:32 AM, Tirtirsa...@yandex.ru wrote: When i installed PHP, I had written to my

RE: [PHP] sessions tutorial

2009-06-19 Thread Arno Kuhl
-Original Message- From: PJ [mailto:af.gour...@videotron.ca] Sent: 18 June 2009 11:28 PM To: php-general@lists.php.net Subject: [PHP] sessions tutorial Top of the list is for real dummies at tizag.com. So I don't have to search 282,000 entries for php sessions tutorial (doesn't this say

RE: [PHP] php applications

2009-06-10 Thread Arno Kuhl
At 11:49 AM -0400 6/8/09, Daniel Brown wrote: On Mon, Jun 8, 2009 at 11:48, teddt...@sperling.com wrote: Hi gang: I've heard that php can be used for more than web programming, but I am not aware of specifically how that can be done. So, let me ask directly -- can php be used to create

RE: [PHP] WHILE LOOP PROBLEM

2009-03-27 Thread Arno Kuhl
-Original Message- From: Andrew Williams [mailto:andrew4willi...@gmail.com] Sent: 27 March 2009 10:12 AM To: PHP LIST Subject: [PHP] WHILE LOOP PROBLEM can some tell why the below loop stop running after some time. $start=10; const run=0; while($start run){ //do somthing } -- The

RE: [PHP] Frameworks / obstinate?

2009-03-23 Thread Arno Kuhl
-Original Message- From: Sancar Saran [mailto:sancar.sa...@evodot.com] Sent: 23 March 2009 11:52 AM To: php-general@lists.php.net Subject: Re: [PHP] Frameworks / obstinate? Probably a bit off topic and The Game is over man. Javascript coming with flank speed. Next generation JS

RE: [PHP] [News] Affordable Independent Web Developer - Search Engine Optimization Services - March 19th, 2009

2009-03-20 Thread Arno Kuhl
Sounds like a good deal - clean your home and develop your home page all-in-one. A sailor friend once told me about all-in-one services he got when he stopped for shore leave in Bangkok - also sounded like a good deal, though I don't think it included web development. Experienced sailors

RE: [PHP] Weird pdo-mysql behavior

2008-11-13 Thread Arno Kuhl
Suppose I have two tables Contracts and Clients that are connected using ClientId field. This is a stripped sample code that doesn't work: ?php function getClientFullName($id,$dbh){ $query = SELECT * FROM Clients WHERE Id=.$id; $sthr = $dbh-query($query); $res =

RE: [PHP] DOCTYPE, javascript and Firefox

2008-10-31 Thread Arno Kuhl
-Original Message- From: Andrew Ballard [mailto:[EMAIL PROTECTED] Sent: 30 October 2008 05:15 PM To: [EMAIL PROTECTED] Cc: PHP - General Subject: Re: [PHP] DOCTYPE, javascript and Firefox The pragmatic approach says that you've already fixed it: just leave the DOCTYPE out. :-) I'm not

[PHP] DOCTYPE, javascript and Firefox

2008-10-30 Thread Arno Kuhl
I came across an odd thing with DOCTYPE, javascript and Firefox 3 that has me stumped. Not exactly a php issue but hoping someone else on the list has seen this before. (At least the script is php, hope that counts) I have the following code in my header script: echo !DOCTYPE HTML PUBLIC

RE: [PHP] DOCTYPE, javascript and Firefox

2008-10-30 Thread Arno Kuhl
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 30 October 2008 03:58 PM To: [EMAIL PROTECTED]; 'PHP - General' Cc: Arno Kuhl Subject: Re: [PHP] DOCTYPE, javascript and Firefox At 3:45 PM +0200 10/30/08, Arno Kuhl wrote: I came across an odd thing with DOCTYPE

RE: [PHP] Apache blocking certain requests instead of php

2008-07-24 Thread Arno Kuhl
I'm getting a lot of bogus requsts in the form of index.php?id=http://64.15.67.17/~babysona/logo.jpg?;, sometimes more than a hundred a day per domain. The php script catches it, logs the request, sends an email report and replies with access denied, but it takes processing which I'd

RE: [PHP] Apache blocking certain requests instead of php

2008-07-24 Thread Arno Kuhl
Is there a way for apache to catch these requests before passing it to php? Is it more efficient for apache to handle this than php? 2 x yes. I think you could probably use LocationMatch and ban all access with Deny from all. /Per Jessen, Zürich -- Thanks for replying Per. Isn't Deny from

RE: [PHP] Apache blocking certain requests instead of php

2008-07-24 Thread Arno Kuhl
I was hoping there's a way to tell apache to block requests where id=non_numeric. It's trying to do a remote inclusion. It's easy for you to fix in php: if (isset($_GET['id'])) { if (!is_numeric($_GET['id'])) { die(Die hacker die!); } } I'm sure there would

RE: [PHP] Apache blocking certain requests instead of php

2008-07-24 Thread Arno Kuhl
Hi Arno No, when you use Location it's not filesystem specific any more. But I've just found out that you can't match on the query-string. These images aren't on my server, and the requests aren't trying to access images on my server. What I see are requests using the php script on my server

[PHP] Apache blocking certain requests instead of php

2008-07-23 Thread Arno Kuhl
I'm getting a lot of bogus requsts in the form of index.php?id=http://64.15.67.17/~babysona/logo.jpg?;, sometimes more than a hundred a day per domain. The php script catches it, logs the request, sends an email report and replies with access denied, but it takes processing which I'd rather not

RE: [PHP] Forum coded in PHP with mail and news gateway

2008-06-12 Thread Arno Kuhl
Not sure about the gateways but you can look at www.phpbb.com -Original Message- From: Michelle Konzack [mailto:[EMAIL PROTECTED] Sent: 11 June 2008 04:52 To: PHP - General Subject: [PHP] Forum coded in PHP with mail and news gateway Hello, because it is actual for me while having

[PHP] Problem with script timing out in php 4.4.8

2008-06-04 Thread Arno Kuhl
I recently picked up an issue when I upgraded my IDE, where the browser window timed out while I was debugging the code. I checked with support and was told the problem was with php 4.4.8 which they'd upgraded to, so to confirm I installed 4.4.8 and ran a test - and it seems there is a problem

RE: [PHP] Problem with script timing out in php 4.4.8

2008-06-04 Thread Arno Kuhl
-general@lists.php.net Subject: Re: [PHP] Problem with script timing out in php 4.4.8 Could you try setting the max_execution_time with ini_set and confirming the status of it with ini_get ? - Waage 2008/6/4 Arno Kuhl [EMAIL PROTECTED]: I recently picked up an issue when I upgraded my IDE, where

RE: [PHP] Conditional popup driven from server-side

2008-04-08 Thread Arno Kuhl
Arno Kuhl [EMAIL PROTECTED] wrote: I know popup windows are a client-side issue, but I can't figure how to create and close a popup window from the server side only on condition, otherwise display normal browser page. What I want is to accept a form, check the input

[PHP] Conditional popup driven from server-side

2008-04-07 Thread Arno Kuhl
I know popup windows are a client-side issue, but I can't figure how to create and close a popup window from the server side only on condition, otherwise display normal browser page. What I want is to accept a form, check the input, if there are errors return them to the browser, if there aren't

RE: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Arno Kuhl
-Original Message- From: tedd [mailto:[EMAIL PROTECTED] Sent: 14 December 2007 04:50 To: [EMAIL PROTECTED]; php-general@lists.php.net Cc: Arno Kuhl Subject: Re: [PHP] PHP date: ISO year = loss of hair At 10:02 AM +0200 12/14/07, Arno Kuhl wrote: I'm battling with getting the last week

RE: [PHP] PHP date: ISO year = loss of hair

2007-12-14 Thread Arno Kuhl
-Original Message- From: Andrew Ballard [mailto:[EMAIL PROTECTED] Sent: 14 December 2007 04:38 To: PHP General list Subject: Re: [PHP] PHP date: ISO year = loss of hair If the last week of the year is the one that has Dec. 28 in it, and the last week number is 52, then Dec. 30 SHOULD

[PHP] PHP date: ISO year = loss of hair

2007-12-13 Thread Arno Kuhl
I'm battling with getting the last week number using date(W, $unixdate). If the date is 30 December 2007 ($unixdate=1198965600) then date(W, $unixdate) returns 01. I know that according to the ISO spec, the last week of the ISO year has 28 December in it, so in this particular case the last week

RE: [PHP] IDE

2007-11-16 Thread Arno Kuhl
-Original Message- From: William Betts [mailto:[EMAIL PROTECTED] Sent: 16 November 2007 05:13 To: [EMAIL PROTECTED] Cc: David Giragosian; php-general@lists.php.net Subject: Re: [PHP] IDE Have you ever used Zend Studio? If so how does it compare to PhpED? ---

RE: [PHP] IDE

2007-11-16 Thread Arno Kuhl
-Original Message- From: David Giragosian [mailto:[EMAIL PROTECTED] Sent: 16 November 2007 05:21 To: php-general@lists.php.net Subject: Re: [PHP] IDE On 11/15/07, Jammer [EMAIL PROTECTED] wrote: Børge Holen wrote: On Thursday 15 November 2007 21:35:04 Jammer wrote: Hi All,

RE: [PHP] Generating foldout menus in php

2007-09-04 Thread Arno Kuhl
I'm looking for a way to generate dropdown/foldout menus (horizontal and vertical) on the fly, but all the javascript solutions I've seen use absolute or relative pixel positioning, which means I can't use them because I don't know at the time of generating a specific menu item how many

RE: [PHP] Generating foldout menus in php

2007-09-04 Thread Arno Kuhl
This may not be directly php related but I'm hoping that generating the code with PHP will keep it on topic. I'm looking for a way to generate dropdown/foldout menus (horizontal and vertical) on the fly, but all the javascript solutions I've seen use absolute or relative pixel positioning,

[PHP] Generating foldout menus in php

2007-09-03 Thread Arno Kuhl
This may not be directly php related but I'm hoping that generating the code with PHP will keep it on topic. I'm looking for a way to generate dropdown/foldout menus (horizontal and vertical) on the fly, but all the javascript solutions I've seen use absolute or relative pixel positioning, which

RE: [PHP] PHP debugger

2007-05-16 Thread Arno Kuhl
If you don't see any change in phpinfo then maybe it's not picking up the dbg extension in your php.ini. Presumably you've also put the other debugger directives in your ini? You can also try download the trial version of PHPEd from Nusphere, install that, and check how it configures the

[PHP] Why does this encoding work in PHP?

2007-05-04 Thread Arno Kuhl
I recently came across a script that was oddly encoded. A bit of digging revealed it was encoded in octal. What puzzles me is why the php interpreter is able to understand the script. An example (not from the original script) require_once ../file.php; require_once

RE: [PHP] Ide help needed

2007-04-02 Thread Arno Kuhl
Nuspere's PHPEd. Highly recommended. I looked at all the alternatives, including Zend and Eclipse, and IMO PHPEd is superior. And faster performance is a real bonus. Arno -Original Message- From: Davi [mailto:[EMAIL PROTECTED] Sent: 02 April 2007 02:50 To: php-general@lists.php.net

[PHP] Newline and tab characters

2007-03-26 Thread Arno Kuhl
I've just noticed that \r\n and \t characters create a space when rendered in the browser (tested in IE and Firefox). I'd always thought the browser would ignore these characters. This wouldn't normally be a problem but the wysiwyg html editor in the cms I'm using tries to be friendly by

RE: [PHP] using return in include files

2007-01-23 Thread Arno Kuhl
-Original Message- From: Aaron Axelsen [mailto:[EMAIL PROTECTED] Sent: 23 January 2007 06:12 To: php-general@lists.php.net Subject: [PHP] using return in include files I'm trying to figure out what the desired behavior is of using the return function to bail out of an include page. I

RE: [PHP] most powerful php editor

2007-01-21 Thread Arno Kuhl
-Original Message- From: Vinicius C Silva [mailto:[EMAIL PROTECTED] Sent: 21 January 2007 02:54 To: php-general@lists.php.net Subject: [PHP] most powerful php editor hi everyone! i'd like to ask something maybe commonly asked here. what is the most powerful php editor?

RE: [PHP] most powerful php editor

2007-01-21 Thread Arno Kuhl
-Original Message- From: Robert Cummings [mailto:[EMAIL PROTECTED] Sent: 22 January 2007 01:32 To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: RE: [PHP] most powerful php editor On Mon, 2007-01-22 at 01:22 +0200, Arno Kuhl wrote: For me the analogy goes something like

RE: [PHP] most powerful php editor

2007-01-21 Thread Arno Kuhl
-Original Message- From: John Meyer [mailto:[EMAIL PROTECTED] Sent: 22 January 2007 03:15 To: php-general@lists.php.net Subject: Re: [PHP] most powerful php editor Dear god Arnot, would you like to stand back for a moment and consider how retarded those statements are, or would you like

  1   2   >