Re: [PHP] Pear Page2

2013-01-06 Thread Tedd Sperling
On Jan 5, 2013, at 4:24 PM, Silvio Siefke siefke_lis...@web.de wrote:
 
 What should me say this two words? You not use nano, ok. Editors enough
 on earth. Or you not write manually? Then share the way! Or use a CMS?

 Silvio:

You said --

 1.) All websites are created manually. (nano + html/css Tags)

-- and I replied Not mine. In other words, some of my web-sites are NOT 
created manually. They are dynamically generated from user input.

For example:

http://ancientstones.com

For the exception of the static First page, FAQ page, and Contact page, all 
other pages are generated from user input/direction.

I don't use nano (I don't even know what that is), but what I do is to create 
pages that pass W3C compliance and follow best practices. From what I've 
gathered from most frameworks I've reviewed, they have problems (similar to 
ASP) in mixing different languages in ways such that compliance with W3C and 
accessibility issues are difficult, if not impossible, to achieve.

Even CMS's have difficulty with compliance and accessibility issues because of 
the lack of knowledge of the user/client. I have clients who insist on CMS's, 
but then are clueless as to user issues and difficulties..

So, where does that leave a Web Developer? It leaves them with the 
responsibility to learn and apply what they learned to their craft. Is there an 
easy way out, such as to use a certain framework, or CMS, or other such 
attempts at minimizing the work involved? The answer is a simple  No.

Instead, you have to spend every waking hour learning and applying that 
knowledge with openness to the possibility that you still don't understand the 
problems involved -- it's a never ending battle to educate yourself.

Cheers,

tedd


_
t...@sperling.com
http://sperling.com





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



Re: [PHP] Pear Page2

2013-01-06 Thread Silvio Siefke
Hello,

On Sun, 6 Jan 2013 11:36:39 -0500
Tedd Sperling t...@sperling.com wrote:

 You said --
 
  1.) All websites are created manually. (nano + html/css Tags)
 
 -- and I replied Not mine. In other words, some of my web-sites are 
 NOT created manually. 

What do you mean I do realize. I'm just wondering, why write an email 
to the matter is insignificant.

 They are dynamically generated from user input.

When you have this situation be happy. Other site, other content, and 
other target groups.

 I don't use nano (I don't even know what that is), but what I do is 
 to create pages that pass W3C compliance and follow best practices. 
 From what I've gathered from most frameworks I've reviewed, they have 
 problems (similar to ASP) in mixing different languages in ways such 
 that compliance with W3C and accessibility issues are difficult, if 
 not impossible, to achieve.

Nano is a editor, very simple editor for Linux. http://www.nano-editor.org
Which website is the w3c compliant? No website that has many users and has 
a lot of interaction.
 
 Even CMS's have difficulty with compliance and accessibility issues 
 because of the lack of knowledge of the user/client. I have clients 
 who insist on CMS's, but then are clueless as to user issues and 
 difficulties..

Correct. 
 
 So, where does that leave a Web Developer? It leaves them with the 
 responsibility to learn and apply what they learned to their craft. 
 Is there an easy way out, such as to use a certain framework, or CMS, 
 or other such attempts at minimizing the work involved? The answer is 
 a simple  No.

I simply asked a question, nothing more, nothing less. I looked for an 
alternative. I do not need a web developer. I'm not a web developer. 
I manage a few sites, most of my Customers are hosting customers.

 Instead, you have to spend every waking hour learning and applying that 
 knowledge with openness to the possibility that you still don't understand 
 the problems involved  it's a never ending battle to educate yourself.

I have not asked about the internationalization of web pages, I ask for an 
alternative a Pear package. As I have also written the websites are manually 
created and activated for years.I want to try out just a little and learn if 
you do not understand that the problem is not with me. Internationalization 
between large and small sites is the difference. The websites that I manage 
only a different date. For this need not study. That goes with nano and a
good Database Sheet. Learning will never stop. The only thing that changes
is the speed. As a child we hjaben knowledge absorbed, today I sweep only.


Thank you for help, Kind Regards
Silvio

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



Re: [PHP] Pear Page2

2013-01-06 Thread Tedd Sperling
On Jan 6, 2013, at 12:52 PM, Silvio Siefke siefke_lis...@web.de wrote:
 On Sun, 6 Jan 2013 11:36:39 -0500
 Tedd Sperling t...@sperling.com wrote:
 So, where does that leave a Web Developer? It leaves them with the 
 responsibility to learn and apply what they learned to their craft. 
 Is there an easy way out, such as to use a certain framework, or CMS, 
 or other such attempts at minimizing the work involved? The answer is 
 a simple  No.
 
 I simply asked a question, nothing more, nothing less. I looked for an 
 alternative. I do not need a web developer. I'm not a web developer. 
 I manage a few sites, most of my Customers are hosting customers.

No offense meant, but therein lies the problem. Two fold:

1. You asked a question without the intent to learn and practice.

2. By your own admission, you are not a web developer and as such you cannot 
use our advice.

This is similar to me asking about brain-surgery -- I don't know much about it, 
but I would be very reluctant to operate.

You also said:

 I'm just wondering, why write an email to the matter is insignificant.

On that point, I must agree -- I probably should not have answered. I should 
have seen you were having difficulties understanding what was being offered and 
passed on my contribution -- my apologies.

I also realize there is a language problem here -- while I cannot speak your 
language, what you say in mine and my replies, may be misinterpreted -- but in 
any case, no offense was meant.

I wish you well.

Cheers,

tedd
_
t...@sperling.com
http://sperling.com



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



Re: [PHP] Pear Page2

2013-01-06 Thread Stuart Dallas
On 6 Jan 2013, at 18:42, Tedd Sperling t...@sperling.com wrote:

 I also realize there is a language problem here -- while I cannot speak your 
 language, what you say in mine and my replies, may be misinterpreted -- but 
 in any case, no offense was meant.

Indeed. I'm guessing that when Silvio said All websites are created manually. 
(nano + html/css Tags) he meant All of the websites are created manually. 
(nano + html/css Tags) meaning the sites he's working on rather than every 
site in existence.

-Stuart

-- 
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Pear Page2

2013-01-05 Thread Silvio Siefke
Hello,

On Sat, 05 Jan 2013 07:53:04 +
Ashley Sheridan a...@ashleysheridan.co.uk wrote:

 I'm not sure quite what you'd expect such a module to do? Is this for
 templating?

page2 creates complete websites. Would be useful because I'm sitting 
at the website internationalization. Template engines seem complicated.


Thank you for help, Greetings
Silvio

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



Re: [PHP] Pear Page2

2013-01-05 Thread Ashley Sheridan
On Sat, 2013-01-05 at 15:23 +0100, Silvio Siefke wrote:

 Hello,
 
 On Sat, 05 Jan 2013 07:53:04 +
 Ashley Sheridan a...@ashleysheridan.co.uk wrote:
 
  I'm not sure quite what you'd expect such a module to do? Is this for
  templating?
 
 page2 creates complete websites. Would be useful because I'm sitting 
 at the website internationalization. Template engines seem complicated.
 
 
 Thank you for help, Greetings
 Silvio
 


I've just had a quick look at page2, and I can't say I see the point.
You'd end up having to write a lot more code that was harder to manage
by adding each element through a class like that if your site got even
moderately complicated.

There are many templating engines, and some are more complicated than
others, don't write them off just yet. Technically speaking, page2 is a
template engine of a kind, so you're already using one.

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




Re: [PHP] Pear Page2

2013-01-05 Thread tamouse mailing lists
On Sat, Jan 5, 2013 at 8:52 AM, Ashley Sheridan a...@ashleysheridan.co.uk 
wrote
 On Sat, 2013-01-05 at 15:23 +0100, Silvio Siefke wrote:
 On Sat, 05 Jan 2013 07:53:04 +
 Ashley Sheridan a...@ashleysheridan.co.uk wrote:

  I'm not sure quite what you'd expect such a module to do? Is this for
  templating?

 page2 creates complete websites. Would be useful because I'm sitting
 at the website internationalization. Template engines seem complicated.

 I've just had a quick look at page2, and I can't say I see the point.
 You'd end up having to write a lot more code that was harder to manage
 by adding each element through a class like that if your site got even
 moderately complicated.

 There are many templating engines, and some are more complicated than
 others, don't write them off just yet. Technically speaking, page2 is a
 template engine of a kind, so you're already using one.

To build on Ash's remarks, I'd say don't over-engineer and complicate
your application. HTML5 is dead easy to write directly -- unless you
think your application is going to need to generate different flavours
of (X)HTML, it may not be worth going the full-programmatic route like
Page2 does. Internationalization is a pretty complex thing in and of
itself (language preference detection, message catalog management,
localized formatting, etc) that to also make the other parts of the
presentation that complex are probably not where you want to spend
your time.

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



Re: [PHP] Pear Page2

2013-01-05 Thread Silvio Siefke
Hello,

On Sat, 05 Jan 2013 14:52:12 +
Ashley Sheridan a...@ashleysheridan.co.uk wrote:

 I've just had a quick look at page2, and I can't say I see the point.
 You'd end up having to write a lot more code that was harder to manage
 by adding each element through a class like that if your site got even
 moderately complicated.
 
 There are many templating engines, and some are more complicated than
 others, don't write them off just yet. Technically speaking, page2 is a
 template engine of a kind, so you're already using one.

Page2 dominated not HTML5. The websites at issue are in HTML5 written.
So an alternative must be sought to Page2.

Thanks for help, Greetings
Silvio

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



Re: [PHP] Pear Page2

2013-01-05 Thread Ashley Sheridan


Silvio Siefke siefke_lis...@web.de wrote:

Hello,

On Sat, 05 Jan 2013 14:52:12 +
Ashley Sheridan a...@ashleysheridan.co.uk wrote:

 I've just had a quick look at page2, and I can't say I see the point.
 You'd end up having to write a lot more code that was harder to
manage
 by adding each element through a class like that if your site got
even
 moderately complicated.
 
 There are many templating engines, and some are more complicated than
 others, don't write them off just yet. Technically speaking, page2 is
a
 template engine of a kind, so you're already using one.

Page2 dominated not HTML5. The websites at issue are in HTML5
written.
So an alternative must be sought to Page2.

Thanks for help, Greetings
Silvio

If the pages are already written, why do you want to start changing the way 
they've been built?

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

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



Re: [PHP] Pear Page2

2013-01-05 Thread Silvio Siefke
Hello,

On Sat, 05 Jan 2013 17:21:05 +
Ashley Sheridan a...@ashleysheridan.co.uk wrote:

 If the pages are already written, why do you want to start changing 
 the way they've been built?

1.) All websites are created manually. (nano + html/css Tags)
2.) The maintenance effort now is not enough.
3.) The programming (PHP) provides opportunities, which I'd like to meet.
4.) curiosity
5.) enough time 

Me was helped a lot in forums and mailing lists. I would like it back, because 
that's the idea of ​​Open Source. Maybe I can help someone be in the distant 
future on a project. For that I must even try to learn once, and read.

Is that all one reason or think I'm wrong?


Thank you for help, Greetings
Silvio

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



Re: [PHP] Pear Page2

2013-01-05 Thread Ashley Sheridan


Silvio Siefke siefke_lis...@web.de wrote:

Hello,

On Sat, 05 Jan 2013 17:21:05 +
Ashley Sheridan a...@ashleysheridan.co.uk wrote:

 If the pages are already written, why do you want to start changing 
 the way they've been built?

1.) All websites are created manually. (nano + html/css Tags)
2.) The maintenance effort now is not enough.
3.) The programming (PHP) provides opportunities, which I'd like to
meet.
4.) curiosity
5.) enough time 

Me was helped a lot in forums and mailing lists. I would like it back,
because 
that's the idea of ​​Open Source. Maybe I can help someone be in the
distant 
future on a project. For that I must even try to learn once, and read.

Is that all one reason or think I'm wrong?


Thank you for help, Greetings
Silvio

What I would start to do is break out common parts of pages to include files. 
This would be stuff like headers, footers, sidebars, etc.
From there, you could use variables to set things like titles, stylesheets, 
nav items, etc. I've had to do this recently on a project that was written as 
a bunch of static files.
At worst, you could update the page2 templating engine to account for your new 
elements. But like I said, I think the very style page2 uses is extremely 
limiting, and will make maintenance later on.

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

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



Re: [PHP] Pear Page2

2013-01-05 Thread Tedd Sperling
On Jan 5, 2013, at 3:11 PM, Silvio Siefke siefke_lis...@web.de wrote:
 On Sat, 05 Jan 2013 17:21:05 +
 Ashley Sheridan a...@ashleysheridan.co.uk wrote:
 
 If the pages are already written, why do you want to start changing 
 the way they've been built?
 
 1.) All websites are created manually. (nano + html/css Tags)
 

Not mine.

Cheers,

tedd

_
t...@sperling.com
http://sperling.com


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



Re: [PHP] Pear Page2

2013-01-05 Thread Silvio Siefke
Hello,

On Sat, 05 Jan 2013 20:36:12 +
Ashley Sheridan a...@ashleysheridan.co.uk wrote:

 What I would start to do is break out common parts of pages to include 
 files. This would be stuff like headers, footers, sidebars, etc.
 From there, you could use variables to set things like titles, 
 stylesheets, nav items, etc. I've had to do this recently on a project
 that was written as a bunch of static files.

That i try at moment. Headers, CSS and static Content. Other stuff come
from database. Only the date's make little trouble. 

 At worst, you could update the page2 templating engine to account for 
 your new elements. But like I said, I think the very style page2 uses 
 is extremely limiting, and will make maintenance later on.

I think for static content were it good. What think about phptal?


Thank you for help, Kind Regards
Silvio

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



Re: [PHP] Pear Page2

2013-01-05 Thread Silvio Siefke
Hallo,

On Sat, 5 Jan 2013 15:40:56 -0500
Tedd Sperling t...@sperling.com wrote:


 Not mine.

What should me say this two words? You not use nano, ok. Editors enough
on earth. Or you not write manually? Then share the way! Or use a CMS?

Thank you for help, Kind Regards
Silvio

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



Re: [PHP] Pear Page2

2013-01-05 Thread Ashley Sheridan
On Sat, 2013-01-05 at 22:24 +0100, Silvio Siefke wrote:

 Hallo,
 
 On Sat, 5 Jan 2013 15:40:56 -0500
 Tedd Sperling t...@sperling.com wrote:
 
 
  Not mine.
 
 What should me say this two words? You not use nano, ok. Editors enough
 on earth. Or you not write manually? Then share the way! Or use a CMS?
 
 Thank you for help, Kind Regards
 Silvio
 


