php-general Digest 27 Feb 2010 23:05:16 -0000 Issue 6613

2010-02-27 Thread php-general-digest-help

php-general Digest 27 Feb 2010 23:05:16 - Issue 6613

Topics (messages 302420 through 302427):

Re: Uninstalling PHP?
302420 by: Lester Caine
302423 by: Ashley Sheridan
302424 by: mrfroasty
302426 by: Ashley Sheridan

Re: Registry class question.
302421 by: Richard Quadling

Re: Header function
302422 by: Richard Quadling
302425 by: Nick allan

Wondering if anyone has experince with lastRSS
302427 by: Watson Blair

Administrivia:

To subscribe to the digest, e-mail:
php-general-digest-subscr...@lists.php.net

To unsubscribe from the digest, e-mail:
php-general-digest-unsubscr...@lists.php.net

To post to the list, e-mail:
php-gene...@lists.php.net


--
---BeginMessage---

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' it.
If you loaded this from a 'command line' script then I would think that perhaps 
this is a book that needs a health warning :(


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
---End Message---
---BeginMessage---
On Sat, 2010-02-27 at 07:28 +, Lester Caine wrote:

 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' it.
 If you loaded this from a 'command line' script then I would think that 
 perhaps 
 this is a book that needs a health warning :(
 
 -- 
 Lester Caine - G8HFL
 -
 Contact - http://lsces.co.uk/wiki/?page=contact
 L.S.Caine Electronic Services - http://lsces.co.uk
 EnquirySolve - http://enquirysolve.com/
 Model Engineers Digital Workshop - http://medw.co.uk//
 Firebird - http://www.firebirdsql.org/index.php
 

 
You mentioned MAMP, which is the usual way I've seen people install PHP
and MySQL on a Mac. Did this not work at all? I believe the .dmg file
for it will allow you an option to uninstall and try from the beginning.

If you do use MAMP, where abouts is it all becoming unstuck? Are you
seeing any particular errors or anything?

Thanks,
Ash
http://www.ashleysheridan.co.uk


---End Message---
---BeginMessage---

Hello,

I think everyone has their own preference on working/development 
setup.If you are comfortable with Window OSS, I guess shifting to Linux 
might take you totally out of your goals.
In my case I prefer playing around Gentoo Linux, so my development setup 
is built around Gentoo Linux.But I fully agree that it took me a while 
to be comfortable to work behind this OSS.


But on Windows it should be possible to get those PHP, MYSQL, 
Apache.Install things like WAMP or so {Ive never used it,but I heard it 
works}, but it could be an option for a Window User.


P:S
**Learning Linux/Unix wont be such a bad idea though, as most of your 
Servers (production environment) will be Linux/Unix.So its worth 
learning how to work and be comfortable with them.


GR
Muhsin


On 02/27/2010 06:09 AM, Austin Powers wrote:

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 and do it manually.  Well, he is installing a different version of
PHP and MySQL to the ones that I was able to download and while what he was
saying way somewhat similar I am guessing that  there is a difference
somewhere, and (well) it's not working.

I AM A COMPLETE NOVICE WITH LINUX/FREEBSD.  It had not been my intention to
learn the intricacies of Linux.  However, I am now neck deep in a mire of
confusion that even MAMP can't seem to sort out for me.

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 start again?

Thanks.



   



--
Extra details:
OSS:Gentoo Linux
profile:x86
Hardware:msi geforce 8600GT asus p5k-se
location:/home/muhsin
language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS
Typo:40WPM
url:http://www.mzalendo.net
url:http://www.zanbytes.com

---End Message---
---BeginMessage---
On Sat, 2010-02-27 at 13:44 +0100, mrfroasty wrote:


Re: [PHP] Registry class question.

2010-02-27 Thread Richard Quadling
On 26 February 2010 20:17, Peter van der Does pvanderd...@gmail.com wrote:
 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) {
  return $this-_settings[$key];
 }

 The question is what the pros and cons are compared to setting a new
 property with the value, like:

 storeSetting($key,$value) {
  $this-$key = $value;
 }

 and then instead of calling getSetting, you just use
 $this-Registry-property

 --
 Peter van der Does

 GPG key: E77E8E98

 IRC: Ganseki on irc.freenode.net
 Twitter: @petervanderdoes

 WordPress Plugin Developer
 Blog: http://blog.avirtualhome.com
 Forums: http://forums.avirtualhome.com
 Twitter: @avhsoftware

 --
 PHP General Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php



You can use __get(), __set(), etc. instead.

That way,  $this-Registry-property can work as you want.

Something PHP is missing is the ability to have __get()/__set()/etc.
available on a static class, so you have to have an instance of the
class and then all that that entails. Singleton pattern most likely.
__getStatic(), __setStatic() (like we have __callStatic() ) would
certainly help.

Regards,

Richard.

-- 
-
Richard Quadling
Standing on the shoulders of some very clever giants!
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Header function

2010-02-27 Thread Richard Quadling
On 27 February 2010 04:32, Nick allan nal...@wdev.net wrote:
 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

 Preq.php is the calling php file. It has worked before so I'm not sure what
 I've changed to have it stop working.





 Thanks in advance for any suggestions.



 Regards Nick





What happens if you drop the quotes around the filename?

-- 
-
Richard Quadling
Standing on the shoulders of some very clever giants!
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Uninstalling PHP?

2010-02-27 Thread Ashley Sheridan
On Sat, 2010-02-27 at 07:28 +, Lester Caine wrote:

 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' it.
 If you loaded this from a 'command line' script then I would think that 
 perhaps 
 this is a book that needs a health warning :(
 
 -- 
 Lester Caine - G8HFL
 -
 Contact - http://lsces.co.uk/wiki/?page=contact
 L.S.Caine Electronic Services - http://lsces.co.uk
 EnquirySolve - http://enquirysolve.com/
 Model Engineers Digital Workshop - http://medw.co.uk//
 Firebird - http://www.firebirdsql.org/index.php
 

 
You mentioned MAMP, which is the usual way I've seen people install PHP
and MySQL on a Mac. Did this not work at all? I believe the .dmg file
for it will allow you an option to uninstall and try from the beginning.

If you do use MAMP, where abouts is it all becoming unstuck? Are you
seeing any particular errors or anything?

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] Uninstalling PHP?

2010-02-27 Thread mrfroasty

Hello,

I think everyone has their own preference on working/development 
setup.If you are comfortable with Window OSS, I guess shifting to Linux 
might take you totally out of your goals.
In my case I prefer playing around Gentoo Linux, so my development setup 
is built around Gentoo Linux.But I fully agree that it took me a while 
to be comfortable to work behind this OSS.


But on Windows it should be possible to get those PHP, MYSQL, 
Apache.Install things like WAMP or so {Ive never used it,but I heard it 
works}, but it could be an option for a Window User.


P:S
**Learning Linux/Unix wont be such a bad idea though, as most of your 
Servers (production environment) will be Linux/Unix.So its worth 
learning how to work and be comfortable with them.


GR
Muhsin


On 02/27/2010 06:09 AM, Austin Powers wrote:

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 and do it manually.  Well, he is installing a different version of
PHP and MySQL to the ones that I was able to download and while what he was
saying way somewhat similar I am guessing that  there is a difference
somewhere, and (well) it's not working.

I AM A COMPLETE NOVICE WITH LINUX/FREEBSD.  It had not been my intention to
learn the intricacies of Linux.  However, I am now neck deep in a mire of
confusion that even MAMP can't seem to sort out for me.

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 start again?

Thanks.



   



--
Extra details:
OSS:Gentoo Linux
profile:x86
Hardware:msi geforce 8600GT asus p5k-se
location:/home/muhsin
language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS
Typo:40WPM
url:http://www.mzalendo.net
url:http://www.zanbytes.com


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Header function

2010-02-27 Thread Nick allan
Interesting the following works
Changing the  to '. If I leave the ' around the filename, the ' becomes part 
of the filename. But it seemed to be more about changing the surrounding ' to  
that fixed it. Not sure why this is, but its working now.


header('Content-Type: application/msword');
 header(Content-Disposition: attachment; filename=PurchaseReq.doc);
-Original Message-
From: Richard Quadling [mailto:rquadl...@googlemail.com] 
Sent: Saturday, 27 February 2010 8:45 PM
To: Nick allan
Cc: php-general@lists.php.net
Subject: Re: [PHP] Header function

On 27 February 2010 04:32, Nick allan nal...@wdev.net wrote:
 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

 Preq.php is the calling php file. It has worked before so I'm not sure what
 I've changed to have it stop working.





 Thanks in advance for any suggestions.



 Regards Nick





What happens if you drop the quotes around the filename?

-- 
-
Richard Quadling
Standing on the shoulders of some very clever giants!
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Uninstalling PHP?

2010-02-27 Thread Ashley Sheridan
On Sat, 2010-02-27 at 13:44 +0100, mrfroasty wrote:

 Hello,
 
 I think everyone has their own preference on working/development 
 setup.If you are comfortable with Window OSS, I guess shifting to Linux 
 might take you totally out of your goals.
 In my case I prefer playing around Gentoo Linux, so my development setup 
 is built around Gentoo Linux.But I fully agree that it took me a while 
 to be comfortable to work behind this OSS.
 
 But on Windows it should be possible to get those PHP, MYSQL, 
 Apache.Install things like WAMP or so {Ive never used it,but I heard it 
 works}, but it could be an option for a Window User.
 
 P:S
 **Learning Linux/Unix wont be such a bad idea though, as most of your 
 Servers (production environment) will be Linux/Unix.So its worth 
 learning how to work and be comfortable with them.
 
 GR
 Muhsin
 
 
 On 02/27/2010 06:09 AM, Austin Powers wrote:
  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 and do it manually.  Well, he is installing a different version of
  PHP and MySQL to the ones that I was able to download and while what he was
  saying way somewhat similar I am guessing that  there is a difference
  somewhere, and (well) it's not working.
 
  I AM A COMPLETE NOVICE WITH LINUX/FREEBSD.  It had not been my intention to
  learn the intricacies of Linux.  However, I am now neck deep in a mire of
  confusion that even MAMP can't seem to sort out for me.
 
  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 start again?
 
  Thanks.
 
 
 
 
 
 
 -- 
 Extra details:
 OSS:Gentoo Linux
 profile:x86
 Hardware:msi geforce 8600GT asus p5k-se
 location:/home/muhsin
 language(s):C/C++,VB,VHDL,bash,PHP,SQL,HTML,CSS
 Typo:40WPM
 url:http://www.mzalendo.net
 url:http://www.zanbytes.com
 
 


The OP's question was about installing the stack on a Mac, not Windows.

Thanks,
Ash
http://www.ashleysheridan.co.uk




[PHP] Wondering if anyone has experince with lastRSS

2010-02-27 Thread Watson Blair
Hey all,
I'm looking at lastRSS as a solution for displaying an Ebay RSS feed on a
website, however i'm having a hard time wrapping my head around it, could
you guys suggest a good tutorial? also, if there are better solutions for
what i'm trying to do, bring it on.
Thanks,
Watson


[PHP] Re: Uninstalling PHP?

2010-02-27 Thread Austin Powers

Austin Powers austinpow...@pobox.com wrote in message 
news:ca.b0.29124.619a8...@pb1.pair.com...
 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 and do it manually.  Well, he is installing a different version 
 of
 PHP and MySQL to the ones that I was able to download and while what he 
 was
 saying way somewhat similar I am guessing that  there is a difference
 somewhere, and (well) it's not working.

 I AM A COMPLETE NOVICE WITH LINUX/FREEBSD.  It had not been my intention 
 to
 learn the intricacies of Linux.  However, I am now neck deep in a mire of
 confusion that even MAMP can't seem to sort out for me.

 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 start again?

 Thanks.



I did a:

   find / -name 'apachectl' 2. /dev/null

and it came back with:

/usr/sbin/apachectl
/Applications/MAMP/Library/bin/apachectl

so I do:

   cd /Application/MAMP/Library/bin

and then:

   ./apachectl graceful

and it came back with:

   httpd not running, trying to start
   (13) permission denied: make_sock: could not bind to address {::]:80
   (13 permission denied: make_sock: could not bind to address 0.0.0.0:80
   no listening sockets available, shutting down
   Unable to open logs

Does this mean that httpd is not running, and that I need to make some 
change to the httpd.conf file?  If so, then what changes do I need to make? 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php