[PHP] mail server (again!)

2001-05-20 Thread FredrikAT

What I look for is a POP/IMAP server that writes incoming mails to a MySQL
db! (WIN32)

Fredrik Takle
Bergen, Norway


""Plutarck"" <[EMAIL PROTECTED]> skrev i melding
9e73vh$95f$[EMAIL PROTECTED]">news:9e73vh$95f$[EMAIL PROTECTED]...
> Check out http://webgadgets.com/phpost/
>
> That's a good way to get started on handling emails with PHP.
>
> I'd need to know more about what you want to do to tell you if PHP is the
> way to do it.
>
> If you want to run a mail server which takes incoming emails and directly
> writes them to a database, PHP probably isn't the way to go. A Java
Servlet
> would probably be a more appropriate application for that.
>
> But I don't think that's what you're wanting to do.
>
>
> Plutarck
>
> ""FredrikAT"" <[EMAIL PROTECTED]> wrote in message
> 9e6gud$eie$[EMAIL PROTECTED]">news:9e6gud$eie$[EMAIL PROTECTED]...
> > Hi!
> >
> > I want to have a mailapp on my server (win32) wich writes all incoming
> mails
> > to a MySQL db.
> >
> > Is this possible?
> >
> > -
> > Fredrik A. Takle
> > [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]
> >
>
>
>
> --
> 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]
>



--
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]


-
Fredrik A. Takle
[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]




Re: [PHP] Email form

2001-05-20 Thread FredrikAT

Check: http://www.php.net/mail



<[EMAIL PROTECTED]> skrev i melding [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I've been out of the loop for so long.
>
> I make a normal form, but the action is something..
>
> I don't want it to send from the uers email, but use the server.  Some
> people don't have an email client configured.  Can yah help?
>
> Thanks,
> Owen
>
> --
> 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]
>



-- 
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]




Re: [PHP] Mailserver?!

2001-05-20 Thread FredrikAT

What I look for is a POP/IMAP server that writes incoming mails to a MySQL
db! (WIN32)

Fredrik Takle
Bergen, Norway


""Plutarck"" <[EMAIL PROTECTED]> skrev i melding
9e73vh$95f$[EMAIL PROTECTED]">news:9e73vh$95f$[EMAIL PROTECTED]...
> Check out http://webgadgets.com/phpost/
>
> That's a good way to get started on handling emails with PHP.
>
> I'd need to know more about what you want to do to tell you if PHP is the
> way to do it.
>
> If you want to run a mail server which takes incoming emails and directly
> writes them to a database, PHP probably isn't the way to go. A Java
Servlet
> would probably be a more appropriate application for that.
>
> But I don't think that's what you're wanting to do.
>
>
> Plutarck
>
> ""FredrikAT"" <[EMAIL PROTECTED]> wrote in message
> 9e6gud$eie$[EMAIL PROTECTED]">news:9e6gud$eie$[EMAIL PROTECTED]...
> > Hi!
> >
> > I want to have a mailapp on my server (win32) wich writes all incoming
> mails
> > to a MySQL db.
> >
> > Is this possible?
> >
> > -
> > Fredrik A. Takle
> > [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]
> >
>
>
>
> --
> 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]
>



-- 
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]




[PHP] Mailserver?!

2001-05-19 Thread FredrikAT

Hi!

I want to have a mailapp on my server (win32) wich writes all incoming mails
to a MySQL db.

Is this possible?

-
Fredrik A. Takle
[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]




[PHP] Books!

2001-05-12 Thread FredrikAT

Can anyone recommend a php(/mysql) book?

--
-
Fredrik A. Takle
[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]




[PHP] mysql_trouble (check fast!)

2001-05-08 Thread FredrikAT

$na_pw is the active password...
..if pw is blank or wrong i want to output a error message...
...iknow that I could do if (empty($na_pw) and $na_pw <> $pw), but then I
would have to send another query to MySQL..

I thought that q_updateresult would say (when i echo) 0 when password is
bad, but it echos 1.

Any tips?

CODE:
$q_updatequery = "UPDATE brukerinfo SET navn=\"$ny_navn\", tlf=\"$ny_tlf\",
pw=PASSWORD('$ny_pw') WHERE brukerID=\"$id\" and pw=PASSWORD('$na_pw')\n";

$q_updateresult = mysql_db_query ($db, $q_updatequery);

-
Fredrik A. Takle
[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]




[PHP] Flash/PHP/MySQL

2001-05-06 Thread FredrikAT

Can Flash import some text from a database (e.g MySQL) and print it on the
fly?

-
Fredrik A. Takle
[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]




[PHP] logging in (online?!)

2001-04-23 Thread FredrikAT

Hi!

I have users logging in on my site (they write news)..
What is the best way to show how's online?

Write to MySQL (last logged in) ?
Somehow use the sessions to this ?


-
Fredrik A. Takle
[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]




[PHP] user active

2001-04-21 Thread FredrikAT

Hi!

I have users logging in on my site (they write news)..
What is the best way to show how's online?

Write to MySQL (last logged in) ?
Somehow use the sessions to this ?

-
Fredrik A. Takle
[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]