Personally, I favour CodeIgniter as a framework to handle stuff like
routes and stuff. I do the templates like this:


 1. Call up the template.php view and pass across name of content
view to use for the page/section and other page-specific bits
 2. Template view pulls in header view and populates it with default
head stuff, which can be overridden with stuff from step 1
 3. Template view pulls in the main content view which deals with
that page
 4. Template view pulls in footer view and populates it in the same
way as header

This is the most basic example, but often the template view will deal
with other bits like navigation bars, sidebars, and other shared
sections. You need not limit yourself to one template view either, you
could have several depending on the section of the site.

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




[PHP] Pear Page2

2013-01-04 Thread Silvio Siefke
Hello,


Is there something similar to Pear/Page2 module, that can working with HTML5?


Thanks for help, Greetings
Silvio

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



Re: [PHP] Pear Page2

2013-01-04 Thread tamouse mailing lists
On Fri, Jan 4, 2013 at 8:18 PM, Silvio Siefke siefke_lis...@web.de wrote:
 Is there something similar to Pear/Page2 module, that can working with HTML5?

Would phptal be of use? http://phptal.org/

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



Re: [PHP] Pear Page2

2013-01-04 Thread Ashley Sheridan
On Fri, 2013-01-04 at 20:44 -0600, tamouse mailing lists wrote:

 On Fri, Jan 4, 2013 at 8:18 PM, Silvio Siefke siefke_lis...@web.de wrote:
  Is there something similar to Pear/Page2 module, that can working with 
  HTML5?
 
 Would phptal be of use? http://phptal.org/
 


I'm not sure quite what you'd expect such a module to do? Is this for
templating?

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




Re: [PHP] Pear Mail - Trap for errors?

2012-11-16 Thread tamouse mailing lists
On Thu, Nov 15, 2012 at 9:52 AM, Rick Dwyer rpdw...@earthlink.net wrote:
 Same result… which is to say no error returned even for messages sent with no 
 email in the to address field.


Okay, that is odd. If I try it with a blank I get a failure saying
that it has a bad address. See: https://gist.github.com/4085385 for
test output and code.

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



Re: [PHP] Pear Mail - Trap for errors?

2012-11-15 Thread Rick Dwyer
On Nov 14, 2012, at 10:48 PM, tamouse mailing lists tamouse.li...@gmail.com 
wrote:

 On Wed, Nov 14, 2012 at 7:19 PM, Rick Dwyer rpdw...@earthlink.net wrote:
 Hello all.
 
 I have some Pear Mail code composing an email and sending it to an external 
 smtp server for sending.
 
 The issue is determining whether that external server actually accepted the 
 mail or not.  In the IF(PEAR… code below, it will return success even if I 
 leave the $to value empty.  However, if I remove the smtp username or 
 password, it will return an error indicating it could not reach the remote 
 server.  So the Pear::IsError function seems to only reflect if the intended 
 server was accessible… and not if the intended server accepted the outgoing 
 email for delivery.
 
 Anyone have experience with the scenario below… specifically with 
 determining if the smtp server accepted the mail for delivery?
 
 Thanks for any info.
 
 --Rick
 
 require_once Mail.php;
 
 $from = f...@address.com;
 $to = t...@address.com;
 $subject = Hello!;
 $body = Hello!;
 
 $host = mail.host.net;
 $username = myuser;
 $password = mypass;
 
 $headers = array ('From' = $from,'To' = $to,'Subject' = $subject);
 $smtp = Mail::factory('smtp',array ('host' = $host,'auth' = 
 true,'username' = $username,'password' = $password));
 
 I'd suggest putting a check here to see if $smtp is a PEAR::Error
 object as well:
 
 if (PEAR::isError($smtp)) {
  echo (p . $smtp-getMessage() . /p);
  // die or return or skip the next part, whatever
 } else {

Same result… which is to say no error returned even for messages sent with no 
email in the to address field.

--Rick


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



[PHP] Pear Mail - Trap for errors?

2012-11-14 Thread Rick Dwyer
Hello all.

I have some Pear Mail code composing an email and sending it to an external 
smtp server for sending. 

The issue is determining whether that external server actually accepted the 
mail or not.  In the IF(PEAR… code below, it will return success even if I 
leave the $to value empty.  However, if I remove the smtp username or password, 
it will return an error indicating it could not reach the remote server.  So 
the Pear::IsError function seems to only reflect if the intended server was 
accessible… and not if the intended server accepted the outgoing email for 
delivery.

Anyone have experience with the scenario below… specifically with determining 
if the smtp server accepted the mail for delivery?

Thanks for any info.

--Rick






 require_once Mail.php;
 
 $from = f...@address.com;
 $to = t...@address.com;
 $subject = Hello!;
 $body = Hello!;
 
 $host = mail.host.net;
 $username = myuser;
 $password = mypass;
 
 $headers = array ('From' = $from,'To' = $to,'Subject' = $subject);
 $smtp = Mail::factory('smtp',array ('host' = $host,'auth' = true,'username' 
= $username,'password' = $password));
 
 $mail = $smtp-send($to, $headers, $body);
 
 if (PEAR::isError($mail)) {
   echo(p . $mail-getMessage() . /p);
  } else {
   echo(pMessage successfully sent!/p);
  }
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Pear Mail - Trap for errors?

2012-11-14 Thread tamouse mailing lists
On Wed, Nov 14, 2012 at 7:19 PM, Rick Dwyer rpdw...@earthlink.net wrote:
 Hello all.

 I have some Pear Mail code composing an email and sending it to an external 
 smtp server for sending.

 The issue is determining whether that external server actually accepted the 
 mail or not.  In the IF(PEAR… code below, it will return success even if I 
 leave the $to value empty.  However, if I remove the smtp username or 
 password, it will return an error indicating it could not reach the remote 
 server.  So the Pear::IsError function seems to only reflect if the intended 
 server was accessible… and not if the intended server accepted the outgoing 
 email for delivery.

 Anyone have experience with the scenario below… specifically with determining 
 if the smtp server accepted the mail for delivery?

 Thanks for any info.

 --Rick

  require_once Mail.php;

  $from = f...@address.com;
  $to = t...@address.com;
  $subject = Hello!;
  $body = Hello!;

  $host = mail.host.net;
  $username = myuser;
  $password = mypass;

  $headers = array ('From' = $from,'To' = $to,'Subject' = $subject);
  $smtp = Mail::factory('smtp',array ('host' = $host,'auth' = 
 true,'username' = $username,'password' = $password));

I'd suggest putting a check here to see if $smtp is a PEAR::Error
object as well:

if (PEAR::isError($smtp)) {
  echo (p . $smtp-getMessage() . /p);
  // die or return or skip the next part, whatever
} else {

  $mail = $smtp-send($to, $headers, $body);

  if (PEAR::isError($mail)) {
echo(p . $mail-getMessage() . /p);
   } else {
echo(pMessage successfully sent!/p);
   }

}


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


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



[PHP] Pear Auth problem

2012-03-21 Thread Karl-Arne Gjersøyen
Hello.
I am trying to use pear Auth packet but am doing something wrong.
I am currently looking at the simple example in the documentation, but
something is wrong in my source code, because if I write a username
and a password in the fields and hit the submit button, I receive a
blank pages without any informatio at all..

Here is my source code:
---

?php

require_once('Auth.php');
if(!isset($_POST['submit'])){
function loginFunction($username = null, $status = null, $auth = null){
?

form action=index.php method=post
fieldset  
legendLogin:/legend
p
label for=usernameUsername:/labelbr
input id=username name=username type=text
/p
p
label for=passwordPassword:/labelbr
input id=password name=password type=password
/p
p
input id=submit name=submit type=submit value=Login
/p
/fieldset
/form

?php   
}

$options = array(
'dsn' = mysql://username:password@localhost/database,
);
$a = new Auth(DB, $options, loginFunction);
$a-start();

if($a-checkAuth()){
header(Location: http://www.karl-arne.name/;);
}
}   
?

The example is located at:
http://pear.php.net/manual/en/package.authentication.auth.intro.php

Thanks for your time.
Karl

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



Re: [PHP] Pear Auth problem

2012-03-21 Thread Govinda
 Hello.
 I am trying to use pear Auth packet but am doing something wrong.
 I am currently looking at the simple example in the documentation, but
 something is wrong in my source code, because if I write a username
 and a password in the fields and hit the submit button, I receive a
 blank pages without any informatio at all..
 
 Here is my source code:
 ---
 
 ?php
 
 require_once('Auth.php');
 if(!isset($_POST['submit'])){
 function loginFunction($username = null, $status = null, $auth = null){
 ?
 
 form action=index.php method=post
   fieldset  
legendLogin:/legend
   p
label for=usernameUsername:/labelbr
   input id=username name=username type=text
/p
p
label for=passwordPassword:/labelbr
   input id=password name=password type=password
/p
p
input id=submit name=submit type=submit value=Login
/p
/fieldset
 /form
 
 ?php 
   }
 
   $options = array(
   'dsn' = mysql://username:password@localhost/database,
   );
   $a = new Auth(DB, $options, loginFunction);
   $a-start();
   
   if($a-checkAuth()){
   header(Location: http://www.karl-arne.name/;);
   }
 } 
 ?
 
 The example is located at:
 http://pear.php.net/manual/en/package.authentication.auth.intro.php

Karl,

You'll want to turn on error reporting so you can start to get a peak into what 
is happening..  Do you know how to do that?  (... so that you get more info. 
than just a blank page).

-Govinda


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



[PHP] Pear windows installation paths.

2011-07-12 Thread Plamen Ivanov
Running PHP 5.3.6 Windows VC9 zipped binaries (windows.php.net).
I got the following messages after running 'pear' in the command line:

PHP Parser error: syntax error, unepxected '@' in
C:\php\PEAR\pearcmd.php on line 28

PHP Parser error: syntax error, unepxected '@' in
C:\php\PEAR\pearcmd.php on line 28

Because of the backslashes windows uses in paths, the last single
quote gets escaped.
Replacing \' with \\' fixes the problem.

Just wondering if this is a bug or expected behavior?

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



[PHP] PEAR Mail $obj-send()

2011-07-08 Thread Brian Smither
A client has:
PHP 5.3 on Win7x64 running a local web app that needs to send mail. (This app 
was once hosted on a linux-based hosted space.) Apache 2.2 is installed but 
apparently not being used. I think the IIS service is actually the web server 
that is engaged.

During troubleshooting a wide range of problems, I discovered that the PEAR 
Mail module needed to be installed. So I installed PEAR (the PEAR Installer) 
and the Mail module with all dependencies. The PEAR_ENV was added. The system 
was rebooted.

A test php script instantiates the Mail class and the script proceeds fine 
until the send() method is called. I get a browser with Waiting for localhost 
for more than 60 seconds. (I used die(); to trace the script. Instead of 
'auth'= true, I used 'auth' = PLAIN as suggested by a user comment on the 
Mail documentation page.)

I believe all the parameters are correct. The actual web app works - except 
emailing.

I added a firewall rule allowing outbound port 465 just for kicks.

I can double-check for the PHP timeout setting but would PHP timeout in this 
case (waiting for a socket??)?

Any suggestions?





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



Re: [PHP] PEAR Mail $obj-send()

2011-07-08 Thread Jim Lucas
On 7/8/2011 9:50 AM, Brian Smither wrote:
 A client has:
 PHP 5.3 on Win7x64 running a local web app that needs to send mail. 
 (This app was once hosted on a linux-based hosted space.) Apache 2.2 
 is installed but apparently not being used. I think the IIS service 
 is actually the web server that is engaged.
 
 During troubleshooting a wide range of problems, I discovered that 
 the PEAR Mail module needed to be installed. So I installed PEAR 
 (the PEAR Installer) and the Mail module with all dependencies. The 
 PEAR_ENV was added. The system was rebooted.
 
 A test php script instantiates the Mail class and the script proceeds 
 fine until the send() method is called. I get a browser with Waiting 
 for localhost for more than 60 seconds. (I used die(); to trace the 
 script. Instead of 'auth'= true, I used 'auth' = PLAIN as 
 suggested by a user comment on the Mail documentation page.)

Do you have a mail server running on localhost?

If the previous system was linux, then it was probably handing it off to
sendmail.  If you do not have a local MTA then you need to change the params so
it uses a remote mail server.

 
 I believe all the parameters are correct. The actual web app works - 
 except emailing.
 
 I added a firewall rule allowing outbound port 465 just for kicks.
 
 I can double-check for the PHP timeout setting but would PHP timeout 
 in this case (waiting for a socket??)?
 
 Any suggestions?
 
 
 
 
 


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



Re: [PHP] PEAR PHP

2011-01-30 Thread Thijs Lensselink
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/30/2011 05:43 AM, Ethan Rosenberg wrote:
 Dear list -
 
 I enter the command pear list, and get errors.  See below --
 
 ethan@rosenberg:/usr/lib/php5$ ls -l
 total 12
 drwxr-xr-x 2 root root 4096 Jan  6 00:53 20090626+lfs
 drwxr-xr-x 2 root root 4096 Jul 18  2010 libexec
 -rwxr-xr-x 1 root root  596 Jan  5 08:09 maxlifetime
 
 ethan@rosenberg:/usr/lib/php5$ pear list
 PHP Warning:  PHP Startup: Unable to load dynamic library
 '/usr/lib/php5/20090626+lfs/msql.so' -
 /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file: No
 such file or directory in Unknown on line 0
 font color=#ff
 Warning: PHP Startup: Unable to load dynamic library
 '/usr/lib/php5/20090626+lfs/msql.so' -
 /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file: No
 such file or directory in Unknown on line 0
 /fontInstalled packages, channel pear.php.net:
 =
 Package  Version State
 Archive_Tar  1.3.7   stable
 Console_Getopt   1.2.3   stable
 PEAR 1.9.1   stable
 Structures_Graph 1.0.3   stable
 Validate_US  0.5.4   beta
 XML_Util 1.2.1   stable
 
 ethan@rosenberg:/usr/lib/php5$ cd 20090626+lfs
 
 ethan@rosenberg:/usr/lib/php5/20090626+lfs$ ls -l
 total 560
 -rw-r--r-- 1 root root  95596 Jan  5 08:09 gd.so
 -rw-r--r-- 1 root root  38272 Jan  5 08:09 mcrypt.so
 -rw-r--r-- 1 root root 109220 Jan  5 08:09 mysqli.so
 -rw-r--r-- 1 root root  42352 Jan  5 08:09 mysql.so
 -rw-r--r-- 1 root root  26116 Jan  5 08:09 pdo_mysql.so
 -rw-r--r-- 1 root root  87588 Jan  5 08:09 pdo.so
 -rw-r--r-- 1 root root 141336 Aug 19 04:04 suhosin.so
 
 ethan@rosenberg:/usr/lib/php5/20090626+lfs$
 
 Help and advice, please.
 
 Thanks.
 
 Ethan
 
 MySQL 5.1  PHP 5.3.3-6  Linux [Debian (sid)]
 
 

msql.so is missing. So either install it. Or comment it out in php.ini
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBAgAGBQJNRSFUAAoJEMffsHAOnubXNQoP/ikY2NC0XaQUJ+58OHMKpTQA
SujpSidNfvi+tnBKI4GylQrmGVglf1DnFAxNVo1KT8hXtdXBGCr146sf6vmqri6C
gIxna2KQI5NLLAxAoYnZdGkf/e0sKQSv/W1PMH41CbcjIiuIFL+TY5ZXHcEsLWfV
R0HorzKxwfPrM7rr5JIE/iIu3dOsjDGzefHT3d4hVYzausDa2YKqB6pBiH2VW4P+
SgJKsMaEVmkK38zv38BboCiJUVaIT5/istPMojQlVdoohp0j+XsIMNysAE5wzI6S
iE5Ag8awxy7kR9dfjxt3OjBW29ooSKMCUkSyRz/bW1rVrOqpqRnApXM6AOibOWE1
woKFMUF1CuZ5NVm54IqRp8Fh64mr0gWFtGCgG38B2zsOqycwHDx9bGsITYYIxpeE
p3QfhOKmor9fZ8fOzcDeivitJUk26fCvJd1AYewQ9rjmHMKSmx6LpLxsgDoVO8yk
yGVTQF3lLkLAAAa0Hx5OeYaANkTo3+r1zEw7GaqLCoto3UxuZp7Zu/pZC8B/e8PA
M2OPRQfKQy0eA9BDFlLgOYTIppPnN7RZWFAu0+5gwI6t8NpnMlbNOWaPsRkg9VX/
f4MZ2bzHBQlW9gesGAjHVtGaCuTtmQn3f10MxfkXE+Zz5/Rd6UXo78cj5muURU4x
TLXCLnNK6ZEiavTmmqoi
=UTPb
-END PGP SIGNATURE-

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



Re: [PHP] PEAR PHP

2011-01-30 Thread Ethan Rosenberg

At 03:29 AM 1/30/2011, Thijs Lensselink wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/30/2011 05:43 AM, Ethan Rosenberg wrote:
 Dear list -

 I enter the command pear list, and get errors.  See below --

 ethan@rosenberg:/usr/lib/php5$ ls -l
 total 12
 drwxr-xr-x 2 root root 4096 Jan  6 00:53 20090626+lfs
 drwxr-xr-x 2 root root 4096 Jul 18  2010 libexec
 -rwxr-xr-x 1 root root  596 Jan  5 08:09 maxlifetime

 ethan@rosenberg:/usr/lib/php5$ pear list
 PHP Warning:  PHP Startup: Unable to load dynamic library
 '/usr/lib/php5/20090626+lfs/msql.so' -
 /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file: No
 such file or directory in Unknown on line 0
 font color=#ff
 Warning: PHP Startup: Unable to load dynamic library
 '/usr/lib/php5/20090626+lfs/msql.so' -
 /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file: No
 such file or directory in Unknown on line 0
 /fontInstalled packages, channel pear.php.net:
 =
 Package  Version State
 Archive_Tar  1.3.7   stable
 Console_Getopt   1.2.3   stable
 PEAR 1.9.1   stable
 Structures_Graph 1.0.3   stable
 Validate_US  0.5.4   beta
 XML_Util 1.2.1   stable

 ethan@rosenberg:/usr/lib/php5$ cd 20090626+lfs

 ethan@rosenberg:/usr/lib/php5/20090626+lfs$ ls -l
 total 560
 -rw-r--r-- 1 root root  95596 Jan  5 08:09 gd.so
 -rw-r--r-- 1 root root  38272 Jan  5 08:09 mcrypt.so
 -rw-r--r-- 1 root root 109220 Jan  5 08:09 mysqli.so
 -rw-r--r-- 1 root root  42352 Jan  5 08:09 mysql.so
 -rw-r--r-- 1 root root  26116 Jan  5 08:09 pdo_mysql.so
 -rw-r--r-- 1 root root  87588 Jan  5 08:09 pdo.so
 -rw-r--r-- 1 root root 141336 Aug 19 04:04 suhosin.so

 ethan@rosenberg:/usr/lib/php5/20090626+lfs$

 Help and advice, please.

 Thanks.

 Ethan

 MySQL 5.1  PHP 5.3.3-6  Linux [Debian (sid)]



msql.so is missing. So either install it. Or comment it out in php.ini

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

++
Thank you.

You are correct, msql is not installed.

1] How do I install it?  apt-get install does not find the package.

2] Excuse my ignorance, what is a dynamic extension?

Ethan



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



Re: [PHP] PEAR PHP

2011-01-30 Thread Ashley Sheridan
Ethan Rosenberg eth...@earthlink.net wrote:

At 03:29 AM 1/30/2011, Thijs Lensselink wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/30/2011 05:43 AM, Ethan Rosenberg wrote:
  Dear list -
 
  I enter the command pear list, and get errors.  See below --
 
  ethan@rosenberg:/usr/lib/php5$ ls -l
  total 12
  drwxr-xr-x 2 root root 4096 Jan  6 00:53 20090626+lfs
  drwxr-xr-x 2 root root 4096 Jul 18  2010 libexec
  -rwxr-xr-x 1 root root  596 Jan  5 08:09 maxlifetime
 
  ethan@rosenberg:/usr/lib/php5$ pear list
  PHP Warning:  PHP Startup: Unable to load dynamic library
  '/usr/lib/php5/20090626+lfs/msql.so' -
  /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file:
No
  such file or directory in Unknown on line 0
  font color=#ff
  Warning: PHP Startup: Unable to load dynamic library
  '/usr/lib/php5/20090626+lfs/msql.so' -
  /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file:
No
  such file or directory in Unknown on line 0
  /fontInstalled packages, channel pear.php.net:
  =
  Package  Version State
  Archive_Tar  1.3.7   stable
  Console_Getopt   1.2.3   stable
  PEAR 1.9.1   stable
  Structures_Graph 1.0.3   stable
  Validate_US  0.5.4   beta
  XML_Util 1.2.1   stable
 
  ethan@rosenberg:/usr/lib/php5$ cd 20090626+lfs
 
  ethan@rosenberg:/usr/lib/php5/20090626+lfs$ ls -l
  total 560
  -rw-r--r-- 1 root root  95596 Jan  5 08:09 gd.so
  -rw-r--r-- 1 root root  38272 Jan  5 08:09 mcrypt.so
  -rw-r--r-- 1 root root 109220 Jan  5 08:09 mysqli.so
  -rw-r--r-- 1 root root  42352 Jan  5 08:09 mysql.so
  -rw-r--r-- 1 root root  26116 Jan  5 08:09 pdo_mysql.so
  -rw-r--r-- 1 root root  87588 Jan  5 08:09 pdo.so
  -rw-r--r-- 1 root root 141336 Aug 19 04:04 suhosin.so
 
  ethan@rosenberg:/usr/lib/php5/20090626+lfs$
 
  Help and advice, please.
 
  Thanks.
 
  Ethan
 
  MySQL 5.1  PHP 5.3.3-6  Linux [Debian (sid)]
 
 

msql.so is missing. So either install it. Or comment it out in php.ini

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

You are correct, msql is not installed.

1] How do I install it?  apt-get install does not find the package.

2] Excuse my ignorance, what is a dynamic extension?

Ethan



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

I noticed you mis-typed mysql as msql there, did you try apt-get mysql or msql? 
Mysql comes with every Linux distro I've ever used, so it should be there in 
your standard repositories.


Thanks
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

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



Re: [PHP] PEAR PHP

2011-01-30 Thread Ashley Sheridan
Ashley Sheridan a...@ashleysheridan.co.uk wrote:

Ethan Rosenberg eth...@earthlink.net wrote:

At 03:29 AM 1/30/2011, Thijs Lensselink wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/30/2011 05:43 AM, Ethan Rosenberg wrote:
  Dear list -
 
  I enter the command pear list, and get errors.  See below --
 
  ethan@rosenberg:/usr/lib/php5$ ls -l
  total 12
  drwxr-xr-x 2 root root 4096 Jan  6 00:53 20090626+lfs
  drwxr-xr-x 2 root root 4096 Jul 18  2010 libexec
  -rwxr-xr-x 1 root root  596 Jan  5 08:09 maxlifetime
 
  ethan@rosenberg:/usr/lib/php5$ pear list
  PHP Warning:  PHP Startup: Unable to load dynamic library
  '/usr/lib/php5/20090626+lfs/msql.so' -
  /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object
file:
No
  such file or directory in Unknown on line 0
  font color=#ff
  Warning: PHP Startup: Unable to load dynamic library
  '/usr/lib/php5/20090626+lfs/msql.so' -
  /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object
file:
No
  such file or directory in Unknown on line 0
  /fontInstalled packages, channel pear.php.net:
  =
  Package  Version State
  Archive_Tar  1.3.7   stable
  Console_Getopt   1.2.3   stable
  PEAR 1.9.1   stable
  Structures_Graph 1.0.3   stable
  Validate_US  0.5.4   beta
  XML_Util 1.2.1   stable
 
  ethan@rosenberg:/usr/lib/php5$ cd 20090626+lfs
 
  ethan@rosenberg:/usr/lib/php5/20090626+lfs$ ls -l
  total 560
  -rw-r--r-- 1 root root  95596 Jan  5 08:09 gd.so
  -rw-r--r-- 1 root root  38272 Jan  5 08:09 mcrypt.so
  -rw-r--r-- 1 root root 109220 Jan  5 08:09 mysqli.so
  -rw-r--r-- 1 root root  42352 Jan  5 08:09 mysql.so
  -rw-r--r-- 1 root root  26116 Jan  5 08:09 pdo_mysql.so
  -rw-r--r-- 1 root root  87588 Jan  5 08:09 pdo.so
  -rw-r--r-- 1 root root 141336 Aug 19 04:04 suhosin.so
 
  ethan@rosenberg:/usr/lib/php5/20090626+lfs$
 
  Help and advice, please.
 
  Thanks.
 
  Ethan
 
  MySQL 5.1  PHP 5.3.3-6  Linux [Debian (sid)]
 
 

msql.so is missing. So either install it. Or comment it out in
php.ini

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

You are correct, msql is not installed.

1] How do I install it?  apt-get install does not find the package.

2] Excuse my ignorance, what is a dynamic extension?

