|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Subject: php3 Digest 11 Jun 2000 16:58:33 -0000 Issue 1728
From: php3-digest-help
lists.php.netDate: Sun Jun 11 2000 - 11:58:33 CDT
- Next message: php3-digest-help
lists.php.net: "php3 Digest 12 Jun 2000 04:58:31 -0000 Issue 1729"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 11 Jun 2000 04:58:35 -0000 Issue 1727"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
php3 Digest 11 Jun 2000 16:58:33 -0000 Issue 1728
Topics (messages 93138 through 93156):
Re: hmm.. which template engine to use??
93138 by: Jesse Estevez
Re: [PHP-DEV] More SOAP or Dampen Thy Evangelical
93139 by: php3.developersdesk.com
93148 by: Jacob Stetser
Re: PHP on Apache on Windows 98
93140 by: Jerry
Re: Interesting question...
93141 by: Maxim Maletsky
problem with the function mail()
93142 by: anthony rakotomalala
93146 by: Olav Cleemann
Asking 1st before asking!
93143 by: Owen Lees
page1.htm
93144 by: Alaiddin Tayeh
93147 by: Richard Heyes
Variables through lynx/wget
93145 by: Steve Veltcamp
93152 by: Cameron Brunner
93154 by: Colin McKinnon
sending email to multpile persons
93149 by: Tristan Rybak
93153 by: Richard Heyes
MySql database dump
93150 by: Marian Vasile
Real record size - sometimes a real problem.
93151 by: Marian Vasile
Re: Constructing Variables from Variables?
93155 by: Mark Selby
93156 by: Clarence Kwei
Administrivia:
To subscribe to the digest, e-mail:
php3-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php3-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php3
lists.php.net
----------------------------------------------------------------------
attached mail follows:
This is an excellent idea.
It seems to me that a template class, at the minimum, does this...
(1) Name a template to use.
(2) Pass the elements that will be plugged into the template.
(3) Parse the template.
There may be such a standard out and about already, so research into prior art
is probably the first step. Before anybody volunteers, we should all poke
around in other circles to see if we can find useful work.
Jesse
On 8/13/00 at 12:38 AM, cubadc
earthlink.net (Christian Calloway) wrote:
> Gosh, is everyone writing their own template engine? Im not about to ask
> whose is best, but i'de like to make a simple suggestion. Until the creators
> decided to integrate a template engine into the php core, someone needs to
> write a common interface, into which we can plug a template engine into (and
> please don't ask, Im way to lazy for that). I mean all the template engines
> I've seen up to this point basically all do the same thing.. their just
> implemented differently. I don't really know or care whose is the best, even
> though it seems as if everyone is claiming the one they use or wrote is, I
> just happen to be pissed since I recently changed from FastTemplate to
> phplib Template, which meant a whole lotta method renaming. Anyways,
> everyone have a good night..
>
>
>
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
>
>
--------------------------------------------------
Jesse Estevez
Director of E-Commerce
jestevez
travel-italy.com
Travel-Italy.com
2400 Bluff Creek Drive
Columbia, Missouri 65201
USA
Toll Free (USA only): 888-28-ITALY
Phone: 573-446-6922
Fax: 573-446-6920
attached mail follows:
Addressed to: Jacob Stetser <jstetser
icongarden.com>
php3
lists.php.net
** Reply to note from Jacob Stetser <jstetser
icongarden.com> Sat, 10 Jun 2000 22:05:04 -0400
>
> I can understand the system being able to script Outlook, but the
> simple fact is (and it is a simple fact) is that nothing I can open
> or click on or run from email should have access to system objects.
> Sure, ILOVEYOU would still have sent billions of emails, but it
> looses the fangs of being able to destroy and replace stuff on my
> drive and corrupt my registry.
>
> The concern is that email is an internet application. That means it
> is exposed to insecure elements. Does it not make sense to use a
> sandbox model for email? Such as "This VBS was launched from within
> application X; either a) disallow access to methods outside the scope
> of X or b) launch detailed warning messages that WARN for each
> attempt to access methods outside the scope of X."
>
> MS doesn't follow that model. It says, "Oh, launch that script. Oh,
> hi script from the internet, here's all the access to my innards."
>
Personaly, I find the idea of running something that comes in thru
email as wise as checking to see if a gun is loaded by pointing it
at your head and pulling the trigger. I can't imagine why anyone would
want to do it at all, let alone making automatic execution the default.
Email is for reading, not remote execution of programs.
Rick Widmer
Internet Marketing Specialists
www.developersdesk.com
attached mail follows:
Oh, I definitely agree. But take the ability out and too many people
squawk and complain. I think it should go beyond the application to
the effect of: "This is an Outlook Attachment, Word. It should only
be able to affect Outlook files until it is saved by the user to the
local disk. (and even then it should be rigorously checked)"
I dunno. There's a middle ground, but it involves making sure your
security model segregates Internet and local pretty securely. MS has
blurred that line way too much.
At 1:20 AM -0700 6/11/00, php3
developersdesk.com wrote:
>** Reply to note from Jacob Stetser <jstetser
icongarden.com> Sat,
>10 Jun 2000 22:05:04 -0400
>>
>> I can understand the system being able to script Outlook, but the
>> simple fact is (and it is a simple fact) is that nothing I can open
>> or click on or run from email should have access to system objects.
>> Sure, ILOVEYOU would still have sent billions of emails, but it
>> looses the fangs of being able to destroy and replace stuff on my
>> drive and corrupt my registry.
>>
>> The concern is that email is an internet application. That means it
>> is exposed to insecure elements. Does it not make sense to use a
>> sandbox model for email? Such as "This VBS was launched from within
>> application X; either a) disallow access to methods outside the scope
>> of X or b) launch detailed warning messages that WARN for each
>> attempt to access methods outside the scope of X."
>
>Personaly, I find the idea of running something that comes in thru
>email as wise as checking to see if a gun is loaded by pointing it
>at your head and pulling the trigger. I can't imagine why anyone would
>want to do it at all, let alone making automatic execution the default.
>
>Email is for reading, not remote execution of programs.
>
-- -- icongarden.com Making good ideas grow || http://icongarden.com/
attached mail follows:
Hi Brian,
Have you correctly added the Addtype directives to the httpd.conf?
AddType application/x-httpd-php3 .php3 AddType application/x-httpd-php3 .phtml Action application/x-httpd-php3 "/php/php.exe" <-- is this directory correct at your installation?
Maybe you could paste your Addtype's in this maillist
Kind regards, Jerry Verhoef http://php.start4all.com
PS. Could you turn of the HTML in your email, a lot of ppl in this mailling list are not able to correctly read your email that way. And then they can't help you.
----- Original Message -----
From: Brian Gramling
To: php3
lists.php.net
Sent: Sunday, June 11, 2000 4:27 AM
Subject: [PHP3] PHP on Apache on Windows 98
I am trying to learn PHP on my computer at home. I am using Windows 98 on a PC. I decided to use Apache as my server. I am having trouble viewing the php files. I used directions for http://thickbook.com who wrote the book I am using to learn.
I would appreciate any advice.
Thanks,
Brian Gramlin
attached mail follows:
You see I was born in Russia, grew up between Italy and US and now I'm living in Japan. If you will try to detect the users language by it's location you will definitely constrict users like me to read it in the language they might not prefer most.
I believe that the most professional way would be a simple menu so the users can choose which language is better for them and while choosing it they will also respect your website because it was translated that well.
Another thing is that you probably won't have all the possible languages in the world and it means that many users simply cannot be redirected to the right language.
Like Ukrainian, if I'm from Ukraine I then don't mind to see your website in Russian (assume that you have Russian but not Ukrainian), but if you are doing it automatically I will then be constricted to see it in your default language which is English and which I might not to know.
As a webmaster I think there's no way it can be done professionally by a program.
Maxim Maletsky.
-----Original Message-----
From: Marian Vasile [mailto:marianos
gmx.net]
Sent: Sunday, June 11, 2000 12:52 AM
To: PHP
Subject: [PHP3] Interesting question...
How I can detect from wich country somene is comming to my web site ? I want this because I want my web site to be automatically translated for every visitor... First I don't know from what country he is comming...
How I can find out that ?
Marian
,-------------------.---------------------------.
/ Email \ Web sites: /
/ softglitter
gmx.net \ http://marianos.f2s.com /
/ marianos
gmx.net \ http://marian.8k.com /
`------------------------`---------------------'
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribelists.php.net To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
hi !
i have a serious problem with the function MAIL()
i think it doesn't work
i'm using apache 1.3.9 Windows 98 MySql for Win32
in my form i use this function for example :
$message = "hello";
mail("anthonyrak
hotmail.com", "no subject", "$message");
there is no action !!
plese tell me how to do !
thanks a lot !
anthony. ________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
attached mail follows:
You have to take a look at your php3.ini file, wich should live somewhere in youre ?:\windows directory. Somewhere along the way you will stumble across a section which looks like this:
[mail function]
SMTP = your.smtpserver.tld ;for win32 only
sendmail_from = your
emailaddress.tld ;for win32 only
sendmail_path = ;for unix only,
may supply arguments as well (default is sendmail -t)
You just have to edit the two first lines after the header.
On Sun, 11 Jun 2000, anthony rakotomalala wrote:
>
>
> hi !
>
> i have a serious problem with the function MAIL()
>
> i think it doesn't work
>
> i'm using apache 1.3.9 Windows 98 MySql for Win32
>
> in my form i use this function for example :
>
> $message = "hello";
> mail("anthonyrak
hotmail.com", "no subject", "$message");
>
> there is no action !!
>
> plese tell me how to do !
>
> thanks a lot !
>
> anthony.
> ________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>
>
>
-- Med venlige hilsen / Yours sincerely Olav Cleemann Peder Skrams Gade 17 A, 1. th. 1054 Kbh. K. phone: (+45) 33 91 78 84
attached mail follows:
Hi there.
I have played with PHP a while (very low key stuff) and have a lovely installation with MySQL etc etc..
Now I come to want to write a couple of sites that use content from a database in order to cross reference the content etc etc.
Rather than me sit here and ask questions forever... I would like to find a tutorial on the best (or at least a way) to create a dynamic site.
I'm trying to "do" a slashdot type site but with all the input from us with testing articles etc etc and including photos and so forth but in a templated style... I guess my biggest question is how to create the pages so that they all look they same when created on the fly.. I have ideas on how to do this but feel a tutorial would answer most questions..
And I'd rather look at a tutorial and figure it myself than constantly ask questions!
Best wishes
Owen Lees Webmaster for Largescale Online http://www.largescale.co.uk
The best ONLINE resource for all your largescale model car needs.. We supply worldwide - everything from a car to a bolt!
Check out the daily updated website today!!
attached mail follows:
could we include or call htmls from php files, some thing like perl I do not like the html file name to be displayed in the URL, want just the php file that call these htmls. thanks
attached mail follows:
> could we include or call htmls from php files, some thing like perl > I do not like the html file name to be displayed in the URL, want just > the php file that call these htmls. > thanks
include() will ease your troubles.
-- Richard Heyes http://www.heyes-computing.net/scripts/
attached mail follows:
I need to run a PHP script that will write data into a MySQL database monthly, for a recurring billing app. I have PHP as Apache module, and have been unable to compile a CGI version (I've tried a few times).
Anyway, the script needs to have variables containing the data for the fields. This seems to break lynx or wgets. I've tried \ before the ? and &, but this doesn't seem to work either.
After login info, the script recur.php is only one real line: mysql("billing","INSERT INTO CartItems VALUES ('$UID','$ItemID','$ItemQuantity','$ItemNote','$Date','$CartItemsID')");
Here's one of many attempts (all on one line):
lynx -dump recur.php?UID=18&ItemID=4&ItemQuantity=10&ItemNote=Hello&Date=20000611.032900&CartItemsID='' > /dev/null
I've searched the archives, and read all I can on the lynx/wgets/cron stuff, but don't see how to pass variables through.
-- For mutual success, Steve Veltkamp, Biz$hop Online 1713 E 3rd St, Pt Angeles WA 98362 (360)452-2418 or (800)949-8029 Fax:(603)761-1410 http://bizshop.com, http://learnhow.to and http://sell-n-net.com--
attached mail follows:
i found this same problem, when you do the lynx blahblah you need to put the address you are going to in ""'s and also you need a full path to the file ie. http://blah.server.com/recur.php?blah=1&blah2=2
your best bet may be to just include the file and then in recur.php put global's for all the variables you need from the previous page.
Cameron Brunner System Administrator Gatton Computers www.gattcomp.com.au
Steve Veltcamp wrote:
> I need to run a PHP script that will write data into a MySQL database monthly, for a recurring billing app. I have PHP as Apache module, and have been unable to compile a CGI version (I've tried a few times).
>
> Anyway, the script needs to have variables containing the data for the fields. This seems to break lynx or wgets. I've tried \ before the ? and &, but this doesn't seem to work either.
>
> After login info, the script recur.php is only one real line:
> mysql("billing","INSERT INTO CartItems VALUES
> ('$UID','$ItemID','$ItemQuantity','$ItemNote','$Date','$CartItemsID')");
>
> Here's one of many attempts (all on one line):
>
> lynx -dump recur.php?UID=18&ItemID=4&ItemQuantity=10&ItemNote=Hello&Date=20000611.032900&CartItemsID='' > /dev/null
>
> I've searched the archives, and read all I can on the lynx/wgets/cron stuff, but don't see how to pass variables through.
> --
> For mutual success, Steve Veltkamp, Biz$hop Online
> 1713 E 3rd St, Pt Angeles WA 98362
> (360)452-2418 or (800)949-8029 Fax:(603)761-1410
> http://bizshop.com, http://learnhow.to
> and http://sell-n-net.com
>
> --
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail: php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin
lists.php.net
attached mail follows:
At 04:33 11/06/00 PDT, Steve Veltcamp wrote: >Anyway, the script needs to have variables containing the data for the fields. This seems to break lynx or wgets. I've tried \ before the ? and &, but this doesn't seem to work either. <snip> >Here's one of many attempts (all on one line): > >lynx -dump recur.php?UID=18&ItemID=4&ItemQuantity=10&ItemNote=Hello&Date=20000611.03290 0&CartItemsID='' > /dev/null >
I think it is most likely that the shell is trying to parse the address you're passing to it. Suggest you try to work out the syntax of escaping/quoting chars using echo, then try again.
curl (sort of wget on steroids) allows you to POST variables instead of GETting them, but if the problem is that the shell is parsing the URL encoded variable list then switching to curl won't solve it.
HTH
Colin
attached mail follows:
I'd like to send one mail message with file attachement to many people and I want to do it with mail(...) instruction executed one time. I have html_mime_mail class, but there is no support for sending mail to multiple persons. I know I can add more addressess with comma separated list but I want that recipients don't see 'To:' filled with all addressess.
I know that there is 'bcc:' header but I don't know how to use it. I just added header "Bcc:email" and it doesn't work. Please Help! Greets Tristan Rybak
attached mail follows:
> I'd like to send one mail message with file attachement to > many people and I > want to do it with mail(...) instruction executed one time. I have > html_mime_mail class, but there is no support for sending > mail to multiple > persons.
You should grab the latest version (1.25). It can, in conjunction with Manuel Lemos' smtp class, send Bcc. Check the bottom of the class file for details. HTH
-- Richard Heyes http://www.heyes-computing.net/scripts/
attached mail follows:
I have a mysql database with a table in it. The table have two fields (code and name) Now... I want to know how I can echo all the records. I don't know exactly how to do that... I think it's something like this: $database=mysql_connect("site","user","pass"); $db = mysql_select_db("database"); $sqlcommand="SELECT * FROM products WHERE lang='".$lang."'"; $result=mysql_query($sqlcommand); $info=mysql_fetch_array($result); $RecordsNo=mysql_num_rows($result);
for ($i=1;$i<=$RecordsNo;$i++) { echo ... echo ... }
How I can echo the info in that two fields for every record ???
Plz help me...
Thank you in advance,
Marian
,-------------------.---------------------------.
/ Email \ Web sites: /
/ softglitter
gmx.net \ http://marianos.f2s.com /
/ marianos
gmx.net \ http://marian.8k.com /
`------------------------`---------------------'
attached mail follows:
Okay... I have a question. If I have a database with a table in it. The table have 2 fields and 30 records. Field 1 have 30 chars and field 2 have 100 chars in the definition of the table. All the values in the table doesn't have 30 or 100 chars with just some minor exceptions. Now... my question is... Every record will have 130 bytes ? Or the system detect the real size of a field ? (like 3 or 15 instead of 30 from definition) I don't know if I was very clear... (I don't know english very good... lol)
Marian
,-------------------.---------------------------.
/ Email \ Web sites: /
/ softglitter
gmx.net \ http://marianos.f2s.com /
/ marianos
gmx.net \ http://marian.8k.com /
`------------------------`---------------------'
attached mail follows:
Was it
$varname = 'url1'; ${$varname} = 'www.whatever.com'; echo ${$varname}; echo $url1; // Same as prev line
you were looking for?
--- Ted Knudson <tedk
cyberlink.com> wrote:
> I do not know all your code so I am guessing.
> I think you need to make the variable an array.
> Try
>
> $ref_url[$url_counter] = $url_temp;
> or
> name="ref_url_<? echo "[".$url_counter."]"; ?>"
>
> Ted Knudson
> http://www.automatedcabinets.com
> http://www.pulsarusa.com
>
> > -----Original Message-----
> > From: Clarence Kwei
> [mailto:clarencek
ifurnishing.com]
> > Sent: Tuesday, June 06, 2000 5:05 PM
> > To: PHP List
> > Subject: Constructing Variables from Variables?
> >
> >
> >
> > I'm having a really tough time figuring this
> out... I basically need to
> > generate the following variables:
> >
> > $ref_url_1
> > $ref_url_2
> > $ref_url_3
> > $ref_url_4
> > $ref_url_5
> >
> > However, the numbers at the end of "$ref_url_#"
> are generated from another
> > variable: $url_counter that's cycling in a while
> loop that's
> > creating input
> > boxes... the code:
> >
> > name="ref_url_<? echo "$url_counter"; ?>"
> >
> > My question is... how do I access the variable
> "$ref_url_1"?
> > Doing the following $url_temp = "ref_url" .
> "$url_counter" gives me a
> > variable $url_temp == "ref_url_1", but how do I
> then get the data out of
> > $url_temp?
> >
> > I've read a bunch of stuff about Variable
> Variables, but to quote the wrox
> > book, "variable variables generally create more
> confusion than
> > convenience... they are of little real benefit."
> Thanks. :-/
> >
> > This is very confusing to me and I'm not even sure
> I'm phrasing the
> > questions correctly. I'm sure there's an easier
> way to do this (I'm not a
> > programmer), but I can't get my fragile little
> mind around this.
> >
> > Any help would be appreciated. Thanks.
> >
> > --
> >
> > Clarence
> >
> > -> clarencek
ifurnishing.com
> >
> >
> >
>
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to
> php3-unsubscribe
lists.php.net
> To subscribe to the digest, e-mail:
> php3-digest-subscribe
lists.php.net
> To search the mailing list archive, go to:
> http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail:
> php-list-admin
lists.php.net
>
__________________________________________________ Do You Yahoo!? Yahoo! Photos -- now, 100 FREE prints! http://photos.yahoo.com
attached mail follows:
on 6/11/00 11:43 AM, Mark Selby at selby_mark
yahoo.com wrote:
> $varname = 'url1'; > ${$varname} = 'www.whatever.com'; > echo ${$varname}; > echo $url1; // Same as prev line > > you were looking for?
Yes, the questions was how to create a variable by joining a string and a variable... the solution was:
$var = ${"ref_url_" . $ref_count};
Nice fellow by the name of Brian pointed this out to me. It's in the manual, but I didn't relate the example to what I was looking for.
THanks.
--Clarence
-> clarencek
ifurnishing.com
- Next message: php3-digest-help
lists.php.net: "php3 Digest 12 Jun 2000 04:58:31 -0000 Issue 1729"
- Previous message: php3-digest-help
lists.php.net: "php3 Digest 11 Jun 2000 04:58:35 -0000 Issue 1727"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]