Re: [PHP] further detail on mysql connect problem

2005-05-25 Thread Richard Lynch

Google for that error message.

We just discussed it days ago...

I forget what it was, but the answer's in the archives.


On Tue, May 24, 2005 5:15 pm, Jim  Sara Feldman said:
 Hi:

 Adding a detail to my previous note on the mysql connect problem:

 At the point where I attempted to connect, I added a printout of the
 error generated when the instruction ran. The two lines now read:

 $result = mysql_pconnect(localhost, api_user, x97533);
   echo Tried to connect. Problem: .mysql_error(). br;

 What came back was:

 Tried to connect. Problem: Client does not support authentication
 protocol requested by server; consider upgrading MySQL client

 Thanks for your help.

 Jim
 --
 Jim Feldman
 14 Linda Lane
 Newton, MA 02461

 617-527-0509


-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] db aware text editor? (slightly OT?)

2005-05-25 Thread Burhan Khalid

Richard Lynch wrote:

On Tue, May 24, 2005 2:08 pm, Murray @ PlanetThoughtful said:


I'm wondering if anyone knows of a 'db aware' text editor? By 'db aware',
I
mean one that can pull a recordset back from a local MySQL server and edit
the content of fields much like a standard text editor does with files.


Zend Studio 4+ does this.

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



Re: [PHP] mysql connect problem

2005-05-25 Thread Burhan Khalid

Jim  Sara Feldman wrote:

Hi:

I have recently upgraded from a Mac G4 running OS 10.3.9 to a G5 
running OS 10.4. I ported a working PHP app and upgraded from PHP 4.3.4 
to 4.3.10 and MySQL 4.0.17 to 4.1.11. I am having a problem connecting 
to MySQL from PHP.


I can connect to the database using either phpMyADMIN  or directly 
from terminal mode using MySQL commands. However, when I try to enter 
the database from php, using


$result = mysql_pconnect(localhost, api_user, 97533);

I get $result = FALSE. This command works on the old system as does the 
MySQL command:


Jim :

  The problem here is that with MySQL 4.1.xx -- MySQL changed the way 
that passwords should be connect by clients to the server.  PHP 4.3.10 
is still using the old client libraries of MySQL, which do not 
understand the new password schemes.


  The command line client (mysql) works because its using the new 
libraries that came with MySQL 4.1.11.


  You have two options.  You can either upgrade to PHP5 and use the 
mysqli_* functions -- or you can restart MySQL with the --old-passwords 
switch which will allow it to accept connections from older clients.


  See http://php.net/mysqli and 
http://dev.mysql.com/doc/mysql/en/old-client.html for more information.


Warmly,
Burhan

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



Re: [PHP] strtotime('yesterday')

2005-05-25 Thread Burhan Khalid

Richard Lynch wrote:

On Tue, May 24, 2005 7:24 am, Rahul S. Johari said:


Im trying to delete all files in a folder based on a string match with
the
following code:

?
$dir = '/Library/WebServer/Documents/something.com/subfolder/';
$dp = opendir($dir) or die ('Fatal Error: '.mysql_error());
while ($file = readdir($dp)) {
if ((eregi('.png',$file))  (filemtime($dir.$file)) 
(strtotime('yesterday'))) {
unlink($dir.$file);
}
}
closedir($dp);
$yesterday = mktime( 0, 0, 0, date(m) , date(d)-1, date(Y) );
$date = date( m-d-y, D, $yesterday );
echo BErase Successful!/BbrAll images up to $date, have been
permanently erased from the Server.;
?

I need the code to delete all images created till yesterday, and leave
images created today. Somehow strtotime(yesterday) doesnt work.
If I put strtotime(-2 days) or strtotime(-7 days) or even
strtotime(8:00am)... They all work accordingly. How come (yesterday)
isnt working? It doesnt delete anything.


[EMAIL PROTECTED] burhan $ php -r echo date('r',strtotime('-1 day'));
Tue, 24 May 2005 09:00:35 +0300