Ethan



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

I noticed you mis-typed mysql as msql there, did you try apt-get mysql
or msql? Mysql comes with every Linux distro I've ever used, so it
should be there in your standard repositories.


Thanks
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

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

Sorry, I misread the error messages there, ignore that last message!


Thanks
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

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



Re: [PHP] PEAR PHP

2011-01-30 Thread Ethan Rosenberg

At 01:51 PM 1/30/2011, Ashley Sheridan wrote:

Ashley Sheridan a...@ashleysheridan.co.uk wrote:

Ethan Rosenberg eth...@earthlink.net wrote:

At 03:29 AM 1/30/2011, Thijs Lensselink wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 01/30/2011 05:43 AM, Ethan Rosenberg wrote:
  Dear list -
 
  I enter the command pear list, and get errors.  See below --
 
  ethan@rosenberg:/usr/lib/php5$ ls -l
  total 12
  drwxr-xr-x 2 root root 4096 Jan  6 00:53 20090626+lfs
  drwxr-xr-x 2 root root 4096 Jul 18  2010 libexec
  -rwxr-xr-x 1 root root  596 Jan  5 08:09 maxlifetime
 
  ethan@rosenberg:/usr/lib/php5$ pear list
  PHP Warning:  PHP Startup: Unable to load dynamic library
  '/usr/lib/php5/20090626+lfs/msql.so' -
  /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object
file:
No
  such file or directory in Unknown on line 0
  font color=#ff
  Warning: PHP Startup: Unable to load dynamic library
  '/usr/lib/php5/20090626+lfs/msql.so' -
  /usr/lib/php5/20090626+lfs/msql.so: cannot open shared object
file:
No
  such file or directory in Unknown on line 0
  /fontInstalled packages, channel pear.php.net:
  =
  Package  Version State
  Archive_Tar  1.3.7   stable
  Console_Getopt   1.2.3   stable
  PEAR 1.9.1   stable
  Structures_Graph 1.0.3   stable
  Validate_US  0.5.4   beta
  XML_Util 1.2.1   stable
 
  ethan@rosenberg:/usr/lib/php5$ cd 20090626+lfs
 
  ethan@rosenberg:/usr/lib/php5/20090626+lfs$ ls -l
  total 560
  -rw-r--r-- 1 root root  95596 Jan  5 08:09 gd.so
  -rw-r--r-- 1 root root  38272 Jan  5 08:09 mcrypt.so
  -rw-r--r-- 1 root root 109220 Jan  5 08:09 mysqli.so
  -rw-r--r-- 1 root root  42352 Jan  5 08:09 mysql.so
  -rw-r--r-- 1 root root  26116 Jan  5 08:09 pdo_mysql.so
  -rw-r--r-- 1 root root  87588 Jan  5 08:09 pdo.so
  -rw-r--r-- 1 root root 141336 Aug 19 04:04 suhosin.so
 
  ethan@rosenberg:/usr/lib/php5/20090626+lfs$
 
  Help and advice, please.
 
  Thanks.
 
  Ethan
 
  MySQL 5.1  PHP 5.3.3-6  Linux [Debian (sid)]
 
 

msql.so is missing. So either install it. Or comment it out in
php.ini

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

You are correct, msql is not installed.

1] How do I install it?  apt-get install does not find the package.

2] Excuse my ignorance, what is a dynamic extension?

Ethan



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

I noticed you mis-typed mysql as msql there, did you try apt-get mysql
or msql? Mysql comes with every Linux distro I've ever used, so it
should be there in your standard repositories.


Thanks
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

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

Sorry, I misread the error messages there, ignore that last message!


Thanks
Ash
http://www.ashleysheridan.co.uk
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

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

++
Ashley -

I make more mistakes reading emails than you do!!

