php-general Digest 12 Sep 2005 17:07:12 -0000 Issue 3678

2005-09-12 Thread php-general-digest-help
php-general Digest 12 Sep 2005 17:07:12 - Issue 3678 Topics (messages 222153 through 222195): Mail System Error - Returned Mail 222153 by: ramajej.mvelagroup.co.za User notes script 222154 by: Sumankumar R Variables not available 222155 by: Dotan Cohen

[PHP] User notes script

2005-09-12 Thread Sumankumar R
Hi Where do I download the user notes script? One that allows people to add notes to documentation like on the PHP manual? I want to try it out on an HTML manual. Suman -- http://sumankumar.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Variables not available

2005-09-12 Thread Dotan Cohen
I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get variables are not available in my scripts. For instance, in file.php?foo=bar the variable $foo is empty. Same thing for variables passed in forms (get or post), which is how I came across this. What could cause this? How could I

Re: [PHP] Variables not available

2005-09-12 Thread Burhan Khalid
Dotan Cohen wrote: I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get variables are not available in my scripts. For instance, in file.php?foo=bar the variable $foo is empty. Same thing for variables passed in forms (get or post), which is how I came across this. What could

[PHP] Round with ONE-decimal... always...

2005-09-12 Thread Gustav Wiberg
Hi there! I want to adjust the round() -function a little... If I put round(6,0) there will be an output of 6 If I put round(6,32) there will be an output of 6,3 I want it to have 6,0 instead of just 6... I guess there is an easy solution to this? Suggestions? /G http://www.varupiraten.se/

Re: [PHP] Round with ONE-decimal... always...