Re: [PHP] how to scale down image using ImageMagick?

2001-04-19 Thread FredrikAT

Hi!

This is what I do:

  if (!empty($picture)) {
$size = GetImageSize ("pics/$picture");
if ($size[0] >= '175') {
  $width = '175';
  $height = $size[1] * ($width / $size[0]);
} else {
  $width = $size[0];
  $height = $size[1];
}
  }

echo "";

Fredrik A. Takle
Bergen, Norway


""Joe Sheble (Wizaerd)"" <[EMAIL PROTECTED]> skrev i melding
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> I use ImageMagik all the time for thumbnail creations...  this doesn't
> resize the image, it creates a new image, a thumbnail... but the principle
> is the same
>
> $cWidth = 175;
> $picture_src = "fullSize/somepic.jpg";
> $thumb_dest = "fthumbNail/somepic.jpg";
>
> $aImageInfo = getimagesize( $picture_src );
>
> if( $aImageInfo[0] < $cWidth ) {
>  exec("convert -geometry $cWidth -colors 256 -colorspace
> yuv  $picture_src $thumb_dest" );
> }
>
> At 08:59 AM 4/19/01 -0400, Noah Spitzer-Williams wrote:
> >Is there a way to install the GD library on windows nt systems? i can't
get
> >this thing to not scale it if its smaller than a certain width
> >
> >""Steve Werby"" <[EMAIL PROTECTED]> wrote in message
> >00ae01c0c848$8a802bb0$6501a8c0@workstation7">news:00ae01c0c848$8a802bb0$6501a8c0@workstation7...
> > > "Noah Spitzer-Williams" <[EMAIL PROTECTED]> wrote:
> > > > I have a bunch of pictures all in ranging filesizes and dimensions.
I
> >want
> > > > to resize the ones that over 175 pixels wide to a 175 pixel wide
picture
> > > > however i want the height to scale down (ie. i dont want a really
thin
> > > > picture, i just want it to be what it would be if it were resized).
i
> >have
> > > > this but i cant figure out how to just scale down the width:
> > > >
> > > > c:\progra~1\imagem~1\mogrify.exe -geometry 175x30! picture.jpeg
> > > >
> > > > the '!' forces those sizes to be used but obvoiusly i dont want the
> >height
> > > > to be 30. i want it to be whatever it should be so the picture
doesnt
> >look
> > > > flattened.
> > >
> > > I believe imagemagick has an option where you can specify a single
> >dimension
> > > (x or y) and it will set that dimension accordingly and automatically
> >scale
> > > the other dimension.  This should be covered in the manual pages
or --help
> > > output of the program.
> > >
> > >
> > > --
> > > --
> > > Steve Werby
> > > President, Befriend Internet Services LLC
> > > http://www.befriend.com/
> > >
> > >
> > > --
> > > 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]
> > >
> >
> >
> >
> >--
> >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]
>
>
> --
> 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]
>



-- 
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]




[PHP] php, mysql, and wysiwyg.

2001-04-13 Thread FredrikAT

Hi!

I'm starting a news site, and I have one problem.
(not with php or mysql, workin' fine!):

1. I want my authors to be able to make the text bold, italic ++,
but I can't find anything that works.
2. The best sollution must be something similar to hotmails...

I've looked around for ages, but I can't find something...
It doesn't have to be something complicated, all I really need is a few
buttons over my text-area (form!) - select text, press bold and the phrase
changes...

Like this:
[BOLD]
[ Text bla bla2 bla] <-- text area..
[SEND]

I select/mark bla2 and the text area changes to
[Text bla bla2 bla]

Note: I know that this isn't the right place to ask, I guess this is more
Java related...

Any help would be appreaciated!

Thanks!

Best regards
Fredrik A. Takle
Bergen, Norway

-
Fredrik A. Takle
[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]




[PHP] Starting a Forum?!

2001-04-02 Thread FredrikAT

Hi...

I'm starting a forum, but I have one problem..

1. Is there a easy way to ignore/don't take HTML/php tags inside a post..

e.g someone echo's $mysql_password/username?
 or something else...

include, require etc...

...Fredrik:)

--
-
Fredrik A. Takle
[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]




Re: [PHP] $myfile[$count]_type?!

2001-03-27 Thread FredrikAT

Hi, again!

Didn't work...

This is the scene: (file.php?a=input)


(file.php?a=reg)
Trying to echo type...
${$myfile[$count] . '_type'} // NOT WORKIN'
${$myfile$count}_type // NOT WORKIN'

Any suggestions?

Fredrik A. Takle
Bergen, Norway



""FredrikAT"" <[EMAIL PROTECTED]> skrev i melding
99qqqo$v1c$[EMAIL PROTECTED]">news:99qqqo$v1c$[EMAIL PROTECTED]...
> Why can't I do $myfile[$count]_type?!
> What schould I do instead?
>
> -
> Fredrik A. Takle
> [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]
>



-- 
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]




[PHP] $myfile[$count]_type?!

2001-03-27 Thread FredrikAT

Why can't I do $myfile[$count]_type?!
What schould I do instead?

-
Fredrik A. Takle
[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]




