php-general Digest 27 Dec 2001 10:54:42 -0000 Issue 1076

Topics (messages 78796 through 78829):

FreeType 2 on windows?
        78796 by: Brandon Orther

Re: question regarding cookies
        78797 by: Erik Price
        78802 by: Erik Price

PHP 4.1.1 released (minor update)
        78798 by: Derick Rethans

Re: mysql_escape_string
        78799 by: Jim Lucas [php]
        78800 by: Richard Heyes

linux help
        78801 by: Melih Onvural
        78807 by: Fred

Warning: Cannot send session cookie
        78803 by: David Jackson
        78804 by: Michael Sims
        78814 by: Jim Lucas [php]

problems with urlencoding
        78805 by: nachricht.acre.de
        78808 by: Fred

Question
        78806 by: Gerard Onorato

fsockopen nntp stalls
        78809 by: Fred
        78810 by: Rasmus Lerdorf
        78811 by: Fred
        78813 by: David

Re: Supplied argument is not a valid PostgreSQL result resource
        78812 by: Jimmy

Mailling Lists
        78815 by: Ben Clumeck
        78816 by: Miles Thompson
        78817 by: Gerard Onorato
        78818 by: Bogdan Stancescu
        78822 by: Mark Charette
        78824 by: B. van Ouwerkerk

installing php with apache rpm???
        78819 by: Duane Douglas
        78820 by: Fred

Login and select Query in Mysql
        78821 by: Jack

This makes NO SENSE!!!!!
        78823 by: Chris Cocuzzo
        78827 by: Brian Clark

Re: Generate Alphabet
        78825 by: Jerry Verhoef (UGBI)
        78826 by: Fred
        78828 by: Philip Olson

MsSQL from FreeBSD
        78829 by: Valentin V. Petruchek

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 ---
How do I get FreeType 2 installed on my WIndowsXP box?  Anyone know of
web site with a tutorial?
 
Thanks
-------------------------------------------- 
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED] 
800-994-6364
www.webintellects.com
-------------------------------------------- 
 
--- End Message ---
--- Begin Message ---
Good advice -- I hadn't thought of that (echoing right beneath the 
setcookie() function).  But then i thought of something else... how can 
I echo text before the "<html>" tag?  So I put a third setcookie() 
function above the <html> tag

setcookie("foo", "echobar")

hoping that this would be very simple -- set a cookie with the value of 
"echobar", then later (in the <body> of the page) add

echo "<p>$foo</p>" ;

Well, it didn't work either, unfortunately.  "echobar" didn't appear on 
my page.  And I'm not getting any errors, either....

