From my experience to maintain many virtual host, I prefer use Apache + PHP
+ suPHP. I think this combination will be able to cover your ideal
situation above. But, I usually use authentication via shell user
(/etc/user). You must find tutorial or something that integrate Apache and
Active
On 8/25/12 7:50 AM, Duken Marga wrote:
From my experience to maintain many virtual host, I prefer use Apache
+ PHP + suPHP. I think this combination will be able to cover your ideal
situation above. But, I usually use authentication via shell user
(/etc/user). You must find tutorial or
On Sun, Aug 26, 2012 at 2:30 AM, D. Dante Lorenso da...@lorenso.com wrote:
Using VirtualDocumentRoot, I was able to create a virtual host defined
like this:
VirtualHost *:80
ServerName student.sampledomain.edu
ServerAlias *.student.sampledomain.edu
DocumentRoot
All,
I need to set up a server to enable 5,000 students to have web hosting
provided by the school with PHP and MySQL support. I'm trying to figure
out what is the best way to do this.
We have Active Directory and are using Centrify to authenticate
usernames and passwords on our Linux
For my applications, I've been using includes and other file addressing by
using the doc root as the base dir. e.g.
require_once $_SERVER['DOCUMENT_ROOT'] .
'/miniRegDB/includes/miniRegDBconfig.php';
Recently, I ran into a problem with a new installation on a shared host where
the doc root
-Original Message-
From: Al [mailto:n...@ridersite.org]
Sent: Thursday, May 10, 2012 11:44 AM
To: php-general@lists.php.net
Subject: [PHP] Best practice question regarding set_include_path()
For my applications, I've been using includes and other file addressing by
using the doc root
On Thu, May 10, 2012 at 1:50 PM, admin ad...@buskirkgraphics.com wrote:
-Original Message-
From: Al [mailto:n...@ridersite.org]
Sent: Thursday, May 10, 2012 11:44 AM
To: php-general@lists.php.net
Subject: [PHP] Best practice question regarding set_include_path()
For my
-Original Message-
From: Rico Secada [mailto:coolz...@it.dk]
Sent: Sunday, October 24, 2010 9:06 PM
To: php-general@lists.php.net
Subject: [PHP] Best practice for if (!$stmt-execute())
Hi.
I have been doing like this:
if (!$stmt-execute()) {
return false;
} else
On Mon, 25 Oct 2010 00:26:23 -0700
Tommy Pham tommy...@gmail.com wrote:
-Original Message-
From: Rico Secada [mailto:coolz...@it.dk]
Sent: Sunday, October 24, 2010 9:06 PM
To: php-general@lists.php.net
Subject: [PHP] Best practice for if (!$stmt-execute())
Hi.
I have
On Mon, Oct 25, 2010 at 06:06:24AM +0200, Rico Secada wrote:
Hi.
I have been doing like this:
if (!$stmt-execute()) {
return false;
} else {
... some code
return true;
OR
return $foo; // Some int, string, whatever.
}
I am thinking about changing the return
On Mon, 25 Oct 2010 22:56:37 -0400
Paul M Foster pa...@quillandmouse.com wrote:
Bear in mind, an error is *never* that a query returned no data or
data the user might consider bad.
This is an important point. When is an error an actual error? When is
it something that *needs* to be logged and
On Tue, Oct 26, 2010 at 06:27:33AM +0200, Rico Secada wrote:
On Mon, 25 Oct 2010 22:56:37 -0400
Paul M Foster pa...@quillandmouse.com wrote:
Bear in mind, an error is *never* that a query returned no data or
data the user might consider bad.
This is an important point. When is an error
Hi.
I have been doing like this:
if (!$stmt-execute()) {
return false;
} else {
... some code
return true;
OR
return $foo; // Some int, string, whatever.
}
I am thinking about changing the return false with a:
if (!$stmt-execute()) {
die(DB_ERROR);
This way
Hi All,
I am creating a social networking website. I want that every user should
have there own profile page with a static URL like-
http://www.abcnetwork/user/username
Where username will be dynamic userid or something else.
This is something very similar to
- Original Message
From: Gaurav Kumar kumargauravjuke...@gmail.com
To: php-general@lists.php.net
Sent: Monday, September 21, 2009 12:54:30 AM
Subject: [PHP] Best Practice to Create Dynamic URL's- With Username
Hi All,
I am creating a social networking website. I want that every
On Mon, 2009-09-21 at 13:24 +0530, Gaurav Kumar wrote:
Hi All,
I am creating a social networking website. I want that every user should
have there own profile page with a static URL like-
http://www.abcnetwork/user/username
Where username will be dynamic userid or something else.
Hi,
...
As has been suggested you could use mod_rewrite, but you don't have to
if your needs are simple (or maybe you don't have it). You could also
use the ForceType directive. Eg on my website the URLs are like this:
http://www.phpguru.org/article/20-years-of-php
Where article is actually a
A Big Thanks to all of you.
Question I was Asked by Andrea- mod_reqrite or .htaccess is the answer, but
I wonder why you choose /user/username rather than just /username a la
twitter.
I will be using many other aspects of my users something like
/projects/username/; /gallery/username/.
OK
Question I was Asked by Andrea- mod_reqrite or .htaccess is the answer, but
I wonder why you choose /user/username rather than just /username a la
twitter.
I will be using many other aspects of my users something like
/projects/username/; /gallery/username/.
well, it does not matter
I totally agree with this architecture.
You are correct, I am just in the starting phase of the project and in fact
still need to define the architecture in detail.
Now the question I asked in my last reply is still to be answered?
Gaurav Kumar
OSWebstudio.Com
On Mon, Sep 21, 2009 at 3:06 PM,
On Mon, 2009-09-21 at 15:20 +0530, Gaurav Kumar wrote:
I totally agree with this architecture.
You are correct, I am just in the starting phase of the project and in
fact still need to define the architecture in detail.
Now the question I asked in my last reply is still to be answered?
Thanks Ashley and all the folks out there...
On Mon, Sep 21, 2009 at 3:25 PM, Ashley Sheridan
a...@ashleysheridan.co.ukwrote:
On Mon, 2009-09-21 at 15:20 +0530, Gaurav Kumar wrote:
I totally agree with this architecture.
You are correct, I am just in the starting phase of the project and
- Original Message
From: Ashley Sheridan a...@ashleysheridan.co.uk
To: Gaurav Kumar kumargauravjuke...@gmail.com
Cc: Andrea Giammarchi an_...@hotmail.com; php-general@lists.php.net
Sent: Monday, September 21, 2009 2:55:20 AM
Subject: Re: [PHP] Best Practice to Create Dynamic URL's
Subject: Re: [PHP] Best Practice to Create Dynamic URL's- With Username
On Mon, 2009-09-21 at 15:20 +0530, Gaurav Kumar wrote:
I totally agree with this architecture.
You are correct, I am just in the starting phase of the project and in
fact still need to define the architecture
Bastien Koert wrote:
No, as all of our users have to authorized to use the app, we store
the desired language in a field in the user record. However, we also
supply functionality via a drop down to allow the user to change the
language if desired.
Okay, that's very similar to my approach.
Per Jessen:
The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper.
It supports. We use it. But only in MsgStr (translation), not in MsgId
(original strings).
--
toby
http://toby.cz/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Jan Kaštánek wrote:
Per Jessen:
The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper.
It supports. We use it. But only in MsgStr (translation), not in MsgId
(original strings).
Yeah, I found out too. (from the GNU gettext docu).
/Per Jessen, Zürich
--
PHP General
Sorry guys,
I meant that the current application database is not configured for
utf-8
Bastien
Sent from my iPod
On Jan 27, 2009, at 6:04, Per Jessen p...@computer.org wrote:
Jan Kaštánek wrote:
Per Jessen:
The gettext db doesn't support UTF8??? Uh oh, that's a show-stopper.
It
Phpster wrote:
Dunno if it's a best practice, but I store all the translations in the
db for easy manipulation and extraction to a file for others to
translate. That obviously involves both import and export utilities.
Hi Bastien
interesting - does this mean you're also coding for
On Mon, Jan 26, 2009 at 12:21 PM, Per Jessen p...@computer.org wrote:
Phpster wrote:
Dunno if it's a best practice, but I store all the translations in the
db for easy manipulation and extraction to a file for others to
translate. That obviously involves both import and export utilities.
-Original Message-
From: Bastien Koert [mailto:phps...@gmail.com]
Sent: Monday, January 26, 2009 12:23 PM
To: Per Jessen
Cc: php-general@lists.php.net
Subject: Re: [PHP] best practice wrt multi-lingual websites, gettext()
etc.
---8---
At work, we don't use gettext() since
I am writing a small(ish) site which will eventually need to be
available in several different languages. This needs to more or less
transparent to the user, so I am using Apaches content negotiation
features, which is working very well.
The issues arise once I start looking at PHP and
Dunno if it's a best practice, but I store all the translations in the
db for easy manipulation and extraction to a file for others to
translate. That obviously involves both import and export utilities.
At work we to the translation in real time thru a render page that
combined the data
I can't help with the bits you are asking about, but I can give this
advice:
Don't rely solely on the Apache/browser content-negotiation, please.
This one time...
I was in Paris.
I was at an Internet Cafe.
I couldn't change browser settings.
Some sites that I knew were available in English
Richard Lynch wrote:
I can't help with the bits you are asking about, but I can give this
advice:
Don't rely solely on the Apache/browser content-negotiation, please.
Don't worry, the site already has a user-override option.
/Per Jessen, Zürich
--
PHP General Mailing List
Would this be set in the apache.conf file or the php.ini file?
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 16, 2006 9:19 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Best practice to set up register_globals
On Thu, Mar 16, 2006 at 08:46
Curt Zirzow wrote:
On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.
It is set up to off in php.ini, as it should, but I'd like to know what
the best fashion
Curt Zirzow wrote:
On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.
It is set up to off in php.ini, as it should, but I'd like to know
what the best fashion
On 3/18/06, Nicolas Verhaeghe [EMAIL PROTECTED] wrote:
Curt Zirzow wrote:
On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.
It is set up to off in php.ini,
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.
It is set up to off in php.ini, as it should, but I'd like to know what
the best fashion would be for me to set it on locally for this domain
only.
Thanks!
--
PHP General Mailing List
Nicolas Verhaeghe wrote:
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.
It is set up to off in php.ini, as it should, but I'd like to know what
the best fashion would be for me to set it on locally for this domain
only.
If you
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.
It is set up to off in php.ini, as it should, but I'd like to know what
the best fashion would be for me to set it on locally for this domain
only.
Thanks!
On Thu, Mar 16, 2006 at 08:46:07PM -0700, Nicolas Verhaeghe wrote:
One of my clients has an os commerce install which requires
register_globals to be set to on, for some reason.
It is set up to off in php.ini, as it should, but I'd like to know what
the best fashion would be for me to set it
On this note - what is considered best practice in a - sent to friend
type thing.
i.e. User inputs their name + message + email + friends email into a
html/flash form
friend gets a link to read the message.
currently I do this:
1 collect form input
2 create hash using the md5/uniqid method :
Hello Guy,
Thursday, December 9, 2004, 12:34:03 PM, you wrote:
GB There's never a security issue here - i.e. i don't mind how many times /
GB who reads the message, but just want to make it hard to just guess keys
GB to read other messages (otherwise it would just be the db id)
GB This method
Guy Bowden wrote:
On this note - what is considered best practice in a - sent to friend
type thing.
i.e. User inputs their name + message + email + friends email into a
html/flash form
friend gets a link to read the message.
currently I do this:
1 collect form input
2 create hash using
On Fri, 2004-07-23 at 00:06, Justin Patrin wrote:
On Thu, 22 Jul 2004 23:48:54 +0300, EE [EMAIL PROTECTED] wrote:
Dears,
I am planing to rewrite my website. My site is tutorial-type site I
wrote it, when I first learned php3, as an undergraduate research class.
I think the code is
On Fri, 2004-07-23 at 04:57, Justin French wrote:
On 23/07/2004, at 6:48 AM, EE wrote:
1. Printer Friendly Version Capability
This can be achieved with media specific style sheets stylesheets -- no
need for separate templates.
Do you recommend any tutorial?
2. Search-ability
On Fri, 23 Jul 2004 17:51:52 +0300, EE [EMAIL PROTECTED] wrote:
On Fri, 2004-07-23 at 00:06, Justin Patrin wrote:
On Thu, 22 Jul 2004 23:48:54 +0300, EE [EMAIL PROTECTED] wrote:
Dears,
I am planing to rewrite my website. My site is tutorial-type site I
wrote it, when I first learned
Dears,
I am planing to rewrite my website. My site is tutorial-type site I
wrote it, when I first learned php3, as an undergraduate research class.
I think the code is sloppy as it is mixed with the HTML. I would like to
rewrite the site utilizing the good things such OOP classes, template,
etc.
On Thu, 22 Jul 2004 23:48:54 +0300, EE [EMAIL PROTECTED] wrote:
Dears,
I am planing to rewrite my website. My site is tutorial-type site I
wrote it, when I first learned php3, as an undergraduate research class.
I think the code is sloppy as it is mixed with the HTML. I would like to
On 23/07/2004, at 6:48 AM, EE wrote:
1. Printer Friendly Version Capability
This can be achieved with media specific style sheets stylesheets -- no
need for separate templates.
2. Search-ability
For the most part, this can be achieved with MySQL's fulltext search
capabilities. You just need
Hello,
What will be the best database structure for creating web site
navigation, menus with submenus (unlimited levels).
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi
Am Mo, 2004-04-19 um 15.22 schrieb dr. zoidberg:
Hello,
What will be the best database structure for creating web site
navigation, menus with submenus (unlimited levels).
If you are fine with oop, than maybe
http://pear.php.net/package/DB_NestedSet
would be worth a look. Renderers
I'm working on converting several static (price) pages on our site into dynamic
pages, with the data stored in an MySQL database and PHP to pull the data out, with
CSS to build the page and present it. At the same time, I would also like to have a
'printer friendly' link on each page
Ashley,
This is difficult to answer, as you are actually the best person to
decide. Consider some of the following things:
1. How often do you anticipate people will use the printer-friendly link?
2. How much data do you anticipate, on average, to be contained in the
results of these queries?
-roberts.com
[EMAIL PROTECTED]
- Original Message -
From: Ashley M. Kirchner [EMAIL PROTECTED]
To: PHP-General List [EMAIL PROTECTED]
Sent: Saturday, September 21, 2002 7:51 PM
Subject: [PHP] Best Practice
I'm working on converting several static (price) pages
On 21 Sep 2002 at 12:51, Ashley M. Kirchner wrote:
I'm working on converting several static (price) pages on our site
into dynamic pages, with the data stored in an MySQL database and
PHP to pull the data out, with CSS to build the page and present it.
I don't see how CSS would
Hi there,
On Sunday, September 22, 2002 12:20 PM
Subject: Re: [PHP] Best Practice
Peter J. Schoenster wrote:
snip
On 21 Sep 2002 at 12:51, Ashley M. Kirchner wrote:
I'm working on converting several static (price) pages on our site
into dynamic pages, with the data stored
On 22 Sep 2002 at 12:31, Edwin wrote:
Actually, in a sense, CSS can build a page--esp. if build means how
data are to be presented (formatted) by the browser. Remember, with CSS
you can hide and unhide elements?
Ah .. yes ... forgot about that. That is building. Appreciate the
reminder.
-Original Message-
From: Jon Haworth [mailto:[EMAIL PROTECTED]]
Sent: 19 September 2002 18:18
What are peoples' thoughts on one should always return a value from a
function, even if it's always going to be true?
Unprintable!!
There's no point in returning a value if there's no
Hi list,
What are peoples' thoughts on one should always return a value from a
function, even if it's always going to be true?
Cheers
Jon
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
One extra variable to be declared to catch the true (if you do try
and catch it) and one extra line (the return line in the function),
I'd say skip it if you know your never returning anything different.
Adam Voigt
[EMAIL PROTECTED]
On Thu, 2002-09-19 at 13:17, Jon Haworth wrote:
Hi list,
Hi Adam,
What are peoples' thoughts on one should always return
a value from a function, even if it's always going to be
true?
I'd say skip it if you know your never returning anything
different.
Yeah, that's what I was leaning towards :-)
What prompted the question was a
-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 30, 2001 5:08 PM
To: Mark Roedel
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Best Practice-HTML In Database
Yes, I will need to provide searching capabilities.
Basically, I'm creating
-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 29, 2001 10:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Best Practice-HTML In Database
Hello everyone,
I'm curious. Which is the better practice?
1) Insert the HTML page (...HTML code
is waiting, are you ready?
-+___+-
On Mon, 30 Apr 2001, Mark Roedel wrote:
-Original Message-
From: John Monfort [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 29, 2001 10:40 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Best Practice-HTML In Database
Hello everyone,
I'm curious. Which is the better practice?
1) Insert the HTML page (...HTML code) in the database ?
or
2) Insert a URL in the database field, that points to the HTML page?
why?
Any help will be appreciated.
Btw, thank you all for helping with my previous
If you ever need to update the HTML, option 2 will be a lot easier.
Mick
On Sun, 29 Apr 2001, John Monfort wrote:
Hello everyone,
I'm curious. Which is the better practice?
1) Insert the HTML page (...HTML code) in the database ?
or
2) Insert a URL in the database
Using an URL to point to an HTML page or file is
better.
Inserting the HTML page in the database would cause:
a) more database requests and thus heavy load on the
database
b) large amount traffic between the database server
and the web server
At my previous company we even ended up removing the
70 matches
Mail list logo