Would you [or anyone else on this list] please help me with my questions

1] How do I install it? [msql NOT mysql] apt-get install does not 
find the package.


2] Excuse my ignorance, what is a dynamic extension?

Thanks.

Ethan



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



Re: [PHP] PEAR PHP

2011-01-30 Thread Jim Lucas

On 1/30/2011 2:34 PM, Ethan Rosenberg wrote:


I make more mistakes reading emails than you do!!

Would you [or anyone else on this list] please help me with my questions

1] How do I install it? [msql NOT mysql] apt-get install does not find
the package.


http://www.google.com

Enter your distro apt-get install msql ...

I entered linux apt-get install msql

and the second result I get is this

http://ubuntuforums.org/archive/index.php/t-350269.html

If your distro is not ubuntu, I'm sorry, but you haven't said what you 
are running yet.




2] Excuse my ignorance, what is a dynamic extension?


Again, http://www.google.com

Enter what is a dynamic extension ...

Here is a good result from the list returned

http://www.atnf.csiro.au/computing/software/karma/programmer-manual/node17.html



Thanks.

Ethan





I hope this gets you headed down the right path.

Jim Lucas

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



[PHP] PEAR PHP

2011-01-29 Thread Ethan Rosenberg

Dear list -

I enter the command pear list, and get errors.  See below --

ethan@rosenberg:/usr/lib/php5$ ls -l
total 12
drwxr-xr-x 2 root root 4096 Jan  6 00:53 20090626+lfs
drwxr-xr-x 2 root root 4096 Jul 18  2010 libexec
-rwxr-xr-x 1 root root  596 Jan  5 08:09 maxlifetime

ethan@rosenberg:/usr/lib/php5$ pear list
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/20090626+lfs/msql.so' - 
/usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file: 
No such file or directory in Unknown on line 0

font color=#ff
Warning: PHP Startup: Unable to load dynamic library 
'/usr/lib/php5/20090626+lfs/msql.so' - 
/usr/lib/php5/20090626+lfs/msql.so: cannot open shared object file: 
No such file or directory in Unknown on line 0

/fontInstalled packages, channel pear.php.net:
=
Package  Version State
Archive_Tar  1.3.7   stable
Console_Getopt   1.2.3   stable
PEAR 1.9.1   stable
Structures_Graph 1.0.3   stable
Validate_US  0.5.4   beta
XML_Util 1.2.1   stable

ethan@rosenberg:/usr/lib/php5$ cd 20090626+lfs

ethan@rosenberg:/usr/lib/php5/20090626+lfs$ ls -l
total 560
-rw-r--r-- 1 root root  95596 Jan  5 08:09 gd.so
-rw-r--r-- 1 root root  38272 Jan  5 08:09 mcrypt.so
-rw-r--r-- 1 root root 109220 Jan  5 08:09 mysqli.so
-rw-r--r-- 1 root root  42352 Jan  5 08:09 mysql.so
-rw-r--r-- 1 root root  26116 Jan  5 08:09 pdo_mysql.so
-rw-r--r-- 1 root root  87588 Jan  5 08:09 pdo.so
-rw-r--r-- 1 root root 141336 Aug 19 04:04 suhosin.so

ethan@rosenberg:/usr/lib/php5/20090626+lfs$

Help and advice, please.

Thanks.

Ethan

MySQL 5.1  PHP 5.3.3-6  Linux [Debian (sid)] 




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



Re: [PHP] Pear Problems

2011-01-28 Thread Daniel Brown
On Fri, Jan 28, 2011 at 00:33, Ethan Rosenberg eth...@earthlink.net wrote:

 Please take a look at php.ini in the vicinity of line 510.  You will see the
 construct to which I refer.  Can you explain what is going on?  I do not
 think it is a problem with commenting out a line.

 Any ideas from the rest of the list?

Keep in mind that php.ini is not universal, and changes
drastically with version, distribution, CLI vs. web, customization,
and more.  The answer that Adam gave you is absolutely correct with
regard to the information you provided.  You need to put a semicolon
before the line you quoted as being line 510 in your php.ini.  The
directive you want is error_reporting, and should look like so:

error_reporting = E_ALL  ~E_NOTICE

-- 
/Daniel P. Brown
Network Infrastructure Manager
Documentation, Webmaster Teams
http://www.php.net/

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



Re: [PHP] Pear Problems

2011-01-27 Thread Ethan Rosenberg

At 01:54 AM 1/27/2011, Adam Richardson wrote:

On Thu, Jan 27, 2011 at 1:01 AM, Ethan Rosenberg eth...@earthlink.netwrote:

 Dear List -

 I am executing the command pear list.

 This is what I get -

 ethan@rosenberg:/usr/bin$ pear list
 PHP:  syntax error, unexpected '' in /etc/php5/cli/php.ini on line 510
 Installed packages, channel pear.php.net:
 =
 Package  Version State
 Archive_Tar  1.3.7   stable
 Console_Getopt   1.2.3   stable
 PEAR 1.9.1   stable
 Structures_Graph 1.0.3   stable
 Validate_US  0.5.4   beta
 XML_Util 1.2.1   stable
 ethan@rosenberg:/usr/bin$

 This is line 510

 Default Value: E_ALL  ~E_NOTICE


