[PHP] How do I ...
Hi! How do I un-subscribe to this list? Thank you! Anthony (Tony) Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How do I ...
Hi! How do I un-subscribe to this list? Thank you! Anthony (Tony) Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Video clip
Hi! In PHP, does anyone know how I would display a video clip (.avi?) on a specific spot on a Web page? Thanks! Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Downloading files - Plz hlp
Hi! In PHP, is there a way to allow the user to download a demo file (e.g.: sample.exe) to their computer? And, then, automatically return to the Web site? Thanks! Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Downloading files
Hi! In PHP, is there a way to allow the user to download a file (e.g.: sample.txt) to their computer? And, then, automatically return to the PHP-generated Web page. How can the file be stored in C:\sample.txt, for example? Thanks! Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Disable pic copy/save?
Hi! A client wants to test market two versions of an advertising but wants to disable the users' ability to copy/save the ads (right click, copy/save). How can this be done in PHP? Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP vs. ASP
Hi! How does PHP differs from ASP? Are there any advantages in using PHP over ASP? Or the other way around? Thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Passing variables
Dear Justin, After reading Kevin Yank's "Managing Users ..." at www.sitepoint.com, I tried the following 2 scripts. Unfortunately, the variable $course is NOT being passed to the 2nd script. Thus, per the script, the Home page is displayed. Why? --- 1st script --- --- 2nd script --- --- HTML code here --- "; }; flush(); exit; ?> Thanks! Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Authentication
Dear Richard, Again thank you for your reply. I'm sorry to keep bothering you. Please tell me when to stop. Let me explain what I'm trying to do and maybe you'll point me in the right direction. I'm developing a "paid" Web site for business courses. Some pages will be available to all visitors (e.g. the Home page). Other pages will be available to "paid" visitors. The usernames, passwords, and courses paid for will be stored in a MySQL table. One of the pages will be a form to ask a user for his/her username, password, and course paid for. The form will be sent to a PHP script that validates the responses. I' know how to do this. In that PHP script I'd like to create a "session variable" (i.e.: the course #) that would be used to validate each page of the course. At the top of each course page (PHP script) there would be an if statement (if course # equals "session variable" display page, else go elsewhere). Can you help? Thank you! Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Plz help w/ global variables
To test global variables, I wrote the following PHP script: (1) When the script is called several times, the variable is increased accordingly. Thus, it exists globally. But when I un-comment line (6), the Web page ("contents.php) is displayed but I cannot echo the variable. Why? Thanks! Tony PS: Richard, thank you for your reply, but I still don't understand why is not passed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help w/ sessionl variables plz!
The following PHP script doesn't pass $course ("statistics") to the next script. Why? Thanks! Tony -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] User generated Web pages?
I'm trying to develop a software package for end users with no knowledge of PHP. The package would allow these users to generate Web pages displaying a custom questionnaire to be used by consumers to answer questions online. I thought of writing a PHP script that asks the end users the type of questions to be displayed, the questions themselves to be displayed, and, if required, the responses to be displayed. This information would be stored in a MySQL database. I then would write another PHP script that would dynamically generate the questionnaire based on the information stored in the MySQL database. The types of questions include text fields, radio buttons, check boxes, menu selections, and text areas. Is this the right approach or is there another way? Thanks! Anthony Rodriguez ([EMAIL PROTECTED]) to be -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] mail() source code
When mail() sends, via sendmail, an e-mail to an invalid address, it's returned to the "envelope-sender" (e.g.: the ISP), NOT returned to the "from" address, or the "return-path" address, etc. that are included with mail()'s 4th parameter. I'm planning to write a "modified" mail() to include the "true" return-path. In order to do so, I need to communicate directly with sendmail and, in my newbie's opinion, a good start would be to review the source code of the mail(). Where can I find it? Thank you! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Query/Error
I've a php script that creates (inserts) a new record in a MySQL table. It executes, goes to the next page, but it doesn update the db> The db name and table name are OK. I've printed the values passed to the script and it's OK too. What code can I add to the script to find out the error of the query? Here's the script: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] No takers?
Please HELP! PROBLEM When a php script uses mail() and sendmail, if the e-mail address is not right, the e-mail is returned to the envelope sender (the hosting provider), NOT to the "From", "Reply-To", "Return-Path", or any other additional headers included in mail(). Apparently, this problem is faced by any user who utilizes a hosting provider. SOLUTION I've found 2 php classes (developed by Manuel Lemo) that address this problem. The first, email_message.php was built to send MIME-encoded messages. The second, sendmail_message.php extends the first by addressing the return-path problem. Unfortunately, the first parses the message to allow sending MIME-encoded messages. For many who are only sending plain text messages, this is unnecessary processing. HELP NEEDED I would like to consolidate these 2 classes and eliminate the parsing. Unfortunately, I'm a newbie and need help from the pros. If anyone is interested in participating in this project, please e-mail me directly at [EMAIL PROTECTED] After completion this "new" class would be submitted to www.phpclasses.org for everyone to use. Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] F/U on sendmail return-path (not 4 newbies)
I've tried the "From" header (4th parameter) in mail(). It doesn't work. My ISP does run Apache but I have no access to their files. Thanks! At 06:56 PM 5/3/2002 +0100, you wrote: >On 3 May 2002 at 12:48, Anthony Rodriguez wrote: > > PROBLEM > > > > When a php script uses mail() and sendmail, if the e-mail address is > > not right, the e-mail is returned to the envelope sender (the hosting > > provider), NOT to the "From", "Reply-To", "Return-Path", or any other > > additional headers included in mail(). > > > > Apparently, this problem is faced by any user who utilizes a hosting > > provider. > >The envelope address can be set on a per script basis by setting the >sendmail_from value >using ini_set(). Alternatively, if you are using Apache, you can set it in >a .htaccess file. > >-- >Stuart -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] sendmail return-path (not 4 newbies)
PROBLEM When a php script uses mail() and sendmail, if the e-mail address is not right, the e-mail is returned to the envelope sender (the hosting provider), NOT to the "From", "Reply-To", "Return-Path", or any other additional headers included in mail(). Apparently, this problem is faced by any user who utilizes a hosting provider. SOLUTION I've found 2 php classes (developed by Manuel Lemo) that address this problem. The first, email_message.php was built to send MIME-encoded messages. The second, sendmail_message extends the first by addressing the return-path problem. Unfortunately, the first parses the message to allow sending MIME-encoded messages. For many who are only sending plain text messages, this is unnecessary processing. HELP NEEDED I would like to consolidate these 2 classes and eliminate the parsing. Unfortunately, I'm a newbie and need help from the pros. If anyone is interested in participating in this project, please e-mail me directly at [EMAIL PROTECTED] After completion this "new" class would be submitted to www.phpclasses.org for everyone to use. Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Changing field size
I've a VARCHAR(4) field that I want to change to a VARCHAR(6) field. What would happen to the existing data in MySQL db? Thanks! Tony ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Return path (php/sendmail)
Does "Reply-To" works for you? My Web hosting provider runs php (4.1.1) / sendmail (8.10.2) / apache (1.3.20) / linux red hat (6.2) and I don't get bounced e-mails. Any suggestions? Tony ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How to send an email to everone listed in a file
Dear David, You're going to have 2 problems: (1) You're going to overload the outgoing mail server. I've done it. Now i use a newsletter-type mailing list. (2) Invalid e-mail addresses will be returned to your hosting provider, not to the "From: ..."address. I'm looking for an answer to this now. Here's the code I use for 1 e-mail. \n"); @mysql_close($connection); header ("location:add_5.htm"); flush(); exit; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Sendmail 8.10.2 headers
As you may know, headers included in the 4th argument of PHP's mail() are sent to the outgoing mail server. What header(s) can I send to sendmail 8.10.2 (running under Linux Redhat 6.2) in order for invalid e-mails be returned to my e-mail address rather than my hosting provider's default address? Thank you! Tony Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] F/U on Returned Mail
In line 6 (below) I tried both "Return_Path:<[EMAIL PROTECTED]>" and "[EMAIL PROTECTED]". I still don't get back the e-mail sent to a non-existent address. Can you help? Thank you! Anthony Rodriguez ([EMAIL PROTECTED]) --- PHP script --- (1) \r\n". (6) "[EMAIL PROTECTED]\r\n"); (7) exit; (8) ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Return-Path
Can you help me? When I call the following script: (1) \r\n", (6) "Return-Path:<[EMAIL PROTECTED]>\r\n"); (7) exit; (8) ?> I get the following error message: Warning: Wrong parameter count for mail() in ... (file_name) ... on line 6. By the way, I tried it with and w/o the \r. Any suggestions? Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Returned e-mail (PHP mail function)
I just send my ISP the following question: One of my PHP scripts automatically sends a "Thank You" e-mail to users who just registered. I use PHP's mail function. If, during registration, the user enters the wrong e-mail address the e-mail would, of course, be returned. Who is the e-mail returned to? PHP's mail function, as far as I know, doesn't have a "From" field. Any comments? Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Help w/ "join" syntax
When I call the following script, $qry_1 doesn't work (No Query # 1!). DONE"; flush(); exit; ?> Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Changed localhost?
All of a sudden Apache is nor running correctly under Windows 98. It appears that somehow localhost was changed from 127.0.0.1 to something else. Does the fact that I now have a 24/7cable connection to the Net cause the problem? Thanks! Anthony Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Mail () problems - Need help!
I''ve a php script that gets e-mail addresses from a MySQL db and then using the mail() sends the same message to 100+ recipients. I tested the script twice. FIRST TEST. (1) I commented out the mail() routine. (2) I looped to get the e-mail addresses. (3) I echoed the e-mail addresses on the screen. It worked fine (displayed 136 e-mail addresses) and fast! SECOND TEST. (1) I uncommented out the mail() routine. (2) I used my own e-mail address as the recipient in the mail(). It was supposed to loop to get the e-mail addresses, display them on the screen, and send me an e-mail every time (136 times). It loaded very slow (loading indicator). Finally it displayed "url not found" with the name of the script file. And, I got no e-mails. Is there a conflict between php mail() and the mail server when multiple e-mails are involved? Thanks! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Duplicate e-mails
I've a php script that gets e-mail addresses from a MySQL database and then sends the same e-mail message to about 100+ addressees. There are no duplicate addresses in the db. When I call the script the e-mails do get send but in duplicate and, instead of linking to a "Task Done" page, it shows "url not found". There is no duplication within the script and the url called is there in the same folder as the script. Is there a problem with php's mail function when it's used for multiple messages? Or is there a processing time limit that makes the script to be processed twice? Scripts are run using Apache under Unix. Thank you! Anthony F. Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Duplicate e-mails
The following php script sends two (2) e-mails to each addressee. Why? \n"); }; mysql_free_result($result_1); mysql_close($connection); header ("location:done.htm"); exit; ?> Anthony Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Plz help w/ query
The following query displays 0 e-mails. Why? Tbl con_inf holds 51 records w/ 51 usernames. Tbl scr_149 holds 37 records with 37 equivalent usernames of which 14 show date_done=0. Thanks! Anthony F. Rodriguez ([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] Why while doesn't work?
Although the table con_inf in db sbwresearch contains 3 records with username as the first column, the following short script generates a blank page: Why? I've use the statement in other scripts and it works! Thanks! -- 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] Plz help w/ php/MySQL
The following php script successfully e-mails both messages but it doesn't update in the table "scr_149" the column "notified". Why? \n"); $result_2=mysql_query($qry_2,$connection) or die ("No query # 2!"); }; mysql_free_result($result_1); $qry_3="select * from scr_149 where q05a=\"0\" && notified=\"n\""; $qry_4="update scr_149 set notified=\"y\" where username='$username'"; $result_3=mysql_query($qry_3,$connection) or die ("No query # 3!"); while ($row_2=mysql_fetch_array($result_3, MYSQL_ASSOC)) { $username=$row_2["username"]; $e_mail=$row_2["e_mail"]; mail("$e_mail", "News from SBW Research", "$message_2", "From:SBW Research <[EMAIL PROTECTED]>\n"); $result_4=mysql_query($qry_4,$connection) or die ("No query # 4!"); }; @mysql_free_result($result_3); @mysql_close($connection); header ("location:done.htm"); exit; ?> Thanks! Anthony F. Rodriguez ([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] Going blind? Plz hlp w/ parse error
Please help! There is a parse error in like 10: etc. Thank you! -- 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] Help w/ sprintf
What are the directives for the sprintf function to format an integer with commas (e.g.: 1,250,560)? Thanks! -- 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] Pre-loading HTML form w/ mySQL data
I've a mySQL db with user information (e.g.: name, address, phone, etc.). I'd like to pre-load an HTML form with the existing user information in order to enable the users to update some of the information. Are there any PHP sample scripts that I may look at to do this? Thank you! -- 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]