[EMAIL PROTECTED] burhan $ date
Wed May 25 09:02:10 AST 2005

:)

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



Re: [PHP] cybercash as a shared object

2005-05-25 Thread Bill Shupp

Blair Lowe wrote:

Wow can cybercash.so be compiled with the newer glibc libraries?


It compiles, but I can't load it.  See my previous post.


Is there source code for the old cybercash stuff?


Per my previous message, the cybercash extension is available in PECL. 
I already had access to the MCK libraries, though.  There's lots of 
stuff about this on Google.



The only thing I ever had was a binary, and when Verisign bought out
cybercash, the stuff went obsolete on me.


Lots of people still run the PHP cybercash module, but use it 
statically.  I'm trying to get it to run as a shared module.


Regards,

Bill

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



Re: [PHP] Very long delay posting to php-general (might be OT)

2005-05-25 Thread Marek Kilimajer

Richard Lynch wrote:

On Tue, May 24, 2005 3:32 pm, Marek Kilimajer said:


Andy Pieters wrote:


Hi all

I was wondering if it is normal that when posting to the php-general
list
there is always a very long delay before messages are shown.

It's not like with snail mail.  Sending mail messages is instant so
where is
the delay?


I think John Nichel took over the job of filtering the list of spam :)






I don't know WHY posts take hours to get through, but I'm not honestly
seeing it as a problem personally.



I see one problem, some questions get the same answer from several 
people. This increases the list traffic without any benefit.


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



[PHP] Building multi-page Word docs with PHP?

2005-05-25 Thread George Pitcher
Hi,

I currently create my multipage docs by saving my word templates as chunks
of rtf and then calling them as required as a very long string then
outputting them to an rtf file and renaming it as '*.doc'. It works great
except for the filesize which comes out at 900k for a two-page document.
Opening in Word and saving reduces the file down dramatically, but that
would prevent auto-generation and emailing - without human intervention.

Does anyone know how to either create multipage docs in Word format to begin
with, or to convert (on the fly) rtf to doc, or to save rtf as smaller file?

MTIA


George

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



Re: [PHP] Very long delay posting to php-general (might be OT)

2005-05-25 Thread John Nichel

Marek Kilimajer wrote:

Andy Pieters wrote:


Hi all

I was wondering if it is normal that when posting to the php-general 
list there is always a very long delay before messages are shown.


It's not like with snail mail.  Sending mail messages is instant so 
where is the delay?



I think John Nichel took over the job of filtering the list of spam :)



Hell, my mail server skills may not rank elite, but I would hope I could 
get the messages delivered faster than this. ;)


--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



Re: [PHP] further detail on mysql connect problem

2005-05-25 Thread John Nichel

Jim  Sara Feldman wrote:

Hi:

Adding a detail to my previous note on the mysql connect problem:

At the point where I attempted to connect, I added a printout of the 
error generated when the instruction ran. The two lines now read:


$result = mysql_pconnect(localhost, api_user, x97533);
 echo Tried to connect. Problem: .mysql_error(). br;

What came back was:

Tried to connect. Problem: Client does not support authentication 
protocol requested by server; consider upgrading MySQL client


Thanks for your help.

Jim


Check the archives/Google/MySQL's site/etc.  This 'problem' has been 
discussed numerous times.


--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



RE: [PHP] Very long delay posting to php-general (might be OT)

2005-05-25 Thread Murray @ PlanetThoughtful
  I don't know WHY posts take hours to get through, but I'm not honestly
  seeing it as a problem personally.
 
 
 I see one problem, some questions get the same answer from several
 people. This increases the list traffic without any benefit.

That, of course, is exacerbated by the delay. If it takes 4 hours for
responses to appear, it will seem to others on the list in that time that
no-one else has responded.

And I'd personally rather 'too many' people replied, than too few or none at
all.

Murray

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



Re: [PHP] Building multi-page Word docs with PHP?