That line should likely be commented out (it was probably originally
commented out and then somebody accidentally uncommented.)  Most php.ini
files follow the convention (notice that there's no colon in the example):
some_name = some_value

Happy coding,

Adam

--
Nephtali:  A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com



Adam -

Thanks.

Please take a look at php.ini in the vicinity of line 510.  You will 
see the construct to which I refer.  Can you explain what is going 
on?  I do not think it is a problem with commenting out a line.


Any ideas from the rest of the list?

Ethan


MySQL 5.1  PHP 5.3.3-6  Linux [Debian (sid)] 




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



[PHP] Pear Problems

2011-01-26 Thread Ethan Rosenberg

Dear List -

I am executing the command pear list.

This is what I get -

ethan@rosenberg:/usr/bin$ pear list
PHP:  syntax error, unexpected '' in /etc/php5/cli/php.ini on line 510
Installed packages, channel pear.php.net:
=
Package  Version State
Archive_Tar  1.3.7   stable
Console_Getopt   1.2.3   stable
PEAR 1.9.1   stable
Structures_Graph 1.0.3   stable
Validate_US  0.5.4   beta
XML_Util 1.2.1   stable
ethan@rosenberg:/usr/bin$

This is line 510

Default Value: E_ALL  ~E_NOTICE

Advice and help please.

Thanks.

Ethan

MySQL 5.1  PHP 5.3.3-6  Linux [Debian (sid)] 




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



Re: [PHP] Pear Problems

2011-01-26 Thread Adam Richardson
On Thu, Jan 27, 2011 at 1:01 AM, Ethan Rosenberg eth...@earthlink.netwrote:

 Dear List -

 I am executing the command pear list.

 This is what I get -

 ethan@rosenberg:/usr/bin$ pear list
 PHP:  syntax error, unexpected '' in /etc/php5/cli/php.ini on line 510
 Installed packages, channel pear.php.net:
 =
 Package  Version State
 Archive_Tar  1.3.7   stable
 Console_Getopt   1.2.3   stable
 PEAR 1.9.1   stable
 Structures_Graph 1.0.3   stable
 Validate_US  0.5.4   beta
 XML_Util 1.2.1   stable
 ethan@rosenberg:/usr/bin$

 This is line 510

 Default Value: E_ALL  ~E_NOTICE


That line should likely be commented out (it was probably originally
commented out and then somebody accidentally uncommented.)  Most php.ini
files follow the convention (notice that there's no colon in the example):
some_name = some_value

Happy coding,

Adam

-- 
Nephtali:  A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com


Re: [PHP] pear for fedora 11

2010-03-09 Thread Ashley Sheridan
On Tue, 2010-03-09 at 23:06 +0800, Edward. S. P. Leong wrote:

 Ashley Sheridan wrote:
 
  On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote:
 
 Ashley Sheridan wrote:
 
 On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote:
 
   
 
 Dear All,
 
 Which can we download pear ann install into fc 11 system ?
 
 Thank for your help !
 
 Edward.
 
 
 
 
 
 I'm not sure I understand your question. Do you mean what Pear
 components can be installed on a Fedora 11 system? I'm running Fedora 11
 on my desktop and laptop at the moment, and both systems are running
 5.2.12, so any of the Pear modules that say they will run on that are
 fine. If you need to check to see what version of PHP is running, in a
 console or text login, type 'yum list php' and you'll get a line that
 reads something like:
 
 php.i5865.2.12-1.fc11@updates
 
 Thanks,
 Ash
 http://www.ashleysheridan.co.uk
   
 
 Dear Ash,
 
 1, My means is where can we download the pear and install it into the
 fedora 11 system ?
 Due to our web server :
 [pear]# pwd
 /usr/share/pear
 [pear]# dir
 Archive data OS pearcmd.php peclcmd.php System.php XML
 Console doc PEAR PEAR.php Structures test
 [pear]#
 So, it is not update ( pear ) ?
 
 2, Would you mind to send me your php config ( php.ini ) and Web Server
 config ( httpd.conf ) as sample ?
 Due to our Web Server is problem :
 After upload all of homepage data ( php format ) to Web Server, then
 type http://ip or domain_name the result is blank page...
 
 Thank for your help !
 
 Edward.
 
 
 
  If you're getting a blank page, the first port of call is your error
  log. At a console type:
 
  sudo tail -f /var/log/httpd/error_log
 
  which should then continually update itself with a list of errors as
  and when they occur, which will be useful to you if you need to view
  the log while you're debugging. This file is only readable by the root
  user.
 
  My config files won't be that much help I don't think, as the setup of
  both our servers will be quite different.
 
  How did you try to install Pear on your Fedora 11 system? The package
  manager that comes with Fedora (I use KPackageKit on KDE) allows you
  install and remove Pear modules as you need.
 
  Thanks,
  Ash
  http://www.ashleysheridan.co.uk
 
 
 
 Dear Ash,
 
 When I tried to install pear from the net into our server ( FC11 64Bit )
 as the following cmd :
 [root]# yum install pear
 Loaded plugins: refresh-packagekit
 Setting up Install Process
 No package pear available.
 Nothing to do
 [root]#
 
 So, I ask for the solution here ( for help )...
 
 Hope anyone or you can help me...
 
 Edward.
 

By default yum matches the beginning of the package name. As there is no
package called pear, it finds nothing.

Instead, you can use:

yum install php-pear*

to install all the php-pear packages, or install them as you need by:

yum install php-pear-subpackage

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




Re: [PHP] pear for fedora 11

2010-03-09 Thread Edward. S. P. Leong
Ashley Sheridan wrote:

 On Tue, 2010-03-09 at 23:06 +0800, Edward. S. P. Leong wrote:

Ashley Sheridan wrote:

 On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote:

Ashley Sheridan wrote:

On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote:

  

Dear All,

Which can we download pear ann install into fc 11 system ?

Thank for your help !

Edward.





I'm not sure I understand your question. Do you mean what Pear
components can be installed on a Fedora 11 system? I'm running Fedora 11
on my desktop and laptop at the moment, and both systems are running
5.2.12, so any of the Pear modules that say they will run on that are
fine. If you need to check to see what version of PHP is running, in a
console or text login, type 'yum list php' and you'll get a line that
reads something like:

php.i5865.2.12-1.fc11@updates

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

Dear Ash,

1, My means is where can we download the pear and install it into the
fedora 11 system ?
Due to our web server :
[pear]# pwd
/usr/share/pear
[pear]# dir
Archive data OS pearcmd.php peclcmd.php System.php XML
Console doc PEAR PEAR.php Structures test
[pear]#
So, it is not update ( pear ) ?

2, Would you mind to send me your php config ( php.ini ) and Web Server
config ( httpd.conf ) as sample ?
Due to our Web Server is problem :
After upload all of homepage data ( php format ) to Web Server, then
type http://ip or domain_name the result is blank page...

Thank for your help !

Edward.



 If you're getting a blank page, the first port of call is your error
 log. At a console type:

 sudo tail -f /var/log/httpd/error_log

 which should then continually update itself with a list of errors as
 and when they occur, which will be useful to you if you need to view
 the log while you're debugging. This file is only readable by the root
 user.

 My config files won't be that much help I don't think, as the setup of
 both our servers will be quite different.

 How did you try to install Pear on your Fedora 11 system? The package
 manager that comes with Fedora (I use KPackageKit on KDE) allows you
 install and remove Pear modules as you need.

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



Dear Ash,

When I tried to install pear from the net into our server ( FC11 64Bit )
as the following cmd :
[root]# yum install pear
Loaded plugins: refresh-packagekit
Setting up Install Process
No package pear available.
Nothing to do
[root]#

So, I ask for the solution here ( for help )...

Hope anyone or you can help me...

Edward.



 By default yum matches the beginning of the package name. As there is
 no package called pear, it finds nothing.

 Instead, you can use:

 yum install php-pear*

 to install all the php-pear packages, or install them as you need by:

 yum install php-pear-subpackage

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



Dear Ash,

1, Thank for your technical support of the installation / update
operation
2, If your is FC11 System, so, would you mind to send me (
edwardspl...@gmail.com ) your php.ini ( config ) for reference ?

Thanks !


Re: [PHP] pear for fedora 11

2010-03-09 Thread Edward. S. P. Leong
Ashley Sheridan wrote:

 On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote:

Ashley Sheridan wrote:

On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote:

  

Dear All,

Which can we download pear ann install into fc 11 system ?

Thank for your help !

Edward.





I'm not sure I understand your question. Do you mean what Pear
components can be installed on a Fedora 11 system? I'm running Fedora 11
on my desktop and laptop at the moment, and both systems are running
5.2.12, so any of the Pear modules that say they will run on that are
fine. If you need to check to see what version of PHP is running, in a
console or text login, type 'yum list php' and you'll get a line that
reads something like:

php.i5865.2.12-1.fc11@updates

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

Dear Ash,

1, My means is where can we download the pear and install it into the
fedora 11 system ?
Due to our web server :
[pear]# pwd
/usr/share/pear
[pear]# dir
Archive data OS pearcmd.php peclcmd.php System.php XML
Console doc PEAR PEAR.php Structures test
[pear]#
So, it is not update ( pear ) ?

2, Would you mind to send me your php config ( php.ini ) and Web Server
config ( httpd.conf ) as sample ?
Due to our Web Server is problem :
After upload all of homepage data ( php format ) to Web Server, then
type http://ip or domain_name the result is blank page...

Thank for your help !

Edward.



 If you're getting a blank page, the first port of call is your error
 log. At a console type:

 sudo tail -f /var/log/httpd/error_log

 which should then continually update itself with a list of errors as
 and when they occur, which will be useful to you if you need to view
 the log while you're debugging. This file is only readable by the root
 user.

 My config files won't be that much help I don't think, as the setup of
 both our servers will be quite different.

 How did you try to install Pear on your Fedora 11 system? The package
 manager that comes with Fedora (I use KPackageKit on KDE) allows you
 install and remove Pear modules as you need.

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



Dear Ash,

When I tried to install pear from the net into our server ( FC11 64Bit )
as the following cmd :
[root]# yum install pear
Loaded plugins: refresh-packagekit
Setting up Install Process
No package pear available.
Nothing to do
[root]#

So, I ask for the solution here ( for help )...

Hope anyone or you can help me...

Edward.



Re: [PHP] pear for fedora 11

2010-03-08 Thread Edward. S. P. Leong
Ashley Sheridan wrote:

On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote:

  

Dear All,

Which can we download pear ann install into fc 11 system ?

Thank for your help !

Edward.





I'm not sure I understand your question. Do you mean what Pear
components can be installed on a Fedora 11 system? I'm running Fedora 11
on my desktop and laptop at the moment, and both systems are running
5.2.12, so any of the Pear modules that say they will run on that are
fine. If you need to check to see what version of PHP is running, in a
console or text login, type 'yum list php' and you'll get a line that
reads something like:

php.i5865.2.12-1.fc11@updates

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

Dear Ash,

1, My means is where can we download the pear and install it into the
fedora 11 system ?
Due to our web server :
[pear]# pwd
/usr/share/pear
[pear]# dir
Archive data OS pearcmd.php peclcmd.php System.php XML
Console doc PEAR PEAR.php Structures test
[pear]#
So, it is not update ( pear ) ?

2, Would you mind to send me your php config ( php.ini ) and Web Server
config ( httpd.conf ) as sample ?
Due to our Web Server is problem :
After upload all of homepage data ( php format ) to Web Server, then
type http://ip or domain_name the result is blank page...

Thank for your help !

Edward.


Re: [PHP] pear for fedora 11

2010-03-08 Thread Ashley Sheridan
On Mon, 2010-03-08 at 22:39 +0800, Edward. S. P. Leong wrote:

 Ashley Sheridan wrote:
 
 On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote:
 
   
 
 Dear All,
 
 Which can we download pear ann install into fc 11 system ?
 
 Thank for your help !
 
 Edward.
 
 
 
 
 
 I'm not sure I understand your question. Do you mean what Pear
 components can be installed on a Fedora 11 system? I'm running Fedora 11
 on my desktop and laptop at the moment, and both systems are running
 5.2.12, so any of the Pear modules that say they will run on that are
 fine. If you need to check to see what version of PHP is running, in a
 console or text login, type 'yum list php' and you'll get a line that
 reads something like:
 
 php.i5865.2.12-1.fc11@updates
 
 Thanks,
 Ash
 http://www.ashleysheridan.co.uk
   
 
 Dear Ash,
 
 1, My means is where can we download the pear and install it into the
 fedora 11 system ?
 Due to our web server :
 [pear]# pwd
 /usr/share/pear
 [pear]# dir
 Archive data OS pearcmd.php peclcmd.php System.php XML
 Console doc PEAR PEAR.php Structures test
 [pear]#
 So, it is not update ( pear ) ?
 
 2, Would you mind to send me your php config ( php.ini ) and Web Server
 config ( httpd.conf ) as sample ?
 Due to our Web Server is problem :
 After upload all of homepage data ( php format ) to Web Server, then
 type http://ip or domain_name the result is blank page...
 
 Thank for your help !
 
 Edward.


If you're getting a blank page, the first port of call is your error
log. At a console type:

sudo tail -f /var/log/httpd/error_log

which should then continually update itself with a list of errors as and
when they occur, which will be useful to you if you need to view the log
while you're debugging. This file is only readable by the root user.

My config files won't be that much help I don't think, as the setup of
both our servers will be quite different.

How did you try to install Pear on your Fedora 11 system? The package
manager that comes with Fedora (I use KPackageKit on KDE) allows you
install and remove Pear modules as you need.

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




[PHP] pear for fedora 11

2010-03-07 Thread Edward. S. P. Leong
Dear All,

Which can we download pear ann install into fc 11 system ?

Thank for your help !

Edward.

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



Re: [PHP] pear for fedora 11

2010-03-07 Thread Ashley Sheridan
On Mon, 2010-03-08 at 01:07 +0800, Edward. S. P. Leong wrote:

 Dear All,
 
 Which can we download pear ann install into fc 11 system ?
 
 Thank for your help !
 
 Edward.
 


I'm not sure I understand your question. Do you mean what Pear
components can be installed on a Fedora 11 system? I'm running Fedora 11
on my desktop and laptop at the moment, and both systems are running
5.2.12, so any of the Pear modules that say they will run on that are
fine. If you need to check to see what version of PHP is running, in a
console or text login, type 'yum list php' and you'll get a line that
reads something like:

php.i5865.2.12-1.fc11@updates

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




[PHP] PEAR clases don't work with PHP 5.3

2010-03-05 Thread Martín Marqués
A few days ago I upgraded my development server with PHP 5.3, and
found that some pear packages stopped working giving FATAL ERRORs,
like this (this one is from package Image_Graph):

PHP Fatal error:  Call to undefined method
Image_Graph_Plotarea_Element::Image_Graph_Element() in
/usr/share/php/Image/Graph/Layout.php on line 73

I found that the problem is when calling the parents constructors like
parent::ClassName.

Changing that fixes the problem, but there are alot of clases with this problem.

Are these problems being addressed?

-- 
Martín Marqués
select 'martin.marques' || '@' || 'gmail.com'
DBA, Programador, Administrador

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



Re: [PHP] PEAR clases don't work with PHP 5.3

2010-03-05 Thread Michael A. Peters

Martín Marqués wrote:

A few days ago I upgraded my development server with PHP 5.3, and
found that some pear packages stopped working giving FATAL ERRORs,
like this (this one is from package Image_Graph):

PHP Fatal error:  Call to undefined method
Image_Graph_Plotarea_Element::Image_Graph_Element() in
/usr/share/php/Image/Graph/Layout.php on line 73

I found that the problem is when calling the parents constructors like
parent::ClassName.

Changing that fixes the problem, but there are alot of clases with this problem.

Are these problems being addressed?



I found similar problems with some of the pear stuff I use when I tried 
5.3.0 awhile back. For the present, I am just sticking with 5.2.x branch 
and will give some time for the various pear maintainers to work out the 
kinks.


One thing you can do is file bug reports with the pear components you 
use. I did not because I moved my test server back to 5.2.x thus I would 
have no way of testing whether the fixes actually worked, but if you 
have a box you can dedicate to 5.3.x testing, file the bug reports and 
it will bring the problem to the attention of the pear maintainers.


Some pear packages are better maintained than others.

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



Re: [PHP] PEAR clases don't work with PHP 5.3

2010-03-05 Thread Lester Caine

Michael A. Peters wrote:

Martín Marqués wrote:

A few days ago I upgraded my development server with PHP 5.3, and
found that some pear packages stopped working giving FATAL ERRORs,
like this (this one is from package Image_Graph):

PHP Fatal error: Call to undefined method
Image_Graph_Plotarea_Element::Image_Graph_Element() in
/usr/share/php/Image/Graph/Layout.php on line 73

I found that the problem is when calling the parents constructors like
parent::ClassName.

Changing that fixes the problem, but there are alot of clases with
this problem.

Are these problems being addressed?



I found similar problems with some of the pear stuff I use when I tried
5.3.0 awhile back. For the present, I am just sticking with 5.2.x branch
and will give some time for the various pear maintainers to work out the
kinks.

One thing you can do is file bug reports with the pear components you
use. I did not because I moved my test server back to 5.2.x thus I would
have no way of testing whether the fixes actually worked, but if you
have a box you can dedicate to 5.3.x testing, file the bug reports and
it will bring the problem to the attention of the pear maintainers.

Some pear packages are better maintained than others.


It is not just PEAR that needs a lot of work to make it compatible with PHP5.3 !
pecl needs some TLC as well, along with a large number of projects providing 
third party add-ons, or using PHP.


We need to keep 5.2.x supported as a switch to PHP5.3 IS NOT a simple option, 
and will take a lot longer before it is a practical one for many users.


--
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

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



[PHP] Pear include path problem

2009-11-17 Thread Al
I've got script that uses the pear Mail class and have had problems on some 
shared hosts with the include path to Mail. E.g., Blue Host insists the site 
owner must change the php.ini file. I'd rather not expect them to do that.


Can you folks critique this approach for me.

if(EMAIL_MODE=='smtp'){
 $basePath = str_ireplace('public_html', '', $_SERVER['DOCUMENT_ROOT']);
 set_include_path(get_include_path() . PATH_SEPARATOR . basePath);
 require_once $basePath/php . '/Mail.php';
 $smtpStatus=(class_exists('Mail'))?true:false;
}

Thanks

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



Re: [PHP] Pear include path problem

2009-11-17 Thread Jim Lucas
Al wrote:
 I've got script that uses the pear Mail class and have had problems on
 some shared hosts with the include path to Mail. E.g., Blue Host insists
 the site owner must change the php.ini file. I'd rather not expect them
 to do that.
 
 Can you folks critique this approach for me.
 
 if(EMAIL_MODE=='smtp'){
  $basePath = str_ireplace('public_html', '', $_SERVER['DOCUMENT_ROOT']);
  set_include_path(get_include_path() . PATH_SEPARATOR . basePath);
  require_once $basePath/php . '/Mail.php';
  $smtpStatus=(class_exists('Mail'))?true:false;
 }
 
 Thanks
 

How about this

# Check to see if the constant is defined BEFORE you try to use it.
if ( defined('EMAIL_MODE')  EMAIL_MODE == 'smtp' ) {

  # You might want to do more checking on the path.  Checking to see if it
  # has double forward slashes at the end would be the first place to start
  $basePath = str_ireplace('public_html', '', $_SERVER['DOCUMENT_ROOT']);

  # IMO, no improvement needed here
  set_include_path(get_include_path() . PATH_SEPARATOR . $basePath);

  # Well, it is what it is
  $filename = {$basePath}/php/Mail.php;

  # Check to see if file exists and is readable BEFORE you try including it
  if ( is_file($filename)  is_readable($filename) ) {
require_once $filename;
$smtpStatus=(class_exists('Mail'))?true:false;
  } else {
$smtpStatus = false;
  }
}

Jim Lucas

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



Re: [PHP] Pear include path problem

2009-11-17 Thread Al



Jim Lucas wrote:

Al wrote:

I've got script that uses the pear Mail class and have had problems on
some shared hosts with the include path to Mail. E.g., Blue Host insists
the site owner must change the php.ini file. I'd rather not expect them
to do that.

Can you folks critique this approach for me.

if(EMAIL_MODE=='smtp'){
 $basePath = str_ireplace('public_html', '', $_SERVER['DOCUMENT_ROOT']);
 set_include_path(get_include_path() . PATH_SEPARATOR . basePath);
 require_once $basePath/php . '/Mail.php';
 $smtpStatus=(class_exists('Mail'))?true:false;
}

Thanks



How about this

# Check to see if the constant is defined BEFORE you try to use it.
if ( defined('EMAIL_MODE')  EMAIL_MODE == 'smtp' ) {

  # You might want to do more checking on the path.  Checking to see if it
  # has double forward slashes at the end would be the first place to start
  $basePath = str_ireplace('public_html', '', $_SERVER['DOCUMENT_ROOT']);

  # IMO, no improvement needed here
  set_include_path(get_include_path() . PATH_SEPARATOR . $basePath);

  # Well, it is what it is
  $filename = {$basePath}/php/Mail.php;

  # Check to see if file exists and is readable BEFORE you try including it
  if ( is_file($filename)  is_readable($filename) ) {
require_once $filename;
$smtpStatus=(class_exists('Mail'))?true:false;
  } else {
$smtpStatus = false;
  }
}

Jim Lucas


Thanks for the feedback.  That's big help. I'm sending this revised code to my 
client to install on his Bluehost server.


Actually, I do check if EMAIL_MODE is defined; just didn't show it here.

And, I have debug mode that provides a more detailed error report. But, it 
doesn't help if it can't even find Mail


if (PEAR::isError($result))
{
$mode = EMAIL_MODE;

throw new Exception(The email mode \$mode\ does not work. Check the 
Applic email address and password in config file. br /
Tech support required, use DISABLE_MAIL_SEND to debug. Error found in 
pearEmailSend().br / .

$result-getMessage());
}




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



[PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner


   Typing 'pear segmentation fault' in Google produces tons of 
responses so I know I'm not the only one with this issue, but I'll be 
damned if I can figure out what the problem is and how to fix it.  I 
rolled my own PHP 5.3.0 from source.  Compilation went fine, no errors.  
Installation went without any errors.  I can run 'pecl' and install some 
packages, but when I try to run 'pear', it segfaults after it downloads 
a package:



$ pear install DB
WARNING: pear/DB is deprecated in favor of pear/MDB2
downloading DB-1.7.13.tgz ...
Starting to download DB-1.7.13.tgz (132,246 bytes)
.done: 132,246 bytes
Segmentation fault



   Running it with -vvv gives me:


$ pear -vvv install DB

Warning: file_exists(): Unable to find the wrapper channel - did you 
forget to enable it when you configured PHP? in 
PEAR/Downloader/Package.php on line 1510


Warning: is_file(): Unable to find the wrapper channel - did you 
forget to enable it when you configured PHP? in 
PEAR/Downloader/Package.php on line 1520


Warning: is_file(): Unable to find the wrapper channel - did you 
forget to enable it when you configured PHP? in 
PEAR/Downloader/Package.php on line 1520

WARNING: pear/DB is deprecated in favor of pear/MDB2
pear/DB: Skipping required dependency pear/PEAR version 1.9.0, already 
installed as version 1.8.0

Downloading http://pear.php.net/get/DB-1.7.13.tgz;
downloading DB-1.7.13.tgz ...
Starting to download DB-1.7.13.tgz (132,246 bytes)
.done: 132,246 bytes
Segmentation fault



   So, is this a known issue?

   -- A

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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Thodoris





   Typing 'pear segmentation fault' in Google produces tons of 
responses so I know I'm not the only one with this issue, but I'll be 
damned if I can figure out what the problem is and how to fix it.  I 
rolled my own PHP 5.3.0 from source.  Compilation went fine, no 
errors.  Installation went without any errors.  I can run 'pecl' and 
install some packages, but when I try to run 'pear', it segfaults 
after it downloads a package:



$ pear install DB
WARNING: pear/DB is deprecated in favor of pear/MDB2
downloading DB-1.7.13.tgz ...
Starting to download DB-1.7.13.tgz (132,246 bytes)
.done: 132,246 bytes
Segmentation fault




Was, by any chance, PHP installed as binary before you install it from 
source?
If this is the case try uninstalling the binary and then configure and 
compile the source again running 'make clean' before.


--
Thodoris


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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner

Thodoris wrote:
Was, by any chance, PHP installed as binary before you install it from 
source?
If this is the case try uninstalling the binary and then configure and 
compile the source again running 'make clean' before.
   PHP was not installed at all on this machine.  I grabbed the source 
from php.net and installed that.


--
H | It's not a bug - it's an undocumented feature.
 +
 Ashley M. Kirchner mailto:ash...@pcraft.com   .   303.442.6410 x130
 IT Director / SysAdmin. 800.441.3873 x130
 Photo Craft Imaging   .  2901 55th Street
 http://www.pcraft.com . .  ..   Boulder, CO 80301, U.S.A. 



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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Thodoris



Thodoris wrote:
Was, by any chance, PHP installed as binary before you install it 
from source?
If this is the case try uninstalling the binary and then configure 
and compile the source again running 'make clean' before.
   PHP was not installed at all on this machine.  I grabbed the source 
from php.net and installed that.




Is there a good reason for needing this pear package?

http://pear.php.net/package/DB

It is old and it has been replaced with MDB2 some time ago. Why don't 
you use it instead of trying to install DB.


http://pear.php.net/package/MDB2

Just a thought :-)

--
Thodoris


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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner

Thodoris wrote:

Is there a good reason for needing this pear package?

http://pear.php.net/package/DB

It is old and it has been replaced with MDB2 some time ago. Why don't 
you use it instead of trying to install DB.
   The issue here isn't what package is being installed.  The issue is 
that PEAR segfaults no matter what I try to install.  PECL works just 
fine (at least I was able to install something with it.)


--
H | It's not a bug - it's an undocumented feature.
 +
 Ashley M. Kirchner mailto:ash...@pcraft.com   .   303.442.6410 x130
 IT Director / SysAdmin. 800.441.3873 x130
 Photo Craft Imaging   .  2901 55th Street
 http://www.pcraft.com . .  ..   Boulder, CO 80301, U.S.A. 



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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Thodoris



Thodoris wrote:

Is there a good reason for needing this pear package?

http://pear.php.net/package/DB

It is old and it has been replaced with MDB2 some time ago. Why don't 
you use it instead of trying to install DB.
   The issue here isn't what package is being installed.  The issue is 
that PEAR segfaults no matter what I try to install.  PECL works just 
fine (at least I was able to install something with it.)




Obviously something went wrong while installing PHP and you will have to 
find this because this probably the reason pear segfaults.


Did you run make test before installing? (makes sure everything went well)

You know you don't need pear binary to use a pear's package right? (it's 
pure PHP after all)


--
Thodoris


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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner

Thodoris wrote:
Obviously something went wrong while installing PHP and you will have 
to find this because this probably the reason pear segfaults.


Did you run make test before installing? (makes sure everything went 
well)


You know you don't need pear binary to use a pear's package right? 
(it's pure PHP after all)
   I know, I've been doing this for years.  This is a new machine, and 
the only one where I have PHP 5.3.0 installed on (all the rest are PHP 
5.2.x and are all working fine.)  So at the moment I'm making the 
assumption it's something with 5.3.0 ...  I'm in the process of 
reinstalling it all from scratch again, see what happens.


   It also doesn't help with you search Google and you find, according 
to them, some 36,000 hits to 'PEAR segmentation fault' ... obviously 
something's up.


   -- A

--
H | It's not a bug - it's an undocumented feature.
 +
 Ashley M. Kirchner mailto:ash...@pcraft.com   .   303.442.6410 x130
 IT Director / SysAdmin. 800.441.3873 x130
 Photo Craft Imaging   .  2901 55th Street
 http://www.pcraft.com . .  ..   Boulder, CO 80301, U.S.A. 



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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Eddie Drapkin
On Mon, Oct 19, 2009 at 1:28 PM, Ashley M. Kirchner ash...@pcraft.com wrote:
 Thodoris wrote:

 Obviously something went wrong while installing PHP and you will have to
 find this because this probably the reason pear segfaults.

 Did you run make test before installing? (makes sure everything went well)

 You know you don't need pear binary to use a pear's package right? (it's
 pure PHP after all)

   I know, I've been doing this for years.  This is a new machine, and the
 only one where I have PHP 5.3.0 installed on (all the rest are PHP 5.2.x and
 are all working fine.)  So at the moment I'm making the assumption it's
 something with 5.3.0 ...  I'm in the process of reinstalling it all from
 scratch again, see what happens.

   It also doesn't help with you search Google and you find, according to
 them, some 36,000 hits to 'PEAR segmentation fault' ... obviously
 something's up.

   -- A

 --
 H | It's not a bug - it's an undocumented feature.
  +
  Ashley M. Kirchner mailto:ash...@pcraft.com   .   303.442.6410 x130
  IT Director / SysAdmin                        .     800.441.3873 x130
  Photo Craft Imaging                       .          2901 55th Street
  http://www.pcraft.com . .  .    .       Boulder, CO 80301, U.S.A.

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




Have you tried running pear upgrade pear?

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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Eddie Drapkin
On Mon, Oct 19, 2009 at 1:35 PM, Ashley M. Kirchner ash...@pcraft.com wrote:
 Eddie Drapkin wrote:

 Have you tried running pear upgrade pear?

   Yep, but I'll do it again for you to see:

 
 pear -vvv upgrade pear

 Warning: file_exists(): Unable to find the wrapper channel - did you
 forget to enable it when you configured PHP? in PEAR/Downloader/Package.php
 on line 1510

 Warning: is_file(): Unable to find the wrapper channel - did you forget to
 enable it when you configured PHP? in PEAR/Downloader/Package.php on line
 1520

 Warning: is_file(): Unable to find the wrapper channel - did you forget to
 enable it when you configured PHP? in PEAR/Downloader/Package.php on line
 1520
 pear/PEAR: Skipping required dependency pear/Archive_Tar version 1.3.3,
 already installed as version 1.3.3
 pear/PEAR: Skipping required dependency pear/Console_Getopt version 1.2.3,
 already installed as version 1.2.3
 pear/PEAR: Skipping required dependency pear/XML_Util version 1.2.1,
 already installed as version 1.2.1
 skipping installed package check of pear/pear, version 1.9.0 will be
 downloaded and installed
 Downloading http://pear.php.net/get/PEAR-1.9.0.tgz;
 downloading PEAR-1.9.0.tgz ...
 Starting to download PEAR-1.9.0.tgz (291,634 bytes)
 .done: 291,634
 bytes
 Segmentation fault
 


   Like I said, it doesn't matter *WHAT* I try to install/upgrade, pear will
 always segfault.  PECL does not exhibit that behavior.


 --
 H | It's not a bug - it's an undocumented feature.
  +
  Ashley M. Kirchner mailto:ash...@pcraft.com   .   303.442.6410 x130
  IT Director / SysAdmin                        .     800.441.3873 x130
  Photo Craft Imaging                       .          2901 55th Street
  http://www.pcraft.com . .  .    .       Boulder, CO 80301, U.S.A.

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



Try rebuilding PEAR manually.

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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner

Eddie Drapkin wrote:

Try rebuilding PEAR manually.

   No dice.  Same segfault.  Bunch of deprecated warnings too ...

[ ... snip ... ]

Installing selected packages..
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Command/Install.php on line 331
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Command/Install.php on line 343
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Command/Install.php on line 1137
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Config.php on line 1026
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Config.php on line 1033
Downloading and installing package: PEAR.PHP Deprecated:  
Assigning the return value of new by reference is deprecated in 
/usr/bin/temp/PEAR/Installer.php on line 592
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Installer.php on line 1177
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Installer.php on line 1266
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Installer.php on line 1538
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Installer.php on line 1682
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Downloader/Package.php on line 1385
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Downloader/Package.php on line 1438
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Downloader/Package.php on line 1502
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Downloader/Package.php on line 1587
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/REST/10.php on line 42
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 148
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 166
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 567
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 613
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 1853
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 1892
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Dependency2.php on line 897
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Dependency2.php on line 1178
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Dependency2.php on line 1202
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
warning: 

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Thodoris



O/H Ashley M. Kirchner έγραψε:

Eddie Drapkin wrote:

Try rebuilding PEAR manually.

   No dice.  Same segfault.  Bunch of deprecated warnings too ...

[ ... snip ... ]

Installing selected packages..
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Command/Install.php on line 331
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Command/Install.php on line 343
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Command/Install.php on line 1137
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Config.php on line 1026
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Config.php on line 1033
Downloading and installing package: PEAR.PHP Deprecated:  
Assigning the return value of new by reference is deprecated in 
/usr/bin/temp/PEAR/Installer.php on line 592
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Installer.php on line 1177
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Installer.php on line 1266
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Installer.php on line 1538
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Installer.php on line 1682
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Downloader/Package.php on line 1385
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Downloader/Package.php on line 1438
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Downloader/Package.php on line 1502
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Downloader/Package.php on line 1587
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/REST/10.php on line 42
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 148
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 166
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 567
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 613
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 1853
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/PackageFile/v2.php on line 1892
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Dependency2.php on line 897
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Dependency2.php on line 1178
PHP Deprecated:  Assigning the return value of new by reference is 
deprecated in /usr/bin/temp/PEAR/Dependency2.php on line 1202
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1183
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 
/usr/bin/temp/PEAR/Registry.php on line 1179
PHP Deprecated:  Function set_magic_quotes_runtime() is deprecated in 

Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner

Eddie Drapkin wrote:

Have you tried running pear upgrade pear?

   Yep, but I'll do it again for you to see:


pear -vvv upgrade pear

Warning: file_exists(): Unable to find the wrapper channel - did you 
forget to enable it when you configured PHP? in 
PEAR/Downloader/Package.php on line 1510


Warning: is_file(): Unable to find the wrapper channel - did you 
forget to enable it when you configured PHP? in 
PEAR/Downloader/Package.php on line 1520


Warning: is_file(): Unable to find the wrapper channel - did you 
forget to enable it when you configured PHP? in 
PEAR/Downloader/Package.php on line 1520
pear/PEAR: Skipping required dependency pear/Archive_Tar version 
1.3.3, already installed as version 1.3.3
pear/PEAR: Skipping required dependency pear/Console_Getopt version 
1.2.3, already installed as version 1.2.3
pear/PEAR: Skipping required dependency pear/XML_Util version 1.2.1, 
already installed as version 1.2.1
skipping installed package check of pear/pear, version 1.9.0 will be 
downloaded and installed

Downloading http://pear.php.net/get/PEAR-1.9.0.tgz;
downloading PEAR-1.9.0.tgz ...
Starting to download PEAR-1.9.0.tgz (291,634 bytes)
.done: 
291,634 bytes

Segmentation fault



   Like I said, it doesn't matter *WHAT* I try to install/upgrade, pear 
will always segfault.  PECL does not exhibit that behavior.



--
H | It's not a bug - it's an undocumented feature.
 +
 Ashley M. Kirchner mailto:ash...@pcraft.com   .   303.442.6410 x130
 IT Director / SysAdmin. 800.441.3873 x130
 Photo Craft Imaging   .  2901 55th Street
 http://www.pcraft.com . .  ..   Boulder, CO 80301, U.S.A. 



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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner


   Ok, we have activity here.  Before deleting everything and 
re-installing, I decided to just rename my php.ini file.  Low and 
behold, pear works now.  So, now the next task is figuring out where and 
why does php.ini cause pear to bomb.


--
H | It's not a bug - it's an undocumented feature.
 +
 Ashley M. Kirchner mailto:ash...@pcraft.com   .   303.442.6410 x130
 IT Director / SysAdmin. 800.441.3873 x130
 Photo Craft Imaging   .  2901 55th Street
 http://www.pcraft.com . .  ..   Boulder, CO 80301, U.S.A. 



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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner

Thodoris wrote:

Manually is the best solution as far as I can tell:

http://pear.php.net/manual/en/installation.getting.php
   That's exactly what I did.  I grabbed http://pear.php.net/go-pear 
and saved it, then ran php go-pear.php.  The result is what you saw in 
my previous e-mail.


--
H | It's not a bug - it's an undocumented feature.
 +
 Ashley M. Kirchner mailto:ash...@pcraft.com   .   303.442.6410 x130
 IT Director / SysAdmin. 800.441.3873 x130
 Photo Craft Imaging   .  2901 55th Street
 http://www.pcraft.com . .  ..   Boulder, CO 80301, U.S.A. 



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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Ashley M. Kirchner


   Well, it boiled down to zlib.so causing the segfault.  As soon as I 
removed that module, everything worked.  Recompiling just the zlib.so 
module yielded the same result: pear segfaults.


   So now the question is: is it zlib's fault, or is it pear?

   At this point I've accomplished what I needed, but it doesn't 
actually fix the problem: enabling zlib will cause pear to segfault.


--
H | It's not a bug - it's an undocumented feature.
 +
 Ashley M. Kirchner mailto:ash...@pcraft.com   .   303.442.6410 x130
 IT Director / SysAdmin. 800.441.3873 x130
 Photo Craft Imaging   .  2901 55th Street
 http://www.pcraft.com . .  ..   Boulder, CO 80301, U.S.A. 



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



Re: [PHP] PEAR segfaulting

2009-10-19 Thread Greg Beaver
Ashley M. Kirchner wrote:
 
Well, it boiled down to zlib.so causing the segfault.  As soon as I
 removed that module, everything worked.  Recompiling just the zlib.so
 module yielded the same result: pear segfaults.
 
So now the question is: is it zlib's fault, or is it pear?
 
At this point I've accomplished what I needed, but it doesn't
 actually fix the problem: enabling zlib will cause pear to segfault.

Ha, I guess I should wait before replying :).

It is zlib's fault.  We've had reported problems for years on some
poorly configured systems (not your problem: several distros decided to
include a borked zlib and apparently some still do for no good reason at
all).

Greg

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



Re: [PHP] PEAR Spreadsheet_Excel_Writer setLocked method

2009-06-22 Thread Thodoris



Thodoris wrote:
I've used it for some time but never needed to lock a cell. Here is a 
piece of code that shows how to apply a format to a cell:

  Hope it helps. I think that by doing something like this:


$format_bold-setLocked();

while creating the format could do the trick but it is not tested.



No, this didn't do it. I already have some formats I've created for 
dollar amounts, right align, etc, and applying the setLocked() method 
to them had no affect.


Skip



I have noticed that when you use setLocked to the cell formatting the 
cell has the protected flag set. My openoffice tells me that the cell 
protection is meaningful only if the data sheet is protected. I think 
that the following code does what you need as long as you save the xls 
before opening it.


?php
// Include the PEAR script
require 'Spreadsheet/Excel/Writer.php';

// Stop displaying the errors so that the warnings don't get in your 
spreadsheet

// ini_set('display_errors',0);

// Instantiate a workbook
$workbook = new Spreadsheet_Excel_Writer();

// Send it directly to the browser
$workbook-send(test.xls);

// Set the version (very useful for compatibility)
$workbook-setVersion(8);

// Create a worksheet in the workbook
$worksheet = $workbook-addWorksheet('Test');

// Set input encoding
$worksheet-setInputEncoding('UTF-8');

// Set protection for the worksheet
$worksheet-protect();

// Create the formats format
$format_locked = $workbook-addFormat();
$format_locked-setBold();
$format_locked-setHAlign('center');
$format_locked-setFgColor('yellow');
$format_locked-setLocked();

// Create a format
$format_unlocked = $workbook-addFormat();
$format_unlocked-setBold();
$format_unlocked-setHAlign('center');
$format_unlocked-setFgColor('yellow');

// Apply the format to a cell
$worksheet-writeString(0, 0, Locked, $format_locked);
$worksheet-writeString(0, 1, Unocked, $format_unlocked);

// Close the workbook
$workbook-close();
?

This protects the file with a blank password. I don't know if this is 
the proper way to do this  but it has been tested and works.


--
Thodoris


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



Re: [PHP] PEAR Spreadsheet_Excel_Writer setLocked method

2009-06-19 Thread Thodoris



Hey all,

Any one use the PEAR Spreadsheet_Excel_Writer package?

I need to know how to implement the setLocked method to lock out a 
cell, but can't figure out how this would be done.


Do you add it as a format? But then how is it applied to a cell. It's 
not documented on the PEAR pages.


Any help as always is greatly appreciated.

Also, what about making a cell span more than one cell below and above 
it? I can't find a way to do this either.


Thanks,
Skip




I've used it for some time but never needed to lock a cell. Here is a 
piece of code that shows how to apply a format to a cell:


?php
// Include the PEAR script
require 'Spreadsheet/Excel/Writer.php';

// Stop displaying the errors so that the warnings don't get in your 
spreadsheet

// ini_set('display_errors',0);

// Instantiate a workbook
$workbook = new Spreadsheet_Excel_Writer();

// Send it directly to the browser
$workbook-send(test.xls);

// Set the version (very useful for compatibility)
$workbook-setVersion(8);

// Create a worksheet in the workbook
$worksheet = $workbook-addWorksheet('Test');

// Set input encoding
$worksheet-setInputEncoding('UTF-8');

// Create a format
$format_bold = $workbook-addFormat();
$format_bold-setBold();
$format_bold-setHAlign('center');
$format_bold-setFgColor('yellow');

// Apply the format to a cell
$worksheet-writeString(0, 0, Test content, $format_bold);

// Close the workbook
$workbook-close();
?

Hope it helps. I think that by doing something like this:

$format_bold-setLocked();

while creating the format could do the trick but it is not tested.

--
Thodoris


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



Re: [PHP] PEAR Spreadsheet_Excel_Writer setLocked method

2009-06-19 Thread Skip Evans

Thodoris wrote:
I've used it for some time but never needed to lock a cell. Here is a 
piece of code that shows how to apply a format to a cell:

  Hope it helps. I think that by doing something like this:


$format_bold-setLocked();

while creating the format could do the trick but it is not tested.



No, this didn't do it. I already have some formats I've 
created for dollar amounts, right align, etc, and applying the 
setLocked() method to them had no affect.


Skip

--

Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com

Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

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



[PHP] PEAR Spreadsheet_Excel_Writer setLocked method

2009-06-18 Thread Skip Evans

Hey all,

Any one use the PEAR Spreadsheet_Excel_Writer package?

I need to know how to implement the setLocked method to lock 
out a cell, but can't figure out how this would be done.


Do you add it as a format? But then how is it applied to a 
cell. It's not documented on the PEAR pages.


Any help as always is greatly appreciated.

Also, what about making a cell span more than one cell below 
and above it? I can't find a way to do this either.


Thanks,
Skip


--

Skip Evans
Big Sky Penguin, LLC
503 S Baldwin St, #1
Madison WI 53703
608.250.2720
http://bigskypenguin.com

Those of you who believe in
telekinesis, raise my hand.
 -- Kurt Vonnegut

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



Re: [PHP] pear mdb2 and null

2009-04-13 Thread Bastien Koert
[snip]
 I need it to error when an attempt to create a record without setting that
 field is attempted, but setting the field to an empty string is fine.

 Attempting to insert data without defining that field indicates there is
 not sufficient information to create a record. Setting that field to a zero
 length string however indicates that there is enough information to create a
 record. Assuming that no information is the same as an zero length string is
 not OK.

 Call it bad design if you want, by MySQL knows the difference between NULL
 and an empty string, so should my database abstraction layer.


 Even if the default is set to '' - pear mdb2 refuses to do the insert.
 So it looks like pear mdb2 does not know the difference between NULL and a
 zero length string.

 Hopefully that is configurable somewhere.

  /snip]

Shouldn't this be really handled by the application layer, not the db layer?
If you are using the db to show the error code for the text field, wouldn't
it be simpler to handle that in the validation code, and then use the
default in the table to insert the data?


-- 

Bastien

Cat, the other other white meat


Re: [PHP] pear mdb2 and null

2009-04-12 Thread Phpster



On Apr 11, 2009, at 21:38, Michael A. Peters mpet...@mac.com wrote:


I've run into a small issue with mdb2.

I have a mysql database with a field set to longtext not null.

inserting  into that field works just dandy when using the mysql_  
functions.


However, when using mdb2 - it converts  to NULL which is NOT what  
I want to have happen, and the result is that the execute() fails  
because the database table does not accept NULL for that field.


Why does mdb2 turn  into NULL for a text type when MySQL knows  
there is a difference? How do I suppress that?


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



Why not set a default in the field then, as am empty string and let  
the db handle field properly? Having a Not Null with no default is bad  
db design.


Bastien 
 


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



Re: [PHP] pear mdb2 and null

2009-04-12 Thread Michael A. Peters

Phpster wrote:



On Apr 11, 2009, at 21:38, Michael A. Peters mpet...@mac.com wrote:


I've run into a small issue with mdb2.

I have a mysql database with a field set to longtext not null.

inserting  into that field works just dandy when using the mysql_ 
functions.


However, when using mdb2 - it converts  to NULL which is NOT what I 
want to have happen, and the result is that the execute() fails 
because the database table does not accept NULL for that field.


Why does mdb2 turn  into NULL for a text type when MySQL knows there 
is a difference? How do I suppress that?


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



Why not set a default in the field then, as am empty string and let the 
db handle field properly? Having a Not Null with no default is bad db 
design.


I need it to error when an attempt to create a record without setting 
that field is attempted, but setting the field to an empty string is fine.


Attempting to insert data without defining that field indicates there is 
not sufficient information to create a record. Setting that field to a 
zero length string however indicates that there is enough information to 
create a record. Assuming that no information is the same as an zero 
length string is not OK.


Call it bad design if you want, by MySQL knows the difference between 
NULL and an empty string, so should my database abstraction layer.


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



Re: [PHP] pear mdb2 and null

2009-04-12 Thread Michael A. Peters

Michael A. Peters wrote:

Phpster wrote:



On Apr 11, 2009, at 21:38, Michael A. Peters mpet...@mac.com wrote:


I've run into a small issue with mdb2.

I have a mysql database with a field set to longtext not null.

inserting  into that field works just dandy when using the mysql_ 
functions.


However, when using mdb2 - it converts  to NULL which is NOT what I 
want to have happen, and the result is that the execute() fails 
because the database table does not accept NULL for that field.


Why does mdb2 turn  into NULL for a text type when MySQL knows 
there is a difference? How do I suppress that?


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



Why not set a default in the field then, as am empty string and let 
the db handle field properly? Having a Not Null with no default is bad 
db design.


I need it to error when an attempt to create a record without setting 
that field is attempted, but setting the field to an empty string is fine.


Attempting to insert data without defining that field indicates there is 
not sufficient information to create a record. Setting that field to a 
zero length string however indicates that there is enough information to 
create a record. Assuming that no information is the same as an zero 
length string is not OK.


Call it bad design if you want, by MySQL knows the difference between 
NULL and an empty string, so should my database abstraction layer.




Even if the default is set to '' - pear mdb2 refuses to do the insert.
So it looks like pear mdb2 does not know the difference between NULL and 
a zero length string.


Hopefully that is configurable somewhere.

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



[PHP] pear mdb2 and null

2009-04-11 Thread Michael A. Peters

I've run into a small issue with mdb2.

I have a mysql database with a field set to longtext not null.

inserting  into that field works just dandy when using the mysql_ 
functions.


However, when using mdb2 - it converts  to NULL which is NOT what I 
want to have happen, and the result is that the execute() fails because 
the database table does not accept NULL for that field.


Why does mdb2 turn  into NULL for a text type when MySQL knows there 
is a difference? How do I suppress that?


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



Re: [PHP] pear Mail/Mime problem on new Ubuntu Linux server

2008-12-09 Thread Richard Heyes
 Might it be the Unix newline characters?

Unlikely, IIRC the PEAR mime stuff uses \r\n (ie Windows). Try using
the htmlMimeMail5 code here:

http://www.phpguru.org/downloads/html.mime.mail/htmlMimeMail5/

-- 
Richard Heyes

HTML5 Graphing for FF, Chrome, Opera and Safari:
http://www.rgraph.org (Updated December 5th)

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



[PHP] pear Mail/Mime problem on new Ubuntu Linux server

2008-12-09 Thread German Geek
Hi All,

Can someone think of a reason why when changing from a Windows 2003 Web
Edition server running PHP 5.2 to a Ubuntu machine, also with PHP 5.2 can
cause the following problem:

The emails sent from the server, which should be in HTML format (the client
wanted this specifically) now only show the plain text email, but only in
Outlook XP or 2003. The Outlook 2007 on my work machine receives it fine,
also my gmail account. Unfortunately, the client uses the Outlook version
with the problem.

Might it be the Unix newline characters?

My first suspicion was to blame M$ for letting Outlook check the headers for
example.com, postfix or Linux, but that might be a bit exajurated paranoia.
lol

Thanks for even reading this, even more for replying. :)