[PHP] General question :)

2001-03-26 Thread FredrikAT

Hi!

What do you think is best..:
- have alot of small .php (files)?
- or a few big?

What's good & bad with these solutions?!

-
Fredrik A. Takle
Bergen, Norway
[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]




[PHP] date (urgent!)

2001-03-11 Thread FredrikAT

Hi!

I have 2 dates...
$start = "20010101";
$end = "20010312";

What is the easiest way of finding out how many days are between?

Thanx!

-
Fredrik A. Takle
[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]




[PHP] date

2001-03-11 Thread FredrikAT

Hi!

I have 2 dates...
$start = "20010101";
$end = "20010312";

What is the easiest way of finding out how many days are between?

Thanx!


-
Fredrik A. Takle
[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]




Re: [PHP] email.. (check this one out!)

2001-02-14 Thread FredrikAT

I explained my problem badly in the last message...
What I want to send is written without  and \n...

I want to set like a column width or something but without using HTML in
my email...

Anyone?

""FredrikAT"" <[EMAIL PROTECTED]> skrev i melding
96eu04$uef$[EMAIL PROTECTED]">news:96eu04$uef$[EMAIL PROTECTED]...
> Hi!
>
> I want to send a email usin' email() (plain text!), but I have a problem.
>
> What i want to send!
> $email_body = "This is just nothing, This is just nothing, This is just
> nothing, This is just nothing, This is just nothing, This is just nothing,
> This is just nothing, This is just nothing, This is just nothing, This is
> just nothing, This is just nothing, This is just nothing, This is just
> nothing, This is just nothing, This is just nothing, This is just nothing,
> This is just nothing, This is just nothing, This is just nothing, This is
> just nothing, This is just nothing, This is just nothing, This is just
> nothing, This is just nothing, ";
>
> I want to output it something like this:
> This is just nothing, This is just nothing, This is just nothing, This is
> just nothing,
> This is just nothing, This is just nothing, This is just nothing, This is
> just nothing,
> This is just nothing, This is just nothing, This is just nothing, This is
> just nothing,
> This is just nothing, This is just nothing, This is just nothing, This is
> just nothing,
>
> (Can I do that without using HTML? Is there a php-function to set width?)
>
> -
> Fredrik A. Takle
> [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]
>



-- 
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]




[PHP] email.. (check this one out!)

2001-02-14 Thread FredrikAT

Hi!

I want to send a email usin' email() (plain text!), but I have a problem.

What i want to send!
$email_body = "This is just nothing, This is just nothing, This is just
nothing, This is just nothing, This is just nothing, This is just nothing,
This is just nothing, This is just nothing, This is just nothing, This is
just nothing, This is just nothing, This is just nothing, This is just
nothing, This is just nothing, This is just nothing, This is just nothing,
This is just nothing, This is just nothing, This is just nothing, This is
just nothing, This is just nothing, This is just nothing, This is just
nothing, This is just nothing, ";

I want to output it something like this:
This is just nothing, This is just nothing, This is just nothing, This is
just nothing,
This is just nothing, This is just nothing, This is just nothing, This is
just nothing,
This is just nothing, This is just nothing, This is just nothing, This is
just nothing,
This is just nothing, This is just nothing, This is just nothing, This is
just nothing,

(Can I do that without using HTML? Is there a php-function to set width?)

-
Fredrik A. Takle
[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]




[PHP] UserAUTH from webform

2001-02-08 Thread FredrikAT

Can I set a userid & pw from a webbased interface (make iexplore ...
remember the id & pw ... like $PHP_AUTH_USER & PHP_AUTH_PW does while
sending headers?)

Do I have to set a cookie?

-
Fredrik A. Takle
[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]




[PHP] PHP Authenticate

2001-02-04 Thread FredrikAT

Hi... I have a problem with PHP Authenticate
...if I enter user/pw wrong the first time it stops and I have to close/open
browser.!
I've tried to unset $PHP_AUTH_USER but then it just loops...

if(!isset($PHP_AUTH_USER)) {
Header("WWW-Authenticate: Basic realm=\".: Privat område :.\"");
Header("HTTP/1.0 401 Unauthorized");
echo "Secured Area!";
exit;
  } else {
$PHP_AUTH_PW_ENCRYPTED = crypt("$PHP_AUTH_PW", "wP");

$connect = mysql_connect($hostname,$username,$password) or die ("Klarer
ikke koble til MqSQL db...");

$query = "SELECT * FROM forfatter";
$query .= " where id = $PHP_AUTH_USER";
$result = mysql_db_query($db, $query);

while($row = mysql_fetch_array($result)) {
 $id = $row["id"];
  $navn = $row["navn"];
  $pw = $row["pw"];
}

if (($id == $PHP_AUTH_USER) AND ($pw == $PHP_AUTH_PW_ENCRYPTED))

  $bruker_ok = true;
} else

exit;
}
  }



-
Fredrik A. Takle
[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]




[PHP] php-nuke?

2001-02-03 Thread FredrikAT

What is php-nuke?
How could I make a php-page execute something (itself?) without entering the
site... it starts evry hour?!

-
Fredrik A. Takle
[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]