-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?
---
-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,
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
-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
-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
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
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
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,
I'm not so sure if the botanist wasn't saying in a rather confused way that
he was playing on the same side as PHPClasses, even if he did profess to be
in the other team. Did he say he was rolling his own (in a way only
botanists can do) or not?
-Original Message-
From: Jochem Maas
Is there anything in your error log that says why it failed? (whatever
error_log points to in php.ini, or maybe what ErrorLog points to in
httpd.conf)
Arno
-Original Message-
From: Ivo F.A.C. Fokkema [mailto:[EMAIL PROTECTED]
Sent: 08 August 2006 01:42
To: php-general@lists.php.net
I hope someone can help with this.
I'm trying to find the week number of the last week of the year.
I have the following code snippet:
$lastday = strtotime(31 December .$year);
$lastdate = date(Y-m-d, $lastday); // for testing
$lastweek = date(W, $lastday);
I put the $lastdate line in because
- the week ending with the Sunday in the period 28 December - 3
January
- If 31 December is on a Monday, Tuesday, or Wednesday, it is in week
01, otherwise in week 52 or 53.
Best Regards,
Ducarom
On 9/13/06, Arno Kuhl [EMAIL PROTECTED] wrote:
I hope someone can help with this.
I'm
-Original Message-
From: Michelle Konzack [mailto:[EMAIL PROTECTED]
Sent: 19 September 2006 11:14
To: php-general@lists.php.net
Subject: [PHP] Re: Frustrated trying to get help from your site
Am 2006-09-18 14:43:12, schrieb Jon Anderson:
As an aside, I think that the online and offline
One way that could work is to check the urls against a list of keywords and
if a match is found put these submissions into a pending state waiting for
you to check and approve or decline. You could also have a second hot
keyword list that rejects the submissions outright if you find a match in
the
-Original Message-
From: Scott Bounds [mailto:[EMAIL PROTECTED]
Sent: 11 January 2007 06:21
To: php-general@lists.php.net
Subject: Re: [PHP] Please Help with simple Noob problem
Jochem Maas wrote:
Scott Bounds wrote:
Hello all. I seem to be having a terrible tim ewith something that is
-Original Message-
From: Scott Bounds [mailto:[EMAIL PROTECTED]
Sent: 11 January 2007 07:16
To: php-general@lists.php.net
Subject: Re: [PHP] Please Help with simple Noob problem
Arno, you nailed it right on the head. You and someone else told me
that. I am glad that you did because that
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
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
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
-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
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
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
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
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
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
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
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
-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
-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
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 =
The only two ways I can think this could work is you must either write the
output to a file with a php extension and then include that file, or you
must set up the apache server to parse html files in the same way as it does
php files. Just doing a normal output on a standard server won't
Solved (see bottom of message) but surely there's a better solution?
Sorry for this looong explanation, but I've been tearing my hair out with
this problem...
I use php 4.3.4 and ADOdb 4.64, developing on Win2000.
I've got magic_quotes_gpc switched off explicitly in htaccess, and I checked
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: 30 May 2006 06:11
To: Mindaugas L
Cc: php-general@lists.php.net
Subject: Re: [PHP] how include works?
On Tue, May 23, 2006 6:19 pm, Mindaugas L wrote:
can anybody explain how require works, and what's the difference
On 5/30/06, Arno Kuhl [EMAIL PROTECTED] wrote:
I understand the difference well enough, but I've never really understood
the reason for having both. Is it to help find errors in sloppy coding, or
is there a case where including a file more than once is desirable (and
won't cause an error
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: 27 June 2006 03:11
To: Peter Lauri
Cc: 'George Pitcher'; php-general@lists.php.net
Subject: Re: [PHP] Controlling a scanner with PHP
Peter Lauri wrote:
Probably nobody, as PHP is a Server Side Scripting Language.
If there's
If it was working properly the function would be callable. Your include is
probably not working - change it to require and see if you get an error.
Using include doesn't give you an error if the include file is not found.
Arno
DotContent
Professional Content Management
-Original Message-
From: Petr Smith [mailto:[EMAIL PROTECTED]
Sent: 09 November 2005 11:27
To: php-general@lists.php.net
Subject: Re: [PHP] PHP Search Engine
Richard Lynch wrote:
On Tue, November 8, 2005 11:20 pm, Leonard Burton wrote:
Has anyone on here created a search engine in PHP?
Nusphere PhpED and love it. Tried a few other editors but stayed with PhpED
now for the last year and about to renew my subscription. Excellent project
management, brilliant debugger (local and remote), code error detection and
highlighting, fast (much faster than the java editors), able to handle
Nusphere PhpED and love it. Tried a few other editors but stayed with PhpED
now for the last year and about to renew my subscription. Excellent project
management, brilliant debugger (local and remote), code error detection and
highlighting, fast (much faster than the java editors), able to handle
Or just append it...
Example:
$var = ;
$result = mysql_query(³SELECT filename, page_title FROM table²);
while ($row = mysql_fetch_assoc($result))
{
$var .= a
href=\²$htmldir{$row[filename¹]}\²{$row[page_title¹]}/abr /;
}
echo $var;
Arno
-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?
-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
-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
-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
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
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
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
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
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
-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
-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
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
-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
-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
-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
-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
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
-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
-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,
-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.
+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
+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
+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
-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
-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
-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
-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
-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
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
-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
-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
-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
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
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
-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
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
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
-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'.
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}
-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
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
-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
-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
_
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
-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
-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
-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
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,
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
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
-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
-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:
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
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
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
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
...@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
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:
-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
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
1 - 100 of 118 matches
Mail list logo