Stut wrote:
Make any PHP-based script available without usage-restriction, and
you've got yourself a DDOS potential. Using exec() doesn't change
anything.
I would argue that it makes it easier since creating and tearing down
processes is a pretty expensive operation for most OS's, but
Hi,
I have downloaded and setup the Apachi web server and My SQL 5.0.51a prior
to my PHP installation on the windows platform. As I have downloaded the PHP
5.2.5 version (msi) and installed it on my system, it gave some errors that
says a lot of dll's and sort of files are missing. I checked
--- Richard Kurth [EMAIL PROTECTED] wrote:
Is there a way that I can call a function that will send an email
and
then move on redirecting to another website without having to what
for
the email to send?
SendEmail($memberemail,$MailFrom,$MailHost);
header(Location:http://domain.com;);
Why don’t you try installing it the easy way through WAMP. It installs PHP,
MySQL, and Apache all configured and ready to go.
http://www.wampserver.com/en/
Includes :
- Apache 2.2.6
- MySQL 5.0.45
- PHP 5.2.5
From: Yoshika Kehelpannala [mailto:[EMAIL PROTECTED]
Sent:
--- Yoshika Kehelpannala [EMAIL PROTECTED] wrote:
Hi,
I have downloaded and setup the Apachi web server and My SQL
5.0.51a prior
to my PHP installation on the windows platform. As I have
downloaded the PHP
5.2.5 version (msi) and installed it on my system, it gave some
errors that
says
I had the same problems installing 5.2.5 last week on windows, the
installer's a bit corrupt!
I ended up having to manually install from the latest snapshot instead;
(download, extract, configure manually) alternatively, attempt to
install as best it will, then overwrite with a snapshot.
Hi,
I need to develop a website, but my management is rather unstable in his
vision for the layout.
I'm thinking of developing the components as classes and functions, and
then use a template system to render the layout.
If the management wishes to change the layout, I'll just have to modify
my
Hi,
I suggest you to use a framework. Lots of them implements template system
and more. You'll don't have to reinvent the wheel.
My favorit is Copix http://www.copix.org/
Email me if you need help.
Brice
On Feb 12, 2008 11:01 AM, Xavier de Lapeyre [EMAIL PROTECTED] wrote:
Hi,
I need to
Xavier de Lapeyre wrote:
Do any of you guys gurls know of a way to implement that template
system.
Smarty ?
(The best one I know of is that of Wordpress)
Regards,
Xavier de Lapeyre
Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
eval() is my favorite templating engine.
http://php.net/eval
Ditto on Eval()
PHP is already a templating system. Why go the long way around?
eval()? Man, you guys have some seriously large cajones. :p
thnx,
Chris
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Yoshika Kehelpannala wrote:
Hi,
I have downloaded and setup the Apachi web server and My SQL 5.0.51a
prior to my PHP installation on the windows platform. As I have
downloaded the PHP 5.2.5 version (msi) and installed it on my system, it
gave some errors that says a lot of dll’s and
Because its painful and fun at the same time :)
Aleksandar
Quoting Nate Tallman [EMAIL PROTECTED]:
Ditto on Eval()
PHP is already a templating system. Why go the long way around?
On Feb 12, 2008 10:13 AM, Greg Donald [EMAIL PROTECTED] wrote:
On 2/12/08, Xavier de Lapeyre [EMAIL
Jason Pruim wrote:
On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote:
Jason Pruim wrote:
Hi Everyone,
I know this isn't 100% on topic... But when is any post to this list
100% on topic? :)
I've been doing some googling trying to find info on how to plan for
what a website needs. Stuff
On Tue, 2008-02-12 at 14:22 -0600, Shawn McKenzie wrote:
Ryan A wrote:
Add my vote too for Smarty
HTH,
-R
Looking for last minute shopping deals?
Find them fast with
Hello,
on 02/08/2008 11:51 AM Zoltán Németh said the following:
Metabase also generates a separate class for installing or upgrading
your database schema. If you change the definition of you objects, you
just need to call that class to install, upgrade, downgrade your
database schemas, safely
On Feb 12, 2008, at 4:24 PM, Daniel Brown wrote:
On Feb 12, 2008 2:53 PM, Nathan Rixham [EMAIL PROTECTED] wrote:
Browsers generally send the the HTTP_ACCEPT_LANGUAGE header in a
request.
$_SERVER[HTTP_ACCEPT_LANGUAGE] = en-gb,en;q=0.5
thus with mine, preference is en-gb, failing that
*sigh* as always, firefox obeys, ie7 goes huh what?
Nathan Rixham wrote:
Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see
that, it's something I'd toyed with a few times in the past but found it
far too time consuming (even for me), and opted for the ol' redefine
Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see
that, it's something I'd toyed with a few times in the past but found it
far too time consuming (even for me), and opted for the ol' redefine
everything in CSS
*lightbulb* :: runs off to try css on custom tags why have i
On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote:
Custom tags (XML style ones anyways) provide support for arbitrary
ordering and omission of optional attributes. They nest nicer than
function calls, and they have the same general formatting as the HTML
with which you are
On Tue, 2008-02-12 at 15:02 -0600, Greg Donald wrote:
On Feb 12, 2008 2:57 PM, Robert Cummings [EMAIL PROTECTED] wrote:
I prefer content formatting encapsulation as provided by custom tags.
Decorators?
Custom tags (XML style ones anyways) provide support for arbitrary
ordering and omission
On 2/12/08, Nathan Nobbe [EMAIL PROTECTED] wrote:
also, in terms of scalability, isnt facebook proof that
memcache can scale?
memcached is behind facebook, livejournal (who made it), i believe
dealnews, flickr, twitter, pownce, typepad, fotolog, slashdot,
feedburner, 37signals, i think even
Shawn McKenzie wrote:
Can anyone recommend a preferably visual DB design tool? I normally use
mysql, but one that covered several types wood be cool. I'm on Linux,
so the new mysql workbench is a dud. I used it in an alpha or prior
version and it looked promising but crashed frequently.
REST is the new SOAP. Yaml is the new XML. I'm guessing this news
just hasn't made it into any PHP frameworks yet.
REST is fine for small communications but really isn't a very good
solution for large and complex communication. SOAP is the 600 pound
gorilla. Usually I use XML-RPC because
On Feb 12, 2008 6:27 PM, Greg Donald [EMAIL PROTECTED] wrote:
On Feb 12, 2008 4:23 PM, Nathan Nobbe [EMAIL PROTECTED] wrote:
well thats what xslt is, which is pretty nice.
/\ is a statement, not a question ;)
Wow dude, you're a rock. I meant my question was rhetorical, not your
-Original Message-
From: Emil Edeholt [mailto:[EMAIL PROTECTED]
Sent: Monday, February 11, 2008 5:17 AM
To: php-general@lists.php.net
Subject: [PHP] Security scanner
I've been trying Nessus to search for sql injections and
other security
issues. I'm quite sure Nessus is
Michael McGlothlin wrote:
REST is the new SOAP. Yaml is the new XML. I'm guessing this news
just hasn't made it into any PHP frameworks yet.
REST is fine for small communications but really isn't a very good
solution for large and complex communication. SOAP is the 600 pound
gorilla.
Can anyone recommend a preferably visual DB design tool? I normally use
mysql, but one that covered several types wood be cool. I'm on Linux,
so the new mysql workbench is a dud. I used it in an alpha or prior
version and it looked promising but crashed frequently. They say a
Linux version in
Nathan Nobbe wrote:
On Feb 12, 2008 7:42 PM, Michael McGlothlin [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] wrote:
REST is the new SOAP. Yaml is the new XML. I'm guessing this news
just hasn't made it into any PHP frameworks yet.
YAML doesn't seem significantly easier
On Feb 12, 2008 7:42 PM, Michael McGlothlin [EMAIL PROTECTED] wrote:
REST is the new SOAP. Yaml is the new XML. I'm guessing this news
just hasn't made it into any PHP frameworks yet.
YAML doesn't seem significantly easier (faster less intensive) to
parse than XML, it doesn't seem as
On 2/12/08, Per Jessen [EMAIL PROTECTED] wrote:
My mistake - I though I'd understood that memcached would replicate
objects across the servers, but that's clearly wrong.
If I've got it right, virtually every access to a cached object will
require network traffic? (the exception being those
On Feb 12, 2008 4:23 PM, Nathan Nobbe [EMAIL PROTECTED] wrote:
well thats what xslt is, which is pretty nice.
/\ is a statement, not a question ;)
Wow dude, you're a rock. I meant my question was rhetorical, not your
statement about my question.
/me point Nathan to
Hi,
I usually use a MoSCoW Analysis.
http://en.wikipedia.org/wiki/MoSCoW_Method
From then on, I move into detailing each needs.
The S - Should have and C - could have parts are rather tricky if you are new
to it.
So far this method has saved me more than once in many projects.
The most
On Feb 12, 2008 5:10 PM, Greg Donald [EMAIL PROTECTED] wrote:
On Feb 12, 2008 3:37 PM, Nathan Nobbe [EMAIL PROTECTED] wrote:
well thats what xslt is, which is pretty nice.
/\ is a statement, not a question ;)
/me point Nathan to http://en.wikipedia.org/wiki/Rhetorical_question
XSLT
Nathan Rixham wrote:
Shawn McKenzie wrote:
Ryan A wrote:
Add my vote too for Smarty
HTH,
-R
Looking for last minute shopping deals? Find them fast with Yahoo!
Search.
On Feb 12, 2008 3:37 PM, Nathan Nobbe [EMAIL PROTECTED] wrote:
well thats what xslt is, which is pretty nice.
/me point Nathan to http://en.wikipedia.org/wiki/Rhetorical_question
XSLT sucks, complete overkill.
--
Greg Donald
http://destiney.com/
--
PHP General Mailing List
On Feb 12, 2008 4:45 PM, Robert Cummings [EMAIL PROTECTED] wrote:
well thats what xslt is, which is pretty nice.
Nah, I don't bother with XSLT.
i know, i just thought id mention it, since xml was brought up and nobodys
even mentioned xslt yet.
i will likely move away from xslt, but i will
guys, you all know you can F5 in the view source bit of firefox yeah..
save's all the pre's and loads of time!
right click : view source : F5 till your done debugging.
:)
Christoph Boget wrote:
I agree. I usually add a little function like this to my PHP projects:
function debug( $var )
{
On Tue, 2008-02-12 at 16:37 -0500, Nathan Nobbe wrote:
On Feb 12, 2008 4:18 PM, Greg Donald [EMAIL PROTECTED] wrote:
On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote:
Custom tags (XML style ones anyways) provide support for arbitrary
ordering and omission of optional
On Tue, 2008-02-12 at 21:19 +, Nathan Rixham wrote:
Are you creating custom DTD's or 1.1 XHTML Mods then? I'd like to see
that, it's something I'd toyed with a few times in the past but found it
far too time consuming (even for me), and opted for the ol' redefine
everything in CSS
On Tue, 2008-02-12 at 15:18 -0600, Greg Donald wrote:
On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote:
Custom tags (XML style ones anyways) provide support for arbitrary
ordering and omission of optional attributes. They nest nicer than
function calls, and they have the
On Feb 12, 2008 4:18 PM, Greg Donald [EMAIL PROTECTED] wrote:
On Feb 12, 2008 3:15 PM, Robert Cummings [EMAIL PROTECTED] wrote:
Custom tags (XML style ones anyways) provide support for arbitrary
ordering and omission of optional attributes. They nest nicer than
function calls, and they
I agree. I usually add a little function like this to my PHP projects:
function debug( $var )
{
echo 'pre';
print_r( $var );
echo '/pre';
}
As an aside, you can save lines when debugging by doing:
echo 'pre' . print_r( $var, TRUE ) . '/pre';
thnx,
Chris
--
PHP General Mailing
2008/2/12, Xavier de Lapeyre [EMAIL PROTECTED]:
Hi,
I need to develop a website, but my management is rather unstable in his
vision for the layout.
I'm thinking of developing the components as classes and functions, and
then use a template system to render the layout.
If the management
I used Smarty for long time but now switched to two-step-rendering.
It's way more comfortable (for me). I suggest Zend_Layout + Zend_View
at the moment (framework.zend.com)
--
Łukasz Wojciechowski
On Feb 12, 2008 3:32 PM, Christoph Boget [EMAIL PROTECTED] wrote:
As an aside, you can save lines when debugging by doing:
echo 'pre' . print_r( $var, TRUE ) . '/pre';
OMG, thanks for that. Lines are so expensive nowadays and all.
--
Greg Donald
http://destiney.com/
--
PHP General
On Feb 12, 2008 1:58 PM, Nathan Rixham [EMAIL PROTECTED] wrote:
I still don't understand why general net users don't just like to see
print_r output; it's got all the info they could want, ordered and
structured *shrugs*
vote: text/plain
I agree. I usually add a little function like this to
Shawn McKenzie wrote:
Ryan A wrote:
Add my vote too for Smarty
HTH,
-R
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
On Feb 12, 2008 2:57 PM, Robert Cummings [EMAIL PROTECTED] wrote:
I prefer content formatting encapsulation as provided by custom tags.
Decorators?
--
Greg Donald
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Ryan A wrote:
Add my vote too for Smarty
HTH,
-R
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
Add my vote too for Smarty
HTH,
-R
Looking for last minute shopping deals?
Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
--
PHP
I still don't understand why general net users don't just like to see
print_r output; it's got all the info they could want, ordered and
structured *shrugs*
vote: text/plain
Aleksandar Vojnovic wrote:
Because its painful and fun at the same time :)
Aleksandar
Quoting Nate Tallman [EMAIL
Jason,
If you don't mind I may give you an email off the list in a moment to
brain storm up a quick list of questions to ask clients and indeed
client gotchas.
For the time being as this seems to be going down the line of how to
handle multilingual sites here's my two pennies.
XML, store
On Feb 12, 2008, at 2:09 PM, Aleksandar Vojnovic wrote:
Could you explain this a little better - ...into using a
database[1] for storing the
pages and using browser sniffing to find out what language
preference they currently had
selected to display in that language?
Aleksandar
I'll
Jason Pruim [EMAIL PROTECTED] wrote:
On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote:
Jason Pruim wrote:
Hi Everyone,
I know this isn't 100% on topic... But when is any post to this
list 100% on topic? :)
I've been doing some googling trying to find info on how to plan
Could you explain this a little better - ...into using a database[1]
for storing the
pages and using browser sniffing to find out what language preference
they currently had
selected to display in that language?
Aleksandar
Quoting Jason Pruim [EMAIL PROTECTED]:
On Feb 12, 2008, at 1:03
On Feb 12, 2008, at 1:03 PM, Nathan Rixham wrote:
Jason Pruim wrote:
Hi Everyone,
I know this isn't 100% on topic... But when is any post to this
list 100% on topic? :)
I've been doing some googling trying to find info on how to plan
for what a website needs. Stuff like Does it need a
Jason Pruim wrote:
Hi Everyone,
I know this isn't 100% on topic... But when is any post to this list
100% on topic? :)
I've been doing some googling trying to find info on how to plan for
what a website needs. Stuff like Does it need a forum, live support,
database driven etc. etc. Does
I don't suggest the use of a template system unless you do need something as
complex as XSLT. PHP itself works very well for templating. Just write your
code so that the UI code is sepperate from the logic and everything is neat and
tidy without adding a layer of complexity. If you want a
On Feb 12, 2008 2:53 PM, Nathan Rixham [EMAIL PROTECTED] wrote:
Browsers generally send the the HTTP_ACCEPT_LANGUAGE header in a request.
$_SERVER[HTTP_ACCEPT_LANGUAGE] = en-gb,en;q=0.5
thus with mine, preference is en-gb, failing that anything en; failing
that whatever you've got.
Jason Pruim wrote:
On Feb 12, 2008, at 2:09 PM, Aleksandar Vojnovic wrote:
Could you explain this a little better - ...into using a database[1]
for storing the
pages and using browser sniffing to find out what language preference
they currently had
selected to display in that language?
Ditto on Eval()
PHP is already a templating system. Why go the long way around?
On Feb 12, 2008 10:13 AM, Greg Donald [EMAIL PROTECTED] wrote:
On 2/12/08, Xavier de Lapeyre [EMAIL PROTECTED] wrote:
Do any of you guys gurls know of a way to implement that template
system.
eval() is my
On Tue, February 12, 2008 3:32 pm, Jason Pruim wrote:
On Feb 12, 2008, at 4:24 PM, Daniel Brown wrote:
On Feb 12, 2008 2:53 PM, Nathan Rixham [EMAIL PROTECTED] wrote:
Browsers generally send the the HTTP_ACCEPT_LANGUAGE header in a
request.
$_SERVER[HTTP_ACCEPT_LANGUAGE] = en-gb,en;q=0.5
On 2/12/08, Xavier de Lapeyre [EMAIL PROTECTED] wrote:
Do any of you guys gurls know of a way to implement that template
system.
eval() is my favorite templating engine.
http://php.net/eval
--
Greg Donald
http://destiney.com/
--
PHP General Mailing List (http://www.php.net/)
To
Hi Everyone,
I know this isn't 100% on topic... But when is any post to this list
100% on topic? :)
I've been doing some googling trying to find info on how to plan for
what a website needs. Stuff like Does it need a forum, live support,
database driven etc. etc. Does anyone have a form
Stut wrote:
There's no question of locking users to particular machines, nor of
uneven distribution. LVS will distribute evenly or according to
weights.
Indeed, but you must see that making the decision of which server to
use per request will result in a more even distribution than
Stut wrote:
There's no question of locking users to particular machines, nor of
uneven distribution. LVS will distribute evenly or according to
weights.
Indeed, but you must see that making the decision of which server to
use per request will result in a more even distribution than
Per Jessen wrote:
Stut wrote:
Of course, processing power, network capacity and memory are all very
cheap these days, so it's easy to put on the Microsoft hat and be
wasteful.
In my mind you're exchanging traffic over a local network (probably
1Gbps) for a less resilient load balancing
On Feb 12, 2008 10:55 AM, Per Jessen [EMAIL PROTECTED] wrote:
Nathan Nobbe wrote:
i mean, i do understand the vserver concept, is LVS essentially the
same as v-server,
http://linux-vserver.org/Welcome_to_Linux-VServer.org ?
Hi Nathan,
they're two very different things. The VServer
Nathan Nobbe wrote:
i mean, i do understand the vserver concept, is LVS essentially the
same as v-server,
http://linux-vserver.org/Welcome_to_Linux-VServer.org ?
Hi Nathan,
they're two very different things. The VServer project makes multiple
servers out of one, LVS makes multiple physical
On Tuesday 12 February 2008 16:06:04 Stut wrote:
Sancar Saran wrote:
Hello
On Tuesday 12 February 2008 13:39:19 Stut wrote:
I'll be using memcache as a simple cache. I hate sessions and avoid them
for anything but the most trivial sites. The main sites I work with no
longer use
Per Jessen wrote:
Stut wrote:
There's no question of locking users to particular machines, nor of
uneven distribution. LVS will distribute evenly or according to
weights.
Indeed, but you must see that making the decision of which server to
use per request will result in a more even
Stut wrote:
Of course, processing power, network capacity and memory are all very
cheap these days, so it's easy to put on the Microsoft hat and be
wasteful.
In my mind you're exchanging traffic over a local network (probably
1Gbps) for a less resilient load balancing system. By locking
Hello
For poor man's multinode, ADODB offers Sql based sessions, it was good enough
for starters.
Of course memcached based session storage was an option. But with this model
need better implementation. Memcached was just cache, there was no offical
way to backup data. (as far as I know)
Hello
On Tuesday 12 February 2008 13:39:19 Stut wrote:
I'll be using memcache as a simple cache. I hate sessions and avoid them
for anything but the most trivial sites. The main sites I work with no
longer use sessions because they add a pointless layer of complexity to
any application that
On Tuesday 12 February 2008 00:45:59 Michael McGlothlin wrote:
implement session_set_save_handler() with a database, or
ideally, memcache.
I use memcache with a secondary db backing. Works pretty well. I use it
for session data as well as any other uses I want to make of memcache.
Memcache
Xavier de Lapeyre schreef:
Hi,
I need to develop a website, but my management is rather unstable in his
vision for the layout.
I'm thinking of developing the components as classes and functions, and
then use a template system to render the layout.
If the management wishes to change the layout,
another vote here for smarty - it's pretty much standard issue nowadays
and means should the need ever arise you can easily bring in a web
designer to do the html without having to worry about them learning some
new system.
Nathan
clive wrote:
Xavier de Lapeyre wrote:
Do any of you guys
Per Jessen wrote:
Stut wrote:
Per Jessen wrote:
mike wrote:
Check out persistency in LVS for instance:
http://www.linuxvirtualserver.org/docs/persistence.html
i know persistence handling is an option in LVS, but i haven't seen
the need to use it. i use LVS right now without even bothering
On Feb 12, 2008 9:55 AM, Yoshika Kehelpannala [EMAIL PROTECTED] wrote:
I have downloaded and setup the Apachi web server and My SQL 5.0.51a prior
to my PHP installation on the windows platform. As I have downloaded the PHP
5.2.5 version (msi) and installed it on my system, it gave some errors
mike wrote:
To me it isn't a memcached vs. session persistency debate. memcached
to me is a cache layer for anything - if I wanted to use it for
sessions, it's an added bonus (I'd probably make sure to use 3.0.0+ so
I could ensure the data is in more than one server, losing people's
session
Sancar Saran wrote:
Hello
On Tuesday 12 February 2008 13:39:19 Stut wrote:
I'll be using memcache as a simple cache. I hate sessions and avoid them
for anything but the most trivial sites. The main sites I work with no
longer use sessions because they add a pointless layer of complexity to
any
smarty?
bastien
Date: Tue, 12 Feb 2008 14:01:11 +0400 From: [EMAIL PROTECTED] To:
php-general@lists.php.net Subject: [PHP] Template system in PHP Hi, I
need to develop a website, but my management is rather unstable in his
vision for the layout. I'm thinking of developing the
well guys, im reading all this stuff about LVS and
so forth, and i must admit, i really dont know the
first thing about it. i mean, i do understand the
vserver concept, is LVS essentially the same as
v-server,
http://linux-vserver.org/Welcome_to_Linux-VServer.org
?
also, i dont understand how LVS
On 2/12/08, Greg Donald [EMAIL PROTECTED] wrote:
REST is the new SOAP. Yaml is the new XML. I'm guessing this news
just hasn't made it into any PHP frameworks yet.
REST for the win.
SOAP is best left for the bathtub.
as far as templating engines go, a while back i wanted to see if i
could
Hi, after enabling error reporting with E_ALL I am having this strange
warning while loading a XML:
Warning: DOMDocument::load() [function.DOMDocument-load]: Extra content
at the end of the document in [...]
The code I use is:
$dom = new DOMDocument();
$dom-load(http://example.com/file.xml;);
On 2/12/08, Per Jessen [EMAIL PROTECTED] wrote:
Cache layers are cheap - it's a known science after all. The key thing
(AFAICT) about memcached is that is _distributed_. You need this when
you don't have session persistency (session being the client-to-server
relationship).
correct. local
86 matches
Mail list logo