So the answer to no. 1 is now yes, but the cookie didn't get sent.
No. 2, I tried a sort of test (but the one you suggest gave me an error 
message b/c it's trying to echo text in the headers or something).
No. 3, no errors.

I'm still reading the www.php.net page on setcookie()... hoping for 
something that says that perhaps my browser is the source of the problem.


Erik


On Wednesday, December 26, 2001, at 04:40  PM, Miles Thompson wrote:

> 1. Did you just try setting a cookie, plain, with no conditions.
> 2. Have you tested your conditions, or added a test, equivalent to what 
> you
> do when you set the cookie? In other words, change setcookie to 
> this ....
>
> if ($type_sel)
> {
>    setcookie("font[type]", $type_sel, time()+3600) ;
>    echo "type_sel: $type_sel;
> }
>
> 3. Are you getting any errors when you try to set the cookie?

--- End Message ---
--- Begin Message ---
Miles, et al:

I realized my problem today, with the cookies.

While reading the voluminous setcookie() function description (meaning 
the user notes at the bottom), I came across a sample script that 
[EMAIL PROTECTED] had written to test to see if a browser is working with 
cookies correctly.  I ran the script and it too proved that cookies were 
not being received by my browser (for whatever reason).  So, in 
semi-frustration, I decided to do something else for a while and come 
back to the problem later.  I do that a lot.

So later I tried accessing the script that [EMAIL PROTECTED] had written 
again, this time from a different computer.  Because I was trying the 
page out on a non-local computer (previously I had been testing the page 
on the localhost -- the webserver itself), I had to enter the official 
IP address of the web server, rather than the default 127.0.0.1 for 
local hosts.

Sure enough, the script gave me the signal that cookies were working 
again.  I couldn't believe it.  Why was it working on this other 
computer but not mine?

Yep, for whatever reason it's because I used the official IP address 
this time.  I went back to the localhost (the web server computer) and 
tried the pages again, both my original script and the one I got from 
the setcookie() comments.  This time, I was properly prompted as to 
whether or not I wanted to accept a cookie.

So it works!  You just have to use the correct IP address.

Okay, thanks Miles and hope this information serves someone else in the 
future.  Now I can go home (almost 8 PM!!).

-- Erik


On Wednesday, December 26, 2001, at 04:40  PM, Miles Thompson wrote:

> Erik,
>
> 1. Did you just try setting a cookie, plain, with no conditions.
> 2. Have you tested your conditions, or added a test, equivalent to what 
> you
> do when you set the cookie? In other words, change setcookie to 
> this ....
>
> if ($type_sel)
> {
>    setcookie("font[type]", $type_sel, time()+3600) ;
>    echo "type_sel: $type_sel;
> }
>
> 3. Are you getting any errors when you try to set the cookie?
>
> Miles
>
> On Wednesday 26 December 2001 05:07 pm, Erik Price wrote:
>> I used
>>
>> <code>
>> <?php
>> // cookie_test.php
>>
>> if ($type_sel) setcookie("font[type]", $type_sel, time()+3600) ;
>> if ($size_sel) setcookie("font[size]", $size_sel, time()+3600) ;
>>
>> </code>
>> (without the <code /> tags)
>> This is a page which calls itself ($PHP_SELF) (is there a name for
>> those?).  And these variables are set by choosing from a select-list at
>> a different part of this page.  It's very basic, no if or case
>> statements -- just basically a page that delivers a pair of values
>> (font[type] and font[size]) to setcookie() and then checks to see if
>> there is a cookie in the browser that matches this description.  If
>> there is, it outputs some simple data, and at the very bottom it echoes
>> the contents of all variables so I can check and make sure everything's
>> working.  That's how I know that the setcookie() function doesn't seem
>> to work -- there's no value in the cookie variables but if I echo the
>> variables that I used ($type_sel and $size_sel) then it outputs the 
>> data.
>>
>> I'll read about IE, it's 5.1 for Mac OS X.
>>
>>
>> Erik
>>
>> On Wednesday, December 26, 2001, at 03:12  PM, Miles Thompson wrote:
>>> Erik
>>>
>>> What code are you using to set your cookie?
>>> Are you certain the expiry date is in the future?
>>> What browser are you using? There are notes in the online manual
>>> (www.php.net/setcookie()) regarding IE.
>>>
>>> Miles
>>>
>>> On Wednesday 26 December 2001 04:01 pm, Erik Price wrote:
>>>> Hello,
>>>>
>>>> I am having a problem testing out the use of cookies.  I'm using a
>>>> tutorial from Wrox's "Beginning PHP4".  It seems that I'm doing
>>>> everything correctly, but when I try to access the page in my
>>>> browser, I
>>>> am not prompted as to whether or not I'd like to accept a cookie 
>>>> (which
>>>> is something that I have configured my browser for), nor do the 
>>>> values
>>>> that I assigned to the cookies show up in the test variables that I
>>>> included on the page for just this purpose.  In other words, I'm not
>>>> sure that the setcookie() functions are working -- the variables 
>>>> that I
>>>> set using "setcookie()" don't seem to be turning up on the page, but
>>>> the
>>>> standard form-based variables that I used (as values in the 
>>>> setcookie()
>>>> function) turn up just fine.
>>>>
>>>> Do I need to have my web server specially configured for using 
>>>> cookies?
>>>> I don't see anything in httpd.conf about this.
>>>>
>>>> My setup is as follows:
>>>>
>>>> Darwin 1.4.1 on PowerBook G3 (Bronze edition, no firewire)
>>>> Apache 1.3.22
>>>>    configured with --enable-module=most --enable-shared=max
>>>>    DSOs: mod_dav, mod_hfs_apple, mod_php
>>>>            (PHP 4.0.6)
>

--- End Message ---
--- Begin Message ---

Due to a few bugs in PHP 4.1.0, we decided to release PHP 4.1.1.  The bugs
that were fixed are not major ones but minor ones, which could be annoying
if you get bitten by them.

Our recommendation is that people who already upgraded to PHP 4.1.0 do
*not* upgrade to PHP 4.1.1, unless they're experiencing one of the
described bugs.

*No* new features or security updates are available in this release.

Full list of fixes:

- Fixed incompatibility with Windows .NET / IIS 6 - may improve stability
  under other versions of IIS. (Zeev)
- Fixed bug that caused crashes or error notices on shutdown on threaded
  platforms. (Zeev)
- Fixed several crash bugs in the xslt extension. (Markus, Derick)
- Fixed problem with dbase not returning very large (larger than long)
  integers properly. (Vlad)
- Fixed several bugs and memleaks in the domxml extension. (Markus)
- Fixed bug in gmmktime() which was one hour off during standard time -
  bug #9878. Patch by [EMAIL PROTECTED] (jmoore)
- Fixed bug in gmdate() timezone handling on Windows - bug #13885. (jmoore)
- Fixed several crash bugs in the mcrypt extension. (Derick)
- Made the mcrypt extension compile with the libmcrypt 2.2 series again.
  (Sterling)
- Fixed a bug where the is_file() family of functions would in-correctly give
  an error when they were given filenames that didn't exist. (Sterling)
- Fixed a bug in the strtotime() function where it was incorrectly recognizing
  GMT +0100 and GMT -0100. (Derick)



Derick

--- End Message ---
--- Begin Message ---
where is the escaping happening first off?
    
----- Original Message ----- 
From: "phantom" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 26, 2001 2:02 PM
Subject: [PHP] mysql_escape_string


> How do I remove the slashes from mysql_escape_string when I pull the 
> string back out of the DB and want to display it?
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> 

--- End Message ---
--- Begin Message ---
> How do I remove the slashes from mysql_escape_string when I pull the
> string back out of the DB and want to display it?

You don't need to. The escaping is only to ensure the query doesn't break.
When
it's in the db and when it's returned, it will not have the slashes.

--
Richard Heyes
"If you have any trouble sounding condescending,
find a Unix user to show you how it's done." - Scott Adams

--- End Message ---
--- Begin Message ---
i know this isn't a linux newsgroup or listing, but i've seen configuration
problems in the past
so i was wondering if anyone could fix mine now.

I have the server, ssl, php, mySql, the whole deal, but we have an Intel
wireless network at home which, as it turns out, has only windows drivers. I
found a driver (Tulip) that apparently works with the card I have, but I
can't get beyond the point of ./make

there's always an error. If someone knows existing problems, or good
documentation on how to complete this installion process, that information
would be greatly appreciated.

Melih


--- End Message ---
--- Begin Message ---
Some tips on asking for help:

1. ask in the right place (this is not it)
2. it does no good to say you received an error unless you put the error
message in the post
3. research first...there are nearly 55,000 search results on this subject
at google
4. combine steps 2 and 3...search for the error message on google..this will
usually lead to quick results

Fred

Melih Onvural <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> i know this isn't a linux newsgroup or listing, but i've seen
configuration
> problems in the past
> so i was wondering if anyone could fix mine now.
>
> I have the server, ssl, php, mySql, the whole deal, but we have an Intel
> wireless network at home which, as it turns out, has only windows drivers.
I
> found a driver (Tulip) that apparently works with the card I have, but I
> can't get beyond the point of ./make
>
> there's always an error. If someone knows existing problems, or good
> documentation on how to complete this installion process, that information
> would be greatly appreciated.
>
> Melih
>
>


--- End Message ---
--- Begin Message ---
Greetings --
PHP + MySQL + sessions?

I'm trying use the script( and html page) to below to set session 
variables, but
keep getting the follow errors:
NOTE: I seen several posting re: using $HTTP_SESSION_VAR is another case 
where
that would apply?

Thanks in advance,
David Jackson


---------------- Browser Error Messages ---------------------
Warning: Cannot send session cookie - headers already sent by (output 
started at
/home/sites/site13/web/connect.php:13) in
/home/sites/site13/web/frontdesk/sales/login.php on line 15

Warning: Cannot send session cache limiter - headers already sent (output 
started at
/home/sites/site13/web/connect.php:13) in
/home/sites/site13/web/frontdesk/sales/login.php on line 15.


------------------- login.php ---------------------------------


<?php include("/home/sites/www.pickledbeans.com/web/connect.php"); ?>
<?php
$result = mysql_query("SELECT uid,uname,uperms FROM guestusers
                WHERE uname = '$uname' 
                   AND upass = PASSWORD('$upass')"); 

if (mysql_num_rows($result)!=1) {
        echo "Dis ain't good !!\n";

mysql_free_result ($result);
mysql_close($link);

} else {
// start session
session_start();
session_register("Uid");
session_register("Uname");
session_register("Uperms");

// parse out query output and resign to session vars
list($uid,$uname,$uperms) = mysql_fetch_row($result);
$Uid = $uid;
$Uname = $uname;
$Uperms = $uperms;

// redirect to main menu page
mysql_free_result ($result);
mysql_close($link);
 


----------------- login.html ------------------------
<html>
<head>
<title>Generic Time Tracker</title>
</head>
<h3>Sales Entry Login screen:</h3>
<table border="0" cellspacing="5" cellpadding="5">
<form action="login.php" method="post">
<tr>
<td>Username:</td>
<td><input type="Text" name="uname" size="15"></td>
</tr>
<tr>
<td>Password</td>
<td><input type="password" name="upass" size="15"></td>
</tr>
<tr>
<td colspan="2" align="CENTER"><input type="Submit" name="submit" 
value="Enter"></td>
</tr>
</form>
</table>
</body>
</html>

-- 


--- End Message ---
--- Begin Message ---
At 08:54 PM 12/26/2001 -0500, David Jackson wrote:
>I'm trying use the script( and html page) to below to set session
>variables, but
>keep getting the follow errors:
[...]
>---------------- Browser Error Messages ---------------------
>Warning: Cannot send session cookie - headers already sent by (output
>started at
[...]

Cookies are set and read via HTTP headers, therefore this has to occur 
before any output is sent to the client.  You can work around this with the 
ob_start() and ob_end_flush() functions, but normally you'd want to move 
the session_start() or session_register() calls up to the top of your 
script.  See below:

"Note: If you are using cookie-based sessions, you must call 
session_start() before anything is output to the browser."

http://www.php.net/manual/en/function.session-start.php

"Note: In PHP 4, you can use output buffering to get around this problem, 
with the overhead of all of your output to the browser being buffered in 
the server until you send it. You can do this by calling ob_start() and 
ob_end_flush() in your script, or setting the output_buffering 
configuration directive on in your php.ini or server configuration files."

http://www.php.net/manual/en/function.header.php

--- End Message ---
--- Begin Message ---
take the closing php tag from the end of the first line plus the openning
tag from the begining of the second line.  that is sending a line feed to
the browser.
Jim
----- Original Message -----
From: "David Jackson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 26, 2001 5:54 PM
Subject: [PHP] Warning: Cannot send session cookie


> Greetings --
> PHP + MySQL + sessions?
>
> I'm trying use the script( and html page) to below to set session
> variables, but
> keep getting the follow errors:
> NOTE: I seen several posting re: using $HTTP_SESSION_VAR is another case
> where
> that would apply?
>
> Thanks in advance,
> David Jackson
>
>
> ---------------- Browser Error Messages ---------------------
> Warning: Cannot send session cookie - headers already sent by (output
> started at
> /home/sites/site13/web/connect.php:13) in
> /home/sites/site13/web/frontdesk/sales/login.php on line 15
>
> Warning: Cannot send session cache limiter - headers already sent (output
> started at
> /home/sites/site13/web/connect.php:13) in
> /home/sites/site13/web/frontdesk/sales/login.php on line 15.
>
>
> ------------------- login.php ---------------------------------
>
>
> <?php include("/home/sites/www.pickledbeans.com/web/connect.php"); ?>
> <?php
> $result = mysql_query("SELECT uid,uname,uperms FROM guestusers
> WHERE uname = '$uname'
>                    AND upass = PASSWORD('$upass')");
>
> if (mysql_num_rows($result)!=1) {
> echo "Dis ain't good !!\n";
>
> mysql_free_result ($result);
> mysql_close($link);
>
> } else {
> // start session
> session_start();
> session_register("Uid");
> session_register("Uname");
> session_register("Uperms");
>
> // parse out query output and resign to session vars
> list($uid,$uname,$uperms) = mysql_fetch_row($result);
> $Uid = $uid;
> $Uname = $uname;
> $Uperms = $uperms;
>
> // redirect to main menu page
> mysql_free_result ($result);
> mysql_close($link);
>
>
>
> ----------------- login.html ------------------------
> <html>
> <head>
> <title>Generic Time Tracker</title>
> </head>
> <h3>Sales Entry Login screen:</h3>
> <table border="0" cellspacing="5" cellpadding="5">
> <form action="login.php" method="post">
> <tr>
> <td>Username:</td>
> <td><input type="Text" name="uname" size="15"></td>
> </tr>
> <tr>
> <td>Password</td>
> <td><input type="password" name="upass" size="15"></td>
> </tr>
> <tr>
> <td colspan="2" align="CENTER"><input type="Submit" name="submit"
> value="Enter"></td>
> </tr>
> </form>
> </table>
> </body>
> </html>
>
> --
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>

--- End Message ---
--- Begin Message ---
Hi,
I try to send the content of a variable about the url to the next php-page.
The content of the variable is:
Client like '%4022720893%'
I have tried urlencode and urldecode, but this does not work
If I put this variable to an url, I got always
Client like '@22720893%'
(depending from the number after the first %),
I also have tried to mask with slashes and stripslashes. But this does also 
not work.
Who can help and has the best way to send this content thru an url
best regards
christian

--- End Message ---
--- Begin Message ---
Why not get rid of the stuff you do not need to send?

Just send the client number and then add the Client like%% stuff on the
other end.

Fred

<[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
> I try to send the content of a variable about the url to the next
php-page.
> The content of the variable is:
> Client like '%4022720893%'
> I have tried urlencode and urldecode, but this does not work
> If I put this variable to an url, I got always
> Client like '@22720893%'
> (depending from the number after the first %),
> I also have tried to mask with slashes and stripslashes. But this does
also
> not work.
> Who can help and has the best way to send this content thru an url
> best regards
> christian
>


--- End Message ---
--- Begin Message ---
Hello all,

In an effort NOT to make this sound like spam I will be as vague as possible.

My suite mates and I are trying to put together a conference (classes and exhibits) 
based around PHP and MYSQL. They are a very successful conference 
company and I am a lowly developer who the give out some office space to. The plan is 
to offer the classes and conference free of charge to all who want to 
come. 

This is an idea we recently started kicking around. I was wondering if there is anyone 
on this list who wouldn't mind lending me a few minutes in exchanging 
emails so that I can ask for a little input on how you all would feel about this.

I apologize for posting something a bit off topic here.

Thanks,

Gerard Onorato


--- End Message ---
--- Begin Message ---
I am attempting to use fsockopen to connect to a news server.  I am able to
successfully connect and authenticate.  In fact, I can issue many commands
without a hitch.

I do, however, have a problem with commands which require multiline results.
For instance, issuing the list command and echoing the results to the
browser invariably results in the browser stalling.  There is no timeout
error from php, but after an arbitrary number of lines the browser stalls
and does not receive the rest of the stream.

I first thought this was some type of timeout error, but the odd thing is
that the amount of data successfully recieves varies depending on the nntp
server.

For example: server A may have 90,000 groups to list and stalls after
transferring 70,000 or so.  On the other hand, server B may have only 300
groups to list and stalls after 250.

If anyone has had any experience with this problem, please let me know what
you did to resolve it.

Fred


--- End Message ---
--- Begin Message ---
Why not just use the imap extension which supports the NNTP protocol 
natively?

On Wed, 26 Dec 2001, Fred wrote:

> I am attempting to use fsockopen to connect to a news server.  I am able to
> successfully connect and authenticate.  In fact, I can issue many commands
> without a hitch.
> 
> I do, however, have a problem with commands which require multiline results.
> For instance, issuing the list command and echoing the results to the
> browser invariably results in the browser stalling.  There is no timeout
> error from php, but after an arbitrary number of lines the browser stalls
> and does not receive the rest of the stream.
> 
> I first thought this was some type of timeout error, but the odd thing is
> that the amount of data successfully recieves varies depending on the nntp
> server.
> 
> For example: server A may have 90,000 groups to list and stalls after
> transferring 70,000 or so.  On the other hand, server B may have only 300
> groups to list and stalls after 250.
> 
> If anyone has had any experience with this problem, please let me know what
> you did to resolve it.
> 
> Fred
> 
> 
> 
> 

--- End Message ---
--- Begin Message ---
Good suggestion, in fact I just recompiled to include the IMAP extensions
for just that purpose.  Unfortunately, I was unable to get a decent
understanding of how to use the IMAP extensions with NNTP, and since I have
implemented connection level NNTP sessions in a number of languages I
thought it may be easier.

If you are aware of a good example or tutorial for implementing NNTP with
IMAP I would appreciate a link.

P.S. Thanks for this wonderful tool.

Fred

Rasmus Lerdorf <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Why not just use the imap extension which supports the NNTP protocol
> natively?
>
> On Wed, 26 Dec 2001, Fred wrote:
>
> > I am attempting to use fsockopen to connect to a news server.  I am able
to
> > successfully connect and authenticate.  In fact, I can issue many
commands
> > without a hitch.
> >
> > I do, however, have a problem with commands which require multiline
results.
> > For instance, issuing the list command and echoing the results to the
> > browser invariably results in the browser stalling.  There is no timeout
> > error from php, but after an arbitrary number of lines the browser
stalls
> > and does not receive the rest of the stream.
> >
> > I first thought this was some type of timeout error, but the odd thing
is
> > that the amount of data successfully recieves varies depending on the
nntp
> > server.
> >
> > For example: server A may have 90,000 groups to list and stalls after
> > transferring 70,000 or so.  On the other hand, server B may have only
300
> > groups to list and stalls after 250.
> >
> > If anyone has had any experience with this problem, please let me know
what
> > you did to resolve it.
> >
> > Fred
> >
> >
> >
> >
>


--- End Message ---
--- Begin Message ---
 hmm, does it work with smaller newsgroups? such as php\'s one which have ~30 groups.

when i wrote my own reader (using fsockopen also), i found that stalls are usually 
because of my own error(eg, article not found, etc)

you can take a peek at jim winstead\'s code from http://lists.php.net/snapshot.tar.gz 
it\'s the code powering http://lists.php.net. i learnt a lot from reading his code!

Good Luck!
>For example: server A may have 90,000 groups to list and >stalls after transferring 
>70,000 or so. On the other hand, >server B may have only 300 groups to list and 
>stalls after >250. 
--- End Message ---
--- Begin Message ---
Hi James,

> I've been getting the following error:
> Warning: Supplied argument is not a valid PostgreSQL
> result resource in dbasefunctions.php on line 87

that's because your SQL query return nothing, but you
try to fetch a row.

--
Jimmy
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Live for Love, for without Love you don't live.

--- End Message ---
--- Begin Message ---
I am creating a mail list and need something that does not require MySQL or
any other databases  is there a good one?  What is the best one even if it's
with MySQL?

Thanks,
Ben

--- End Message ---
--- Begin Message ---

Why not a traditional mailing list manager like mailman?

Miles Thompson

On Thursday 27 December 2001 12:50 am, Ben Clumeck wrote:
> I am creating a mail list and need something that does not require MySQL or
> any other databases  is there a good one?  What is the best one even if
> it's with MySQL?
>
> Thanks,
> Ben
--- End Message ---
--- Begin Message ---
Ben,

These aren't pure PHP however if you are using qmail I would tell you to take a look 
at ezmlm (http://www.ezmlm.org/) and if your using sendmail you may 
want to try majordomo (http://www.ualberta.ca/CNS/MAJORDOMO/). If your using something 
else... well I honestly have no clue. :)

Gerard



--- End Message ---
--- Begin Message ---
I'm really unable to discuss the mailing-list topic because I have nil expertise
in this field (apart from using them, that is). However, I'd strongly advise you
to use something based on some kind of database system, because alternate
methods of storing data (i.e. plain text files) are crippled from the start in
the speed department -- and if you hope the list to grow, this will become a
major issue.

HTH

Bogdan

Ben Clumeck wrote:

> I am creating a mail list and need something that does not require MySQL or
> any other databases  is there a good one?  What is the best one even if it's
> with MySQL?


--- End Message ---
--- Begin Message ---


> -----Original Message-----
> From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 26, 2001 11:16 PM
> To: Ben Clumeck
> Cc: [EMAIL PROTECTED]
> Subject: Re: [PHP] Mailling Lists
>
>
> I'm really unable to discuss the mailing-list topic because I
> have nil expertise
> in this field (apart from using them, that is). However, I'd
> strongly advise you
> to use something based on some kind of database system, because alternate
> methods of storing data (i.e. plain text files) are crippled from
> the start in
> the speed department -- and if you hope the list to grow, this
> will become a
> major issue.

Interestingly enough, the largest mailing list systems do not use databases
to store their addresses. The likely limit will be bandwidth, not anything
else.

Look into qmail/ezmlm for a good combination, along with the tied & true
majordomo list manager. I've been running some large mailing lists using the
ezmlm/qmail combo - which easily saturates a T1 connection running just a
350 MHz PII.



--- End Message ---
--- Begin Message ---
snip

>Look into qmail/ezmlm for a good combination, along with the tied & true
>majordomo list manager. I've been running some large mailing lists using the
>ezmlm/qmail combo - which easily saturates a T1 connection running just a
>350 MHz PII.

I'd say mailman. I know sourceforge.net is running mailman on a few lists 
I'm subscribed to. mailman is fairly easy to setup.

Majordomo has had quite a few security issues and isn't really easy.

A few large lists I know are running qmail/ezmlm.. lists like BUGTRAQ 
(securityfocus.com) and the MySQL mailinglist (mysql.com) are running ezmlm.
If you plan to use a database, I know ezmlm can be used with one.. I think 
I remember it's still considered experimental.

Bye,



B.

--- End Message ---
--- Begin Message ---
hello,

i have an apache rpm installed.  stuff will break if i uninstall it.  how 
do i install php to work with it?

tia

Duane Douglas
ASP / SQL Server Tutoring and Training

--- End Message ---
--- Begin Message ---
This guy has some great modular php rpms that will do the trick:
http://rpms.arvin.dk/php/

Fred

Duane Douglas <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> hello,
>
> i have an apache rpm installed.  stuff will break if i uninstall it.  how
> do i install php to work with it?
>
> tia
>
> Duane Douglas
> ASP / SQL Server Tutoring and Training
>


--- End Message ---
--- Begin Message ---
Dear all
I want to provide a login page to the user when they want to visit my
website, i got no idea what should i used.
First i have a login.php page which got two input box, one for username and
one for password.
Then i have a login table with mysql database which contain the valid user
and password.
And i have a index.htm which let the user browse my website.This index.htm
is consist of three frame, top, left and main. Each frame contain different
page(.php).

Task :
User will login first through login.php, then the username and password
provided by user will need to match the table called login.
Once the username and password is correct, the username will be hold in a
place for the further use inside the website(eg: when user want to see the
leave history records, it will only show it's own record by select the query
using the username section).
then user will direct into index.htm.

Could someone pls give me a idea how i should make this system work??

Thx
Jack
[EMAIL PROTECTED]


--- End Message ---
--- Begin Message ---
hey-

ok. I have the following code.
<?php

if($submit) {
    $arradate = explode("/",$date);
    $uxdate = mktime(0,0,0,$arradate[0],$arradate[1],$arradate[2]);
    print $uxdate;
}
else {
?>
     <form action="strtotime.php" method="POST"> //name of file is
strtotime.php
     <input type="text" name="date" size="30">
     <input type="submit" name="submit" value="submit">
<?
}
?>
the problem: it's printing out -1 when i submit. I know it means something
is wrong, however I can't find an error with this when i have the following
code below working perfectly:     [sidenote]: i enter the date into the form
field like this: 1/11/2002

$date1 = "1/11/2002";
$ardate = explode("/",$date1);
$unixdate = mktime(0,0,0,$ardate[0],$ardate[1],$ardate[2]);
print $unixdate . "<br>";

can somebody explain to me why this isn't working??

thanks
chris
p.s. it should return this unix timestamp: 1010725200

--- End Message ---
--- Begin Message ---
* Chris Cocuzzo ([EMAIL PROTECTED]) [Dec 27. 2001 03:16]:

> hey-

Howdy. With your previous posts on the subject, why do I get the feeling
you're building a time machine? :-)

> ok. I have the following code.
> <?php

> if($submit) {
>     $arradate = explode("/",$date);
>     $uxdate = mktime(0,0,0,$arradate[0],$arradate[1],$arradate[2]);
>     print $uxdate;
> }
> else {
> ?>
>      <form action="strtotime.php" method="POST"> //name of file is
> strtotime.php
>      <input type="text" name="date" size="30">
>      <input type="submit" name="submit" value="submit">
> <?
> }
> ?>
> the problem: it's printing out -1 when i submit. I know it means something
> is wrong, however I can't find an error with this when i have the following
> code below working perfectly:     [sidenote]: i enter the date into the form
> field like this: 1/11/2002

OK this is strange. This works fine on my machine and I get he expected
result: 1010725200

It *appears* to be a specific OS/distribution issue, but this is where 
my experience ends. I've seen weird issues like this on systems
where I also see processes suddenly appear to have spawned in the winter
of 1969.

Check out the user notes here:

<http://www.php.net/manual/en/function.mktime.php>

-- 
Brian Clark | Avoiding the general public since 1805!
Fingerprint: 07CE FA37 8DF6 A109 8119 076B B5A2 E5FB E4D0 C7C8
Perl: The Swiss Army Chainsaw

--- End Message ---
--- Begin Message ---
Sorry for the late reply but maybe you should take a look at the function
range.

from the manual:

foreach(range('a', 'z') as $letter) {
    echo $letter;
}

Jerry
-----Original Message-----
From: Daniel Harik [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 24, 2001 7:01 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Re: Generate Alphabet


Hello Fred,

Tuesday, December 25, 2001, 7:55:16 PM, you wrote:

F> for ($Character = 65; $Character < 91; $Character++)
F> {
F> echo chr($Character);
F> }

F> Fred

F> Daniel Harik <[EMAIL PROTECTED]> wrote in message
F> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>> Hello Guys,
>>
>> Just a stupid question how can i make php show from a-z with a for
>> loop, don't want to make 26 hard coded links
>>
>> Thank You very much
>>
>> --
>> Best regards,
>>  Daniel                          mailto:[EMAIL PROTECTED]
>>




Thank you

-- 
Best regards,
 Daniel                            mailto:[EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


The information contained in this email is confidential and
may be legally privileged. It is intended solely for the 
addressee. Access to this email by anyone else is 
unauthorized. If you are not the intended recipient, any 
form of disclosure, production, distribution or any action 
taken or refrained from in reliance on it, is prohibited and 
may be unlawful. Please notify the sender immediately.

The content of the email is not legally binding unless 
confirmed by letter bearing two authorized signatures.
--- End Message ---
--- Begin Message ---
WARNING

This will only work with PHP 4.1.0 or later.

Fred

Jerry Verhoef <[EMAIL PROTECTED]> wrote in message
1CDA86C6527BD311B91F0008C784121003D551D8@ugbiex1">news:1CDA86C6527BD311B91F0008C784121003D551D8@ugbiex1...
> Sorry for the late reply but maybe you should take a look at the function
> range.
>
> from the manual:
>
> foreach(range('a', 'z') as $letter) {
>     echo $letter;
> }
>
> Jerry
> -----Original Message-----
> From: Daniel Harik [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 24, 2001 7:01 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] Re: Generate Alphabet
>
>
> Hello Fred,
>
> Tuesday, December 25, 2001, 7:55:16 PM, you wrote:
>
> F> for ($Character = 65; $Character < 91; $Character++)
> F> {
> F> echo chr($Character);
> F> }
>
> F> Fred
>
> F> Daniel Harik <[EMAIL PROTECTED]> wrote in message
> F> [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> >> Hello Guys,
> >>
> >> Just a stupid question how can i make php show from a-z with a for
> >> loop, don't want to make 26 hard coded links
> >>
> >> Thank You very much
> >>
> >> --
> >> Best regards,
> >>  Daniel                          mailto:[EMAIL PROTECTED]
> >>
>
>
>
>
> Thank you
>
> --
> Best regards,
>  Daniel                            mailto:[EMAIL PROTECTED]
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
> The information contained in this email is confidential and
> may be legally privileged. It is intended solely for the
> addressee. Access to this email by anyone else is
> unauthorized. If you are not the intended recipient, any
> form of disclosure, production, distribution or any action
> taken or refrained from in reliance on it, is prohibited and
> may be unlawful. Please notify the sender immediately.
>
> The content of the email is not legally binding unless
> confirmed by letter bearing two authorized signatures.


--- End Message ---
--- Begin Message ---

> This will only work with PHP 4.1.0 or later.

Consider this example:

$letter = 'a';
$i = 0;
while ($i++ < 26) {
  print "Letter: ". $letter++ ."\n";
}
 
regards,
Philip Olson

--- End Message ---
--- Begin Message ---
Hello php-world!

I'm working on Apache 22, php 4.1.0 and try to work with MsSQL 2000.

PHP is configured
 './configure' '--with-apache=../apache_1.3.22' '--with-mysql'
'--with-sybase=/usr/local/freetds' '--enable-track-vars'

Everything works fine when using mssq-Functions, except extracting images
from db. There is limit on 4096 bytes when i extract data from image field.
I've changed php.ini - turned mssql_limits to 1000000 (instead of 4096),
restarted a[pache but problem doesn't seem to disappear.

On IIS i t works fine, but what do i miss???

Merry Christmas and Happy New Year,
Zliy Pes, http://zliypes.com.ua




--- End Message ---

Reply via email to