2005-09-12 Thread Gustav Wiberg
Thanx! /G - Original Message - From: George Pitcher [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Sent: Monday, September 12, 2005 10:55 AM Subject: RE: [PHP] Round with ONE-decimal... always... Look at sprint_f() in the manual. George -Original Message- From:

Re: [PHP] QUERY TOKENIZER WAS Re: [new version] Re: [a proactive....

2005-09-12 Thread Jochem Maas
Jay Blanchard wrote: [snip] This is another rather hackish attempt at using the tokeniser. Which isn't perfect by a long shot, but I'm away home now so it'll have to do. I'd be interested to know what it makes of your queries. [/snip] This little slice of code is really well done, and I think

[PHP] Re: PHP page counter

2005-09-12 Thread Michelle Konzack
Hello Vedanta, Thanks for the Link, I have registered and downloaded. I will test it. Thanks again Michelle Am 2005-09-12 10:33:52, schrieb Vedanta Barooah: there is one here : http://www.phpclasses.org/browse/package/2212.html see if it suffices your need, thanks, vedanta

Re: [PHP] Variables not available

2005-09-12 Thread Dotan Cohen
On 9/12/05, Burhan Khalid [EMAIL PROTECTED] wrote: Dotan Cohen wrote: I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get variables are not available in my scripts. For instance, in file.php?foo=bar the variable $foo is empty. Same thing for variables passed in forms (get

[PHP] help me to draw a listview in my website

2005-09-12 Thread Nahalingam N. Kanakavel
hi all, If any scripts available to draw a list view. Plz help me, by giving some links or scripts avilable with you. thanks in advance. -- with regds, Nahalingam.

[PHP] Re: Round with ONE-decimal... always...

2005-09-12 Thread Mark Rees
I want to adjust the round() -function a little... If I put round(6,0) there will be an output of 6 If I put round(6,32) there will be an output of 6,3 I want it to have 6,0 instead of just 6... I guess there is an easy solution to this? Suggestions? Have a look at this.

Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Burhan Khalid
Nahalingam N. Kanakavel wrote: hi all, If any scripts available to draw a list view. Plz help me, by giving some links or scripts avilable with you. What is a list view? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Gustav Wiberg
Hi there! What do you mean with listview? Of what? /G http://www.varupiraten.se/ - Original Message - From: Nahalingam N. Kanakavel [EMAIL PROTECTED] To: PHP php-general@lists.php.net Sent: Monday, September 12, 2005 11:05 AM Subject: [PHP] help me to draw a listview in my website

Re: [PHP] Re: Round with ONE-decimal... always...

2005-09-12 Thread Gustav Wiberg
- Original Message - From: Mark Rees [EMAIL PROTECTED] To: php-general@lists.php.net Sent: Monday, September 12, 2005 11:12 AM Subject: [PHP] Re: Round with ONE-decimal... always... I want to adjust the round() -function a little... If I put round(6,0) there will be an output of

Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Nahalingam N. Kanakavel
hi, I want to display several fields of values as a row, with header such as -- | Name age mail-id | Header part, by clicking over this I want to sort the --- | rows

Re: [PHP] help me to draw a listview in my website

2005-09-12 Thread Jesper Gran
Maybe this could be something? I haven't tried it though. http://www.activewidgets.com/grid/ /Jesper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] log4php

2005-09-12 Thread bruce
hi... has anyone used log4php in your php code? any success/horror stories? i'm considering using it as i want/need a way of tracking different msg/error levels within the code i'm starting to create. i'm looking for some method of being able to determine/state the level of msgs i want to capture

[PHP] setting 'expiry date'

2005-09-12 Thread Ross
I have a php/mysql database with articles. What I need is a php sctipt that will compare the current day with the 'expiry date' entered by the user and if the there is a difference then drop it from the database.. I retrieve the date (called time and format it like this... $query= SELECT

RE: [PHP] setting 'expiry date'

2005-09-12 Thread Jay Blanchard
[snip] I have a php/mysql database with articles. What I need is a php sctipt that will compare the current day with the 'expiry date' entered by the user and if the there is a difference then drop it from the database.. I retrieve the date (called time and format it like this... $query=

[PHP] PHP - LDAPS query

2005-09-12 Thread Vedanta Barooah
Hello All, I think documentation is very sparse on PHP LDAPS (LDAP over SSL). I am in a situation where I need to auth against the LDAP server over SSL. I have the server's certificate database in the form of a cert7.db file containing the appropriate CA certificates and a key3.db file. How do I

RE: [PHP] setting 'expiry date'

2005-09-12 Thread Murray @ PlanetThoughtful
I have a php/mysql database with articles. What I need is a php sctipt that will compare the current day with the 'expiry date' entered by the user and if the there is a difference then drop it from the database.. I retrieve the date (called time and format it like this... $query=

[PHP] set_time_limit behavior

2005-09-12 Thread michael
Hi, I am trying to figure out why a script that is set to time out after 30 seconds will run indefinitely. For example, set_time_limit(30); echo ini_get('max_execution_time'), hr /; echo date(H:i:s), hr /; for ($i = 0; $i 100; $i++) { sleep(10); echo date(H:i:s),hr /; flush(); } echo

RE: [PHP] set_time_limit behavior

2005-09-12 Thread Jay Blanchard
[snip] I am trying to figure out why a script that is set to time out after 30 seconds will run indefinitely. For example, As you can see, this script ran for over 14 minutes. I have read that max_execution_time is bound to CPU time, and I am not sure how this translates into being able to

Re: [PHP] Variables not available

2005-09-12 Thread Ryan A
On 9/12/2005 9:00:46 AM, Dotan Cohen ([EMAIL PROTECTED]) wrote: I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get variables are not available in my scripts. For instance, in file.php?foo=bar the variable $foo is empty. Same thing for variables passed in forms (get or post),

Re: [PHP] mixing $_POST and $_GET vars

2005-09-12 Thread Brent Baisley
If you are going to be accepting data, and you don't care or are not sure if it's going to be a GET or a POST, then use $_REQUEST, which contains both $_GET and $_POST data. On Sep 9, 2005, at 7:46 PM, bruce wrote: hi.. quick question.. a basic link a ref =foo.php?a=1blah/a allows you

[PHP] Best way to mass mail

2005-09-12 Thread Ryan A
Hi, My client has a dating site and now he wants to mail all his members, he does not want to use any of the already installed mailing lists but wants us to make one for him, he's on a dedicated server. Presently he does not have too many members, just a few thousand (around 3k i guess), I

[PHP] mysql_connect

2005-09-12 Thread blackwater dev
Hello, I have a strange bug I can't figure out. I am trying to use a third party library and it is throwing errors: Fatal error: Call to undefined function: mysql_pconnect() This doesn't make sense to me as I have other code on that box that uses mysql_pconnect() with no problem. Why would

Re: [PHP] Variables not available

2005-09-12 Thread Dotan Cohen
On 9/12/05, Ryan A [EMAIL PROTECTED] wrote: On 9/12/2005 9:00:46 AM, Dotan Cohen ([EMAIL PROTECTED]) wrote: I am running php 5.0.4 at home on my Fedora Core 4 box. Post and get variables are not available in my scripts. For instance, in file.php?foo=bar the variable $foo is empty. Same

Re: [PHP] Round with ONE-decimal... always...

2005-09-12 Thread Jordan Miller
besides sprintf, number_format will also do it: number_format(6, 1, ',', '');// Outputs '6,0' Jordan On Sep 12, 2005, at 3:52 AM, Gustav Wiberg wrote: Hi there! I want to adjust the round() -function a little... If I put round(6,0) there will be an output of 6 If I put round(6,32)

[PHP] SOAP and php

2005-09-12 Thread Leon Vismer
Hi What would be the best option for PHP and SOAP support. Many thanks -- Leon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Best way to mass mail

2005-09-12 Thread Mark Rees
Ryan A [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, My client has a dating site and now he wants to mail all his members, he does not want to use any of the already installed mailing lists but wants us to make one for him, he's on a dedicated server. Presently he does not

[PHP] Re: Best way to mass mail

2005-09-12 Thread Matthew Weier O'Phinney
* Ryan A [EMAIL PROTECTED]: My client has a dating site and now he wants to mail all his members, he does not want to use any of the already installed mailing lists but wants us to make one for him, he's on a dedicated server. Presently he does not have too many members, just a few thousand

[PHP] Re: Best way to mass mail

2005-09-12 Thread Manuel Lemos
Hello, on 09/12/2005 10:50 AM Ryan A said the following: The thing that bothers me the most is if the program times out..., how do I start again from the ones that have not been sent? Use set_time_limit(0); and your script will never timeout. Anyway, long standing scripts should be run off

Re: [PHP] Best way to mass mail

2005-09-12 Thread Miles Thompson
At 10:50 AM 9/12/2005, Ryan A wrote: Hi, My client has a dating site and now he wants to mail all his members, he does not want to use any of the already installed mailing lists but wants us to make one for him, he's on a dedicated server. Presently he does not have too many members, just a few

Re: [PHP] Best way to mass mail

2005-09-12 Thread Miles Thompson
At 10:50 AM 9/12/2005, Ryan A wrote: Hi, My client has a dating site and now he wants to mail all his members, he does not want to use any of the already installed mailing lists but wants us to make one for him, he's on a dedicated server. Presently he does not have too many members, just a few

[PHP] Handling file uploads for download

2005-09-12 Thread Charles Kline
Hi all, I have an application where I need to allow the admin of a site to upload PDF files for download by their clients. I am uploading files to a directory ABOVE the web root, but I have no clue what the best way to have a link on the site to allow for downloading those files by

Re: [PHP] set_time_limit behavior

2005-09-12 Thread michael
HI Jay, Thanks for the reply. No, we are not in safe mode. That was one of the first things I looked at. It's quite a confusing issue. I certainly have had PHP time out on me before, and have juggled max_execution_time to solve this. But with it just running indefinitely regardless of

RE: [PHP] set_time_limit behavior

2005-09-12 Thread Jim Moseby
] set_time_limit behavior HI Jay, Thanks for the reply. No, we are not in safe mode. That was one of the first things I looked at. It's quite a confusing issue. I certainly have had PHP time out on me before, and have juggled max_execution_time to solve this. But with it

Re: [PHP] set_time_limit behavior

2005-09-12 Thread michael
Hi Jim, I certainly did overlook the ramifications of the sleep function. I modified my script so that sleep is not called: set_time_limit(1); echo ini_get('max_execution_time'), hr /; echo date(H:i:s), hr /; while (true) { echo date(H:i:s),hr /; flush(); } This did time out! But,

[PHP] confirmation email script/code

2005-09-12 Thread bruce
hi.. has anybody come across a really good 'open source' chunk of code for sending/recieving confirmation emails from an app... i'd like to allow the user to register, and send them an email that they then have to hit the link to complete the process.. thanks -bruce [EMAIL PROTECTED] -- PHP

RE: [PHP] confirmation email script/code

2005-09-12 Thread Jim Moseby
has anybody come across a really good 'open source' chunk of code for sending/recieving confirmation emails from an app... i'd like to allow the user to register, and send them an email that they then have to hit the link to complete the process.. It is strightforward to write this

[PHP] hidden database issue????

2005-09-12 Thread bruce
hi... i have a situation with a server that i have. i have mysql installed with php.. the mysql is V4.1.12. i'm trying to see/view a database from the command line and i can't see it when i login to mysql as root. i also can't see it when i try to login to mysql as the given user. from the php

RE: [PHP] confirmation email script/code

2005-09-12 Thread bruce
jim... pretty much what i had thought about... question.. how does one correctly!!! set up a cron process... i assume that i can write a quick perl/php app that iterates through the 'emailconfirmTBL' looking at the date, and the confirm status. if the cleanup app sees any records that are over a

Re: [PHP] Best way to mass mail

2005-09-12 Thread Nuno Pereira
Miles Thompson wrote: At 10:50 AM 9/12/2005, Ryan A wrote: Hi, My client has a dating site and now he wants to mail all his members, he does not want to use any of the already installed mailing lists but wants us to make one for him, he's on a dedicated server. Presently he does not have

[PHP] Re: confirmation email script/code

2005-09-12 Thread Manuel Lemos
Hello, on 09/12/2005 12:44 PM bruce said the following: has anybody come across a really good 'open source' chunk of code for sending/recieving confirmation emails from an app... i'd like to allow the user to register, and send them an email that they then have to hit the link to complete the

[PHP] Re: hidden database issue????

2005-09-12 Thread Michael Stassen
bruce wrote: hi... i have a situation with a server that i have. i have mysql installed with php.. the mysql is V4.1.12. i'm trying to see/view a database from the command line and i can't see it when i login to mysql as root. i also can't see it when i try to login to mysql as the given user.

Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Ryan A
Hey, Thanks Mark, Matthew, Manuel and Miles. (Yep, even i thought it was quite funny how only ppl with their firstnames that start with M replied :-D , sounds almost like I will be quoting the bible next!) You guys have given me some very good starting points, will look into it. Feel free to

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Matthew Weier O'Phinney mailto:[EMAIL PROTECTED] on Monday, September 12, 2005 6:55 AM said: Mails are then queued to an MTA -- in our case, Postfix. This is the part I don't know how to do. Can you explain/show some code? Thanks, Chris. -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Best way to mass mail

2005-09-12 Thread Dragan Stanojevic - Nevidljivi
Ryan A wrote: My client has a dating site and now he wants to mail all his members, he does not want to use any of the already installed mailing lists but wants us to make one The thing that bothers me the most is if the program times out..., how do I start again from the ones that

RE: [PHP] confirmation email script/code

2005-09-12 Thread Jim Moseby
-Original Message- From: Jim Moseby [mailto:[EMAIL PROTECTED] Sent: Monday, September 12, 2005 8:56 AM To: '[EMAIL PROTECTED]'; php-general@lists.php.net Subject: RE: [PHP] confirmation email script/code has anybody come across a really good 'open source' chunk of code for

Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Manuel Lemos
Hello, on 09/12/2005 02:56 PM Chris W. Parker said the following: Matthew Weier O'Phinney mailto:[EMAIL PROTECTED] on Monday, September 12, 2005 6:55 AM said: Mails are then queued to an MTA -- in our case, Postfix. This is the part I don't know how to do. Can you explain/show some

[PHP] DOM XML compatible PHP4 PHP5

2005-09-12 Thread Florent Monnier
Hi, Is there a way to make dom xml applications compatible PHP4 and PHP5? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Best way to mass mail

2005-09-12 Thread Ryan A
Hey, You may even try to look at: http://pear.php.net/package/Mail_Queue Thanks, Will do! Cheers, Ryan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Opinion Request - No PHP content - Versioning Systems

2005-09-12 Thread John Nichel
Hey, I'm about to implement a versioning system here, and was going to go with CVS, but being that I haven't used it in almost two years I was wondering what y'all think? Opinions on the best, user-friendly (Mac Geeks will be using it), etc? Thanks. -- John C. Nichel ÜberGeek KegWorks.com

[PHP] incrementing in a for loop

2005-09-12 Thread Peppy
I've searched online and am unable to find how to increment by more than one in a for loop. for ($i = 1; $i = 6; $i++) { Is it possible to increment $i by 5? Thanks.

Re: [PHP] incrementing in a for loop

2005-09-12 Thread Philip Hallstrom
I've searched online and am unable to find how to increment by more than one in a for loop. for ($i = 1; $i = 6; $i++) { Is it possible to increment $i by 5? Sure. for ($i = 1; $i = 6; $i+=5) { -philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] incrementing in a for loop

2005-09-12 Thread Stephen Johnson
On 9/12/05 12:39 PM, Peppy [EMAIL PROTECTED] wrote: for ($i = 1; $i = 6; $i++) { Is it possible to increment $i by 5? for ($i = 1; $i = 6; $i+5) { -- Stephen Johnson The Lone Coder http://www.ouradoptionblog.com *Join us on our adoption journey* [EMAIL PROTECTED]

RE: [PHP] Opinion Request - No PHP content - Versioning Systems

2005-09-12 Thread Murray @ PlanetThoughtful
Hey, I'm about to implement a versioning system here, and was going to go with CVS, but being that I haven't used it in almost two years I was wondering what y'all think? Opinions on the best, user-friendly (Mac Geeks will be using it), etc? Thanks. Hi John, I only have experience with

Re: [PHP] incrementing in a for loop

2005-09-12 Thread D A GERM
this worked for me: [CODE] for ($myLoop = 0; $myLoop 100; $myLoop= $myLoop + 5) { print Pmy loop: $myLoop; } [/CODE] Peppy wrote: I've searched online and am unable to find how to increment by more than one in a for loop.

Re: [PHP] Opinion Request - No PHP content - Versioning Systems

2005-09-12 Thread Miles Thompson
At 04:43 PM 9/12/2005, John Nichel wrote: Hey, I'm about to implement a versioning system here, and was going to go with CVS, but being that I haven't used it in almost two years I was wondering what y'all think? Opinions on the best, user-friendly (Mac Geeks will be using it), etc? Thanks.

Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Matthew Weier O'Phinney
* Manuel Lemos [EMAIL PROTECTED] : Hello, on 09/12/2005 02:56 PM Chris W. Parker said the following: Matthew Weier O'Phinney mailto:[EMAIL PROTECTED] on Monday, September 12, 2005 6:55 AM said: Mails are then queued to an MTA -- in our case, Postfix. This is the part I don't

Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Manuel Lemos
Hello, on 09/12/2005 05:18 PM Matthew Weier O'Phinney said the following: Mails are then queued to an MTA -- in our case, Postfix. This is the part I don't know how to do. Can you explain/show some code? Just use the mail function and it will get queued in Postfix. Or mail via SMTP to

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos mailto:[EMAIL PROTECTED] on Monday, September 12, 2005 1:36 PM said: If he is running postfix on the same machine that postfix is running, it does not make much sense to send the message via SMTP because it is a much slower way to do the same thing. I'm not. I was hoping to

Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Manuel Lemos
Hello, on 09/12/2005 06:30 PM Chris W. Parker said the following: Manuel Lemos mailto:[EMAIL PROTECTED] on Monday, September 12, 2005 1:36 PM said: If he is running postfix on the same machine that postfix is running, it does not make much sense to send the message via SMTP because it

Re: [PHP] incrementing in a for loop

2005-09-12 Thread M. Sokolewicz
Stephen Johnson wrote: On 9/12/05 12:39 PM, Peppy [EMAIL PROTECTED] wrote: for ($i = 1; $i = 6; $i++) { Is it possible to increment $i by 5? for ($i = 1; $i = 6; $i+5) { that won't work; have you tried it? Because $i++ assigns the result of $i+1 to $i, while yours does not assign

Re: [PHP] incrementing in a for loop

2005-09-12 Thread Stephen Johnson
You are correct -- forgive the typo (I forgot the = ). That is what I get trying to reply to email while eating a burrito and talking on the phone. LOL ?php /* Stephen Johnson c | eh The Lone Coder http://www.ouradoptionblog.com Join our journey of adoption http://www.thelonecoder.com [EMAIL

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos mailto:[EMAIL PROTECTED] on Monday, September 12, 2005 2:41 PM said: If you use the mail() function, it uses whatever is installed in your machine because by default it calls the sendmail program. I am aware of that but the problem I'm having is inconsistent mailings. For

RE: [PHP] incrementing in a for loop

2005-09-12 Thread Chris W. Parker
D A GERM mailto:[EMAIL PROTECTED] on Monday, September 12, 2005 1:01 PM said: [CODE] for ($myLoop = 0; $myLoop 100; $myLoop= $myLoop + 5) { print Pmy loop: $myLoop; } [/CODE] Where's the code? Oh there it is!

Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Manuel Lemos
Hello, on 09/12/2005 06:48 PM Chris W. Parker said the following: If you use the mail() function, it uses whatever is installed in your machine because by default it calls the sendmail program. I am aware of that but the problem I'm having is inconsistent mailings. For example, an email is

RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos mailto:[EMAIL PROTECTED] on Monday, September 12, 2005 3:15 PM said: If you use PHP mail() function it just calls the sendmail wrapper. If you loose messages, you should check the logs of the installed MTA. Your problem seems to be misconfiguration like you are not setting a

[PHP] mktime

2005-09-12 Thread Dan Brow
A little confused with mktime, I'm trying to get how many days are in a year. $year = 2006; $epoch = mktime(0, 0, 0, 1, 0, $year); // I have to have 1 for month or I get which day it is now. Which sucks. $date = date(z Y, $epoch); print($date); // here is the problem, I get 365 days, but the

[PHP] Re: mktime

2005-09-12 Thread Brian P. O'Donnell
Dan Brow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] A little confused with mktime, I'm trying to get how many days are in a year. $year = 2006; $epoch = mktime(0, 0, 0, 1, 0, $year); // I have to have 1 for month or I get which day it is now. Which sucks. $date = date(z Y,

Re: [PHP] mktime

2005-09-12 Thread Jasper Bryant-Greene
Dan Brow wrote: A little confused with mktime, I'm trying to get how many days are in a year. How about doing it differently. I'd tackle this problem like this: ?php $year = '2005'; $time = strtotime(1 January $year); $isLeapYear = date('L', $time); if($isLeapYear == '1') { $days =

[PHP] Problem with PEAR:SOAP

2005-09-12 Thread -k.
I just installed the SOAP Pear package (version 0.9.1) when i try and: require_once('SOAP/Client.php'); i get the following errors: Warning: main(HTTP/Request.php): failed to open stream: No such file or directory in /usr/local/lib/php/SOAP/WSDL.php on line 27 Fatal error: main(): Failed

Re: [PHP] Problem with PEAR:SOAP

2005-09-12 Thread Jasper Bryant-Greene
-k. wrote: Fatal error: main(): Failed opening required 'HTTP/Request.php' (include_path='.:/usr/local/lib/php') in /usr/local/lib/php/SOAP/WSDL.php on line 27 Line 27 in WSDL.php is, as you might guess, require_once 'HTTP/Request.php'; I looked in /usr/local/lib/php/ and there is no HTTP

Re: [PHP] mktime

2005-09-12 Thread Brian P. O'Donnell
Jasper Bryant-Greene [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Dan Brow wrote: A little confused with mktime, I'm trying to get how many days are in a year. How about doing it differently. I'd tackle this problem like this: ?php $year = '2005'; $time = strtotime(1

[PHP] COM and MS word.

2005-09-12 Thread Dave Lists
Hi all, I'm using com to acces MS word and building tables: $word-Documents-Add(); \\ Gives me a new doc $word-Selection-InsertAfter(poo, foo, you); \\ gives me one row $word-Selection-ConvertToTable(,); \\ converts the table to a row. What I can't work out is how to change the width on the

[PHP] can't connect to mysql

2005-09-12 Thread blackwater dev
I finally got php5 compiled with mysql but now I can't connect using mysql_connect without getting the error of: Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in... I can ssh into the box and log in to mysql so I think

[PHP] turning off echoing of chars

2005-09-12 Thread matt VanDeWalle
hello, I am wanting to turn of screen echo for a login function or changing a password or similar things. I got the function to almost work, however it turns off the screen echo but it asks for the password, won't give you a chance to fill it in, and skips right on to the next prompt(and has

[PHP] Problem with POST reply

2005-09-12 Thread Dean Maunder
Hi, I am using PHP to post a request to a server which returns an XML document. We have no problems with the same service if we use a get request. Here is the result: HTTP/1.1 200 OK Date: Tue, 13 Sep 2005 02:01:53 GMT Server: Apache Set-Cookie:

[PHP] Re: Problem with POST reply

2005-09-12 Thread Manuel Lemos
Hello, on 09/12/2005 11:08 PM Dean Maunder said the following: Can anyone see where this '2000' might be comming from? It's because the response encoding is chunked. You can read about chunks in the RFC documents. You may also want to try this HTTP client that can send HTTP requests and

Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Matthew Weier O'Phinney
* Manuel Lemos [EMAIL PROTECTED] : on 09/12/2005 05:18 PM Matthew Weier O'Phinney said the following: Mails are then queued to an MTA -- in our case, Postfix. This is the part I don't know how to do. Can you explain/show some code? Just use the mail function and it will get queued

[PHP] RE: Problem with POST reply

2005-09-12 Thread Dean Maunder
It's because the response encoding is chunked. You can read about chunks in the RFC documents. I thought if I sent a Content-Length header, then the results would be de-chunked? Regards Dean. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Problem with POST reply

2005-09-12 Thread Manuel Lemos
Hello, on 09/12/2005 11:29 PM Dean Maunder said the following: It's because the response encoding is chunked. You can read about chunks in the RFC documents. I thought if I sent a Content-Length header, then the results would be de-chunked? The content-length header that you send is of the

Re: [PHP] RE: Problem with POST reply

2005-09-12 Thread Jasper Bryant-Greene
Dean Maunder wrote: It's because the response encoding is chunked. You can read about chunks in the RFC documents. I thought if I sent a Content-Length header, then the results would be de-chunked? You may want to try the CURL functions for PHP which can do a POST request and will handle

Re: [PHP] mktime

2005-09-12 Thread Dan Brow
On Tue, 2005-09-13 at 11:13 +1200, Jasper Bryant-Greene wrote: Dan Brow wrote: A little confused with mktime, I'm trying to get how many days are in a year. How about doing it differently. I'd tackle this problem like this: ?php $year = '2005'; $time = strtotime(1 January $year);

Re: [PHP] mktime

2005-09-12 Thread Dan Brow
snip I'd shorten it up even more: ? $daysinyear = 365 + date(L, strtotime(jan 1 . $year)); ? Thanks works perfect. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Problem w/ reading a txt file.

2005-09-12 Thread sub
Problem w/ reading a txt file. The error I get is Warning: opendir(/home/pudlz/public_html ): failed to open dir: No such file or directory Here's my code:: $main = file('folders.txt'); $counter = count($main); for($i=0;$i$counter;$i++) { if ($handle = opendir($main[$i])) {

[PHP] xml parse engine written in php

2005-09-12 Thread Will
Free for the taking, here's a simple, lenient (flawed?) xml parse engine written in php if anyone is interested in expanding such a thing. http://fribbler.us/code/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] xml parse engine written in php

2005-09-12 Thread Jasper Bryant-Greene
Will wrote: Free for the taking, here's a simple, lenient (flawed?) xml parse engine written in php if anyone is interested in expanding such a thing. http://fribbler.us/code/ Not to put down your efforts or anything, but what's wrong with SimpleXML, DOM XML, XML Reader, XML Parser etc.

Re: [PHP] xml parse engine written in php

2005-09-12 Thread Will
Jasper Bryant-Greene wrote: Will wrote: Free for the taking, here's a simple, lenient (flawed?) xml parse engine written in php if anyone is interested in expanding such a thing. http://fribbler.us/code/ Not to put down your efforts or anything, but what's wrong with SimpleXML, DOM XML,

Re: [PHP] xml parse engine written in php

2005-09-12 Thread Jasper Bryant-Greene
Will wrote: Jasper Bryant-Greene wrote: Will wrote: Free for the taking, here's a simple, lenient (flawed?) xml parse engine written in php if anyone is interested in expanding such a thing. http://fribbler.us/code/ Not to put down your efforts or anything, but what's wrong with