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
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
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
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
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/
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:
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
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
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
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.
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.
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
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
- 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
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
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
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
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
[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=
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
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=
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
[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
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),
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
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
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
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
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)
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
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
* 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
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
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
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
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
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
] 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
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,
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
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
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
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
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
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
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.
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
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/)
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
-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
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
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
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
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
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.
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:
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]
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
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.
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.
* 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
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
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
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
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
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
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
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!
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
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
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
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,
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 =
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
-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
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
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
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
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
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:
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
* 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
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:
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
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
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);
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
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]))
{
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
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.
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,
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
92 matches
Mail list logo