Tim


Re: [PHP] pear Mail/Mime problem on new Ubuntu Linux server

2008-12-09 Thread Eric Butera
On Tue, Dec 9, 2008 at 6:57 AM, German Geek [EMAIL PROTECTED] wrote:
 Hi All,

 Can someone think of a reason why when changing from a Windows 2003 Web
 Edition server running PHP 5.2 to a Ubuntu machine, also with PHP 5.2 can
 cause the following problem:

 The emails sent from the server, which should be in HTML format (the client
 wanted this specifically) now only show the plain text email, but only in
 Outlook XP or 2003. The Outlook 2007 on my work machine receives it fine,
 also my gmail account. Unfortunately, the client uses the Outlook version
 with the problem.

 Might it be the Unix newline characters?

 My first suspicion was to blame M$ for letting Outlook check the headers for
 example.com, postfix or Linux, but that might be a bit exajurated paranoia.
 lol

 Thanks for even reading this, even more for replying. :)

 Tim


I just had this problem.  Try normalizing the line returns of your
email before sending it.  I was building mine from multiple sources
(db, files, etc) and some had unix line returns, mac line returns, and
windows.  Normalizing them into a consistent format fixed it.

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



[PHP] PEAR Help

2008-12-05 Thread Jason Todd Slack-Moehrle

