php-windows Digest 28 Feb 2004 18:30:53 -0000 Issue 2142
Topics (messages 23015 through 23018):
Re: HMTL E-mails with images (again)
23015 by: Justin Patrin
23017 by: Sudeep Sarath
Re: Strange Substr Behavior
23016 by: Meteorlet Woody
Re: multilanguage solutions
23018 by: Victor Dachev
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 ---
Michael Horton wrote:
Hi,
Having just recently started to try and use php (by necessity- the only
person in the department who used php left us recently).
I'm trying to make a form to send out a specific e-mail to the selected
recipients. I've managed to get it to send an html e-mail to the recipients
I want, but I can't seem to get images incorporated into it. I've seen the
example classes posted to a similar question on this list, but they're all
far to complex for what I need to do.
Can anyone help please?
Mike Horton
---------------------------------------------------------
I'm sorry, did my Karma run over your Dogma?
I would suggest PEAR's Mail_Mime package. It has a few simple method
calls to do this kind of thing.
http://pear.php.net/package/Mail_Mime
Note: you can also do inline images where the content of the image is in
the src, but I can't find any docs on it at the moment. ;-) Also, it
would only work on Mozilla based clients.
--
paperCrane <Justin Patrin>
--- End Message ---
--- Begin Message ---
Hi Michael,
I hope i can give u the solution for this. The task is u have to specify the actual
path of the your image files. For example
In your HTML file if there is the img tag which refers to the image file test.jpg then
u have to mention that like this
<img src=http://www.sitename.com/image/test.jpg> where image(if there is any such
directory) is the directory where the test.jpg is stored.
Do tell me if this works
Bye
....SuDeEp.....
Michael Horton <[EMAIL PROTECTED]> wrote:
Hi,
Having just recently started to try and use php (by necessity- the only
person in the department who used php left us recently).
I'm trying to make a form to send out a specific e-mail to the selected
recipients. I've managed to get it to send an html e-mail to the recipients
I want, but I can't seem to get images incorporated into it. I've seen the
example classes posted to a similar question on this list, but they're all
far to complex for what I need to do.
Can anyone help please?
Mike Horton
---------------------------------------------------------
I'm sorry, did my Karma run over your Dogma?
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yahoo! India Insurance Special: Be informed on the best policies, services, tools and
more.
--- End Message ---
--- Begin Message ---
Ron.Herhuth,Hello!
You have made a mistake.look at the declaration of substr function:
string substr(string string, int start, int [length]);
The third parameter means sub-string's length,not the position.Hence,you
should do like this:
<?php
$searchWord = "acme corporation";
$searchWord = str_replace(' ','',$searchWord);
$chars = strlen($searchWord);
echo "$searchWord<br>";
for($i=0;$i<=$chars-3;$i++)
{
echo "$i:".($i+3)." ";
echo substr(($searchWord),$i,3) . "<br>";
}
?>
======= 2004-02-28 03:14:36 =======
>I'm trying to cycle through a keyword printing out three character
>groupings starting from each letter in the keyword. Here is the script I
>am using:
>
>
>$searchWord = "acme corporation"
>
>$chars = strlen($searchWord);
>
>echo "$searchWord<br>";
>
>for($i=0;$i<=$chars;$i++)
>{
>$j = $i + 3;
>echo $i . ":" . $j . " ";
>echo substr(($searchWord),$i,$j) . "<br>";
>}
>
>This is the output:
>acme corporation
>0:3 acm
>1:4 cme
>2:5 me co
>3:6 e corp
>4:7 corpor
>5:8 corporat
>6:9 orporatio
>7:10 rporation
>8:11 poration
>9:12 oration
>10:13 ration
>11:14 ation
>12:15 tion
>13:16 ion
>14:17 on
>15:18 n
>16:19
>
>This doesn't make sense to me because it is returning more than 3
>characters after the first two iterations. I understand that I have to
>modify the script near the end but I'm just trying to get the base concept
>working first.
>
>Here is the output I'm looking for:
>
>acm
>cme
>mec
>eco
>cor
>orp
>rpo
>por
>ora
>rat
>ati
>ion
>
>
>Thanks,
>ROn
= = = = = = = = = = = = = = = = = = = =
Meteorlet Woody
[EMAIL PROTECTED]
2004-02-28
--- End Message ---
--- Begin Message ---
Well, http://www.invisionboard.com/ use maybe something simular. The best of
all is that if for example I translate it to a new language, trough their
admin graphic interface I can export the langiage pach to a sincle file with
one click and to share it with other people using that board who ned the
language.
"Donatas" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hey,
> I have this question here... has anyone heard of any project to help
> make a multilanguage website? Lets say all 'static' strings are stored
> in a database and managed through some webinterface? And then when you
> want to add new language the your website you do it through the same
> interface. Or something alike.
> Actually I've done something similar and now wondering if there are any
> other projects to compare to.
>
> /Donny
--- End Message ---