2005-05-25 Thread Brent Baisley
I've only read about being able to generate a Word document if you are 
running under Windows (which I am not). I gave up long ago trying to 
figure out the rtf spec to auto generate Word documents. I do exactly 
what you do, except I generate HTML instead and attach a .doc to the 
file. The Word document actually ends up being larger than the HTML 
document, but I don't do all that much formatting.
What you are looking for is something like the opposite of AntiWord, 
unless AntiWord has a reverse option.


On May 25, 2005, at 8:50 AM, George Pitcher wrote:


Hi,

I currently create my multipage docs by saving my word templates as 
chunks

of rtf and then calling them as required as a very long string then
outputting them to an rtf file and renaming it as '*.doc'. It works 
great
except for the filesize which comes out at 900k for a two-page 
document.

Opening in Word and saving reduces the file down dramatically, but that
would prevent auto-generation and emailing - without human 
intervention.


Does anyone know how to either create multipage docs in Word format to 
begin
with, or to convert (on the fly) rtf to doc, or to save rtf as smaller 
file?


MTIA


George


--
Brent Baisley
Systems Architect
Landover Associates, Inc.
Search  Advisory Services for Advanced Technology Environments
p: 212.759.6400/800.759.0577

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



[PHP] OT but worth a shot: Informix Client Libraries

2005-05-25 Thread Mikey
Hi, 

I have just landed a small project to port a database schema from what I can
only 
describe as an ancient version of Informix to mySQL. The version
specifically is 
4.11.UC3 and I would like to be able to srript the upgrade through PHP, as
there 
is a lot of transformation needing to be done to the data. However, I am
unable 
to find any client libraries for this version of Informis from the ISM
web-site 
or anwhere else that google has thrown up for that matter. 

So, I was wondering, pretty please, if anyone on the list has had experience
of 
getting this database to hook up to PHP or knew of a place to download the
client 
libraries so that I can have a bash myself? 

TIA, 

Mikey 
-- 
The revolution will not be sent as an e-mail attachment. 

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



[PHP] [JOB] PHP/Java Web Developer -- Washington, DC area -- ON SITE

2005-05-25 Thread Alok K. Dhir

LOCAL INDIVIDUAL CANDIDATES ONLY -- WE ARE NOT LOOKING FOR TELEWORKERS OR 
CONSULTING COMPANIES.

Strongly Desired Skills (2.5+ years):

	- Large scale, highly available applications 
	  development on Unix/Linux platform

- PHP
- SQL
- D/HTML/Javascript/CSS
- XML
- OO programming
- Source code control (CVS)
- Good communication skills

Desired Skills:

- Java/JSP
- Perl
- C/C++
- Linux/Unix
- Windows NT/2000/XP

Plusses:

- Experience with Java web application servers:
  Tomcat, JBOSS, Web(logic|sphere), etc
- UML
- Ability to work under pressure
- Leadership ability

If you don't meet the skills, but firmly believe you are an outstanding 
candidate for the job, please don't hesitate to apply, and tell us why we 
should hire you anyway.

Please send a cover letter and resume with salary requirements to [EMAIL 
PROTECTED]

Note, Symplicity does not provide any relocation assistance.

Thank you.

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



[PHP] extending a class using includes not working

2005-05-25 Thread Charles Kline

hi all.

i have 2 class files. say for example.

class 1

class 2 extends class 1

class 2  uses include_once(firstclass.php)

then i use include_once (secondclass.php) in my template. this does  
not work. to get it to work, i must put both the files as includes in  
my template.

any ideas why?

thanks,
charles

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



Re: [PHP] [JOB] PHP/Java Web Developer -- Washington, DC area -- ON SITE

2005-05-25 Thread John Nichel

Alok K. Dhir wrote:
LOCAL INDIVIDUAL CANDIDATES ONLY -- WE ARE NOT LOOKING FOR TELEWORKERS 
OR CONSULTING COMPANIES.


Strongly Desired Skills (2.5+ years):

- Large scale, highly available applications   development on 
Unix/Linux platform

- PHP
- SQL
- D/HTML/Javascript/CSS
- XML
- OO programming
- Source code control (CVS)
- Good communication skills

