php-general Digest 29 Feb 2004 22:55:22 -0000 Issue 2619
Topics (messages 179128 through 179138):
php newsgroup portal?
179128 by: Zhang Weiwu
179129 by: Shane Nelson
Re: mkdir and rmdir possible but not readdir and opendir???
179130 by: raisinlove
Re: $sring = ARRAY?
179131 by: Michael Lewis
Re: PHP5 only configures mysql 4.1 source with mysqli
179132 by: Raditha Dissanayake
Solved [PHP] Weird Problem with INPUT tag
179133 by: Ahbaid Gaffoor
PHP Sessions
179134 by: Paul Higgins
Mail class to send several e-mails within one smtp connection
179135 by: Juergen Mueller pro.vider.de GmbH
179136 by: Axiom
179137 by: Michael Kunze
Re: What's your favorite PHP weather code?
179138 by: Karl Timmermann
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
Hello. I have been looking for a good php newsgroup reader for some
time. News portal looks pretty good to me but I haven't tried yet.
There is a very charming project "mynewsgroup" at mynewsgroup.sf.net,
particularly it has beautiful looking. But that project seems dead. The
only mailing list is removed, and nobody look into its forum. I wrote to
each developer about what is going on but none replied me!
What newsgroup reader do you use?
--- End Message ---
--- Begin Message ---
To read this list I use thunderbird:
http://www.mozilla.org/projects/thunderbird/
It's an email client instead of a newsgroup reader. Just filter the
php-general messages into a separate folder and sort it by thread.
Super easy to use and a very nice piece of software.
Shane
Zhang Weiwu wrote:
Hello. I have been looking for a good php newsgroup reader for some
time. News portal looks pretty good to me but I haven't tried yet.
There is a very charming project "mynewsgroup" at mynewsgroup.sf.net,
particularly it has beautiful looking. But that project seems dead. The
only mailing list is removed, and nobody look into its forum. I wrote to
each developer about what is going on but none replied me!
What newsgroup reader do you use?
--- End Message ---
--- Begin Message ---
The work-around is to create the directory outside of your web application
from your regular account. Or if you are allowed to run cgi scripts and
these are set up via cgiwrapper or suExec to run as your own user id, use
this to create the directory. Once created with the right owner, you can
manipulate it from your regular Apache-embedded PHP scripts.
Thank you! I'm definitely filing this solution for later use. Meanwhile,
I went back to trying the FTP_MKDIR method and found why that didnt
work. I realized when accessing the website via ftp that the system path
was different than the one displayed online. IE: my script path was
shown as /home/virtual/site... while in my ftp client I was seeing
/var/www/html...
Changing my path references to the later one fixed everything...so far!
Thanks for the help :)
-s
--- End Message ---
--- Begin Message ---
MYSQL_FETCH_ROW returns an array of the values of the columns in a row. When
you try to use that value as, for example, a string or in a print statement
you get the word Array. What you probably want to do is the following (not
knowing your actual column names):
if (($value = mysql_fetch_array($result)) AND ($value['username'] ==
$username)) {
echo "You are authenticated";
} else {
echo "Your username or password is incorrect";
}
----- Original Message -----
From: "Axiom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 28, 2004 11:57 PM
Subject: [PHP] $sring = ARRAY?
Why is it that in the following code that $value comes back with just the
word ‘ARRAY’ instead of the actual result?
if (($value = mysql_fetch_row($result)) AND ($value == $username)) {
echo "You are authenticated";
} else {
echo "Your username or password is incorrect";
}
-Casey
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004
--- End Message ---
--- Begin Message ---
Hi,
I agree that it's a bad practice not to use a wrapper but it seems most
people who use PHP took mysql for granted and haven't used any wrappers
in their code.
Anyway the kind of wrappers commonly used to help separate out
mysql/pgsql/mssql code probably will not be able to make full use of the
new features available in mysqli. There's going to be a hell of a lot of
conversion work ahead and not all of it can be automated.
electroteque wrote:
Heh i just read the bit about having to change the functions from mysql to
mysqli, now what is someone doesnt use a db wrapper, they'd have a field
day, lucky i use a wrapper heh.
-----Original Message-----
From: Raditha Dissanayake [mailto:[EMAIL PROTECTED]
Sent: Sunday, February 29, 2004 1:21 AM
To: electroteque
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] PHP5 only configures mysql 4.1 source with mysqli
Hi,
Mysqli installation certainly isn't improved :-) i had a lot of trouble
too, and shared my experience online at
http://www.raditha.com/mysql/mysqli.php
hope someone finds it usefull.
--
Raditha Dissanayake.
------------------------------------------------------------------------
http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload
Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader
Graphical User Inteface. Just 150 KB | with progress bar.
--- End Message ---
--- Begin Message ---
Yep, that was indeed the problem.
Many thanks for your help.
I just could not see that at all!!!!
regards
Ahbaid
Richard Davey wrote:
Hello Ahbaid,
Sunday, February 29, 2004, 6:33:45 AM, you wrote:
AG> this uses a FORM with INPUT tags, what is weird is that under IE6 some
AG> of the INPUT fields are showing up with yellow
AG> backgrounds!!!!
Sounds to me like you have the Google toolbar installed with the
AutoFill option enabled. See the preferences to turn the yellow
background off.
--- End Message ---
--- Begin Message ---
Hello everyone,
I'm beginning to experiment with PHP sessions. I was wondering if it is
possible to place objects into the session?
Thanks,
Paul
_________________________________________________________________
Take off on a romantic weekend or a family adventure to these great U.S.
locations. http://special.msn.com/local/hotdestinations.armx
--- End Message ---
--- Begin Message ---
Hello,
does anybody know a simply mailing function, which does
open a smtp connection to an mailserver, sends say 20 mails
with different bodies to that mailserver and than closes
the smtp connection again?
As I understand the standard php mail() function, that
it is doing quit that but of course sending only one mail.
Thanks very much.
Regards,
Juergen
--- End Message ---
--- Begin Message ---
> -----Original Message-----
> From: Juergen Mueller pro.vider.de GmbH [mailto:[EMAIL PROTECTED]
> Sent: Sunday, February 29, 2004 12:02 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Mail class to send several e-mails within one smtp
> connection
>
> Hello,
>
> does anybody know a simply mailing function, which does
> open a smtp connection to an mailserver, sends say 20 mails
> with different bodies to that mailserver and than closes
> the smtp connection again?
>
> As I understand the standard php mail() function, that
> it is doing quit that but of course sending only one mail.
>
> Thanks very much.
>
> Regards,
> Juergen
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
You could always run the mail() command several times in a row and have it
include different $strings which contain different information for each
unique e-mail.
-Casey
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.598 / Virus Database: 380 - Release Date: 2/28/2004
--- End Message ---
--- Begin Message ---
Juergen Mueller Pro.Vider.De Gmbh wrote:
> does anybody know a simply mailing function, which does
> open a smtp connection to an mailserver, sends say 20 mails
> with different bodies to that mailserver and than closes
> the smtp connection again?
phpmailer.sh.net
use $mail->SMTPKeepAlive()
--
Michael Kunze
http://www.smrealms.de/
Def: Children: The most common sexually transmitted disease.
--- End Message ---
--- Begin Message ---
Not a problem. I think it doesn't work because you need to register for
a key on weather.com site now.
Thanks though!
Karl
On Feb 29, 2004, at 7:40 AM, Lowell Allen wrote:
I'm looking for some code to get the latest weather and put it on my
webpage, and have it very customizable. What are your favorites?
I've only tried this one -- found it easy to work with:
<http://www.cruelacid.com/?page=weather>
It doesn't work for me - does it still work for you?
No. It has worked fine for me, but I stopped using it about a year
ago. I
returned it to a personal site this morning and it no longer works.
Looking at the code, the two weather servers listed are:
http://desktop.weather.com/weather/secdesktop/
http://weather.interceptvector.com/weather.xml
Neither server is found if I enter the URL in a browser. I suspect the
URLs
need to be updated, although I don't see any information about weather
on
interceptvector.com. Odd that the sample page on cruelacid.com seems
to be
working, though.
I've emailed the script author, who responded to a modification
question
when I originally used the script, and I will pass along a fix if one
is
forthcoming. I apologize for recommending something that's no longer
working.
--
Lowell Allen
--- End Message ---