[PHP] mail() function problem

2002-08-31 Thread Akhmad D. Sembiring
Dear All, I have a little problem with mail() function, PHP Code: -- mail($email, Membership ok, $themsg, From: [EMAIL PROTECTED]\r\n); mail([EMAIL PROTECTED], , , From: $email\r\n); -- Why does the second mail()

Re: [PHP] Ridding myself of HTML tags

2002-08-31 Thread Paul Roberts
have a look at peg_replace in the man, you could also get your users to save as filtered html which get rid of some of it, there's also a MS tool Microsoft Office HTML Filter 2 that will clean it some more, it says it's for word 2000 but it works fine for word 2002/XP. but your best option is

Re: [PHP] few things...

2002-08-31 Thread Andrew Brampton
comments inline - Original Message - From: Matt Zur [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 31, 2002 4:40 AM Subject: [PHP] few things... First of all... I'm a bit confused is there really a difference between echo and print? They seem to do the same thing?

Re: [PHP] mail() function problem

2002-08-31 Thread Justin French
I think mailing list managers like Yahoo, ezmlm, etc all have features in them to suspect bots and programs from subscribing/posting to the groups. I know I've had trouble subscribing/posting to groups managed by ezmlm... Probably there is a header or two that PHP automatically sets which makes

RE: [PHP] mail() function problem

2002-08-31 Thread Dave at Sinewaves.net
Most mailing lists reject mail if the Subject is blank. That would probably explain why your subjectless 2nd example is disappearing into the void. Dave -Original Message- From: Justin French [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 31, 2002 3:20 AM To: Akhmad D. Sembiring;

[PHP] Re: php and gnupg problems.

2002-08-31 Thread Jon Lawrence
Richard, Thanks for the reply. 'top' shows that the script is being run as nobody. the '2' stuff allow the password to be passed as a file descriptor and I think it is this that is breaking. I have setup a nobody directory just for this. I then set the HOME variable to point to this directory.

[PHP] Submit form from javascript code

2002-08-31 Thread Madjid Nasiri
Hi all I need submit a form from javascript code. My code near this code: !-- My Code -- form name=myform action=... method=POST input type=hidden name=id value=0 /form script language=javascript function submitform(iId) { document.myform.elements['id'].value=iId; document.myform.submit();

RE: [PHP] calling sql results inoto variables

2002-08-31 Thread victor
The silly me, I had an exit; inside the for loop and I was wondering why id only looped once, somebody slap me! - Victor www.argilent.com -Original Message- From: Victor [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 31, 2002 7:52 AM To: [EMAIL PROTECTED] Subject: [PHP] calling sql

[PHP] Re: command line argument vs. urlencode ?

2002-08-31 Thread Renato Lins
\+ does not work too, php treat command line arguments as a POST/GET , so I should urlencode/urldecode, I would like to know if there is a alway to turn this behavior off. Thanks any way. Renato Richard Lynch wrote: Any one know why the + (plus sign) is not passed as argument to $argv

[PHP] Script Execution via URL

2002-08-31 Thread Sascha Braun
Hi everybody, i wrote a script which will be executed by HREF's. If a command is going to be executed by a click on a link the page reloads itself and jumps in the part of the script, which should be executed. Normaly I wrote some like this for doing this: echo 'a

[PHP] newest entry in db

2002-08-31 Thread Victor
How can I use php to get the newest entry from mysql database? Ie, if I make a timestamp and then I want to retrieve the last timestamp I made how do I go about doing it? Any php or mysql documentation? - Victor www.argilent.com

[PHP] Last URL visited

2002-08-31 Thread Monil Chheda
Hello, I am a PHP rookie. I would like to knoe as to how can i get the url of the page I last visited on my present URL eg. Suppose I visited http://www.eliteral.com ... On Clicking or going to any other link on the pages , is it possible to get a url something as

[PHP] header problem

2002-08-31 Thread mike
i'm setting up a messages option on my site, i was looking in the documentation and read that if headers are not included in an e-mail, the message is sent to the junk folder, i don't use hotmail (so i would not know), however i am adding headers: using // The headers $myHeaders = From:

[PHP] working with images

2002-08-31 Thread stu9820
Is there a way to determine what a user clicked from a page and pull info from that page to the new page from an array? Example on one page: echo a href='test.php?picName=$lines[$i]'img src='Bid2002/$lines[$i]'/anbsp;; ? on the test.php page how do i determine which picture the user clicked

[PHP] why do i get this error please tell me?

2002-08-31 Thread Victor
for($i = 0; $i sizeof($check); $i++) { # start repating query # turn pictures in order delete capability off mysql_query(UPDATE kodak_user_pictures SET order=1 WHERE ID='$check[$i]') # turn off pictures or die ('Unable to turn bit off '.mysql_error()); } # end repeat You have an error in your

Re: [PHP] why do i get this error please tell me?

2002-08-31 Thread Chris Knipe
You have an error in your SQL syntax near 'order=1 WHERE ID='2'' at line 2 ORDER is a reserved word in MySQL. Change the query and escape order aswell 'order'='1' WHERE ID='2' Or, rename the order column to something else. -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] why do i get this error please tell me?

2002-08-31 Thread victor
Yep, figured it just now, thanks anyway, ahhh.. You'd thing they put reserved names right besides the damn mysql command in the manual. Alas it shall not be so. - Victor www.argilent.com -Original Message- From: Chris Knipe [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 31, 2002

[PHP] RE : include interpreted php file

2002-08-31 Thread you
Hi, Thanks for u help. But i just wanna include a php file in an other. But the included file must be interpreted before including it. Thx kciop -Message d'origine- De : Richard Lynch [mailto:[EMAIL PROTECTED]] Envoyé : samedi 31 août 2002 02:12 À : you Cc : [EMAIL PROTECTED] Objet :

[PHP] Dumb Question

2002-08-31 Thread Gerard Samuel
And I feel foolish asking... What is meant by 'procedural code' ??? -- Gerard Samuel http://www.trini0.org:81/ http://dev.trini0.org:81/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] RE : include interpreted php file

2002-08-31 Thread Chris Knipe
fopen() Regards, Chris Knipe Cell: (072) 434-7582 MegaLAN Corporate Networking Services /--- | This email is confidential and may contain legally privileged information. | If you are not the intended recipient, you must not disclose or use | the information contained in it. If you have

[PHP] alter switch variable inside case?

2002-08-31 Thread Joe Janitor
I'd like to be able to modify the switch variable inside a case statement, like this: switch ($foo) { case 'step2': do_step2(); if ($error) $foo='step1'; //repeat step1 break; case 'step1': do_step1(); break; case 'a_third_thing': do_something_else(); break; } Can

RE: [PHP] why do i get this error please tell me?

2002-08-31 Thread Mark Charette
Ahem. Why not check out the MySQL docs for reserved words (they _are_ right there ...): http://www.mysql.com/doc/en/Reserved_words.html PHP Docs are for PHP. MySQL Docs are for MySQL. PHP != MySQL. -Original Message- From: victor [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 31,

Re: [PHP] Dumb Question

2002-08-31 Thread @ Edwin
My "dumb" answer :) Try Google. Type: "procedural code" You might want to check, "object-oriented" as well... I'm sure, you'll find helpful explanations... - E And I feel foolish asking... What is meant by 'procedural code' ??? -- Gerard Samuel http://www.trini0.org:81/

Re: [PHP] alter switch variable inside case?

2002-08-31 Thread @ Edwin
Actually, you can--just don't "break;". Try it. - E I'd like to be able to modify the switch variable inside a case statement, like this: switch ($foo) { case 'step2': do_step2(); if ($error) $foo='step1'; //repeat step1 break; case 'step1': do_step1(); break;

Re: [PHP] alter switch variable inside case?

2002-08-31 Thread Joe Janitor
If you don't break, it continues to execute all the code until the end of the switch, ignoring any subsequent case statements. In my example, eliminating the break after step2 would cause execution of do_step1(), but also do_something_else(), which is not desired. --- @ Edwin [EMAIL PROTECTED]

[PHP] posting form values doesn't work

2002-08-31 Thread Øystein Håland
This is my form: FORM NAME=answerform METHOD=POST Your name:BRINPUT TYPE=TEXT NAME=name SIZE=20 Group:BRINPUT TYPE=TEXT NAME=group SIZE=8nbsp;nbsp; INPUT TYPE=BUTTON VALUE= OK! onClick=Javascript:validate(this); /FORM and the function validate: function validate() { var ok=true; if

Re: [PHP] alter switch variable inside case?

2002-08-31 Thread @ Edwin
Well, you don't have to take away all the "break;". :) For example, only here: switch ($foo) { case 'step2': do_step2(); if ($error) $foo='step1'; //repeat step1 break; - E If you don't break, it continues to execute all the code until the end of the switch, ignoring any

Re: [PHP] Dumb Question

2002-08-31 Thread Gerard Samuel
Google didn't have much to offer. But if I should also check 'object-oriented' then I believe it deals with classes. I thought it was something else. Just trying to figure out if phpdoc is for me, which it seems like its not :( Thanks @ Edwin wrote: My "dumb" answer :) Try Google. Type:

[PHP] RE: [PHP-DB] RE: [PHP] why do i get this error please tell me?

2002-08-31 Thread victor
I meant besides the UPDATE or SELECT or any filed that those words might interfere with... - Victor www.argilent.com -Original Message- From: Mark Charette [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 31, 2002 2:18 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: [PHP-DB] RE:

Re: [PHP] alter switch variable inside case?

2002-08-31 Thread Joe Janitor
Regardless of how many break statements you take away (even if only 1), case statements appear to be ignored after the first match is made. I need a way to make the switch statement continue evaluating case-matches, even after the first case match is made. Further, it should allow one case

Re: [PHP] Dumb Question

2002-08-31 Thread @ Edwin
Google didn't have much to offer. Sorry 'bout that. Actually, if you have an idea of what OO ("object-oriented") is, I think I can say that "procedural" is just the opposite of it. I tried Google myself and this came out on top: "Writing Procedural Code in Non-Procedural SQL" There's a

Re: [PHP] alter switch variable inside case?

2002-08-31 Thread @ Edwin
It seems like you can do something like this: switch ($foo) { case 'a': if (do_a()) echo "a was done"; else print_menu(); // changes here break; case 'b': if (do_b()) echo "b was done"; else print_menu(); // changes here break; case 'menu': print_menu();

Re: [PHP] posting form values doesn't work

2002-08-31 Thread Jason Wong
On Sunday 01 September 2002 02:52, Øystein Håland wrote: This is my form: FORM NAME=answerform METHOD=POST Your name:BRINPUT TYPE=TEXT NAME=name SIZE=20 Group:BRINPUT TYPE=TEXT NAME=group SIZE=8nbsp;nbsp; INPUT TYPE=BUTTON VALUE= OK! onClick=Javascript:validate(this); /FORM and

RE: [PHP] RE: [PHP-DB] RE: [PHP] why do i get this error please tell me?

2002-08-31 Thread Mark Charette
Then check the MySQL manual using the URL I posted! PHP doesn't care about the hundred or so reserved MySQL words. MySQL does. Perhaps you're confusing the two. Please check what I said: PHP != MySQL The documentation for each is separate. PHP has convenience functions for talking to a MySQL

Re: [PHP] Submit form from javascript code

2002-08-31 Thread Jason Wong
On Saturday 31 August 2002 19:43, Madjid Nasiri wrote: I need submit a form from javascript code. My code near this code: Please ask javascript questions on a javascript list. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design

php-general Digest 31 Aug 2002 20:39:41 -0000 Issue 1558

2002-08-31 Thread php-general-digest-help
php-general Digest 31 Aug 2002 20:39:41 - Issue 1558 Topics (messages 114754 through 114788): Re: Ridding myself of HTML tags 114754 by: Paul Roberts Re: few things... 114755 by: Andrew Brampton Re: mail() function problem 114756 by: Justin French 114757

[PHP] Re: Last URL visited

2002-08-31 Thread Marcel Besancon
Hallo, I don't know if I understood you correctly. But one way to get the url of the last visited page is using $foobar = getenv('HTTP_REFERER'); This write the url of the last visited page to the variable $foobar. Hope this helps Best regards Marcel -- PHP General Mailing List

Re: [PHP] Dumb Question

2002-08-31 Thread Michael Sims
On Sat, 31 Aug 2002 14:04:11 -0400, you wrote: And I feel foolish asking... What is meant by 'procedural code' ??? It's the opposite of declarative code. Here's a page that briefly explains the difference: http://www.wdvl.com/Authoring/DB/SQL/BeginSQL/beginSQL2_1.html and

[PHP] UPDATE Query

2002-08-31 Thread Sascha Braun
I want to know if its possible to update two databases with one query? Please look at this example: UPDATE news_db, newsreferenz_db SET news_db.head = 'DFB Pokalasfasf', news_db.text = 'alkfhaslk fl akshf lakshf lkahs lfk aslf yxvyxvyxvyxv', newsreferenz_db.kat_id = '3' WHERE news_db.id = '6'

[PHP] Download site down?

2002-08-31 Thread Rodolfo Gonzalez
To the php.net webmaster, there seems to be a problem with the us2.php.net site: I reach it with ping, but going to http://us2.php.net/do_download.php?download_file=php-4.2.2-Win32.zip causes an eternal Sending request (and telneting to port 80 of that host doesn't open). Regards. --

[PHP] Re: Download site down?

2002-08-31 Thread Sperry Russ
Rodolfo Gonzalez wrote: To the php.net webmaster, there seems to be a problem with the us2.php.net site: I reach it with ping, but going to http://us2.php.net/do_download.php?download_file=php-4.2.2-Win32.zip causes an eternal Sending request (and telneting to port 80 of that host

[PHP] Re: UPDATE Query

2002-08-31 Thread CHAILLAN Nicolas
Can you please post the exact error? -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet Sascha Braun [EMAIL PROTECTED] a écrit dans le

[PHP] Re: newest entry in db

2002-08-31 Thread CHAILLAN Nicolas
Hi, You should do a select into your db, order them by date DESC then you get with mysql_fetch_row the first row ie $row[O]. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group.

[PHP] Re: Script Execution via URL

2002-08-31 Thread CHAILLAN Nicolas
Yes you can use that syntax. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet Sascha Braun [EMAIL PROTECTED] a écrit dans le message de

[PHP] Re: Script Execution via URL

2002-08-31 Thread CHAILLAN Nicolas
Note that ./? is better than ? -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet Sascha Braun [EMAIL PROTECTED] a écrit dans le message

[PHP] Re: alter switch variable inside case?

2002-08-31 Thread CHAILLAN Nicolas
Yes you can. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com - Hébergement Group. www.WorldAKT.com - Hébergement de sites Internet Joe Janitor [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL

[PHP] Re: posting form values doesn't work

2002-08-31 Thread CHAILLAN Nicolas
This is not Javascript or HTML's newsgroup. You should read some docs about PHP/HTML before doing that, you're currently using Javascript for nothing. -- Merci de nous avoir choisi. - Thanks you for your choice. Nicos - CHAILLAN Nicolas [EMAIL PROTECTED] [EMAIL PROTECTED] www.GroupAKT.com -

[PHP] problem with links

2002-08-31 Thread Brad Lahr
I compiled php on a linux machine and am experiencing problems whith links. going to www.domainname.com/index.php in a browser works fine. Clicking on links on this page such as www.domainname.com/?page=teamteamcode=4938412 just sends me back to the main www.domainname.com page. Did a forget to

[PHP] database suggestions...

2002-08-31 Thread Matt Zur
I released v1.5 today for my PHP toolbars for HomeSite v5.0. The toolbars are free! The biggest change was the additiona of a separate toolbar for db's. So I'm asking for any suggestions to improve that, since I feel that is where most of the work should be done. If you have any other

[PHP] whoops... here's the address...

2002-08-31 Thread Matt Zur
http://zurnet.com/dl/hsphptb/ -Matt Matt Zur wrote: I released v1.5 today for my PHP toolbars for HomeSite v5.0. The toolbars are free! The biggest change was the additiona of a separate toolbar for db's. So I'm asking for any suggestions to improve that, since I feel that is where

RE: [PHP] UPDATE Query

2002-08-31 Thread Mark Charette
No, only one db at a time may be updated. The where clauses can contain multiple db. -Original Message- From: Sascha Braun [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 31, 2002 7:04 PM To: PHP Mailingliste Subject: [PHP] UPDATE Query I want to know if its possible to update two

RE: [PHP] Submit form from javascript code

2002-08-31 Thread Todd Pasley
Hi Instead of retrun false; im sure you meant return false; The reason its working with confirm and the like is because of their return code which is actually true. Try changing it to return true, im pretty sure that will fix it. Cheers, Todd. -Original Message- From:

Re: [PHP] Dumb Question

2002-08-31 Thread Gerard Samuel
Here is my stab at it. One person described it as the opposite of OO. So something similar to - ?php do_this() { // do this code } do_that() { // do that code } if (isset( $_GET['foo'] )) { do_this(); } else { do_that(); } ? would be considered procedural code. If Im wrong I

[PHP] Fw: [PHP-LANG] About file premission

2002-08-31 Thread Bryan
- Original Message - From: [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Sunday, September 01, 2002 2:25 AM Subject: Re: [PHP-LANG] About file premission On Sun, 1 Sep 2002, PHP wrote: i'm facing a problem that is when i create a new file on mmy server

Re: [PHP] Download site down?

2002-08-31 Thread Andrew Brampton
It seems that php.net does load balancing of its downloads and every time you open the downloads page it displays downloads from different mirrors... so keep refreshing http://www.php.net/downloads.php until you find a mirror which works for you. Usually all the mirrors work first time but I did

[PHP] image manipulation

2002-08-31 Thread tux
Hey all, I was just wondering if anyone could recommend any tutorials or books or functions i should look into, to do the following: - decrease the size(kilobytes wise not height/width) of an image - imprint a transparent logo onto every picture displayed any feedback greatly appreciated. jo

Re: [PHP] Re: alter switch variable inside case?

2002-08-31 Thread Joe Janitor
Could you elaborate? In the example I posted, setting foo=step1 in the first case segment does NOT cause execution of the second case segment, as would be the case if it was actually re-evaluating the match upon subsequent case statements. --- CHAILLAN Nicolas [EMAIL PROTECTED] wrote: Yes

[PHP] mail() again...

2002-08-31 Thread Liam MacKenzie
It seems nearly everyone has a problem with this function, probably because it relies on third party software. It doesn't work. That's my problem! I'm using Sendmail as my MTA, not running as a Daemon as I have POP3/SMTP server running on the same machine (eXtremail) I'm starting Sendmail like

[PHP] Re: mail() again...

2002-08-31 Thread Manuel Lemos
Hello, On 09/01/2002 02:30 AM, Liam Mackenzie wrote: It seems nearly everyone has a problem with this function, probably because it relies on third party software. Yes, mail() is probably the most problematic of the frequently used functions of PHP. That can be for many reasons like the need