From: Phpster
To: Lamp Lists
Cc: "php-general@lists.php.net"
Sent: Wednesday, June 3, 2009 8:30:05 PM
Subject: Re: [PHP] how to manage permissions for file uploader
This is fairly simple to do as an http upload. With the folder above the web
roo
From: Phpster
To: Lamp Lists
Cc: "php-general@lists.php.net"
Sent: Wednesday, June 3, 2009 8:30:05 PM
Subject: Re: [PHP] how to manage permissions for file uploader
This is fairly simple to do as an http upload. With the folder above the web
roo
to upload an image for a photo gallery (my own code) I have to have permission
for the directory images 0777.
but having permission for a directory 0777 is REALLY bad idea, isn't it?
I'm "owner" of the directory (lamp:lamp images).
what to do to set my code has permission to upload an image into
From: Bastien Koert
To: Lamp Lists
Cc: Marc Steinert ; php-general@lists.php.net
Sent: Tuesday, April 14, 2009 8:11:04 AM
Subject: Re: [PHP] try - catch is not so clear to me...
On Mon, Apr 13, 2009 at 11:34 PM, Lamp Lists wrote
From: Marc Steinert
To: Lamp Lists
Cc: php-general@lists.php.net
Sent: Monday, April 13, 2009 11:27:08 AM
Subject: Re: [PHP] try - catch is not so clear to me...
Basically try-catch gives you the ability to handle errors outside a class or
method scope, by
>
> From: Lamp Lists
> To: php-general@lists.php.net
> Sent: Monday, April 13, 2009 9:29:16 AM
> Subject: [PHP] try - catch is not so clear to me...
>
> hi to all!
>
> actually, the statement in the Subject line is not 100% correct.
From: Kyle Smith
To: Lamp Lists
Cc: php-general@lists.php.net
Sent: Monday, April 13, 2009 9:52:36 AM
Subject: Re: [PHP] try - catch is not so clear to me...
Lamp Lists wrote:
hi to all!
actually, the statement in the Subject line is not 100% correct. I
hi to all!
actually, the statement in the Subject line is not 100% correct. I understand
the purpose and how it works (at least I think I understand :-)) but to me it's
so complicated way?
let's take a look in example from php.net(http://us3.php.net/try)
getMessage(), "\n";
}
// Continue exe
From: Ashley Sheridan
To: Lamp Lists
Cc: php-general@lists.php.net
Sent: Wednesday, January 14, 2009 4:47:28 PM
Subject: Re: [PHP] HTML pages are faster then php?
On Wed, 2009-01-14 at 14:34 -0800, Lamp Lists wrote:
> hi,
> as far as I know (at least I wa
hi,
as far as I know (at least I was told so) html page will download faster then
the same page made with php getting the same info from mysql, right?
let's pretend we are building php/mysq based website of one football team.
there are pages of every player, about the team, games etc.
in admin a
From: Jim Lucas
To: Robert Cummings
Cc: Nathan Rixham ; Richard Heyes ;
lamp.li...@yahoo.com; "php-general@lists.php.net"
Sent: Thursday, January 8, 2009 10:51:32 AM
Subject: Re: [PHP] redoing website after 7 years
Robert Cummings wrote:
> On Wed, 2009-01-07
I think I did code well (everybody can say the code is 100% proof - until get
hacked ;-)) and never, for these 7 years had problems. And I'm sure the site
will be just ok if I switch register_globals back to On through .htaccess.
Actually, I offered the client 3 options: 1. redo the website (aft
From: Al
To: php-general@lists.php.net
Sent: Thursday, January 8, 2009 11:50:26 AM
Subject: [PHP] Re: redoing website after 7 years
Lamp Lists wrote:
> hi guys,
> I did php/mysql based website for one my client 7 years ago, in time when
> register_gl
From: Stuart
To: lamp.li...@yahoo.com
Cc: php-general@lists.php.net
Sent: Wednesday, January 7, 2009 8:29:48 AM
Subject: Re: [PHP] redoing website after 7 years
2009/1/7 Lamp Lists :
> hi guys,
> I did php/mysql based website for one my client 7 years a
hi guys,
I did php/mysql based website for one my client 7 years ago, in time when
register_globals was on by default.
hosting company upgraded server to php5/mysql5 and turned globals off. the site
is doesn't work any more.
I can define globals on again in .htaccess but rather not because it cou
- Original Message
From: tedd <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Sent: Monday, October 20, 2008 4:15:02 PM
Subject: Re: [PHP] what's the difference in the following code?
At 10:12 AM -0400 10/20/08, Daniel Brown wrote:
>On Mon, Oct 20, 2008 at 10:02 AM, tedd <[EMAIL PROTE
- Original Message
From: tedd <[EMAIL PROTECTED]>
To: Lamp Lists <[EMAIL PROTECTED]>; php-general@lists.php.net
Sent: Monday, October 20, 2008 8:25:50 AM
Subject: Re: [PHP] what's the difference in the following code?
At 10:58 AM -0700 10/17/08, Lamp Lists wrote:
>I&
I'm reading "Essential PHP Security" by Chris Shiflett.
on the very beginning, page 5 & 6, if I got it correct, he said this is not
good:
$search = isset($_GET['search']) ? $_GET['search'] : '';
and this is good:
$search = '';
if (isset($_GET['search']))
{
$search = $_GET['search'];
}
wha
Hi,
Right now I use one file, usually called functions.php, with all functions I'm
going to use most likely on every page.
Then, I create each function I'm going to use once in a while as separate file.
Pro: I would include a function when I'm going to use.
Con: I have to write extra include line
SSIONID=..." maybe.. ev0l but works..
2008/3/26, Lamp Lists <[EMAIL PROTECTED]>:
>
> --- Richard Lynch <[EMAIL PROTECTED]> wrote:
>
> > On Tue, March 25, 2008 4:07 pm, Lamp Lists wrote:
> > > - Original Message
> > > From: Andrew Ball
- Original Message
From: Stut <[EMAIL PROTECTED]>
To: Lamp Lists <[EMAIL PROTECTED]>
Cc: php General list
Sent: Friday, March 28, 2008 4:22:25 PM
Subject: Re: [PHP] does function extract() trim?
On 28 Mar 2008, at 21:14, Lamp Lists wrote:
> - Original Message --
- Original Message
From: Stut <[EMAIL PROTECTED]>
To: Lamp Lists <[EMAIL PROTECTED]>
Cc: php General list
Sent: Friday, March 28, 2008 4:02:27 PM
Subject: Re: [PHP] does function extract() trim?
On 28 Mar 2008, at 20:59, Lamp Lists wrote:
> do not laugh, but I &qu
do not laugh, but I "discovered" today function
extract(); :D
before I used:
foreach ($array as $key => $value)
{
${$key} = trim($value);
}
though, "trimming" $value is kind of important to me
and I would like to know if extract "trims" too?
thanks.
-ll
--- Richard Lynch <[EMAIL PROTECTED]> wrote:
> On Tue, March 25, 2008 4:07 pm, Lamp Lists wrote:
> > - Original Message
> > From: Andrew Ballard <[EMAIL PROTECTED]>
> > To: PHP General list
> > Sent: Tuesday, March 25, 2008 3:41:35 PM
> &
- Original Message
From: Hélio Rocha <[EMAIL PROTECTED]>
To: Lamp Lists <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2008 5:14:40 AM
Subject: Re: [PHP] loosing session in new window (IE only)
If u open the link in the same window, what's the behaviour?
On Tue, Mar 25
- Original Message
From: Hélio Rocha <[EMAIL PROTECTED]>
To: Lamp Lists <[EMAIL PROTECTED]>
Sent: Wednesday, March 26, 2008 5:14:40 AM
Subject: Re: [PHP] loosing session in new window (IE only)
If u open the link in the same window, what's the behaviour?
On Tue, Mar 25
- Original Message
From: Andrew Ballard <[EMAIL PROTECTED]>
To: PHP General list
Sent: Tuesday, March 25, 2008 3:41:35 PM
Subject: Re: [PHP] loosing session in new window (IE only)
On Tue, Mar 25, 2008 at 3:49 PM, Lamp Lists <[EMAIL PROTECTED]> wrote:
> hi,
> i have a
hi,
i have a list of people on one page. each row, on the end has link view details.
it's requested to open detail page in new window.
very few people complained they can't open detail page. all of them use IE.
I wasn't able to reproduce the error, though using GoToMeeting I was able to
look while
- Original Message
From: Paul Novitski <[EMAIL PROTECTED]>
To: php-general@lists.php.net
Sent: Tuesday, March 25, 2008 3:05:43 PM
Subject: Re: [PHP] losing session in new window (IE only) [WAS: loosing...]
At 3/25/2008 12:49 PM, Lamp Lists wrote:
>i have a list of people on
- Original Message
From: Nathan Nobbe <[EMAIL PROTECTED]>
To: Lamp Lists <[EMAIL PROTECTED]>
Cc: php-general@lists.php.net
Sent: Thursday, March 20, 2008 11:35:42 AM
Subject: Re: [PHP] why use {} around vraiable?
On Thu, Mar 20, 2008 at 12:22 PM, Lamp Lists <[EMAIL PR
hi,
I saw several times that some people use this
$parameters = array(
'param1' => "{$_POST["param1"]}",
'param2' => "{$_POST["param2"]}"
);
or
$query = mysql_query("SELECT * FROM table1 WHERE id='{$session_id}'");
I would use:
$parameters = array(
'param1' => $_POST["param1"],
'par
- Original Message
From: Eric Butera <[EMAIL PROTECTED]>
To: Lamp Lists <[EMAIL PROTECTED]>
Cc: tedd <[EMAIL PROTECTED]>; php-general@lists.php.net
Sent: Thursday, March 20, 2008 11:00:19 AM
Subject: Re: [PHP] Double click problem
On Thu, Mar 20, 2008 at 10:39 AM,
opinions of "good book is almost the same as opinion of "good car".
I can suggest you to go to barnes and noble or borders or any other bookstore,
buy cup of coffee or tea, grab all php books from shelf and read some chapters.
you are no going to learn anything, rather to compare "styles". some a
the way I solved the "click back button" issue (simplified vresion):
confirmation page (conf.php) -> transfer page (tp.php) -> thank you page
(typ.php)
#conf.php
# after the form is submitted and confirmed
header('location: tp.php?url=typ.php');
exit;
#tp.php
header('location:$_GET['url']);
exi
hi to all!
on one eZine site, I have to show when the article is posted but as
difference from NOW. like "posted 32 minutes ago", or "posted 5 days ago".
is there already sucha php/mysql function?
thanks.
-ll
-
Never miss a thing. Make
--- tedd <[EMAIL PROTECTED]> wrote:
> At 7:06 AM -0800 3/8/08, Lamp Lists wrote:
> >
> >That's actually part I'm interested the most :D
> What
> >is reasonable? Is reasonable for sucha project with
> >complex product catalog and ordering syst
--- Per Jessen <[EMAIL PROTECTED]> wrote:
> Lamp Lists wrote:
>
> > now, I didn't have such a big project "on side"
> ever. and I by default
> > ALWAY suck in calculations how much time I need
> for a project and what
> > to charge. I think
hi,
maybe my question is not exactly for php list, but since php IS involved and
since you are such a great people, I hope the question will not disturb you :D
I have a project for one electric wholesale store to build a web site. it has
to be dynamic, php, database driven web site.
it will have
38 matches
Mail list logo