Hi All,

I installed PEAR fine.

How I need to install OLE and Spreadsheet_Excel_Writer and I dont see  
how


pear install .

fails every time with channel errors and not found errors.

I have downloaded the .tgz files, but I dont know where to put the  
contents.


Any thoughts?

-Jason




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



Re: [PHP] PEAR Help

2008-12-05 Thread ceo

I found the PEAR tarballs to be corrupt a day or two ago...



The PEAR bug report captcha continually rejected my correct answers to simple 
math questions. :-(



I snagged a re-packaged version from:

http://pizzaseo.com/



ymmv



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



[PHP] PEAR ExcelWriter corrupt / Bug Report CAPTCHA borked

2008-11-28 Thread Richard Lynch
The PEAR tarball for ExcelWriter is corrupt for 0.9.1, 0.9.0 and 0.8.0

The PEAR bug-reporting system CAPTHCA won't accept the correct answers.

In desparation, I'm reporting this here, hoping somebody from PEAR
reads this and can do something...

$ tar -xvf Spreadsheet_Excel_Writer-0.9.1.tar
package.xml
Spreadsheet_Excel_Writer-0.9.1/Writer.php
Spreadsheet_Excel_Writer-0.9.1/Writer/BIFFwriter.php
Spreadsheet_Excel_Writer-0.9.1/Writer/Workbook.php
Spreadsheet_Excel_Writer-0.9.1/Writer/Format.php
Spreadsheet_Excel_Writer-0.9.1/Writer/Worksheet.php
Spreadsheet_Excel_Writer-0.9.1/Writer/Parser.php
Spreadsheet_Excel_Writer-0.9.1/Writer/Validator.php
tar: A lone zero block at 576

pear install xyz

will NOT work due to firewall/proxy/policy at work.


-- 
Some people ask for gifts here.
I just want you to buy an Indie CD for yourself:
http://cdbaby.com/search/from/lynch



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



[PHP] pear mail() verses net-smtp()

2008-11-26 Thread Al
Anyone have opinions on these two mail functions for sending smtp emails, pear mail() verses 
net-smtp()?  Which is best, etc.



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



Re: [PHP] pear mail() verses net-smtp()

2008-11-26 Thread Chris

Al wrote:
Anyone have opinions on these two mail functions for sending smtp 
emails, pear mail() verses net-smtp()?  Which is best, etc.


Pear mail puts everything together and if necessary uses net_smtp to 
send it.


If you want to have to build the emails yourself, you can do it and then 
use net_smtp to send it - but it's pretty hard to do and get right for 
all situations.


Otherwise, use pear mail to do everything for you.

http://pear.php.net/package/Net_SMTP/

» Packages that depend on Net_SMTP

* Mail

--
Postgresql  php tutorials
http://www.designmagick.com/


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



Re: [PHP] pear mail() verses net-smtp()

2008-11-26 Thread Chris

Al wrote:
Anyone have opinions on these two mail functions for sending smtp 
emails, pear mail() verses net-smtp()?  Which is best, etc.


Pear mail puts everything together and if necessary uses net_smtp to 
send it.


If you want to have to build the emails yourself, you can do it and then 
use net_smtp to send it - but it's pretty hard to do and get right for 
all situations.


Otherwise, use pear mail to do everything for you.

http://pear.php.net/package/Net_SMTP/

» Packages that depend on Net_SMTP

* Mail

--
Postgresql  php tutorials
http://www.designmagick.com/


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



[PHP] Pear XML parser finding nothing in ATOM / Movable Type feed

2008-09-17 Thread John Allsopp

Hi

I know nothing about Pear, so I don't know how to debug this:

I've got a newly installed Movable Type blog with a couple of entries in 
it, and I just found from php.net the pear classes to parse an RSS feed, 
parser.php and rss.php, and this code from the PEAR site works


require_once XML/RSS.php;

$rss = new XML_RSS(http://rss.slashdot.org/Slashdot/slashdot;);
$rss-parse();

echo h2Headlines from slashdot/h2\n;
echo ul\n;

foreach ($rss-getItems() as $item) {
   echo lia href=\ . $item['link'] . \ . $item['title'] . 
/a/li\n;

}

echo /ul\n;

but if I point it at my blog: 
http://www.bluetreeservices.co.uk/gps_tracking_news/atom.xml or 
http://www.bluetreeservices.co.uk/gps_tracking_news/ or 
http://www.bluetreeservices.co.uk/gps_tracking_news , parse returns an 
empty array.


Am I just using the wrong code for that type of feed (I would have 
thought any RSS reader would handle an atom format feed) or is it that 
my server needs to provide atom.xml or .. what's going on?


I've no idea how to use PEAR::error with regard to $rss-parse() so I'm 
a bit stumped about debugging it.


I'd certainly call myself a PHP programmer, but I've never really used 
pear is the thing.


All help appreciated :-)

Cheers
J

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



[PHP] Pear DB

2008-07-10 Thread John Comerford

Hi Folks,

I have just successfully lobbied for the company I work for to use 
PHP/MySQL for our next website.  My Question is regarding DB abstraction 
.  I know there is a Pear DB module, is this the best to use ?  I have a 
vague memory of reading somewhere that there is a newer lib or something 
which is considered better ?


TIA,
 JC

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



Re: [PHP] Pear DB

2008-07-10 Thread Jason Norwood-Young

On Thu, 2008-07-10 at 16:47 +1000, John Comerford wrote:
 Hi Folks,
 
 I have just successfully lobbied for the company I work for to use 
 PHP/MySQL for our next website.  My Question is regarding DB abstraction 
 .  I know there is a Pear DB module, is this the best to use ?  I have a 
 vague memory of reading somewhere that there is a newer lib or something 
 which is considered better ?
 

Hi John

You might consider CodeIgniter - it's a very nice, simple to use
framework with a pretty good DB abstraction layer built in.
http://codeigniter.com/

J



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



Re: [PHP] Pear DB

2008-07-10 Thread Larry Garfield
PEAR::DB was deprecated years ago.  Do not use it.  

PEAR::MDB2 is the preferred PEAR wrapper these days.  

Personally, I skip them both and prefer to go straight to PDO, available in 
PHP 5.  

http://www.php.net/pdo

On Thursday 10 July 2008 1:47:34 am John Comerford wrote:
 Hi Folks,

 I have just successfully lobbied for the company I work for to use
 PHP/MySQL for our next website.  My Question is regarding DB abstraction
 .  I know there is a Pear DB module, is this the best to use ?  I have a
 vague memory of reading somewhere that there is a newer lib or something
 which is considered better ?

 TIA,
   JC

-- 
Larry Garfield
[EMAIL PROTECTED]

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



RE: [PHP] Pear DB

2008-07-10 Thread Alex Chamberlain
 Hi Folks,

 I have just successfully lobbied for the company I work for to use 
 PHP/MySQL for our next website.  My Question is regarding DB abstraction 
 .  I know there is a Pear DB module, is this the best to use ?  I have a 
 vague memory of reading somewhere that there is a newer lib or something 
 which is considered better ?

 TIA,
   JC

The newest version of Pear DB is Pear MDB2. I have to say I'm not a great
fan of the pear system, but MDB2 is probably one of the best.

Alex

No virus found in this outgoing message. Scanned by AVG Free 8.0
Checked by AVG - http://www.avg.com 
Version: 8.0.138 / Virus Database: 270.4.7/1542 - Release Date: 09/07/2008
06:50


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



Re: [PHP] Pear DB

2008-07-10 Thread Lester Caine

John Comerford wrote:

Hi Folks,

I have just successfully lobbied for the company I work for to use 
PHP/MySQL for our next website.  My Question is regarding DB abstraction 
.  I know there is a Pear DB module, is this the best to use ?  I have a 
vague memory of reading somewhere that there is a newer lib or something 
which is considered better ?


As others have said - MDB2 or PDO are the Pear:DB replacements, but if you 
would like a proper abstraction of SQL then ADOdb is still the best choice and 
it can handle PDO or raw mysql drivers internally. But more important it gives 
you the safety net to be able to switch to an alternative to MySQL ;)


