[PHP] Re: [OUTPUT BUFFER] - problems with redirects

2010-08-19 Thread Nathan Rixham
you can if you use a javascript redirect or an html meta refresh ~ish. not really that silly tbh if you think about an HTTP message is like this: Headers ... MessageBody . the redirect is a header, so it get's sent through *before* the body, and the headers tell the client how to process t

[PHP] Re: [OUTPUT BUFFER] - problems with redirects

2010-08-19 Thread Tristan
A rewrite of the entire site would be needed in order to fix. So, I guess you are saying as best options for workaround are - use the ob_ functions to work around. - stick output buffer on or high so best case scenario using ob_ functions as a cleaner method aside from rewriting the code? seems

Re: [PHP] imagecreate inside an object

2010-08-19 Thread Ashley Sheridan
On Fri, 2010-08-20 at 00:44 +0200, Lorenzo Marussi wrote: > hello list, > > I'm trying to manage a image resouce inside a method, but > unsuccessfully... > > In detail, that's some code snippets: > > the class and the method: > > class.php > > class canvas{ > > function makeImage($imageW

[PHP] imagecreate inside an object

2010-08-19 Thread Lorenzo Marussi
hello list, I'm trying to manage a image resouce inside a method, but unsuccessfully... In detail, that's some code snippets: the class and the method: class.php class canvas{ function makeImage($imageWidth = 850){ $im = imagecreate(110, 20) or die("Cannot Initialize new GD image

[PHP] Re: [OUTPUT BUFFER] - problems with redirects

2010-08-19 Thread Nathan Rixham
Tristan wrote: So, I'm have this site where all this code was developed and the logic sits in different plugins throughout a template. So, html is output and then hits one of these plugins. Plugins do some processing and then hit a header(location...) redirect. So, problem is they developed code

Re: [PHP] tutorial failure

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 18:09 -0400, David McGlone wrote: > On Thu, 2010-08-19 at 22:24 +0100, Ashley Sheridan wrote: > > On Thu, 2010-08-19 at 19:04 +0100, e-letter wrote: > > > On 19/08/2010, HallMarc Websites wrote: > > > > I agree with the earlier take on this situation; you need to start at

Re: [PHP] [OUTPUT BUFFER] - problems with redirects

2010-08-19 Thread Adam Richardson
On Thu, Aug 19, 2010 at 6:01 PM, Tristan wrote: > So, I'm have this site where all this code was developed and the logic sits > in different plugins throughout a template. So, html is output and then > hits > one of these plugins. Plugins do some processing and then hit a > header(location...) re

Re: [PHP] tutorial failure

2010-08-19 Thread David McGlone
On Thu, 2010-08-19 at 22:24 +0100, Ashley Sheridan wrote: > On Thu, 2010-08-19 at 19:04 +0100, e-letter wrote: > > On 19/08/2010, HallMarc Websites wrote: > > > I agree with the earlier take on this situation; you need to start at the > > > beginning and learn the basics regarding the technologie

[PHP] [OUTPUT BUFFER] - problems with redirects

2010-08-19 Thread Tristan
So, I'm have this site where all this code was developed and the logic sits in different plugins throughout a template. So, html is output and then hits one of these plugins. Plugins do some processing and then hit a header(location...) redirect. So, problem is they developed code with these heade

Re: [PHP] imagettftext Angle Problem

2010-08-19 Thread Bborie Park
If you're on 5.2 or 5.3, it may have to do with bug #51263. http://bugs.php.net/51263 Upgrade your php to the latest as fixes the problem. -bborie On 08/12/2010 10:08 AM, tedd wrote: Well, whatever the problem is it is definitely related only to my system. I tried your code and had the same

Re: [PHP] tutorial failure

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 19:04 +0100, e-letter wrote: > On 19/08/2010, HallMarc Websites wrote: > > I agree with the earlier take on this situation; you need to start at the > > beginning and learn the basics regarding the technologies BEFORE you try and > > manage them. You're trying to drive a car

[PHP] cast changes value

2010-08-19 Thread Cassiano Dal Pizzol
http://www.php.net/manual/en/language.types.float.php *Warning* Floating point precision It is typical that simple decimal fractions like *0.1* or *0.7* cannot be converted into their internal binary counterparts without a small loss of precision. This can lead to confusing results: for example,

[PHP] Re: cast changes value

2010-08-19 Thread Nathan Rixham
Martín Marqués wrote: I have values with 2 decimals that I multiple by 100 to make them integers, but to be sure I do a cast using (int). The thing is that (int) is changing the value of the integer. Here is a var_dump of the original value, the value * 100, and the value after casting to int.

Re: [PHP] cast changes value

2010-08-19 Thread Paul M Foster
On Thu, Aug 19, 2010 at 03:46:37PM -0300, Martín Marqués wrote: > I have values with 2 decimals that I multiple by 100 to make them > integers, but to be sure I do a cast using (int). > > The thing is that (int) is changing the value of the integer. Here is > a var_dump of the original value, the

[PHP] cast changes value

2010-08-19 Thread Martín Marqués
I have values with 2 decimals that I multiple by 100 to make them integers, but to be sure I do a cast using (int). The thing is that (int) is changing the value of the integer. Here is a var_dump of the original value, the value * 100, and the value after casting to int. string(5) "34.80" float(

Re: [PHP] tutorial failure

2010-08-19 Thread e-letter
On 19/08/2010, HallMarc Websites wrote: > I agree with the earlier take on this situation; you need to start at the > beginning and learn the basics regarding the technologies BEFORE you try and > manage them. You're trying to drive a car when you don't even know what or > car is and how to operat

[PHP] Re: openssl_pkey_new question

2010-08-19 Thread Nathan Rixham
tedd wrote: Hi gang: I'm trying to keep my questions simple. Does the function "openssl_pkey_new" use 40, 56, 128, 256, or what bit encryption? Higher, and configurable, typically 512,1024,2048,4096 example: $privkey = openssl_pkey_new( array('private_key_bits' => 2048 ) ); Best, Nathan

[PHP] Re: How safe is a .htaccess file?

2010-08-19 Thread Nathan Rixham
tedd wrote: tedd wrote: Hi gang: The subject line says it all. How secure is a .htaccess file to store passwords and other sensitive stuff? Can a .htaccess file be viewed remotely? Semi-safe, .htaccess is prevented from being served by configuration options (which come as default), howe

RE: [PHP] tutorial failure

2010-08-19 Thread HallMarc Websites
configuration issue you might try the forums and mailing lists found there as well. I hope you find this helpful. Marc Hall HallMarc Websites "Well, if all else fails; read the directions." - Dear old Dad, RIP __ Information from ESET Smart Security, version of virus signat

[PHP] openssl_pkey_new question

2010-08-19 Thread tedd
Hi gang: I'm trying to keep my questions simple. Does the function "openssl_pkey_new" use 40, 56, 128, 256, or what bit encryption? Cheers, tedd -- --- http://sperling.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread David Mehler
Hello Everyone, Thanks. Ash, i'll try your function and see how that works. The original content came from word documents, but they were pasted in to a text editor in this case notetab light. In the meta of the site the character set is utf-8 I was told it was better to use that than iso8859-1 if t

Re: [PHP] tutorial failure

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 16:30 +0100, e-letter wrote: > On 19/08/2010, Ashley Sheridan wrote: > > As Colin suggested on another email, check to see if apache-mod_php was > > installed too. It seems likely that it wasn't for some reason. > > How to verify please? Also, the instruction to use task-la

Re: [PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 11:24 -0400, Marc Guay wrote: > I would chalk this up to that fancy, extra-curly, apostrophe that you > get when copying and pasting text from Microsoft Word or similar. > Marc > The characters Microsoft software introduces don't play nice with non-Microsoft software, and

Re: [PHP] tutorial failure

2010-08-19 Thread e-letter
On 19/08/2010, Ashley Sheridan wrote: > As Colin suggested on another email, check to see if apache-mod_php was > installed too. It seems likely that it wasn't for some reason. How to verify please? Also, the instruction to use task-lamp; it seems this is for mysql but the database to be used is

Re: [PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread Marc Guay
I would chalk this up to that fancy, extra-curly, apostrophe that you get when copying and pasting text from Microsoft Word or similar. Marc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread Bob McConnell
From: David Mehler > I've got a php5 document and some items are showing up as question > marks. For example, the word President's in the code it is President's > however when displaying in the browser it's President?s the "'" is not > being displayed properly, this is occurring in several places

[PHP] possible issue with quotes (Magicquotes feature)?

2010-08-19 Thread David Mehler
Hello, I've got a php5 document and some items are showing up as question marks. For example, the word President's in the code it is President's however when displaying in the browser it's President?s the "'" is not being displayed properly, this is occurring in several places and on several pages.

Re: [PHP] tutorial failure

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 15:35 +0100, e-letter wrote: > On 19/08/2010, Ashley Sheridan wrote: > > I think it's fairly clear that for whatever reason, PHP isn't properly > > configured with Apache. You've mentioned you're using Mandriva, which, > > coincidentally, is what i've just recently installed

Re: [PHP] tutorial failure

2010-08-19 Thread e-letter
On 19/08/2010, Ashley Sheridan wrote: > I think it's fairly clear that for whatever reason, PHP isn't properly > configured with Apache. You've mentioned you're using Mandriva, which, > coincidentally, is what i've just recently installed on my home machine. > It has a very good graphical package

Re: [PHP] tutorial failure

2010-08-19 Thread Ashley Sheridan
On Thu, 2010-08-19 at 09:41 +0100, e-letter wrote: > On 19/08/2010, David McGlone wrote: > > On Wed, 2010-08-18 at 23:08 +0100, e-letter wrote: > >> On 18/08/2010, David McGlone wrote: > >> > On Wed, 2010-08-18 at 21:54 +0100, e-letter wrote: > >> >> On 18/08/2010, David McGlone wrote: > >> >>

[PHP] Re: tutorial failure

2010-08-19 Thread Colin Guthrie
'Twas brillig, and e-letter at 19/08/10 13:35 did gyre and gimble: > On 19/08/2010, David McGlone wrote: > >> Yes it is. But your computer needs the correct software to view that php >> file in a web browser as if it was a web page. If you do not have this >> software installed, then the web brow

Re: [PHP] tutorial failure

2010-08-19 Thread e-letter
On 19/08/2010, David McGlone wrote: > On Wed, 2010-08-18 at 23:08 +0100, e-letter wrote: >> On 18/08/2010, David McGlone wrote: >> > On Wed, 2010-08-18 at 21:54 +0100, e-letter wrote: >> >> On 18/08/2010, David McGlone wrote: >> >> > >> >> > Do you have php5 installed? >> >> > >> >> Yes, but don

RE: [PHP] tutorial failure

2010-08-19 Thread Bob McConnell
From: e-letter > On 19/08/2010, David McGlone wrote: > >> Yes it is. But your computer needs the correct software to view that php >> file in a web browser as if it was a web page. If you do not have this >> software installed, then the web browser will ask you if you want to >> download the fil

Re: [PHP] tutorial failure

2010-08-19 Thread e-letter
On 19/08/2010, David McGlone wrote: > Yes it is. But your computer needs the correct software to view that php > file in a web browser as if it was a web page. If you do not have this > software installed, then the web browser will ask you if you want to > download the file instead. > The web bro

Re: [PHP] Re: How safe is a .htaccess file?

2010-08-19 Thread Andre Polykanine
Hello Nathan, Sorry, could you provide any links to read for a security noob?) Actually, I know that the md5 is decryptable (there are bases with words encrypted in md5), but I thought the SHA1 was secure... -- With best regards from Ukraine, Andre Skype: Francophile Twitter: http://twitter.com/m

[PHP] Re: How safe is a .htaccess file?

2010-08-19 Thread Nathan Rixham
tedd wrote: Hi gang: The subject line says it all. How secure is a .htaccess file to store passwords and other sensitive stuff? Can a .htaccess file be viewed remotely? Semi-safe, .htaccess is prevented from being served by configuration options (which come as default), however these can