Desired Skills:

- Java/JSP
- Perl
- C/C++
- Linux/Unix
- Windows NT/2000/XP

Plusses:

- Experience with Java web application servers:
  Tomcat, JBOSS, Web(logic|sphere), etc
- UML
- Ability to work under pressure
- Leadership ability

If you don't meet the skills, but firmly believe you are an outstanding 
candidate for the job, please don't hesitate to apply, and tell us why 
we should hire you anyway.


Please send a cover letter and resume with salary requirements to 
[EMAIL PROTECTED]


Note, Symplicity does not provide any relocation assistance.

Thank you.



What's the payscale?  I need to know if it's worth my while to make my 
resume current. ;)


--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

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



Re: [PHP] php not allowed in .htaccess

2005-05-25 Thread Jack Jackson
Sorry folks. Figured it out: in httpd.conf it wasn't in the first or 
second AllowOverride section (which I had set to All and that's why I 
was so gobsmacked) BUT it was in the Control access to UserDir 
directories section.


Thanks everyone!

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



Re: [PHP] Building multi-page Word docs with PHP?

2005-05-25 Thread Jochem Maas

George Pitcher wrote:

Hi,

I currently create my multipage docs by saving my word templates as chunks
of rtf and then calling them as required as a very long string then
outputting them to an rtf file and renaming it as '*.doc'. It works great
except for the filesize which comes out at 900k for a two-page document.
Opening in Word and saving reduces the file down dramatically, but that
would prevent auto-generation and emailing - without human intervention.

Does anyone know how to either create multipage docs in Word format to begin
with, or to convert (on the fly) rtf to doc, or to save rtf as smaller file?


I googled a bit a stumbled across this:

http://www.xmlw.ie/aboutxml/wordml.htm

requires word2003 tho.



MTIA


George



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



Re: [PHP] extending a class using includes not working

2005-05-25 Thread Richard Lynch
On Wed, May 25, 2005 11:30 am, Charles Kline said:
 i have 2 class files. say for example.

 class 1

 class 2 extends class 1

 class 2  uses include_once(firstclass.php)

 then i use include_once (secondclass.php) in my template. this does
 not work. to get it to work, i must put both the files as includes in
 my template.
 any ideas why?

Could you define does not work a little more precisely?

Do you get error messages?

What do the error messages say?

Is there any output at all?

Does your computer blow up?

What?

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] OT but worth a shot: Informix Client Libraries

2005-05-25 Thread Richard Lynch
On Wed, May 25, 2005 9:03 am, Mikey said:
 describe as an ancient version of Informix to mySQL. The version
 4.11.UC3 and I would like to be able to srript the upgrade through PHP, as

 So, I was wondering, pretty please, if anyone on the list has had
 getting this database to hook up to PHP or knew of a place to download the
 client
 libraries so that I can have a bash myself?

If all else fails, ODBC may work...

You could also export to CSV or tab-delimited, import 'raw' to MySQL, and
then do the clean-up in MySQL/PHP by moving from one MySQL database to
another.

-- 
Like Music?
http://l-i-e.com/artists.htm

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



Re: [PHP] extending a class using includes not working

2005-05-25 Thread Charles Kline


On May 25, 2005, at 7:53 PM, Richard Lynch wrote:


On Wed, May 25, 2005 11:30 am, Charles Kline said:


i have 2 class files. say for example.

class 1

class 2 extends class 1

class 2  uses include_once(firstclass.php)

then i use include_once (secondclass.php) in my template. this does
not work. to get it to work, i must put both the files as includes in
my template.
any ideas why?



Could you define does not work a little more precisely?

Do you get error messages?

What do the error messages say?

Is there any output at all?

Does your computer blow up?

What?



Sorry I should have been more specific (or course)...

The template does not load. I get no error messages of any kind. Both  
classes function fine when included into the template separately -  
but when in include the secondclass.php which in turn includes  
firstclass.php the page does not load.


Running on Mac OS X Server version 10.3

- Charles

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