http://adodb.sourceforge.net/

You will also find a lot of useful projects that are built on it which may 
provide the bulk of your site code. No need to build a site from scratch - 
just select a suitable framework :)


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/lsces/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

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



Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-07 Thread Richard Lynch
SPM decided to move stuff to a different place, namely inside of a
/usr/share/php/PEAR directory, instead of just /usr/share/PEAR.

So change your include path and be done with it.

On Wed, March 5, 2008 11:59 am, Stephen wrote:
 My LAMP is on Ubuntu 7.10

 I am trying to use PEAR, for the first time, and get an error about
 the
 include file not being found.

 It is not there.

 phpinfo() has include_path set to .:/usr/share/php:/usr/share/pear

 Here is my error:

 Warning: require_once(HTML/QuickForm.php) [function.require-once]:
 failed to open stream: No such file or directory in
 /home/stephen/www/roissy.ca/public_html/quotesForm.php on line 3

 Fatal error: require_once() [function.require]: Failed opening
 required
 'HTML/QuickForm.php' (include_path='.:/usr/share/php:/usr/share/pear')
 in /home/stephen/www/roissy.ca/public_html/quotesForm.php on line 3

 Now I have always just used the Synaptic Package Manager, and I just
 did
 a reinstall of PEAR.

 But there is no /usr/share/pear directory.

 I have a /usr/share/php/PEAR and it has things that look like
 installation files.

 I am venturing where I have not before. I have never performed any
 kind
 of CLI install.

 Can anyone help me figure out how to get the installation fixed?

 Thanks
 Stephen

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




-- 
Some people have a gift link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?


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



Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-06 Thread Richard Heyes
You could just copy and paste from the PEAR website, And replicate the 
directory structure manually. g


1. Create the dire /use/local/share/pear/HTML
2. Copy (or create) the file Quickform (and all it's associated stuff)
   into that directory. IIRC, Quickform has quite a lot of files, so you
   may be better off with a single file while you get it up and running.
   Something like Console_Table. So, you would create this dir:
   /usr/local/share/pear/Console and in that place the file Table.php
   Then in your app you can do this:

   require_once('Console/Table.php');

--
Richard Heyes
Employ me:
http://www.phpguru.org/cv

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



[PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Stephen

My LAMP is on Ubuntu 7.10

I am trying to use PEAR, for the first time, and get an error about the 
include file not being found.


It is not there.

phpinfo() has include_path set to .:/usr/share/php:/usr/share/pear

Here is my error:

Warning: require_once(HTML/QuickForm.php) [function.require-once]: 
failed to open stream: No such file or directory in 
/home/stephen/www/roissy.ca/public_html/quotesForm.php on line 3


Fatal error: require_once() [function.require]: Failed opening required 
'HTML/QuickForm.php' (include_path='.:/usr/share/php:/usr/share/pear') 
in /home/stephen/www/roissy.ca/public_html/quotesForm.php on line 3


Now I have always just used the Synaptic Package Manager, and I just did 
a reinstall of PEAR.


But there is no /usr/share/pear directory.

I have a /usr/share/php/PEAR and it has things that look like 
installation files.


I am venturing where I have not before. I have never performed any kind 
of CLI install.


Can anyone help me figure out how to get the installation fixed?

Thanks
Stephen

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



Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Daniel Brown
On Wed, Mar 5, 2008 at 12:59 PM, Stephen [EMAIL PROTECTED] wrote:
 My LAMP is on Ubuntu 7.10
[snip!]
  Fatal error: require_once() [function.require]: Failed opening required
  'HTML/QuickForm.php' (include_path='.:/usr/share/php:/usr/share/pear')
  in /home/stephen/www/roissy.ca/public_html/quotesForm.php on line 3
[snip!]
  But there is no /usr/share/pear directory.

  I have a /usr/share/php/PEAR and it has things that look like
  installation files.
[snip!]
  Can anyone help me figure out how to get the installation fixed?

Update your php.ini to add /usr/share/php/PEAR to the include
path, and remove /usr/share/php/pear if it's in there.  Then restart
Apache (service httpd stop;service httpd startssl) and you should be
good to go.

-- 
/Dan

Daniel P. Brown
Senior Unix Geek
? while(1) { $me = $mind--; sleep(86400); } ?

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



Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Stephen

Daniel Brown wrote:


On Wed, Mar 5, 2008 at 12:59 PM, Stephen [EMAIL PROTECTED] wrote:

My LAMP is on Ubuntu 7.10

[snip!]

 Fatal error: require_once() [function.require]: Failed opening required
 'HTML/QuickForm.php' (include_path='.:/usr/share/php:/usr/share/pear')
 in /home/stephen/www/roissy.ca/public_html/quotesForm.php on line 3

[snip!]

 But there is no /usr/share/pear directory.

 I have a /usr/share/php/PEAR and it has things that look like
 installation files.

[snip!]

 Can anyone help me figure out how to get the installation fixed?


Update your php.ini to add /usr/share/php/PEAR to the include
path, and remove /usr/share/php/pear if it's in there.  Then restart
Apache (service httpd stop;service httpd startssl) and you should be
good to go.



I don't think that it is that simple. The /usr/share/php/PEAR directory 
does not include the HTML directory or the QuickForm.php file.


It looks like I have to run some kind of install process for PEAR.

Docs to read.

Thanks
Stephen

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



Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Wolf
  [snip!]
   But there is no /usr/share/pear directory.
 
   I have a /usr/share/php/PEAR and it has things that look like
   installation files.
  [snip!]
   Can anyone help me figure out how to get the installation fixed?
  
  Update your php.ini to add /usr/share/php/PEAR to the include
  path, and remove /usr/share/php/pear if it's in there.  Then restart
  Apache (service httpd stop;service httpd startssl) and you should be
  good to go.
  
 
 I don't think that it is that simple. The /usr/share/php/PEAR directory 
 does not include the HTML directory or the QuickForm.php file.
 
 It looks like I have to run some kind of install process for PEAR.
 
 Docs to read.
Open a terminal window on the server
at the prompt type:
 locate QuickForm.php

If it comes back with the path/file, make sure the path to the file is in the 
include folder

If it comes back to just a regular terminal prompt right away, then you need to 
install it.

The following is what you get when it is NOT located:
~$ locate Quickform.php
~$ 

You could also run the following:
~$ pear list
Installed packages, channel pear.php.net:
=
Package  Version  State
Archive_Tar  1.3.2stable
Auth 1.5.4stable
Cache1.5.5RC4 beta
Console_Getopt   1.2.2stable
Date 1.4.6stable
File 1.3.0stable
HTTP_Request 1.4.1stable
Image_Canvas 0.2.2alpha
Image_Graph  0.7.1alpha
Log  1.9.11   stable
Net_CheckIP  1.2.1stable
Net_DIME 0.3  beta
Net_FTP  1.3.2stable
Net_LDAP 0.7.2beta
Net_Sieve1.1.5stable
Net_SmartIRC 1.0.0stable
Net_URL  1.0.14   stable
PEAR 1.5.4stable
SOAP 0.10.1   beta
Services_Weather 1.4.2stable
Structures_Graph 1.0.2stable
XML_Serializer   0.18.0   beta
XML_Util 1.1.4stable



HTH,
Wolf

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



Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Stephen

Wolf wrote:


Open a terminal window on the server
at the prompt type:
 locate QuickForm.php

If it comes back with the path/file, make sure the path to the file is in the 
include folder

If it comes back to just a regular terminal prompt right away, then you need to 
install it.

The following is what you get when it is NOT located:
~$ locate Quickform.php
~$ 


You could also run the following:
~$ pear list
Installed packages, channel pear.php.net:
=
Package  Version  State
Archive_Tar  1.3.2stable
Auth 1.5.4stable

 .

Thank you.

I just have four packages installed. I need to grab some and install them.

Stephen


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



Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Shawn McKenzie
Stephen wrote:
 Wolf wrote:
 
 Open a terminal window on the server
 at the prompt type:
  locate QuickForm.php

 If it comes back with the path/file, make sure the path to the file is
 in the include folder

 If it comes back to just a regular terminal prompt right away, then
 you need to install it.

 The following is what you get when it is NOT located:
 ~$ locate Quickform.php
 ~$
 You could also run the following:
 ~$ pear list
 Installed packages, channel pear.php.net:
 =
 Package  Version  State
 Archive_Tar  1.3.2stable
 Auth 1.5.4stable
 .
 
 Thank you.
 
 I just have four packages installed. I need to grab some and install them.
 
 Stephen
 
sudo pear install HTML_QuickForm

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



Re: [PHP] Pear Installation Problem - Ubuntu

2008-03-05 Thread Stephen

Shawn McKenzie wrote:


sudo pear install HTML_QuickForm


That was so easy.

Thank you!
Stephen



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



  1   2   3   4   5   >