On Jan 9, 2009, at 1:55 AM, Robert Cummings wrote:
On Thu, 2009-01-08 at 22:38 +, Nathan Rixham wrote:
Skip Evans wrote:
Nathan Rixham wrote:
yup.. all OS's are equally insecure; each OS is as insecure as the
next; no
one OS is more insecure than any other
Wrong, and there is experi
On Jan 9, 2009, at 2:06 AM, Robert Cummings wrote:
On Thu, 2009-01-08 at 16:21 -0800, Mattias Thorslund wrote:
I thought this was the PHP list, not the OS vs. OS list?
Is this type of discussion now considered OK here? I recall people
getting flamed for borderline off-topic posts even, just a
On Fri, Jan 9, 2009 at 02:12, Robert Cummings wrote:
>
> I'll take apt over yum ANY day. But as yum system go... CentOS isn't
> bad :)
I'd take SMART or urpmi over yum as well, for the record.
--
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.
On Fri, 2009-01-09 at 07:50 -0500, Daniel Brown wrote:
> I'd take SMART or urpmi over yum as well, for the record.
First choice is ./configure && make && make install, second choice is
apt
-- Paul
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/public/po
Daniel Brown wrote:
On Thu, Jan 8, 2009 at 19:21, Mattias Thorslund wrote:
I thought this was the PHP list, not the OS vs. OS list?
Is this type of discussion now considered OK here? I recall people getting
flamed for borderline off-topic posts even, just a few years ago.
You're right, M
On Fri, 2009-01-09 at 14:53 +0200, Paul Scott wrote:
> First choice is ./configure && make && make install, second choice is
> apt
>
Even better, of course, is the:
"Yo sysadmin intern! Install for me please and don't screw it
up"
-- Paul
All Email originating from UWC is covered by disclaim
On Thu, Jan 8, 2009 at 7:21 PM, Mattias Thorslund wrote:
> I thought this was the PHP list, not the OS vs. OS list?
>
> Is this type of discussion now considered OK here? I recall people getting
> flamed for borderline off-topic posts even, just a few years ago.
>
> Mattias
:(
--
PHP General Ma
Hi,
I have a question about opening a normal socket, then negotiating a TLS
layer in PHP (through another protocol, which is XMPP in my case, in plain
text at the beginning). I am currently using a socket created by
"socket_create ()". But there seems not to be any way of switching to TLS
negotiat
On Thu, Jan 8, 2009 at 6:14 PM, Ross McKay wrote:
> On Thu, 8 Jan 2009 11:44:48 -0500, Frank Stanovcak wrote:
>
>>I've been a microshaft punk for some time now, and am just getting ready to
>>try to step over to unix on one of my own boxes.
>>
>>Does anyone have any suggestions on which flavor wou
I have a form to accept free text in a textarea field. The entry is
stored in a database.
If the user enters:
abc
def
ghi
I want it to finally display like that.
If they enter
abc
def
ghi
I want it to display with the line gaps.
I use CSS so in the first case I would store as abcdefghi
On Fri, Jan 9, 2009 at 08:12, Stephen wrote:
> I have a form to accept free text in a textarea field. The entry is stored
> in a database.
>
> If the user enters:
>
> abc
> def
> ghi
>
> I want it to finally display like that.
>
> If they enter
>
> abc
>
> def
>
> ghi
>
> I want it to display with
On Thu, Jan 8, 2009 at 19:21, Mattias Thorslund wrote:
> I thought this was the PHP list, not the OS vs. OS list?
>
> Is this type of discussion now considered OK here? I recall people getting
> flamed for borderline off-topic posts even, just a few years ago.
You're right, Mattias. Not only
Jehan Pagès wrote:
Hi,
I have a question about opening a normal socket, then negotiating a TLS
layer in PHP (through another protocol, which is XMPP in my case, in plain
text at the beginning). I am currently using a socket created by
"socket_create ()". But there seems not to be any way of swit
On Fri, Jan 9, 2009 at 2:09 AM, Robert Cummings wrote:
> On Fri, 2009-01-09 at 15:17 +1100, Chris wrote:
>> > I know many people will grin at me for this solution but may be faster way
>> > to overcome this problem to do a find for $ and replace with $_REQUEST.
>> > even
>> > this will help you i
Stephen wrote:
I have a form to accept free text in a textarea field. The entry is
stored in a database.
If the user enters:
abc
def
ghi
I want it to finally display like that.
If they enter
abc
def
ghi
I want it to display with the line gaps.
I use CSS so in the first case I would stor
On Fri, 2009-01-09 at 12:59 +, Nathan Rixham wrote:
> Daniel Brown wrote:
> > On Thu, Jan 8, 2009 at 19:21, Mattias Thorslund
> > wrote:
> >> I thought this was the PHP list, not the OS vs. OS list?
> >>
> >> Is this type of discussion now considered OK here? I recall people getting
> >> flam
On Fri, 2009-01-09 at 08:56 -0500, Andrew Ballard wrote:
> On Fri, Jan 9, 2009 at 2:09 AM, Robert Cummings wrote:
> > On Fri, 2009-01-09 at 15:17 +1100, Chris wrote:
> >> > I know many people will grin at me for this solution but may be faster
> >> > way
> >> > to overcome this problem to do a fi
At 8:12 AM -0500 1/9/09, Stephen wrote:
I have a form to accept free text in a textarea field. The entry is
stored in a database.
If the user enters:
abc
def
ghi
I want it to finally display like that.
If they enter
abc
def
ghi
I want it to display with the line gaps.
I use CSS so in th
Hi,
first off; great to see somebody else using XMPP with php :D (there's a
> great xmpp lib for AS3 from ignite realitime that makes openfire) but no
> nice ones for php yet as far as I know - was always one of those projects I
> really wanted to do but couldn't justify without getting a client t
At 1:39 PM -0500 1/8/09, Robert Cummings wrote:
On Thu, 2009-01-08 at 13:13 -0500, tedd wrote:
> It's always a safe bet to move towards the center of the herd.
Bah, sheeple! I like to stay away from the herd.
Cheers,
Rob.
I'm sure the feeling is mutual.
A better mouthwash perhaps. :-)
At 1:03 PM -0600 1/8/09, Skip Evans wrote:
Incidentally, I think building their OS on FreeBSD was about the
smartest thing the Apple/Mac people ever did.
Skip
There are bright people at Apple, like Jobs -- exceptional individual.
Compare Job's presentations to Gates' and you have examples of
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_globals was
At 7:18 PM + 1/8/09, Nathan Rixham wrote:
if it's a computer thats on, with an os, a keyboard and a network
card connected to the internet it's insecure.
It doesn't even have to be connected to the Internet to be insecure.
Cheers,
tedd
--
---
http://sperling.com http://ancientstones
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: 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
On Fri, Jan 9, 2009 at 9:54 AM, tedd wrote:
> At 7:18 PM + 1/8/09, Nathan Rixham wrote:
>>
>> if it's a computer thats on, with an os, a keyboard and a network card
>> connected to the internet it's insecure.
>
> It doesn't even have to be connected to the Internet to be insecure.
>
> Cheers,
I have one server that's pretty busy and runs into "Too many
connections" from MySQL from time to time, and needs to have MySQL
restarted to clear it up.
I've tried everything I can think of to have PHP take note of this
error but continue executing with other stuff, but no matter what I
I'm trying a stripped down test just to try to get this work. I have a
valid jpeg on disk:
3.jpg<- 3316x2220, 3.6 MB
And am trying either of the following:
// This does nothing at all
imagejpeg('3.jpg');
// This displays "failed"
$im = imagecreatefromjpeg('3.jpg');
if(!$im) echo 'failed'
On Fri, 2009-01-09 at 07:29 -0800, Mattias Thorslund wrote:
> Daniel Brown wrote:
> >> You're right, Mattias. Not only should every one of those folks
> >> be ashamed of themselves for being involved in that thread - they are
> >> also going to hell for it.
> >>
> >> By comparison, sending
try,
header('Content-type: image/jpeg');
$image = imagecreatefromjpeg($your_file);
imagejpeg($image,"", 100);
imagedestroy($image);
zechim
Brian Dunning escreveu:
I'm trying a stripped down test just to try to get this work. I have a
valid jpeg on disk:
3.jpg<- 3316x2220, 3
*bangs head on wall*
Great...just what I need. More acronyms. :P
Frank
"Paul Scott" wrote in message
news:1231506224.7389.7.ca...@paul-laptop...
>
> On Fri, 2009-01-09 at 14:53 +0200, Paul Scott wrote:
>> First choice is ./configure && make && make install, second choice is
>> apt
>>
>
> Eve
Brian Dunning schrieb:
I have one server that's pretty busy and runs into "Too many
connections" from MySQL from time to time, and needs to have MySQL
restarted to clear it up.
I've tried everything I can think of to have PHP take note of this
error but continue executing with other stuff, bu
Brian Dunning wrote:
> I have one server that's pretty busy and runs into "Too many
> connections" from MySQL from time to time, and needs to have MySQL
> restarted to clear it up.
You need to restart MySQL just because of too many connections??
> I've tried everything I can think of to have P
Daniel Brown wrote:
I want it to display with the line gaps.
Why not store it as plain text in the database, then run it
through nl2br() when you SELECT it from the database for display?
Thank you! That is the way I will do this.
I may want to change to but that should be easy.
tedd wrote:
At 7:18 PM + 1/8/09, Nathan Rixham wrote:
if it's a computer thats on, with an os, a keyboard and a network card
connected to the internet it's insecure.
It doesn't even have to be connected to the Internet to be insecure.
Cheers,
tedd
hence the mention of a keyboard :p
-
Brian Dunning wrote:
I have one server that's pretty busy and runs into "Too many
connections" from MySQL from time to time, and needs to have MySQL
restarted to clear it up.
I've tried everything I can think of to have PHP take note of this error
but continue executing with other stuff, but
On Fri, Jan 9, 2009 at 11:07 AM, Per Jessen wrote:
> Brian Dunning wrote:
>
> > I have one server that's pretty busy and runs into "Too many
> > connections" from MySQL from time to time, and needs to have MySQL
> > restarted to clear it up.
>
> You need to restart MySQL just because of too many
Does anyone know if it's possible, using PHP, to take HTML (either as
an input or from a URL) and generate an image (essentially, create a
screenshot) of that HTML/page? I've looked around but was unable to
find anything and I'm just not sure if it's that there really is
nothing like this out ther
On Fri, Jan 9, 2009 at 11:17, Nathan Rixham wrote:
> tedd wrote:
>>
>> At 7:18 PM + 1/8/09, Nathan Rixham wrote:
>>>
>>> if it's a computer thats on, with an os, a keyboard and a network card
>>> connected to the internet it's insecure.
>>
>> It doesn't even have to be connected to the Interne
Christoph Boget wrote:
Does anyone know if it's possible, using PHP, to take HTML (either as
an input or from a URL) and generate an image (essentially, create a
screenshot) of that HTML/page? I've looked around but was unable to
find anything and I'm just not sure if it's that there really is
n
Daniel Brown wrote:
On Fri, Jan 9, 2009 at 11:17, Nathan Rixham wrote:
tedd wrote:
At 7:18 PM + 1/8/09, Nathan Rixham wrote:
if it's a computer thats on, with an os, a keyboard and a network card
connected to the internet it's insecure.
It doesn't even have to be connected to the Interne
On Fri, Jan 9, 2009 at 11:15, Stephen wrote:
>
> Thank you! That is the way I will do this.
>
> I may want to change to but that should be easy.
(\r)?(\n)?/Ui","$1$2",$str);
return $str;
}
$str = "This is an example of the use of this function.It
should replace only double tags.";
e
On Fri, Jan 9, 2009 at 11:56, Nathan Rixham wrote:
>
> a few years ago when I first met my rach (we met online), we'd have random
> conversations stretching several pages on various forums and social site
> profiles we had - i'd find it massively amusing to then go in and delete all
> of my replie
Bastien Koert wrote:
1. Make sure you are freeing up all resources as soon as you can ->
mysql_close();
little thing I've done for some time that's stuck with; (php5+ only)
on all of my database connection classes, I have the db close function
in the destructor just to make sure
dbHandle))
On Fri, Jan 9, 2009 at 10:40, Robert Cummings wrote:
>
> Lol, I didn't realize it was off-list or I would have posted it back so
> that others could throw in their opinions or speak their mind if they
> disagreed.
Indeed. I think, especially with the "regulars" that have been
here for years,
Daniel Brown wrote:
On Fri, Jan 9, 2009 at 11:56, Nathan Rixham wrote:
a few years ago when I first met my rach (we met online), we'd have random
conversations stretching several pages on various forums and social site
profiles we had - i'd find it massively amusing to then go in and delete
Hello list,
I have a PHP (5.2.1) installation on an openSUSE 10.1 server. PHP was
initially compiled from source and I have the original config.nice file,
so I know what options were used. l need to add an extension to this
running installation, specifically I need to add LDAP support.
Ho
I've done a number of sites in html and am now venturing into php.
Can I create a page in html and insert php code that will work? (for
example, take an existing page and insert a date command)
Can I create a page with the php extension that contains only contains html
and no php? If so are th
Gary wrote:
> I've done a number of sites in html and am now venturing into php.
>
> Can I create a page in html and insert php code that will work? (for
> example, take an existing page and insert a date command)
Yup
> Can I create a page with the php extension that contains only cont
Same thing, no output at all. I can access the image directly in my
browser and it's fine.
On Jan 9, 2009, at 7:52 AM, Zechim wrote:
try,
header('Content-type: image/jpeg');
$image = imagecreatefromjpeg($your_file);
imagejpeg($image,"", 100);
imagedestroy($image);
zechim
--
PHP
Tim Donnelly wrote:
Hello list,
I have a PHP (5.2.1) installation on an openSUSE 10.1 server. PHP was
initially compiled from source and I have the original config.nice file,
so I know what options were used. l need to add an extension to this
running installation, specifically I need to a
On Fri, Jan 9, 2009 at 12:08 PM, Nathan Rixham wrote:
> Daniel Brown wrote:
>>
>> On Fri, Jan 9, 2009 at 11:56, Nathan Rixham wrote:
>>
>>>
>>> a few years ago when I first met my rach (we met online), we'd have
>>> random
>>> conversations stretching several pages on various forums and social si
On Fri, Jan 9, 2009 at 12:08, Nathan Rixham wrote:
>
> turns out the official word from php itself is that this list doesn't exist
> *oh nos*
>
> Warning: unlink(php-general@lists.php.net) [ href='function.unlink'>function.unlink]: No such file or directory
>
> (or did i run it twice by accident
On Fri, Jan 9, 2009 at 12:34, Andrew Ballard wrote:
>
> Now... you'd have really freaked out if that had actually worked! LOL
Hey, good point, Andrew.
Nate, you do know that was only pseudo-code, right? Don't run
that in production!
--
daniel.br...@parasane.net || danbr...@php.net
h
Thanks for your input wolf, so would I be correct that the only advantage to
having a page with a php extension is that you can use a testing server?
Thanks again.
gary
"Wolf" wrote in message
news:20090109172254.7y5r1.75233.r...@cdptpa-web07-z01...
>
> Gary wrote:
>> I've done a number
On Fri, Jan 9, 2009 at 12:35 PM, Daniel Brown wrote:
> On Fri, Jan 9, 2009 at 12:34, Andrew Ballard wrote:
>>
>> Now... you'd have really freaked out if that had actually worked! LOL
>
>Hey, good point, Andrew.
>
>Nate, you do know that was only pseudo-code, right? Don't run
> that in p
Gary wrote:
I've done a number of sites in html and am now venturing into php.
Can I create a page in html and insert php code that will work? (for
example, take an existing page and insert a date command)
if it has the file extension .php then it will be passed through php and
compiled; oth
On Fri, Jan 9, 2009 at 12:22 PM, Wolf wrote:
>
> Gary wrote:
>> I've done a number of sites in html and am now venturing into php.
>>
>> Can I create a page in html and insert php code that will work? (for
>> example, take an existing page and insert a date command)
> Yup
Um... if the file
On Fri, Jan 9, 2009 at 12:18 PM, Gary wrote:
> I've done a number of sites in html and am now venturing into php.
>
> Can I create a page in html and insert php code that will work? (for
> example, take an existing page and insert a date command)
Not unless you configure your web server to parse
Eric Butera wrote:
> On Fri, Jan 9, 2009 at 12:22 PM, Wolf wrote:
> >
> > Gary wrote:
> >> I've done a number of sites in html and am now venturing into php.
> >>
> >> Can I create a page in html and insert php code that will work? (for
> >> example, take an existing page and insert
Andrew Ballard wrote:
On Fri, Jan 9, 2009 at 12:35 PM, Daniel Brown wrote:
On Fri, Jan 9, 2009 at 12:34, Andrew Ballard wrote:
Now... you'd have really freaked out if that had actually worked! LOL
Hey, good point, Andrew.
Nate, you do know that was only pseudo-code, right? Don't run
Nathan Rixham wrote:
> Bastien Koert wrote:
>> 1. Make sure you are freeing up all resources as soon as you can ->
>> mysql_close();
>>
>
> little thing I've done for some time that's stuck with; (php5+ only)
>
> on all of my database connection classes, I have the db close function
> in the de
On Jan 9, 2009, at 12:18 PM, Gary wrote:
I've done a number of sites in html and am now venturing into php.
Can I create a page in html and insert php code that will work? (for
example, take an existing page and insert a date command)
Yes you can
Can I create a page with the php extensio
On Fri, Jan 9, 2009 at 12:18 PM, Gary wrote:
> Can I create a page with the php extension that contains only contains html
> and no php? If so are there advantages/disadvantages?
>
> Can I mix and match file formats (php/html) in a single site?
If it were me, I'd make sure all the files were .ph
On Fri, Jan 9, 2009 at 12:43, Nathan Rixham wrote:
>
> actually i ran it in a debugger, in an ide, in a virtual machine :p
in Siberia.
--
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to
Daniel Brown wrote:
On Fri, Jan 9, 2009 at 12:43, Nathan Rixham wrote:
actually i ran it in a debugger, in an ide, in a virtual machine :p
in Siberia.
scotland in winter; same thing really
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Per Jessen wrote:
> Nathan Rixham wrote:
>
>> Bastien Koert wrote:
>>> 1. Make sure you are freeing up all resources as soon as you can ->
>>> mysql_close();
>>>
>>
>> little thing I've done for some time that's stuck with; (php5+ only)
>>
>> on all of my database connection classes, I have th
On Fri, Jan 9, 2009 at 11:51, Nathan Rixham wrote:
>
> only way would be if you had php running on a server with a GUI, a program
> for grabbing screenshots, and some form of API to control from php (and
> recieve output)
That's not entirely correct (though it's the most widely-accepted
solut
> "so would I be correct that the only advantage to
> having a page with a php extension is that you can use a testing server?"
There are FAR more benefits!
1) PHP is FREE! So you save money from the get go
2) PHP is open source! So it is constantly being updated and improved by
users/devs.
3)
On Fri, Jan 9, 2009 at 10:59, Frank Stanovcak wrote:
> *bangs head on wall*
>
> Great...just what I need. More acronyms. :P
Acronyms? You mean the package managers we were discussing?
yum Yellowdog Updater Modified - an automated RPM
management utility (works on all RH-based
Dan
I think you misunderstood the question. The question was not is there an
advantage of php over html, but the advantage of having a file with the
extension of php over an extension of html.
""Dan Shirah"" wrote in message
news:a16da1ff0901091019m3d513ebeyf341b2d39c669...@mail.gmail.com...
Okay... So I know this is a stupid question... But I've been staring
at my code for far too long and now it's still not working so I
thought I would show it to all of you and see if you can tell me
where I'm being stupid :)
this is dbmysqliconnect.php:
function dbmysqliconnect($serv
Jason Pruim wrote:
Okay... So I know this is a stupid question... But I've been staring at
my code for far too long and now it's still not working so I thought I
would show it to all of you and see if you can tell me where I'm being
stupid :)
this is dbmysqliconnect.php:
function dbmy
Jason Pruim wrote:
mysqli_stmt_prepare($stmt, "UPDATE database.table (
UPDATE database.table SET (
think that should fix it
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>
>mysqli_stmt_prepare($stmt, "UPDATE database.table (
>FName, LName, email, phone,
> url, record,
>subscribed, date,
> IPAddress, Business,
>Ad
On Fri, Jan 9, 2009 at 11:05 AM, Nathan Rixham wrote:
> Jason Pruim wrote:
>
>>mysqli_stmt_prepare($stmt, "UPDATE database.table (
>>
>
> UPDATE database.table SET (
>
> think that should fix it
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.
Try it with just one "/" at the start of the xpath.
"/anbieter/immobilie/..."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
As I write this line is highlighted in black php5_MapScript
code in mapfile
LAYER
NAMEPeru_dep
DATA"departamentos.shp"
STATUS ON
TYPEPOLYGON
CLASSITEM NOMB_DEP
CLASS
NAME"LIMA"
*EXPRESSION /LIMA/*
On Fri, Jan 9, 2009 at 12:47 PM, Jason Pruim wrote:
>
> On Jan 9, 2009, at 12:18 PM, Gary wrote:
>
>> Can I create a page with the php extension that contains only contains
>> html
>> and no php? If so are there advantages/disadvantages?
>
> Yes, Look at heredoc syntax on the php.net site. Works
On Fri, 2009-01-09 at 14:15 -0500, Eduardo Arévalo wrote:
> As I write this line is highlighted in black php5_MapScript
>
You should probably ask this on the UMN Mapserver lists at
mapserver-us...@lists.osgeo.org but...
> ;
> $jStyle->outlinecolor->setRGB(200, 200, 200);
You are setting an out
Hey Gary,
I've done a number of sites in html and am now venturing into php.
Can I create a page in html and insert php code that will work? (for
example, take an existing page and insert a date command)
--- Of course you can do that. But it is not advised. Becoming better in PHP
in few months y
Rule #1.
Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering.
Specifically, do NOT add tags in place of newlines.
Store the newlines.
Upon OUTPUT, you can use nl2br() to get tags.
Or str_replace if you want instead.
This is crucial as a habit, down the road, whe
On Fri, Jan 9, 2009 at 2:38 PM, wrote:
> Rule #1.
> Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering.
Probably shouldn't recommend sanitizing then. Only validate & reject. :P
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/
Do other images work?
Open and re-save the image.
Strip out comments and EXIF data while you are at it -- Some versions of GD had
problems with EXIF/comments as I recall.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I know there was an OSS package that took any URL and made a screenshot of it...
Thumbnailer or somesuch?...
Commercial folks do it.
http://browsercam.com/
Compare cost to dev costs for roll your own...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://w
Rule #1.
Never, ever, ever, alter the user's input, EXCEPT for sanitizing/filtering.
Specifically, do NOT add tags in place of newlines.
Store the newlines.
100% I agree. Thats called the act of defensive programming. We have no
right over altering user input but yes we have right to display wha
The slowdown of just running raw HTML through PHP was once benchmarked as about
5 to 10 %.
You could, in theory, use .htaccess and to ForceType specific .html
files as PHP, while leaving the rest of your .html files as static.
I am not recommending this, just being pedantic. :-)
Defini
The browser cheerfully rendering a badly-broken JPEG is quite common, if it can
figure out what the JPEG was supposed to have been.
(Think bad HTML and quirks mode.)
So you really want to validate it with something more strict than a browser.
--
PHP General Mailing List (http://www.php.ne
>> Rule #1.
>> Never, ever, ever, alter the user's input, EXCEPT for
>> sanitizing/filtering.
>
>Probably shouldn't recommend sanitizing then. Only validate & reject. :P
mea culpa
I meant ESCAPING, of course.
If it doesn't pass sanitizing/filtering, it's probably better to just "reje
On Fri, 2009-01-09 at 18:09 +, Nathan Rixham wrote:
> Daniel Brown wrote:
> > On Fri, Jan 9, 2009 at 12:43, Nathan Rixham wrote:
> >> actually i ran it in a debugger, in an ide, in a virtual machine :p
> >
> > in Siberia.
> >
>
> scotland in winter; same thing really
I lived in Sc
On Fri, Jan 9, 2009 at 3:22 PM, wrote:
>
> The slowdown of just running raw HTML through PHP was once benchmarked as
> about 5 to 10 %.
>
> You could, in theory, use .htaccess and to ForceType specific .html
> files as PHP, while leaving the rest of your .html files as static.
>
> I am not rec
On Fri, Jan 9, 2009 at 14:43, VamVan wrote:
>
> 100% I agree. Thats called the act of defensive programming. We have no
> right over altering user input but yes we have right to display what we want
> user see on the site.
Well, of course you have the _right_ to do it --- as long as it's
lega
On Fri, Jan 9, 2009 at 15:31, Robert Cummings wrote:
>
> I lived in Scotland for many years... Scottish winters pale in
> comparison to northern Canadian winters, and these in turn pale in
> comparison to Siberian winters.
Yeah, and from the sounds of it, Rob, you guys are about to have a
hel
Christoph Boget wrote:
Does anyone know if it's possible, using PHP, to take HTML (either as
an input or from a URL) and generate an image (essentially, create a
screenshot) of that HTML/page? I've looked around but was unable to
find anything and I'm just not sure if it's that there really is
On Fri, Jan 9, 2009 at 15:36, Eric Butera wrote:
>
> I was just talking myself. I use objects and such so I'm really not
> as worried about performance either. But it was a "downside" that I
> knew about from some css/js stuff I'd done a while ago. I still had 2
> files on my box from some fram
On Fri, 2009-01-09 at 15:47 -0500, Daniel Brown wrote:
> On Fri, Jan 9, 2009 at 15:31, Robert Cummings wrote:
> >
> > I lived in Scotland for many years... Scottish winters pale in
> > comparison to northern Canadian winters, and these in turn pale in
> > comparison to Siberian winters.
>
> Y
On Fri, Jan 9, 2009 at 16:16, Robert Cummings wrote:
>
> We're at -13C right now without windchill and this is in Ottawa which is
> a lot further south than I've lived in the past (Timmins, Sudbury).
Yeah, no offense, my friend, but you can keep it. We're a balmy
22F (-5C) right now in Scran
On Fri, Jan 9, 2009 at 13:38, Jason Pruim wrote:
> Okay... So I know this is a stupid question...
It sure is.
--
daniel.br...@parasane.net || danbr...@php.net
http://www.parasane.net/ || http://www.pilotpig.net/
Unadvertised dedicated server deals, too low to print - email me to find out!
"VamVan" wrote in message
news:12eb8b030901091135u4e17f1f3p24698dbc8f5a2...@mail.gmail.com...
> -- Remember as you re still a beginner try to avoid using ?> at the end of
> complete PHP code page. or else if you have empty lines at the end of the
> file "then you wont see blank page of death in
With all due respect, Eric, you're not testing what we're discussing.
A "real" CLI test would be more like:
time cat foo.html
time php -q foo.html
I.E., how long does PHP take to read/write foo.html without breaking into PHP
"mode" for static HTML.
Of course, it's still a lousy bench
1 - 100 of 121 matches
Mail list logo