Re: [PHP] Uninstalling PHP?

2010-02-26 Thread Lester Caine
Austin Powers wrote: "How can I completely uninstall PHP so that I can start again?" Not knowing the Mac I'm fishing ;) How did you INSTALL PHP? We normally do this via a 'package manager' of some sort, where you find the 'PHPxx' and select it. Uninstalling is simply a matter of 'deslecting'

Re: [PHP] Uninstalling PHP?

2010-02-26 Thread John Black
On 02/27/2010 06:09 AM, Austin Powers wrote: It is purely a guess that I need to start again from a complete clean setup (reformatting my hard disk and reinstall OS X again) but that is pretty much out of the question. I guess my question is: "How can I completely uninstall PHP so that I can star

[PHP] Uninstalling PHP?

2010-02-26 Thread Austin Powers
Three weeks ago I was working through the Lynda.com "PHP with MySQL Training" because I wanted to begin using PHP (surprise, surprise). Anyway, on this video course the teacher explains that because installing PHP and MySQL is so well understood on a Mac that we may as well just follow his steps a

[PHP] Header function

2010-02-26 Thread Nick allan
Hi all Has anyone got any ideas why the following isn't giving me correct filename in the ie save dialogue header('Content-Type: application/msword'); header('Content-Disposition: attachment; filename="PurchaseReq.doc"'); I get the save dialogue, but with preq.doc instead of PurchaseReq.doc

[PHP] PHP: inexplicable behaviour of pre- and post-increment operators

2010-02-26 Thread clancy_1
A week ago Dasn asked a question about converting arrays, and I quoted one possible way of achieving his task, using the operation: $i = 0; while ($i < $k) { $b[$a[$i++]] = $a[$i++]; } I added the comment that "I have always been wary of using statements like this because I was unsure when the

Re: [PHP] Help preserving sentence structure

2010-02-26 Thread Ryan Sun
http://us.php.net/manual/en/function.htmlentities.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: ctype_print, the British Pound and other non-ASCII characters

2010-02-26 Thread Bob
In php.i18n, an interesting discussion about this problem has appeared. It looks like the problem is Ubuntu and not PHP, as a short chunk of code written in C and using the native isprint equivalent to ctype_print also returns false for the British Pound symbol. -- PHP General Mailing List (ht

[PHP] Re: ctype_print, the British Pound and other non-ASCII characters

2010-02-26 Thread Bob
Hello, Nathan. I'm glad to hear that someone else can reproduce the problem with en_GB.UTF-8. I was worried it was some bad luck quirk that I was never going to get to the bottom of. I tried using en_US.utf8 (and also en_US.UTF-8) in setlocale (and it did not return false, so again looks like

RE: [PHP] Excel Spreadsheets and PHP

2010-02-26 Thread Ian Robertson
Thank you all very much for your replies. I learned about a few new approaches. I didn't see it come up yet, so I'll post the URL of what I have been using. php_writeexcel - http://www.bettina-attack.de/jonny/view.php/projects/php_writeexcel/ I've been able to pull off quite a bit with this cl

Re: [PHP] Help preserving sentence structure

2010-02-26 Thread Ashley Sheridan
On Fri, 2010-02-26 at 14:11 -0600, John Tamm-Buckle wrote: > Hi, new to this list... > > I'm adapting some code that generates text and want to keep the syntax. In > the original version the output was iterated from an array in tags. > That was fine for what it was, but it's now a word press p

Re: [PHP] Post and Redirect

2010-02-26 Thread Ashley Sheridan
On Fri, 2010-02-26 at 13:26 -0600, Shawn McKenzie wrote: > I remembered seeing this question on the list several times in the past, > so I thought I would post something I just hacked up for someone. > > As we know, we can user header() to redirect the browser, but of course > we can't redirect t

[PHP] Registry class question.

2010-02-26 Thread Peter van der Does
Hi, I've build a registry class to store settings I need to use in several other classes. Currently I've set it up with a static array in the registry class and using two methods to access the settings and values storeSetting($key,$value) { $this->_settings[$key] = $value; } getSetting($key) {

[PHP] Help preserving sentence structure

2010-02-26 Thread John Tamm-Buckle
Hi, new to this list... I'm adapting some code that generates text and want to keep the syntax. In the original version the output was iterated from an array in tags. That was fine for what it was, but it's now a word press plugin and the tags get in the way. How do I keep the sentence struct

[PHP] Post and Redirect

2010-02-26 Thread Shawn McKenzie
I remembered seeing this question on the list several times in the past, so I thought I would post something I just hacked up for someone. As we know, we can user header() to redirect the browser, but of course we can't redirect the browser and have it post data to the new page. If you need to do

[PHP] Re: ctype_print, the British Pound and other non-ASCII characters

2010-02-26 Thread Nathan Rixham
Bob wrote: > I'm seeing mischief from ctype_print. > > So far as I can tell, the British Pound symbol, '£' is considered a > printable character according to the locale I use on my Ubuntu box. But > even across two years, two boxes, several versions of Ubuntu (from 7.04 > to 9.10, one x86, one

Re: [PHP] Re: Database design

2010-02-26 Thread Robert Cummings
Nathan Rixham wrote: Angus Mann wrote: Hi all. I know this is not strictly a PHP question but the code will be written in PHP, and I figure the folks here will be well versed in the questions I raise. Please feel free to contact me off the list if appropriate. I need some assistance with data

[PHP] Re: Database design

2010-02-26 Thread Nathan Rixham
Angus Mann wrote: > Hi all. I know this is not strictly a PHP question but the code will be > written in PHP, and I figure the folks here will be well versed in the > questions I raise. Please feel free to contact me off the list if appropriate. > > I need some assistance with database design fo

[PHP] JPGraph error.

2010-02-26 Thread Jo�o C�ndido de Souza Neto
Hey guys. In my system we´ve got an option of getting charts of some data and it´s many options. My problem is that it works fine on my test server but in my client´s server it gives me the following error as you can see. *** glibc detected *** /var/www/html/bin/httpd: munmap_chunk(): inval

Re: [PHP] header function query

2010-02-26 Thread Rene Veerman
output the html you want to send afterwards first, then either put a link to another script that outputs the word file, or have an auto-launch ajax routine (i recommend jquery.com for ajax) do it automatically. On Fri, Feb 26, 2010 at 7:49 AM, Nick allan wrote: > Hi all > > The situation is as f

Re: [PHP] weird behavior: Apache mod rewrite

2010-02-26 Thread Ashley Sheridan
On Fri, 2010-02-26 at 18:39 +0900, Alberto Lepe wrote: > Hello everyone, this is my first time in this mailing list. > Using: PHP Version 5.2.10-2ubuntu6.4, Apache/2.2.12 > > I'm redirecting all the request into one file with ( .htaccess ): > > RewriteEngine On > RewriteRule .* index.php > > My

[PHP] weird behavior: Apache mod rewrite

2010-02-26 Thread Alberto Lepe
Hello everyone, this is my first time in this mailing list. Using: PHP Version 5.2.10-2ubuntu6.4, Apache/2.2.12 I'm redirecting all the request into one file with ( .htaccess ): RewriteEngine On RewriteRule .* index.php My index code is: In the same directory I just have other file besides in

Re: [PHP] header function query

2010-02-26 Thread Richard Quadling
On 26 February 2010 06:49, Nick allan wrote: > Hi all > > The situation is as follows > > I've read some data in from a couple of files into a string variable, made > some changes to it and want to send the contents of the string out to the > browser as a word document. > > My code currently looks