Re: [PHP] mail() usage in for loops
1. many providers will not accept email messages with horrendous amounts of BCC: entries (very spam indicative) 2. do not use mail() to do this 3. there are many excellent PHP mail classes (PHPClasses has a few and PHPMailer is an excellent alternative as well) 4. IM(H)O, if you are going to send out large amounts of mail, dump sendmail. QMail is much faster at SMTP. Factors you may need to consider: If this is a newsletter, why not use something like ezmlm or majordomo? Are these individualized messages (custom inserts for names or email addresses, custom unsubscribes, etc.)? Many other programmers will mention things like having a dedicated outbound- SMTP machine, while fending the bounces and unsubscribes on another, hardware types (SCSI over IDE), etc. Make sure you have thought your application needs through before beginning programming. Quoting Mohanaraj [EMAIL PROTECTED]: Dear all, I have read that using mail() in a for loop to send a lot of emails ( around 1k-10k ) emails is not advised due to the fact that it can be resource intensive hence or the script might take so much time that it ti,es out. However what if i append all the emails into the Bcc: header as follows and make only 1 call to mail. 1. Is this better? 2.Will it still be resource hungry? 3.What would be the best way to handle mailing to many email addresses from PHP. This is for a newsletter (not SPAM) application I am working on. 4.How does this compare against using sockets to directly speak to the SMTP server from a efficiency aspect? The code I am planning on using (which I got online too ) is as follows : $email = [EMAIL PROTECTED]; $subject = test; $body = This is a test.; $headers = From: [EMAIL PROTECTED]; $headers .= Reply-to: [EMAIL PROTECTED]; //the following willl have all the email addresses which will receive the email $headers .= Bcc: [EMAIL PROTECTED]; $headers .= Bcc: [EMAIL PROTECTED]; $headers .= Bcc: [EMAIL PROTECTED]; $headers .= Bcc: [EMAIL PROTECTED]; $headers .= Bcc: [EMAIL PROTECTED]; //..and so on... $headers .= Content-Type: text/plain; charset=iso-8859-1\n; mail ($email, $subject, $body, $headers); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php === Michael Geier CDM Sports, Inc. Systems Administration email: [EMAIL PROTECTED] phone: 314.692.3540 --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] MySQL field data type for ISBN numbers
functions you should consider: trim urlencode/urldecode rawurlencode/rawurlencode try echo '{$_GET['isbn']}' (or $query) on the result page to see what you are truly getting. I bet the browser is encoding the variable in the GET string, even though it doesn't appear that way to you. Or, is the action of the FORM GET, or is it POST? if (!isset($_GET['isbn'])) { echo no isbn; } should verify that (if you can see the data in the URI string, it is GET...if not, POST) Quoting James Johnson [EMAIL PROTECTED]: Hi, Don't know if this is an OT or not. I have a MySQL database for books. The ISBN field is set as varchar(15) and I've put a test ISBN number in of 1--111-11. Can someone tell me why this SQL query isn't working? $ISBN = $_GET['isbn']; $query = SELECT * FROM book_details WHERE ISBN = '$ISBN'; Since the field is a varchar, should wrapping the variable (1--111-11) in single quotes work? If I change the data in the table to 'abcd' and run this query $ISBN = 'abcd'; $query = SELECT * FROM book_details WHERE ISBN = '$ISBN'; It works. PHP Version 4.3.2 mysql-4.0.14b Thanks, James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php === Michael Geier CDM Sports, Inc. Systems Administration email: [EMAIL PROTECTED] phone: 314.692.3540 --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Grabbing info from other Sites
assuming the login isn't necessary (which it probably is), you could use something like Snoopy (http://sourceforge.net/projects/snoopy/) to POST/GET the required web page and process as required. Quoting Ow Mun Heng [EMAIL PROTECTED]: Hi, I have this need/want to grab information from sites for my own usage and wondering how to do it. Here's an example. 1. Log into finance.yahoo.com (assuming I need to log on) 2. Type the list of shares I want 3. Let Yahoo process it 4. Use PHP or some other scripting language to pull the data and put it into my database. Is this possible at all? Cheers, Mun Heng, Ow H/M Engineering Western Digital M'sia DID : 03-7870 5168 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Sunday, July 13, 2003 10:58 PM To: [EMAIL PROTECTED] Subject: php-general Digest 13 Jul 2003 14:58:27 - Issue 2173 php-general Digest 13 Jul 2003 14:58:27 - Issue 2173 Topics (messages 154985 through 155003): Re: touch file on shared web server? 154985 by: Paul O'Neil 154991 by: Jason Wong Re: Code and Good Design Methods 154986 by: zbranigan 154987 by: zbranigan 154988 by: Dan J. Rychlik 154994 by: Ray Hunter 154995 by: Robert Cummings Re: OK, So I am new to these List. Win2000 help! 154989 by: John Nichel 155002 by: John Nichel Re: Newbie Directory question 154990 by: olinux Re: Mailing list server with PHP frontend 154992 by: Juan Nin 154993 by: Manuel Lemos 154996 by: Paul Chvostek How does PHP interact when using Java? 154997 by: Jan Bro Weird Date problem driving me crazy... 154998 by: Boaz Yahav php script billing receipt 154999 by: Duncan Re: Need PHP on Win2000 Pro 155000 by: Burhan Khalid 155001 by: John A. Thomason Re: dump $_POST into variables 155003 by: Marek Kilimajer 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] -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php === Michael Geier CDM Sports, Inc. Systems Administration email: [EMAIL PROTECTED] phone: 314.692.3540 --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] weird issues w/PHP install
I have installed PHP numerous times using the same configuration and this is the first time I have run into this issue. solaris 2.8 on e3500 apache 1.3.27 ( --enable-module=so --prefix=/usr/local/apache) php 4.3.2 ( --with-apxs --with-mysql --with-mssql=/usr/local/freetds --enable-ftp --with-mcrypt=/usr/local --with-pear --with-zlib ) mcrypt, freetds both installed fine installation of PHP is fine attempt to restart apache give: Syntax error on line 205 of /usr/local/apache/conf/httpd.conf: Cannot load /usr/local/apache/libexec/libphp4.so into server: ld.so.1: /usr/local/apache/bin/httpd: fatal: relocation error: file /usr/local/apache/libexec/libphp4.so: symbol ap_block_alarms: referenced symbol not found Google of this error returns some issues with zlib around the php 4.0 - 4.2 versions. any thoughts would be extremely helpful. mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] AOL
How many times do people have to respond to your same email before you get a clue? http://marc.theaimsgroup.com/?l=php-generalm=105621501902618w=2 http://marc.theaimsgroup.com/?l=php-generalm=105593686426998w=2 http://marc.theaimsgroup.com/?l=php-generalm=105556674131637w=2 PHP is server side. MySQL is server side. A client side browser (in this case AOL), has no bearing on the output produced by PHP/MySQL. You have been told to check your HTML output at least twice for missing/unsupported tags. http://webmaster.info.aol.com/compatibility.html Quoting rml [EMAIL PROTECTED]: I have recently created a site that has some PHP in it. It works fine in all browsers except AOL. I can see some of the PHP page in AOL except the one that fetches information from MySQL database. I also host my own server for this site. Maybe this is a server setting or securtity issue. Anyone see this before? Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php === Michael Geier CDM Sports, Inc. Systems Administration email: [EMAIL PROTECTED] phone: 314.692.3540 --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] / [Newman] When i send an email it ...
The error is your answer. The server is setup to relay mail for specific domains/users. Evidently, the user [EMAIL PROTECTED] is not one of those users/domains. If you are the administrator for this box, check your documentation for your specific SMTP server for setting relay for that domain. If you are not the admin, contact that person. Quoting Philip J. Newman [EMAIL PROTECTED]: My code is this ... ?php // MAIL HEADERS. $headers = X-Priority: 1\n; $headers .= Return-path: [EMAIL PROTECTED]\n; $headers .= From: \Philip Newman\ [EMAIL PROTECTED]\n; $headers .= Reply-To: \[EMAIL PROTECTED] [EMAIL PROTECTED]\n; $msg = Dear $mUserName,\n\n; $msg .= You have requested a user account on Untouched. To activate this account\n; $msg .= click on the link below. Please save this email so you dont forget your user\n; $msg .= name and password.\n\n; $msg .= $siteDomain/b.php?ID=$timestamp.\n\n; $msg .= If you have received this email in error please disregard it and delete it...\n\n; $msg .= Username: $mUserName.\n; $msg .= Password: $mPassword\n\n; $msg .= Thanks.\n; $msg .= Philip Newman\n; mail($mEmail, The Crush Me Account Info., $msg, $headers); ? Warning: mail() [function.mail]: SMTP server response: 550 , Sender unknown in D:\Hosting\Undercover\includes\inc_signup.php on line 138 Thats my error ... will the server only relay the message to A local account? - Original Message - From: Catalin Trifu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 16, 2003 10:08 AM Subject: [PHP] Re: [Newman] When i send an email it ... Hi, This a SMTP server error. It looks like you did not add the header FROM: yourname [EMAIL PROTECTED]; looks like u'r SMTP does not allow for messages without FROM header as the PHP function: mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]]) shows, you can add extra headers to the mail message, so this is what you need to do. Cheers, Catalin Jason Marks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] When i send an email i get the following error. Warning: mail() [function.mail]: SMTP server response: 550 , Sender unknown in D:\Hosting\Crushme\includes\inc_register.php on line 138 Is this a server or a PHP error? / Philip -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php === Michael Geier CDM Sports, Inc. Systems Administration email: [EMAIL PROTECTED] phone: 314.692.3540 --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Email This Story and Print Functions
the Print this Story really doesn't have anything to do with PHP, if you are referring to actually sending the page to a printer (see Javascript) if you are storing your articles in a DB, simply pull the info out and create a mailbody for the Email this Story function. On Fri, 2003-05-30 at 02:36, Jeffrey L. Fitzgerald wrote: Thanks to Kevin, Monty and the others who helped with my earlier post... Anyone have experience with PHP based Email This Story and Print This Story functions?? I am looking to add these along with a digital postcard mailer. -- Michael Geier [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] mail function problem
changing the value in the php.ini file is not the ideal option, as it screws things up for all of users/scripts on the server. you could use ini_set() for the script to change the sendmail_path var for that script. you could use a mail class that does alot of the grunt work for you (Manuel Lemos normally posts some classes from his site, however I use PHPMailer (http://phpmailer.sourceforge.net) and have never looked back. On Fri, 2003-05-30 at 03:26, David Grant wrote: Bersani Francesco wrote: Hi, I have a problem with the mail function; it always sends mails assuming in the from field the user [EMAIL PROTECTED]. I tried to override it with this code: ? $email = [EMAIL PROTECTED]; $subject = prova invio mail ; $message = parappaaa ; $headers = From:[EMAIL PROTECTED]:[EMAIL PROTECTED]; mail($email, $subject, $message, $headers); ? -- It doesn't work... Can anybody help me ? Take a peek into php.ini to change the default value. Note that you should seperate mail headers with \r\n. Regards, David -- David Grant Web Developer [EMAIL PROTECTED] http://www.wiredmedia.co.uk Tel: 0117 930 4365, Fax: 0870 169 7625 Wired Media Ltd Registered Office: 43 Royal Park, Bristol, BS8 3AN Studio: Whittakers House, 32 - 34 Hotwell Road, Bristol, BS8 4UD Company registration number: 4016744 ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. ** -- Michael Geier [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] php/mysql group by headache
preface: have RTM on mysql GROUP BY I have a mysql db with a number of entries... table| id | name | info | version 1 x foo1 2 x foob 2 3 x foobar 3 my sql is similar to select id,name,info from table GROUP BY name order by name,version desc in an effort to only return one result of type (x), but get the most recent info (foobar) and version (3), however this isn't the case. GROUP BY returns the first info and version it comes across. Has anyone run across this issue, or know of a solution? Thanks. -- Michael Geier [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] multi-d array frustration
having alot of difficulties wrapping my head around this and looking for ideas... SQL TABLE: 1...n fields auto, name, description, version, etc... auto= unique id name= possibly non-unique string, but with unique version description = possibly non-unique string, based on name version = unique to name ie. 1 typeXX brand1 2 typeXx-brand2 3 typeYy-brand1 4 typeZz-brand1 5 typeZZ brand2 sql = select * from table where [ conditions ] order by auto problem: display unique name, and associated rows based on highest version ie. (see above) typeX (version 2): x-brand typeY (version 1): y-brand typeZ (version 2): Z brand through a mixture of the original sql query, multisort_array and array_unique, I have been able to get the unique names (which I could do with one sql query), however, I have not been able to get: select * from table where [conditions] and greatest version for unique name any help appreciated === Michael Geier CDM Sports, Inc. Systems Administration email: [EMAIL PROTECTED] phone: 314.692.3540 --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Output yyyymmdd formatted date || 20030131 to FridayJanuary 31, 2003
the real question here is are you storing your dates in a file or database. If in a database (say MySQL), you can use the native DATE_FORMAT function of MySQL to pull the date out in the proper format. Otherwise, have a look at http://www.php.net/date Quoting CF High [EMAIL PROTECTED]: Sorry for the frequent simple posts... I've been storing my dates in mmdd format (apparently this is a bad idea). In any case, I need to display this date format as [day name month name day #, year] e.g. Friday January 31, 2003. Any ideas? Thanks for any leads, --Noah -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php === Michael Geier CDM Sports, Inc. Systems Administration email: [EMAIL PROTECTED] phone: 314.692.3540 --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] REPOST: installation problems (php 4.2.3/mcrypt/curl)
repost [no response] I searched MARC first, but none of the answers there seemed to work. I have noticed similar issues on there, but the only answers are make sure you compiled with package X. Installing: RH 8 Apache 1.3.27 (--prefix --enable-module=so) PHP 4.2.3 (--with-apxs --enable-ftp --with-esoob --with-mcrypt --with-curl --with-openssl) Openssl 0.9.7 Mcrypt 2.5.3 (--disable-posix-threads) Curl 7.10.2 (--enable-ftp --enable-http --with-ssl) No errors during installation. Apache/PHP loads without error. phpinfo shows mcrypt and curl support, yet both error out on basic functions (mcrypt_module_open, curl_init)(PHP Fatal Error: call to undefined function...) mcrypt support enabled version = 2.4.x Supportedciphers twofish rijndael-128 rijndael-192 rijndael-256 saferplus rc2 xtea serpent safer-sk64 safer-sk128 cast-256 loki97 gost threeway cast-128 blowfish des blowfish-compat tripledes enigma arcfour panama wake Supported modes ofb cfb nofb cbc ecb stream ncfb ctr mcrypt.algorithms_dir /usr/local/lib/libmcrypt mcrypt.modes_dir /usr/local/lib/libmcrypt CURL support enabled CURL Information libcurl/7.10.2 OpenSSL/0.9.6b zlib/1.1.4 Any help appreciated. mike --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] installation problems (php 4.2.3/mcrypt/curl)
I searched MARC first, but none of the answers there seemed to work. Installing: RH 8 Apache 1.3.27 (--enable-module=so) PHP 4.2.3 (--with-apxs --enable-ftp --with-esoob --with-mcrypt --with-curl --with-openssl, etc.) Openssl 0.9.7 Mcrypt 2.5.3 (--disable-posix-threads) Curl 7.10.2 (--enable-ftp --enable-http --with-ssl) No errors during installation. Apache/PHP loads without error. phpinfo shows mcrypt and curl support, yet both error out on basic functions (mcrypt_module_open, curl_init)(PHP Fatal Error: call to undefined function...) mcrypt support enabled version = 2.4.x Supportedciphers twofish rijndael-128 rijndael-192 rijndael-256 saferplus rc2 xtea serpent safer-sk64 safer-sk128 cast-256 loki97 gost threeway cast-128 blowfish des blowfish-compat tripledes enigma arcfour panama wake Supported modes ofb cfb nofb cbc ecb stream ncfb ctr mcrypt.algorithms_dir /usr/local/lib/libmcrypt mcrypt.modes_dir /usr/local/lib/libmcrypt CURL support enabled CURL Information libcurl/7.10.2 OpenSSL/0.9.6b zlib/1.1.4 Any help appreciated. mike --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: BBCode?
This will replace all versions (open and close) of bold, italicize and underline tags with brackets using preg_replace. $text = preg_replace(/\[(\/)?([biu])\]/,\\1\\2,$text) ; definition - find [ = \[ - match IF slash exists = (\/)? - match one of the following = ([biu]) - find ] = \] - matches get put into 'memory' (\\1 \\2) even if not found (ie. slash didn't exist). - replace with 'first match' 'second match' - NOTE : in PCRE regexs, brackets and forward-slashes are special characters and must be escaped (preceded with a back-slash) when looking for them as regular characters. /definition Even if you do not know PCRE yet, don't hamstring yourself looking for a solution that is too complicated and time-consuming. EREG does not work very well on this type of problem. Buck up, learn PCRE and use this type of solution (if you find something that works for you, use it...by no means does the code above cover every tag you 'may' want to use). Builder.com has a pretty good regular expression checker for PERL-style regexs that make PCRE pretty easy. http://builder.com - Go To: Web Scripting (left menu) - Cool Tools (right menu) - Regular Expression Inspector (2/3 way down page) .mike === Michael Geier CDM Sports, Inc. Systems Administration email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Need MENTOR for Fantasy football project
As this is the industry I am in, maybe I can offer a few hints/suggestions to start you on your way: start with the database - is your user table built (how much information about the user do you need) ? - are you validating the incoming email address (sending an email to confirm entry) ? - are you using a seperate table for storing their selection information ? - yes, are you storing transactions (logging changes) ? - no, what happens if they want more than one team ? - do you have your rules for your game planned out (deadlines, team size, salary cap) ? - do you have a support methodology prepared ? I can answer some generalized questions about methodology of the game (so as not to violate my employment agreement), and some general programming issues that you may have. ps. Just to give you an idea, we maintain a staff of programmers, support commisioners and system administrators (about 35 people), not to mention accounting, advertising and graphic development, to run about 40-50 games a year, including games for USA Today, Excite/iWon and Tops. This development has been over 10 years going. What I am trying to get at is, are you trying to make a friendly 'office league' type interface for your friends, or are you trying to make something alot bigger? Be prepared for everything you could potentially need for a large operation (did I mention legal department?). === Michael Geier CDM Sports, Inc. Systems Administration email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 Quoting Karl James [EMAIL PROTECTED]: Jason, I am trying small with forms, reading php But I have so many questions that books cant answer sometimes Thus the reason I need a guide... Would you be able to help me with that? -Original Message- From: Jason Wong [mailto:php-general;gremlins.com.hk] Sent: Friday, November 08, 2002 10:14 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Need MENTOR for Fantasy football project On Saturday 09 November 2002 04:33, Karl James wrote: I have the php bible 4 book but it Doesn't tell you how to do things all the way And still leaves with lots of questions. Questions such as? If you have fairly specific questions then they are usually answered quite quickly on this list. Open-ended requests such as yours, as you've found out for yourself, are usually ignored. Honestly it looks as if you're trying to do something beyond your current capabilities and you don't even know where to begin. If this is a commercial project just save yourself some grief and pay someone to do it for you. Otherwise start small. Try the many tutorials that are available on the web, learn about how to connect/retrieve/display information from a database, how to perform user authentication etc. Once you've broadened your knowledge you may be able to see where the pieces fit together and then you can start your project. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Innovation is hard to schedule. -- Dan Fylstra */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Add content thru e-mail
/etc/aliases foo: |/path/to/script.php script.php ? $fp = fopen(php://stdin,r) ; $buffer = ; while (!feof($fp)) { $buffer .= fgetc($fp); } $email_parts = explode(\n\n,preg_replace(/\r/,,$buffer)); $headers = $email_parts[0]; $body = $email_parts[1]; /* ...etc... */ ? Quoting Chris Kay [EMAIL PROTECTED]: Could you not put a .forward to a php script? Correct me if I am wrong or even point me in the right direction Cause I am thinking of doing this soon. Regards Chris Kay -Original Message- From: Timothy Hitchens (HiTCHO) [mailto:phplists;hitcho.com.au] Sent: Monday, 4 November 2002 12:59 PM Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Add content thru e-mail The simplest way to do this to setup a pop3 account and have a php script check this account at intervals via cron. Or you could write a pipe script via aliases. Timothy Hitchens (HiTCHO) [EMAIL PROTECTED] On Sun, 3 Nov 2002, Rodrigo de Oliveira Costa wrote: Hi people, i'd like to know if there is a way to add content to a database thru sending an e-mail, and if there is how it would be done. Thanks, Rodrigo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php === Michael Geier CDM Sports, Inc. Systems Administration email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 --- This email sent using CDM Sports Webmail v3.1 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [bob@elitegroup.on.ca: RE: php emails]
I have never used BSD so forgive any of the obvious: 1. Sendmail installed on this machine? 2. Is the php.ini value for 'sendmail_path' correct? 3. Is there any firewall or port.deny for SMTP? 4. Can you send mail from the CLI? -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] -BEGIN GEEK CODE BLOCK- Version: 3.12 GCM d-(---) s+:+ a31 C+++(++) ULVIS$ P---+ L+++ E--- W+++ N++ o+(-) K+ w(---) O M-- V--()@ PS+(++) PE Y+ PGP t+ 5+ X+ R++* tv+ b(+++) DI+ D++ G e+* h--- r+++ y --END GEEK CODE BLOCK-- Quoting The Doctor [EMAIL PROTECTED]: Anyone knows why the below is hapeening? My PHP info page is on http://www.nk.ca/phpinfo.phtml - Forwarded message from Bob Federer [EMAIL PROTECTED] - Return-Path: [EMAIL PROTECTED] Received: from doctor.nl2k.ab.ca (IDENT:[EMAIL PROTECTED] [127.0.0.1]) by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6) with ESMTP id g8M1FDh7013565 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for [EMAIL PROTECTED]; Sat, 21 Sep 2002 19:15:13 - 0600 (MDT) Received: (from root@localhost) by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6/Submit) id g8M1FDkG013564 for [EMAIL PROTECTED]; Sat, 21 Sep 2002 19:15:13 -0600 (MDT) Resent-Message-Id: [EMAIL PROTECTED] Received: from ELITE (CPE0050ba761922.cpe.net.cable.rogers.com [24.157.79.145]) by doctor.nl2k.ab.ca (8.12.6.Beta1/8.12.6) with SMTP id g8LMD1h8000209 for [EMAIL PROTECTED]; Sat, 21 Sep 2002 16:13:04 -0600 (MDT) Reply-To: [EMAIL PROTECTED] From: Bob Federer [EMAIL PROTECTED] To: System Administrator a.k.a. The Root of the Problem [EMAIL PROTECTED] Subject: RE: php emails Date: Sat, 21 Sep 2002 18:12:57 -0700 Message-ID: [EMAIL PROTECTED] MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Importance: Normal In-Reply-To: [EMAIL PROTECTED] Resent-From: [EMAIL PROTECTED] Resent-Date: Sat, 21 Sep 2002 19:15:13 -0600 Resent-To: The Doctor [EMAIL PROTECTED] Hello Dave, The php mail function is still not working. I've changed the coding a little bit to help you debug it. The code on the page is now: ?php mail('[EMAIL PROTECTED], [EMAIL PROTECTED]', 'An email to two people', 'This is a test'); ? As you can see, it will send an email to both you and me. To test the page you can go to community updates or sellwithpictures. The two URLs are: http://www.sellwithpictures.com/php/emailtest.html and http://www.communityupdates.com/php/emailtest.html Please email me when you have it working. Thanks for your effort. Apart from being a neat thing for a page to be able to do, I'm doing a quote for a large site where they require emails to be sent out by the site when someone fills out a form, so we need to have this figured out. Thanks again, bob -Original Message- From: System Administrator a.k.a. The Root of the Problem [mailto:[EMAIL PROTECTED]] Sent: September 21, 2002 12:54 PM To: Bob Federer Subject: Re: php emails On Sat, Sep 21, 2002 at 01:43:03PM -0700, Bob Federer wrote: Hello Dave, I'm going to want to be able to send emails form the Community Updates and Sell With Pictures sites using PHP. The code to send a simple email is very straightforward in php (it's one line of code) example below: ?phpmail('bob_elitegroup.on.ca', 'test email', 'This is just a test');? If the system is set up correctly on your end, it should work flawlessly. Unfortunately, at this point, it is not working. Apparently, the php.ini file needs to be adjusted at your end. The link below has details of how to do it. http://www.webmasterbase.com/article/679 Could you look into this and let me know when you have made this functional? Try now. Thanks bob -- contact: Dave Yadallee NetKnow The Internet Knowledge Company [EMAIL PROTECTED] http://www.nl2k.ab.ca 990-3244 - End forwarded message - -- Member - Liberal InternationalOn 11 Sept 2001 the WORLD was violated. This is [EMAIL PROTECTED] Ici [EMAIL PROTECTED] Society MUST be saved! Extremists must dissolve. Beware of defining as intelligent only those who share your opinions -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - This email sent using CDM Sports Webmail v2 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Getting PHP to submit a form to google
a more OO approach might be to use the Snoopy PHP class (http://snoopy.sourceforge.net) This will allow you to do GET/POST method requests on URLS with query variables, ie: POST $snoopy = new Snoopy; $submit_vars[q] = [ form variables ]; $submit_url = http://www.google.com/search;; $snoopy-submit($submit_url,$submit_vars); $result = $snoopy-results; GET $snoopy = new Snoopy; $submit_url = http://www.google.com/search?q=;.[ form variables ]; $snoopy-fetch($submit_url); $result = $snoopy-results; Then simply parse through $result; -Original Message- From: lallous [mailto:[EMAIL PROTECTED]] Sent: Friday, August 16, 2002 4:24 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Getting PHP to submit a form to google by simple ways, you can do that: $query = urlencode(your query string) $result_string = join('', file(http://www.google.com/search?q=$query)); Elias Henry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi all I would like to be able to get the result of a search from google. Namely I would like to write a PHP script that will generate and submit a form (internally i.e. on the server) using the GET method to http://www.google.com/search setting the field q to the search words. It should then parse the results so that I can feed them back to the user in a form that I choose. How should/can I go about this? TIA. Henry. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] [Followup] Exploding Zip Codes! (Using PHP's explode function)
are you trying to insert into MySQL DB? Or select out of the DB? insert: table structure: zip city etc... connect to db; loop through your array { //while ($array = array_shift($data)) create $sql from array parts ($sql = insert into table (zip,city) values ('.$array[0].','.$array[1].'); $result = mysql_exec($sql,$db); } select: connect to db; $sql = select from table where zip = '.[insert query here].'; $result = mysql_exec($sql,$db); .m -Original Message- From: Keith Posehn [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 13, 2002 2:14 PM To: [EMAIL PROTECTED] Subject: [PHP] [Followup] Exploding Zip Codes! (Using PHP's explode function) Final question on this (I hope). I have the code together now to put it all the zip codes into and array--but now I need to add those zip codes to a sql statement for the WHERE clause. Example: SELECT * FROM [table] WHERE zip=[all the darn zips listed here] (or something like that) How would I set it to loop all the zip codes into this statement? I'm not worried about the SQL syntax, I can figure that out without a problem, but the php code is the question. This is in MySQL btw, and I have looked through the docs there and at php for this, but need some help from all you guru's out there. Thanks for the help! (Previous message here) I have a huge block of zip codes I need to seperate into their constituent parts for a query of a database. The block looks like this (in part): | 36310 ABBEVILLE | | 35440 ABERNANT | | 35005 ADAMSVILLE | | 35540 ADDISON | | 35006 ADGER | | 35441 AKRON | I need to use eplode (probably) to seperate this all out into two arrays, one of codes, the other of names--presumably named $zips[] and $cities[] with the rest of the data dumped. I have gone and looked at the various functions docs at php.net, but they haven't really helped to answer my question as much as I would like. Any information is appreciated. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Protect PHP coding
Acer, Did you ever consider the fact that ASP, JSP and CF jobs are advertised more because their developers actually advertise? When was the last time you saw a commerical on TV for PHP? And yet, due to PHP's extensive development and interoperability, it is one of the highest installed packages on web servers? PHB's see the word 'FREE' and think 'bd' (obvious sheep reference) because that is what the Gates' and Ellison's have taught them to believe. Companies like MS and Oracle advertise during the Super Bowl and purchase news sites to tell you what they think you should know. Do they make a superior product because they advertise? Or just one that has a prettier ribbon on it? Blaming the PHP developers (commercial and otherwise) because you cannot get a job as a PHP developer is like blaming Schwinn because you can't get a job as a bike messenger. .m Quoting Acer [EMAIL PROTECTED]: Okay fine whatever. Let's just continue sticking our heads in the sand and pretend php developers isn't last on the list of jobs available compared to asp, jsp and cf developers. That topic isn't important so back to normal and I'll ask a php question. What's the difference between = and ==? I'm too lazy to read the manual. -Original Message- From: Maxim Maletsky [mailto:[EMAIL PROTECTED]] Sent: August 3, 2002 7:42 PM To: 'Acer'; 'Rasmus Lerdorf' Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Re: Protect PHP coding Acer, what the fk are you mumbling about? (sorry for mine to you introduction) 600 people at PHP Dev Group (and I am one of them too) create and document PHP Programming Language for free, because they like it this way. You, get your boss's money, buy a Zend's encoder, make a script that, perhaps, has an equivalent freely available on sourseforge.net, encode it and stick a it price to then sell the cat in a lot to those paranoids who do not trust open source projects like your own boss does. The paranoids then make services we all here pay, and on our spare time - we keep developing the free code for you (always, because we like it this way). What are you trying to prove by being devil's lawyer here? We all know how e-business works, most of us are actually on managing positions if not job consultants. So, Acer, from now on - ask a php-general question or answer one. Deal? Sincerely, Maxim Maletsky PHP Beginner www.phpbeginner.com -Original Message- From: Acer [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 04, 2002 12:01 AM To: Rasmus Lerdorf Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Re: Protect PHP coding Okay so you support zend but hate encoders. Doesn't zend make an encoder? To me an encoder is used to sell your product. It doesn't mean people still won't release their code to add to the public knowledge. If you didn't release your code rasmus then those 600 people won't have made php what it is now so you can't have it both ways. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: August 3, 2002 2:06 PM To: Acer Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Re: Protect PHP coding Because it is a silly thread and I shouldn't be replying at all. Others in the group either have more sense or have given up on answering php-general questions. My view on encoders is that they are unnecessary and rather evil. I would never ever purchase a php-based application that did not come with the php source code. If you want to restrict your code somehow, do it through a license. People who choose to violate that license are the same people who will hack your encoded scripts anyway. And this way the honest customers will have the benefit of the code to customize, learn from, build on top of. Closed source stuff stifles innovation and I personally refuse to work on a PHP encoder for this reason. Imagine if I had never released the source for PHP? We would not be having this discussion today. I know plenty of people disagree with this view, but there you have it. -Rasmus On Sat, 3 Aug 2002, Acer wrote: I made that statement because this subject has been brought up several times and nothing has been said from the php gods. I mean out of this whole thread, your only comment is That's probably the most uninformed statement I have seen posted to this list in a very long time. -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: August 3, 2002 1:04 PM To: Acer Cc: Dennis Moore; Andrey Hristov; [EMAIL PROTECTED] Subject: RE: [PHP] Re: Protect PHP coding You'll never hear anything from the core php group since they are a tight click so it's business as usual. That's probably the most uninformed statement I have seen posted to this list in a very long time.
Re: [PHP] PHP Security Advisory: Vulnerability in PHP versions 4.2.0 and 4.2.1
Quoting Greg Donald [EMAIL PROTECTED]: It's not about that.. It's about the hell I've already been through with the new register_globals setting. Then two huge ass security holes following in the next couple of months after that. If it doesn't bother you the hassles 'the php group' is putting me, you, and alot of others through then I guess that's just you. I can't help but get pissed about it. I did not have the time to do these upgrades, but now I have to make time. php.ini: register_globals = on; this would have allowed you to upgrade and keep your projects running until you converted them to $_ arrays. And I think you seem to be taking things a little to personally. ...hassles the php group is putting YOU through? Let's see...does Andi, Zeev and Rasmus get paid to produce new versions of PHP? Do you pay licensing fees for the product? Maybe if there were fees, the Holy Trinity (grin) could create an update app that made your life easier for you. The night CERT released the security alert, I upgraded 23 servers in less than an hour. It is not hard work running three commands. You are not going to get alot of sympathy from the 'group'. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 pager: 314.318.9414 || [EMAIL PROTECTED] - This email sent using CDM Sports Webmail v2 [ http://webmail.cdmsports.com ] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Does not work
from PHP documentation: http://www.php.net/manual/en/reserved.variables.php 'HTTP_REFERER' The address of the page (if any) which referred the user agent to the current page. This is set by the user agent. Not all user agents will set this, and some provide the ability to modify HTTP_REFERER as a feature. In short, it cannot really be trusted. -Original Message- From: Saci [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 2:11 PM To: [EMAIL PROTECTED] Subject: [PHP] Does not work I tried this simple code html body Page refered by ?php echo $HTTP_REFERER.'br'; echo $_SERVER['HTTP_REFERER'].'br'; ? /body /html and I receive blank reply even if referenced from a link from other site. What am i doing wrong ? Or perhaps my server does not have referer enabled? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))
easier to just bounce his mail back at him... -Original Message- From: Jason Soza [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 09, 2002 2:34 PM Cc: Erik Hegreberg; [EMAIL PROTECTED] Subject: Re: [PHP] %%%) ) Hmm.. I wonder if there's an [EMAIL PROTECTED] that we should all be forwarding these constructive e-mails to. Nothing like getting an account blocked! Really though, Erik, go to http://www.php.net/unsub.php - it's easy. If you have English problems or something, I'm sure there's a Norwegian translation somewhere. Jason Soza - Original Message - From: Daniel Negron/KBE [EMAIL PROTECTED] Date: Tuesday, July 9, 2002 11:28 am Subject: Re: [PHP] %% %))) ))) Is this retaliation ? **DAN** |+ || Erik | || Hegreberg| || ehegrebe@onli| || ne.no| ||| || 07/09/02 03:27| || PM| ||| |+ --- ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: [PHP] | | %% %))) )| | )) | --- ---| TT -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Parse an email message for content
while not documented, PHP now has the mail-parse functions (see documentation for function list) -Original Message- From: Jonathan Duncan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 3:48 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] Parse an email message for content Ed, Thanks for the reply. Actually, I have the module version and the cgi version of PHP running on my server. I have another script that I run daily, but that is a different beast with my own content. Also, I know about egrep and preg_egrep, great functions. However, I am looking for an idea on how to actually read the email files. I have been reading about fread for reading the file and then I have considered doing an fseek to start reading where the email headers stop, and then explodeing the contents of the file separated by the = delimiter that comes in the message. However, I do not know where to start. Any pointers? Thanks, Jonathan Duncan Ed Lazor [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... You'll need to have a cgi version of PHP to use in cronjobs and you'll need to use http://www.php.net/manual/en/function.preg-grep.php Good luck =) -Original Message- From: Jonathan Duncan [mailto:[EMAIL PROTECTED]] Sent: Monday, June 10, 2002 12:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Parse an email message for content I am trying to display on a web page a daily message from a mailing list that I am on. What I want is to have a script run on my server each day at a certain time that reads the mail file that contains the daily email message, takes the Article Titles and makes them the link text to be used with the link that is provided and then have the article abstract listed below. Can anyone point me in the correct direction on how I can learn how to do this? Thank you very much, Jonathan Duncan The daily email message I get comes in the following format: *-*-*-* Start Email Message *-*-*-* EMAIL HEADERS Bulleted list of article titles -article 1 -article 2 = (That is 5 equal characters) Article 1 Title See http://some.server.com/path/to/article.html a href=http://some.server.com/path/to/article.html;Link/a See http://additional.server.com/path/to/article.html a href=http://additional.server.com/path/to/article.html;Link/a Article 1 abstract. This gives a brief excerpt of the article. = (That is 5 equal characters) Article 2 Title See http://some.server.com/path/to/article.html a href=http://some.server.com/path/to/article.html;Link/a See http://additional.server.com/path/to/article.html a href=http://additional.server.com/path/to/article.html;Link/a Article 2 abstract. This gives a brief excerpt of the article. - Copyright text ends the message -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] compile problem with gd 2.0.1
Linux Redhat 7.3 PHP 4.2.0 GD 2.0.1 during make: /bin/sh /root/php-4.2.0/libtool --silent --mode=compile gcc -I. -I/root/php- 4.2.0/ext/gd -I/root/php-4.2.0/main -I/root/php-4.2.0 - I/usr/local/apache/include -I/root/php-4.2.0/Zend -I/usr/local/mysql/include - I/usr/local/easysoft/oob/client/include -I/root/php-4.2.0/ext/xml/expat - DLINUX=22 -DUSE_HSREGEX -I/root/php-4.2.0/TSRM -g -O2 -prefer-pic -c gd.c gd.c: In function `zm_startup_gd': gd.c:303: `gdArc' undeclared (first use in this function) gd.c:303: (Each undeclared identifier is reported only once gd.c:303: for each function it appears in.) gd.c:304: `gdPie' undeclared (first use in this function) gd.c:305: `gdChord' undeclared (first use in this function) gd.c:306: `gdNoFill' undeclared (first use in this function) gd.c:307: `gdEdged' undeclared (first use in this function) gd.c: In function `zif_imagecreatetruecolor': gd.c:588: warning: assignment makes pointer from integer without a cast gd.c: In function `zif_imagecolorat': gd.c:1626: structure has no member named `tpixels' make[3]: *** [gd.lo] Error 1 make[3]: Leaving directory `/root/php-4.2.0/ext/gd' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/php-4.2.0/ext/gd' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/php-4.2.0/ext' make: *** [all-recursive] Error 1 configure: --with-apxs=/usr/local/apache/bin/apxs --enable-ftp --with-gd --enable-force-cgi-redirect --with-pear --enable-mailparse --enable-sockets --with-esoob --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/include --with-jpeg-dir=/usr/lib --with-png-dir=/usr/lib any help appreciated -- Michael Geier email: [EMAIL PROTECTED] - This mail sent through CDM Sports Webmail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] gd project question
I have the following issue: I am making a gas guage based on a percentage. ie. - a 180 degree arc is created - the range will be 0 to n (undetermined ammount) - there will be x number of entries - the needle will pount to a a percentage for (int)floor((x / n) * 100) The issue is, I have the starting pt for the needle (imagefilledarc needs the center of the 'circle' as the starting pt, which is where the needle will start too), but how would I get the x|y coordinates for the end of the needle based on a perentage of a half-circle (180 degree arc)? Appreciate any clues or ideas. --- Michael Geier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] gd project question
Did I mention I hate math [grin]... ok...so here we go so far... I am passing a variable diameter of the arc ($d), the total number of widgets possible ($n), and the number of current widgets ($x) so let's say $d = 100 $n = 100 $x = 50 $perc = $x / $n (0.50 or 50 %) degree conversion = # * (180/M_PI) asin($perc) converted to degrees = 30 acos($perc) converted to degrees = 60 my arc runs from 180 deg. to 360/0 degree, or left to right, pointing upwards (upside down U). i guess I am not getting my head around the numbers...is there anywhere on the net that has a good thorough description about a process like this? Thx. mike -Original Message- From: Darren Gamble [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 11:40 AM To: 'Michael Geier'; Php-General Subject: RE: [PHP] gd project question Good day, Wow, a high school math question. You should use asin() and acos() of the angle to get the y and x differentials, respectively. Multiply the result by the size of the needle. This assumes that your guage is oriented horizontally, and the needle sweeps from right to left, pointing upwards. Adjust the sign or switch the functions around if your gauge is different. Note that the functions operate in radians (2*pi radians == 360 degrees). Darren Gamble Planner, Regional Services Shaw Cablesystems GP 630 - 3rd Avenue SW Calgary, Alberta, Canada T2P 4L4 (403) 781-4948 -Original Message- From: Michael Geier [mailto:[EMAIL PROTECTED]] Sent: Friday, May 31, 2002 9:18 AM To: Php-General Subject: [PHP] gd project question I have the following issue: I am making a gas guage based on a percentage. ie. - a 180 degree arc is created - the range will be 0 to n (undetermined ammount) - there will be x number of entries - the needle will pount to a a percentage for (int)floor((x / n) * 100) The issue is, I have the starting pt for the needle (imagefilledarc needs the center of the 'circle' as the starting pt, which is where the needle will start too), but how would I get the x|y coordinates for the end of the needle based on a perentage of a half-circle (180 degree arc)? Appreciate any clues or ideas. --- Michael Geier -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Send html email
While I understand the necessity in not answering every question that a newbie may post, a more pleasant approach would have been: the following is documented at http://www.php.net/manual/en/function.mail.php; or see the Content-Type: header for instructions on how to do this. Do you think someone who won't read the docs, or search the archives, prior to the question understands what RTFM means? My recommendation: http://phpmailer.sourceforge.net While this is not using the mail() function, it is a more robust, more functional method of sending mail, including multi-part, SMTP-Auth, attachments, etc, that works with a variety of MTAs including Sendmail, Qmail, and direct SMTP transport. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] Quoting Liam MacKenzie [EMAIL PROTECTED]: RTFM http://www.php.net/manual/en/function.mail.php - Original Message - From: Alex Shi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 12, 2002 10:00 AM Subject: [PHP] Send html email Hi! How can I send a html email with just the build-in function mail()? Is this required to put some infomation in header field? Thanks in advance! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - This mail sent through CDM Sports Webmail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] question with sockets and XML
Hi all, I have to do the following: open a socket to an external server authenticate on that server begin retrieving articles and write to local files I am able to connect the server via Net/Sockets.php and authenticate. Now the tricky part...the data is fed via an XML format... I would like to say start reading lines starting with tag until line containing /tag then, take that information and write it to a file. The problem is that the articles are not fixed length. Any help appreciated. --- Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] compiling php 4.2 with apache 2.0.35
choices: compile PHP as a DSO module for apache (preferred) compile PHP as a static-linked module for apache - see www.php.net/docs.php for installation instructions DSO module installation: untar httpd and php distributions cd httpd-$vers ./configure --prefix=/path/to/install --enable-module=so make make install cd ../php-$vers ./configure --with-apxs2=/path/to/apache/bin/apxs {other install flags} make make install vi /path/to/apache/conf/httpd.conf { add php options to apache configuration } /path/to/apache/bin/apachectl start -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 pager: 314.318.9414 || [EMAIL PROTECTED] Quoting Michal Dvoracek [EMAIL PROTECTED]: Hello, i have problem with %subj%. It's possible to build php without apxs2 ? Building php with apxs2 - apxs must be instaled before (e.g. apache must be instaled first ?) Regards, Michal Dvoracek [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - This mail sent through CDM Sports Webmail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] problem compiling Apche 2.0.35 and PHP 4.2.0
thanks for the reply...I bucked up and installed the linux binaries anyway last night. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 pager: 314.318.9414 || [EMAIL PROTECTED] Quoting Jason Wong [EMAIL PROTECTED]: On Wednesday 24 April 2002 04:46, Michael Geier wrote: I definitely think MySQL could be the problem... RPM installation of 3.23. You need to install: MySQL-devel-3.23.X if you haven't already done so. Does anyone have any suggestions (other than installing from source)? I have a few databases running on that machine right now and would rather not have to port them over to a new installation, if I can help it. A 'whereis mysql' returned 'mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz' installing with '--with-mysql=[insert dir from above]' failed on the first If you want php's built-in mysql support just use: --with-mysql Otherwise: --with-mysql=/usr -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* Staff meeting in the conference room in %d minutes. */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - This mail sent through CDM Sports Webmail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problem compiling Apche 2.0.35 and PHP 4.2.0
OS : Redhat 7.1 apache compile option : --prefix=/path --enable-module=so php compile option : --with-apxs2=/path/bin/apxs --enable-force-cgi-redirect --with-pear --enable-ftp --enable-track-vars --with-esoob --with-gd error on php make : /bin/sh /root/php-4.2.0/libtool --silent --mode=compile gcc -I. -I/root/php-4.2.0/ext/mysql/libmysql -I/root/php-4.2.0/main -I/root /php-4.2.0 - I/usr/local/apache/include -I/root/php-4.2.0/Zend -I/root/php-4.2.0/ext/mysq l/libmysql -I/usr/local/easysoft/oob/client/include -I/root/php- 4.2.0/ext/xml/expat -D_REENTRANT -I/root/php-4.2.0/TSRM -DTHREAD=1 -g -O2 - pthread -DZTS -prefer-pic -c thr_mutex.c In file included from /usr/include/math.h:82, from /root/php-4.2.0/main/php_config.h:1902, from my_config.h:5, from global.h:33, from thr_mutex.c:6: /usr/include/bits/mathcalls.h:176: Internal error: Segmentation fault. Please submit a full bug report. See URL:http://bugzilla.redhat.com/bugzilla/ for instructions. make[4]: *** [thr_mutex.lo] Error 1 make[4]: Leaving directory `/root/php-4.2.0/ext/mysql/libmysql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/php-4.2.0/ext/mysql/libmysql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/php-4.2.0/ext/mysql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/php-4.2.0/ext' make: *** [all-recursive] Error 1 any thoughts/fixes would be appreciated. --- Michael Geier CDM Sports, Inc., Systems Administration email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 pager: 314.318.9414 || [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] problem compiling Apche 2.0.35 and PHP 4.2.0
I definitely think MySQL could be the problem... RPM installation of 3.23. Does anyone have any suggestions (other than installing from source)? I have a few databases running on that machine right now and would rather not have to port them over to a new installation, if I can help it. A 'whereis mysql' returned 'mysql: /usr/bin/mysql /usr/lib/mysql /usr/include/mysql /usr/share/mysql /usr/share/man/man1/mysql.1.gz' installing with '--with-mysql=[insert dir from above]' failed on the first four (I would assume the header files are not located in the man pages). Appreciate any help. mike. -Original Message- From: Jerry Rasmussen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 12:19 PM To: Michael Geier; Php-General Subject: Re: [PHP] problem compiling Apche 2.0.35 and PHP 4.2.0 How did you install MySQL. If you used the RPM's this maybe the problem. I had to use the binaries - Original Message - From: Michael Geier [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 12:55 PM Subject: [PHP] problem compiling Apche 2.0.35 and PHP 4.2.0 OS : Redhat 7.1 apache compile option : --prefix=/path --enable-module=so php compile option : --with-apxs2=/path/bin/apxs --enable-force-cgi-redirect --with-pear --enable-ftp --enable-track-vars --with-esoob --with-gd error on php make : /bin/sh /root/php-4.2.0/libtool --silent --mode=compile gcc -I. -I/root/php-4.2.0/ext/mysql/libmysql -I/root/php-4.2.0/main -I/root /php-4.2.0 - I/usr/local/apache/include -I/root/php-4.2.0/Zend -I/root/php-4.2.0/ext/mysq l/libmysql -I/usr/local/easysoft/oob/client/include -I/root/php- 4.2.0/ext/xml/expat -D_REENTRANT -I/root/php-4.2.0/TSRM -DTHREAD=1 -g -O2 - pthread -DZTS -prefer-pic -c thr_mutex.c In file included from /usr/include/math.h:82, from /root/php-4.2.0/main/php_config.h:1902, from my_config.h:5, from global.h:33, from thr_mutex.c:6: /usr/include/bits/mathcalls.h:176: Internal error: Segmentation fault. Please submit a full bug report. See URL:http://bugzilla.redhat.com/bugzilla/ for instructions. make[4]: *** [thr_mutex.lo] Error 1 make[4]: Leaving directory `/root/php-4.2.0/ext/mysql/libmysql' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/root/php-4.2.0/ext/mysql/libmysql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/root/php-4.2.0/ext/mysql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/root/php-4.2.0/ext' make: *** [all-recursive] Error 1 any thoughts/fixes would be appreciated. --- Michael Geier CDM Sports, Inc., Systems Administration email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 pager: 314.318.9414 || [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] WebMail server question
You are probably thinking about IMP (http://www.horde.org) This message is actually being sent from an IMP 3.0 installation and our company is very pleased with the product. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] Quoting Chris Kay [EMAIL PROTECTED]: Not sure which one you are referring to but I been told SquirrelMail is really good http://sourceforge.net/projects/squirrelmail/ --- Chris Kay, Eleet Internet Services [EMAIL PROTECTED] --- -Original Message- From: Patrick Ni [mailto:[EMAIL PROTECTED]] Sent: Sunday, 7 April 2002 11:46 PM To: [EMAIL PROTECTED] Subject: [PHP] WebMail server question Good morning, Someone last month told me that there is free web based email server platform which relies on PHP technology. This mail server is the result of a project. I can not remember the name of the mail server. It is something like NMP, MNP, or NMD ???.. He also told me that because Apache web server supports PHP, so the email server has to be on Apache, or any other web server which supports PHP. Anyone knows this? Thank you. -- Patrick Ni Phone: (604) 719 - 2781 Email: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - This mail sent through CDM Sports Webmail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] From: Newman, PHP on non PHP servers?
create a page on the PHP server that returns the results as an html page... than use an include or frameset to put the results into the geocities page... if it wasn't a geocities site, you could use an SSI include or PHP include. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] Quoting Philip J. Newman [EMAIL PROTECTED]: Ok say I have a top ten list of something in a MySql db on server lisa.philipnz.com which runs php scripts. Is it possable to call, using a javascript information from say http://www.geocities.com/philip_newman/ this list, will the PHP exacute on lisa.philipnz.com when the script is requested from another server page. Philip J. Newman PhilipNZ :: Design Solutions http://www.philipnz.com/ [EMAIL PROTECTED] ICQ# 20482482 +64 25 6144012 - This mail sent through CDM Sports Webmail. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: F/U on mail () problems
2 - Yes. The script works if the # of e-mails is small. More than likely, the script is timing out. see http://www.php.net/set_time_limit Here's a copy: ?php $connection=mysql_connect(localhost,wagner,xxx) or die (No connection!); $db=mysql_select_db(sbwresearch_com,$connection) or die (No database!); $message=Dear consumer,\n ... etc ...\n; $qry_1=select e_mail from con_inf; $result_1=mysql_query($qry_1,$connection) or die (No query # 1!); while ($row_1=mysql_fetch_array($result_1, MYSQL_ASSOC)) { $e_mail=$row_1[e_mail]; mail($e_mail, News from SBW Research, $message, From:SBW Research [EMAIL PROTECTED]\n); echo $e_mailbr; }; mysql_free_result($result_1); mysql_close($connection); exit; ? Thanks! Anthony Rodriguez ([EMAIL PROTECTED]) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Filling Forms with $variables
You might also find it easier to type: input type=text name=name value=?=$name; ? -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 4:14 PM To: PHP Subject: RE: [PHP] Filling Forms with $variables also remember that strictly speaking, _all_ html attribute values _should_ be quoted -Original Message- From: Johnson, Kirk [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 14, 2002 9:07 AM To: PHP Subject: RE: [PHP] Filling Forms with $variables Enclose the value in quotes, like so: input type=text name=name value=?echo $name;? The browser can't know that Steven Walker is all one string unless it is quoted. It thinks the 2nd part of the name after the space is the next attribute, unless it is quoted, i.e., it is seeing value=Steven Walker Kirk -Original Message- From: Steven Walker [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 13, 2002 2:56 PM To: PHP Subject: [PHP] Filling Forms with $variables Hi, I'm having trouble setting the value of form elements using variable values. For example: ?$name = Steven Walker? form name=form1 method=post action=infocollect.php input type=text name=name value=?echo $name;? /form In the browser, the name field is only filled with Steven, and drops off everything after the space. If I echo $name outside of the form it prints fine. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Cron Job
This is an inappropriate question for this list. I would suggest either a book on learning Unix (almost any flavor will do) or seeking any number of Linux mailing lists for questions concerning the OS. -Original Message- From: karthikeyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 07, 2002 2:32 PM To: [EMAIL PROTECTED] Subject: [PHP] Cron Job Hi, How do i set cron job on Red Hat Linux. Looking forward for yours response. karthikeyan. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Check browser-type?
http://www.php.net/manual/en/function.get-browser.php -Original Message- From: Mårten Andersson [mailto:[EMAIL PROTECTED]] Sent: Friday, January 25, 2002 1:47 PM To: [EMAIL PROTECTED] Subject: [PHP] Check browser-type? Hello. I need to check wich browser-type and/or OS an visitor have to a page I’m developing. I need to know if the browser /OS is a handheld computer.. Or at least check if it’s NOT a handheld computer. Is this posible with PHP? I have just started with this programing language and it’s a bit difficult to search in PHP.net when I don’t know exactly what I am looking for.. =) Thanks. //Mårten -- Mårten Andersson Loddbygatan 2 60218 Norrköping Sverige ICQ: 86515830 URL: http://www.vanvett.net/marten -- 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] Re: getting a LAMP job in this economy
I had previously been hired by a CBS affiliate/sporting news provider and 80% of the reason was my knowledge of PHP. Although I am no longer with that job, I found it to be extremely valuable for my resume. While you won't find PHP on their main website (they use Vignette Story Server and Oracle), a large chunk of backend code and system management utilities, including a trouble ticket system, were written with PHP. Quoting Mike Frazer [EMAIL PROTECTED]: Just got a job as a PHP Programmer, actually. Kinda rare in this area, I guess it was a matter of being in the right place at the right time with the right skills. I've been hired twice in the past based at least in part on my PHP skills, as well. Mike Vincent Stoessel [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... On another list that I am on someone made this very bold statement: I've seen a lot of jobs for ColdFusion Oracle or MS SQL server experience combinations. Don't let anyone fool you, PHP/MySQL is not going to land you a job [;)] now, as someone that was making avery good living doing Linux based web application development last year and now among the jobless I am beginning to question the validity of having all of my eggs in the LAMP (linux apache mysql php) basket. I just recently built a NT4 to do some win based development on. I still have not installed any development enviroment cause it just feels so alien. Has anyone else out there feeling the pressure of going to the win32 side to pay the bills. Thoughts? -- Vincent Stoessel [EMAIL PROTECTED] Linux and Java Application Developer (301) 362-1750 AIM, MSN: xaymaca2020 , Yahoo Messenger: vks_jamaica -- 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] - This mail sent through CDM Sports Webmail. -- 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] create a file .png
problems with this email: - no script to look at problems with the script: - directory permissions? - gd installation incomplete? - php installation missing gd? -Original Message- From: aurelio [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 12:46 PM To: [EMAIL PROTECTED] Subject: [PHP] create a file .png Hi, i wanna create a file png, but i don´t want. i don´t know what happens but an error occurs... Warning: ImagePng: unable to open /home/httpd/html/pollolitoral/tempo/07012002.png for writing in /home/httpd/html/admin/generic/create_png_clima.php3 on line 80 i put imagepng($img,pollolitoral/tempo/07012002.png); please, help me Aurélio Sabino -- 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] Sendemail appends domain to mail function
set From: like this - $mailheaders .= From: XYZ Company [EMAIL PROTECTED]\n; -Original Message- From: Peter [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 4:48 AM To: [EMAIL PROTECTED] Subject: [PHP] Sendemail appends domain to mail function Hi, I have problem. Everytime that I want to send email using a PHP script from my server, it automatically appends the domain name of my server to the From: line. else { $mailheaders .= From: XYZ company\n; $mailheaders .= Reply-To: $email\r\n; $mailheaders .= Content-Type: text/html; charset=iso-8859-1\r\n; $remarks .= brbr$items; mail([EMAIL PROTECTED], quotation enquiry, $remarks, $mailheaders); ?img src=images/thank_you.gif? } } As you can see from the example above , I use XYZ company , but in the email that I receive it comes out as XYZ [EMAIL PROTECTED] It automatically appended the domain name to the end of it. How can I avoid this? Thanks. Peter -- 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] Access rights for php files on Linux?
Use include files to pass your authentication information. ? include('auth.php'); ? auth.php: ? $username=foo; $password=bar; ? put auth.php in your home directory with you as owner and apache group id as group, or create a group that contains you and apache user (probably 'nobody'). $ chmod 740 /your/home/dir/auth.php On Wed, 19 Dec 2001, Daniel Fassnauer wrote: Well, I have encounterd a problem which is quite big (for me), so I hope I find help here. My setup is a Linux Machine, running Apache with php as a module. In order for the webserver to parse the file, i have to give read permission to world. This is a problem, because about 100 people have shell access and could then just cat /www/myphpfile.php, and would thus get passwords which i dont want to share (like mysql password in the phpmyadmin config file) and general access to my code. Also, the different users on the machine want to be able to host php files with everyone else being able to read them. Is there any way i can actually do that? I must say that i am rather new to all this stuff, so i am really confused as what to do, and i would appreciate any help.. Thanks in advance... Daniel -- 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] A primary practicall for the pros- the easiest way to sort files in a directory by name or date.?
depends on how elegant you want: passthru(ls -l | awk '{print $9}' );//sort by name ascending passthru(ls -lt | awk '{print $9}' ); //sort by modification time descending add -r to the ls command to reverse the order of either sort instead of using passthru, you could use exec and pipe the information to arrays. - Original Message - From: php [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, December 15, 2001 5:24 PM Subject: [PHP] A primary practicall for the pros- the easiest way to sort files in a directory by name or date.? Hello friends, Here's the question that's bugging me, explanations are under the - line. How do you 1)Sort files in a directory by date and print/echo into an html format (and the latest article is.) 2)Fastest way to list files by titlePage name/title -- Say you have a directory that you want to sort by date/size/whatever/ What do you think would be the best way to do it? arrays? MYSQL/or other DB? string comparison? other ideas? -- My sysadmin insists on database implementation- however, i have a variety of clients that are scared of databases , or are simply content with the provider they have, that doesn't offer DB (yes, there are those still!) What do you think would be the fastest and easiest way to This is close to the famous resource grabber script, but not quite- we are talking about the basic principles of {parsing a document for certain info and echo/printing it out into html. To keep the long question short- - I, must confess that i have little experience with PHP-programming- the wonderful implementation of php-MySQL and ZEND makes it too easy for me to put everything into a database and forget the whole thing. I believe that this matter is paramount because what we're dealing with is the most fundamental and practicall execution of a site engine/ content management system- i.e . the best and fastest code for sorting a directory by titlesort by html name /title or sort by date It is easily executed by XML or (RDF, etc)but, the question remains -what do you think is the best way to execute the sorting by PHP's sorting abilities? As far as i know, there is no title sorting in php, as opposed to perl/ Am i wrong? -- Best regards, php mailto:[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]
Re: [PHP] Sending fax with php, is it possible?
I have previously done this by creating either a text or PDF document with PHP and then passing it off to HylaFAX. The only problems I was having was that I would create a legal size PDF. When I sent it through HylaFAX, the destination fax machine would not scale the PDF to various size paper, only cut off portions. I suspect however that the problem was related to a HylaFAX configuration, and not PHP. If you wish to use graphics in your fax, look at: http://www.php.net/manual/en/ref.pdf.php Otherwise, just create a plain text fax page from the form data and send it to HylaFAX. HylaFAX homepage: http://www.hylafax.org NOTE: This is a UNIX-based solution. -- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 pager: 314.318.9414 || [EMAIL PROTECTED]Â [EMAIL PROTECTED] wrote: Hi all! I have a little problem here : ) A customer wants a order made by a forminput sent to fax. Is it possible with php? Or do I have to do it some other way? Best regards Raymond -- 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] pipe email to php?
The real question is why? What is the purpose of piping the email to a PHP script? Are you trying to insert emails into a database? Are you trying to deal with emails automatically based on subject? Are you trying to deal with emails from a specific source? The answers to these questions will change how a PHP script deals with the input. Also, you are piping the information to php://stdin and using fgetc() to grab the data, correct? .mg [EMAIL PROTECTED] wrote: Hey, Ive looked.. and tried... nothing seems to work.. any ideas on how to pipe email to a php script? Ive already setup the valias.. the big question is, how to process the info when the email comes in.. kunal -- 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] ad rotation program
check out Oasis on Freshmeat...I haven't used it, but I did notice it on there. also, as already posted, PHPads. -Original Message- From: Wandrer [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 2:12 PM To: Joseph Bannon Cc: [EMAIL PROTECTED] Subject: Re: [PHP] ad rotation program At 01:37 PM 10/4/01 -0500, you wrote: Has anyone on this list developed an ad rotation program in PHP? Joseph PHP General Mailing List (http://www.php.net/) Joseph, dotBanner ( http://www.dot-banner.com ) is the one that I work on. We have your script pushing well over 6 million impressions per day with no problem. - Robert ...out of all the software I have bought on the net, you have provided me with the BEST service, HANDS DOWN man... You should be very proud of this man... thanks so much! -Deejay Paul - dotBanner www.dot-banner.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]
RE: [PHP] I am making a mailing list but....
It would help if you were a little more descriptive about this... Are you trying to do this in the To: field, the Cc: or Bcc: fields, actually in the body of a message, in a flat file, in a DB... flat file: $fp = fopen(filename,w); //emails in array while ($tmp = array_shift($array)) { fputs($fp,$tmp; ); } fclose($fp); -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: Thursday, September 13, 2001 7:19 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] I am making a mailing list but I really need help on this one, so someone please! -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 - Original Message - From: Kyle Smith [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, September 12, 2001 8:53 PM Subject: [PHP] I am making a mailing list but . how do i make php add something to a text document on the smae line cause i need the text document to look like this [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]; so well, how do i get it to add on to line 1 and would i need it to make the ; go on the last line cause php cat delete things in txt documents? -lk6- http://www.StupeedStudios.f2s.com Home of the burning lego man! ICQ: 115852509 MSN: [EMAIL PROTECTED] AIM: legokiller666 -- 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] date/time of current page
script language=javascript document.write('some text ' + document.lastmodified + ' some other text.'); /script -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 4:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [PHP] date/time of current page have you tried parsing out the name from $PHP_SELF? I would think that php wouldn't care if it gets 'index.php' or (some processing) index.php, know what i mean? jack -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 11, 2001 1:01 PM To: [EMAIL PROTECTED] Subject: [PHP] date/time of current page I want to put, into a footer include file, the last modified date of the current file being viewed. I have the following code that works when I hard code the file name - ? $dt=date(D, F d, Y g:i:s A, filemtime(index.php)); echo $dt; ? But of course that won't work as a footer for a site with over two hundred pages. What is the parameter for the current page? I tried php_self but that didn't work properly (it returned Dec 31 1969). -- Chip Wiegand Simrad, Inc [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]
RE: [PHP] Re: how to sort search results by relevance?
www.google.com search relevance searches in MySQL 1. www.mysql.com/documentation/mysql/bychapter/manual_Fulltext_Search.html -Original Message- From: BRACK [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 29, 2001 11:40 AM To: Mark Maggelet Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Re: how to sort search results by relevance? On 29 Aug 2001, at 9:18, Mark Maggelet wrote: On Wed, 29 Aug 2001 13:58:34 +0200, BRACK ([EMAIL PROTECTED]) wrote: In article 3B8A1D6A.4295.2947D@localhost, [EMAIL PROTECTED] (Yura) wrote: How to sort search results of php-mysql site by relevance? See the mysql manual's chapter on FULLTEXT indexes. I indexed column 'text' and tried to add ORDER BY text DESC in query and deleted wildcards in front of variables but still it doesn't sort results by number of found words (or parts of words). Maybe I didn't quite understand what to do? or maybe you didn't look up fulltext indexes :) But I didn't find FULLTEXT word in entire MySQL library...? God is our provider http://www.body-builders.org -- 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] Convert to int...?
(int)$siz will give you what you are looking for. although with the math below, you are going to end up with 0. $siz = 72 / 160;//returns 0.45 echo round($siz); //returns 0 echo (int)$siz; //returns 0 -Original Message- From: Seb Frost [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 22, 2001 10:07 AM To: [EMAIL PROTECTED] Subject: [PHP] Convert to int...? I didn't think php was this fussy, but the following code seems to not work because the numbers are floats. round() doesn't seem to help either: $siz=(72/160)*GetImageWidth($fileID); $offx=(8/160)*GetImageWidth($fileID); $offy=(1/2)*GetImageHeight($fileID); ImageTTFText ($im, $siz, 0, $offx, $offy, $red, cour.ttf,PROOF); Works fine if I just put $siz=72; etc - seb -Original Message- From: Tribun [mailto:[EMAIL PROTECTED]] Sent: 16 August 2001 08:30 To: [EMAIL PROTECTED] Subject: [PHP] .htaccess username ...hmmm, I would guess there is a way, but I dont know why... Can I read out the active username, which has just logged in through a .htaccess authentication??? Like the access data.. user: patrick pass: linux can PHP reads out the usersname patrick ?? (and if ,... how? ;) 10x 4 U'r time. Patrick -- 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]
RE: [PHP] Execute a PHP script from unix (crontab)
Why not use the tool built for the job? mysqldump will allow saving both data and structure. http://www.mysql.com/doc/m/y/mysqldump.html -Original Message- From: Kunal Jhunjhunwala [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 15, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Execute a PHP script from unix (crontab) Hi, There are basically two ways of doing this. Use lynx : lynx --dump http_address_to_file or Compile php as a cgi binary. You should select them based on your need. Kunal - Original Message - From: Hugh Bothwell [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, August 15, 2001 9:30 PM Subject: Re: [PHP] Execute a PHP script from unix (crontab) From: Augusto Cesar Castoldi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 1:04 AM Subject: [PHP] Execute a PHP script from unix (crontab) How can I execute a php script from the unix? like perl it's (perl file), but in unix we don't have a executable of php, it's a module ,right? Same idea as Perl, start with a shebang line to tell it where to find the interpreter: #!/usr/local/bin/php ?php // your script here... ? I should compile the script first? Nope, no need... -- 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]
RE: [PHP] Mail()
your MTA is setting the envelope, not your script. if you are using sendmail, look at the -f flag in the man sendmail page. then modify your php.ini file. Or possibly even set the variable (sendmail_path) inside of your script to include the -f flag. -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 1:34 AM To: ReDucTor Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() I have the arrows my code is : $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Errors-To: [EMAIL PROTECTED]\n; $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n; $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n; $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: Abkareno\n; $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n; if ($prom == 1) { $headers .= X-Priority: 2\n; $headers .= Importance: High\n\n; mail($emailto_owner..$emailto.,$subject,$message,$headers); and still I get the email from NO BODY [EMAIL PROTECTED] -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:25 AM To: Mahmoud Kassem; [EMAIL PROTECTED] Subject: Re: [PHP] Mail() From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- 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] Mail()
rather than be rude about it, try reading the whole message and then looking through the PHP documentation. http://www.php.net/manual/en/function.ini-set.php === ini_set (PHP 4 = 4.0RC1) ini_set -- Set the value of a configuration option Description string ini_set (string varname, string newvalue) Sets the value of the given configuration option. Returns the old value on success, FALSE on failure. The configuration option will keep this new value during the script's execution, and will be restored at the script's ending. Not all the available options can be changed using ini_set(). Below is a table with a list of all PHP options (as of PHP 4.0.5-dev), indicating which ones can be changed/set and at what level. === -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:40 AM To: Michael Geier, CDM Systems Admin Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() I said before I do not have access to the php.ini I am on a virtual Hosting ... -Original Message- From: Michael Geier, CDM Systems Admin [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 4:43 PM To: Mahmoud Kassem; ReDucTor Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() your MTA is setting the envelope, not your script. if you are using sendmail, look at the -f flag in the man sendmail page. then modify your php.ini file. Or possibly even set the variable (sendmail_path) inside of your script to include the -f flag. -Original Message- From: Mahmoud Kassem [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 1:34 AM To: ReDucTor Cc: [EMAIL PROTECTED] Subject: RE: [PHP] Mail() I have the arrows my code is : $headers .= Return-Path: [EMAIL PROTECTED]\n; $headers .= Errors-To: [EMAIL PROTECTED]\n; $headers .= X-Sender: Abkareno [EMAIL PROTECTED]\n; $headers .= From: \.$fname. .$lname.\ .$emailfrom.\n; $headers .= Reply-To: .$fname. .$lname. .$emailfrom.\n; $headers .= Content-Type: text/html; charset=iso-8859-1\n; $headers .= X-Mailer: Abkareno\n; $headers .= X-Authenticated-IP: [.$REMOTE_ADDR.]\n; if ($prom == 1) { $headers .= X-Priority: 2\n; $headers .= Importance: High\n\n; mail($emailto_owner..$emailto.,$subject,$message,$headers); and still I get the email from NO BODY [EMAIL PROTECTED] -Original Message- From: ReDucTor [mailto:[EMAIL PROTECTED]] Sent: Monday, August 13, 2001 9:25 AM To: Mahmoud Kassem; [EMAIL PROTECTED] Subject: Re: [PHP] Mail() From : Your Name [EMAIL PROTECTED] make sure you have the arrow things around it... thats in your headers... - Original Message - From: Mahmoud Kassem [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, August 13, 2001 4:20 PM Subject: [PHP] Mail() How can force my From: instead of the nobody@servername ? -- 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] e-mail confirmation #76215525
hahahaha... -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Friday, July 27, 2001 9:51 AM To: [EMAIL PROTECTED] Subject: [PHP] e-mail confirmation #76215525 This is a confirmation e-mail for your request. You can come anytime and claim your FREE Sex Toys at http://www.freevibrator.com All Free Sex Toys we feature are absolutly free with no purchase necessary whatsoever. (Small reasonable shipping charges apply) Thank You for subscribing to FreeSexToys updates list. This Is OPT-IN list. To make sure that we won't send anything to you in ERROR - You HAVE TO CONFIRM that you would like to be added to our list. To confirm that you want to be added send e-mail to: [EMAIL PROTECTED] If you received this e-mail in error (my apologies) or do not wish to be added to our list DO NOTHING. You will NOT be added to our list without Your Confirmation. Freely Yours Julie Aston [EMAIL PROTECTED] message confirmation ID#1312076215525118128826213 -- 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] need advice on project...
Project needs: create document on fly to fax to 100+ customers document will be queued up twice daily for submission document will have a logo branded @ top of page Services used: RedHat 7.1 HylaFax 4.1 PHP 4.0.6 Any insight would be appreciated. I figure I will have to configure PHP with: --with-pdflib --with-jpeg-dir --with-tiff-dir --with-png-dir --with-zlib-dir Does any one have any good code for creating PDF's on the fly with graphic images? Thanks. --- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 pager: 314.318.9414 -- 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] please help.
try using the attached class. ? $time = new timer; $time-start(); // some code $time-stop(); $total = $time-gettime(); echo $total; ? -Original Message- From: McShen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 18, 2001 11:08 AM To: [EMAIL PROTECTED] Subject: [PHP] please help. hi I wanna see how long my scripts load. So, i copied this script from phpbuilder --- ?php $timeparts = explode( ,microtime()); $starttime = $timeparts[1].substr($timeparts[0],1); $timeparts = explode( ,microtime()); $endtime = $timeparts[1].substr($timeparts[0],1); echo bcsub($endtime,$starttime,6) ? -- But i am not sure where to put that part. Can i put it anywhere within my script? And bcsub() is not install on my server. What other fuctions can i use? can i just use $endtime-$starttime? -- 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] note to PHP developers
I have noticed on the list over the past two months, an increasing number of problems with the mail() function. Mostly, people having this problem don't have sendmail installed. It would seem that PHP's mail() function was written around sendmail. Is there a way to resolve this, with either configuration flags or by re-writing the mail() function install to look for alternative MTAs??? Just thought I would point it out. My solution: - OS RH 7.1 w/Sendmail install - installed PHP 4.x - removed Sendmail - installed Qmail - changed php.ini path - qmail path --- Michael Geier CDM Sports, Inc. - Systems Administrator email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 pager: 314.318.9414 -- 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] RE: Time Taken to Process
try the attached class. $t = new timer; $t-start(); // some code; $t-stop(); $diff = $t-gettime(); echo $diff; -Original Message- From: Phil Spitler [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 1:20 PM To: [EMAIL PROTECTED] Subject: [PHP] RE: Time Taken to Process yeah, I just saw that, thanks! :) Phil -Original Message- From: Philip Hallstrom [mailto:[EMAIL PROTECTED]] Sent: Monday, July 16, 2001 2:12 PM To: Phil Spitler Cc: [EMAIL PROTECTED] Subject: Re: Time Taken to Process Look at the recent subject entitled echo vs printf. There's code to do exactly what you want. I don't think there's anything built in, but I could be wrong. On Mon, 16 Jul 2001, Phil Spitler wrote: Does anyone know an easy way to tell how long a page takes to run in ms. Maybe some variable that can be called at the bottom of the page or something. THANKS! - Phil Spitler [Applications Developer] American City Business Journals p: 704.973.1049 f: 704.973.8049 e: mailto:[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]
RE: [PHP] Is this a joke?!
I love it... server info: Server: Apache/1.3.19 (Unix) PHP/4.0.4pl1 mod_perl/1.25 -Original Message- From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]] Sent: Friday, June 22, 2001 9:44 AM To: [EMAIL PROTECTED] Subject: [PHP] Is this a joke?! Is this a joke? http://www.perl.com/search/index.php *hehe* -- 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] RE: [PHP-DB] Date field
-mm-dd in DATE format you can pull it back out however you like with the DATE_FORMAT command SELECT sometext,DATE_FORMAT(somedate,'%m/%d/%Y') AS date FROM tablename then you have two variables: sometext and date see documentation on www.mysql.com for more info on DATE_FORMAT -Original Message- From: Rosen [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 20, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Date field Hi, Can someone tell me how do stote date field in MySQL DB ? Thanks, Rosen M. -- PHP Database 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] WTF: mail() is not supported in this PHP build ???
I have never seen this problem (and this isn't my first install)... I am using: RedHat 7.1 php4.0.4pl1 qmail 1.03 I thought the problem was the fact that I didn't have sendmail installed at all (had the qmail sendmail wrapper in place though; ln -s /var/qmail/bin/sendmail /usr/[lib|sbin]/sendmail )... so I installed sendmail, recompiled php, still no luck... anyone have any ideas? I checked the archives and someone posted a similar question about this yesterday, but no response yet. Michael Geier CDM Sports Systems Administrator email: [EMAIL PROTECTED] phone: 314.991.1511 x 6505 -- 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] Maximum execution time of 30 seconds exceeded...
set_time_limit(n) where n is number of seconds (or 0 for no time limit) -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 03, 2001 5:53 AM To: 'Kraa de Simon'; Php-General (E-mail) Subject: RE: [PHP] Maximum execution time of 30 seconds exceeded... Change the max_execution_time setting in your php.ini file. You can also do it on a per-script basis but I can't remember how OTOH - a search on the manual should find it though. HTH Jon -Original Message- From: Kraa de Simon [mailto:[EMAIL PROTECTED]] Sent: 03 May 2001 11:48 To: Php-General (E-mail) Subject: [PHP] Maximum execution time of 30 seconds exceeded... Hi, Any ideas how to get by the following error? Fatal error: Maximum execution time of 30 seconds exceeded in c:\program files\nusphere\apache\htdocs\test.php on line 8 ? for($i=1;$i=9;$i++) { $lines = join(, file('http://www.progress.com/services/support/cgi-bin/techweb-kbase.cgi/web kb.html?TAB=dspkbid=' . $i)); $fp = fopen ($DOCUMENT_ROOT . / . $i . .html, w); fwrite($fp, $lines, strlen($lines)); fclose($fp); } ? Met vriendelijke groet / With kind regards, Simon de Kraa ICL Logistic Systems mailto:[EMAIL PROTECTED] ** 'The information included in this Email is of a confidential nature and is intended only for the addressee. If you are not the intended addressee, any disclosure, copying or distribution by you is prohibited and may be unlawful. Disclosure to any party other than the addressee, whether inadvertent or otherwise is not intended to waive privilege or confidentiality' ** -- 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] question about broadcast application
My bosses came to me and asked me to spec out a broadcast mailer (spam box) that clients could: - log into - choose a pre-approved list (clients could have multiple lists) - choose a stored email - send sample - send broadcast I know that Qmail and EzMLM are the products to use, but does anyone have any tips or suggestions, or see any possible problems with this (besides the obvious UCE issue)?? Commercial/Open Source application suggestions appreciated. thanx. mike. -- 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] test - pls ignore.
Michael Geier CDM Sports Systems Administration EMail: [EMAIL PROTECTED] Phone: 314.991.1511 x 6505 -- 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] Big Problem
in php.ini, put /var/qmail/bin/qmail-inject into sendmail_path -Original Message- From: Thomas Booms [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 25, 2001 6:48 PM To: [EMAIL PROTECTED] Subject: [PHP] Big Problem Hi all, I'm using on my new machine (SuSE 7.0) PHP4. In one PHP4-Script I use the mail-Function. But my /var/log/mail (qmail) does not give any entry for this mail. Is there a bug? In PHP3 it was all running good. I have a serious problem here because this is a customers site! Thanks in advance. Thomas -- 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] Screen Resolutions
PHP is server side, so it has no mthodology for detecting client side information. Try javascript. -Original Message- From: Stuart Rees [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 4:05 PM To: [EMAIL PROTECTED] Subject: [PHP] Screen Resolutions Could anyone tell me if there is a easy way of detecting screen resolutions in php, 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 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] install problem
I have not run into this problem before...so here goes. [root@bfarm1 php-4.0.4pl1]# make Making all in Zend make[1]: Entering directory `/root/php-4.0.4pl1/Zend' /bin/sh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../main -DXML_BYTE_ORDER=12 -g -O2 -c zend_language_scanner.c zend_language_scanner.c: In function `zend_fatal_scanner_error': zend_language_scanner.c:2707: Internal error: Segmentation fault. RedHat 7.0 (beta) --with-esoob --enable-ftp --enable-track-vars --enable-force-cgi-redirect I have installed on this beta OS before with no problems. any ideas? Michael Geier EMail: [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] preg question
on http://www.php.net/manual/en/function.preg-match-all.php there is a regex: $url = "http://www.catho.com.br/index.phtml"; $contents = Implode("", File($url)); preg_match_all("|href=\"?([^\"' ]+)|i", $contents, $arrayoflinks); While(List(,$link) = Each($arrayoflinks[1])) Echo "$linkBr"; that pulls allthe urls out of a document by finding the href=. What I need to find is all the urls in the document and make hrefs out of them. ie: http://www.mysite.com becomes lt;a href="http://www.mysite.com"gt;http://www.mysite.comlt;/agt; any ideas? TIA! Michael Geier CDMSports Systems Administration EMail: [EMAIL PROTECTED] Phone: 314.991.1511 x 6505 -- 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] Freshmeat Ad?
Is there a reason Freshmeat is showing a banner stating "PHP 4.01pl2 is out"? Especially since the binary is up to 4.04pl1. Michael Geier CDMSports Systems Administration EMail: [EMAIL PROTECTED] Phone: 314.991.1511 x 6505 -- 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] Sending pretty email
Although I will probably getting tarred and feathered for this, I send out at least a million (multiple emails for lists around the 200 thousand customer mark) emails a week, mostly html. When I wrote the software interface (in PHP) to do so, I mentioned to my bosses that many people would not be able to read these HTML emails (ie. AOL, Eudora, Lotus 5.0, and my beloved pine). This deterred them naught, cuz they wanted to send banners in the email. Since email with banners generated more revenue than without (however little money that may be), I was overruled. Hence, I read up on multi-part email. This can be done, and I used Richard Heyes' html-mime email class to do it. The class was based on the SMTP class that can be found on Manuel Lemos' PHPClasses site (http://phpclasses.upperdesign.com), along with the SMTP class. I now have the ability to send straight HTML, straight TEXT, or combo emails that are interpreted correctly by all email clients (including AOL clients). And, since I don't use the mail() function, it typically runs about 150% faster (mail() puts the messages in the mail queue, but the SMTP class writes directly to port 25 of the mail server). All this and it runs on a linux system that grabs the email addresses out of a M$ SQL 7 database. The database allows the customers the ability to opt-out of certain emails. So don't refrain from doing it because some people say it shouldn't be done for one reason or another. Simply fix those reasons so they don't know any different. -Original Message- From: Todd Cary [mailto:[EMAIL PROTECTED]] Sent: Sunday, March 11, 2001 8:46 AM To: Richard Scott Crawford Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Sending "pretty" email Richard - For me you are pointing out one of the dilemmas I face on a daily basis that I call the "fin dilemma". I coined this expression from the era when Detroit put fins on the cars. These did not make the car perfrom better; they only appealed to need to get a car with fins because the neighbor had one. Yet I earn my living by writing software for clients and when I suggest that they use the KISS principle, they tell me that I am not up with the times. There is a very interesting book that I came across at a friend's home addressing effective Web design. Though I cannot remember the authors name, he has done many of the "big name" magazine covers as well as some big name Web sites and he believes in simplicity. Quite a deilemma!!! Todd -- Todd Cary Ariste Software [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]
RE: [PHP] Passing values from ASP to PHP
I'm no ASP guru (never touched it actually), but...it seems as if this will add an extra "" on the end of the url. myscript.php?one=bluetwo=redthree=yellow ^ -Original Message- From: Opec Kemp [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 01, 2001 9:47 AM To: [EMAIL PROTECTED] Cc: PHP General List Subject: RE: [PHP] Passing values from ASP to PHP Hi, To enumerate the key/value in ASP from the form you'd do this % dim element dim objForm dim strURL '/* We're creating an object so that it won't matter which ' * HTTP method the previous form uses. ' */ If LCase(Server.Request("HTTP_METHOD")) = "post" Then Set objForm = Request.Form Else Set objForm = Request.QueryString End If strURL = "myscript.php?" '/* Now step through the form For each element in objForm '/* Key Name is in the "element" var ' * Value of the key is in the objForm(element) ' * Now build the Redirect string ' */ strURL = strURL Server.URLEncode(element) "=" Server.URLEncode(objForm(element)) "" Next '/* Now redirect Response.Redirect(strURL) % That should do it. I've been given a project that I want to use PHP with, but unfortunately there are unchangable hard-coded values that point clients to an ASP script residing on our server. Here's what I want to do, and I don't really know how to do it: I want to pass all the key/value pairs that are passed to the ASP script to a PHP script. I can get values with Request.Form("key_name"), but that takes hard-coding the name of the key. So if the following is passed to the ASP script: one=bluetwo=redthree=yellow Then I would want to redirect to myscript.php?one=bluetwo=redthree=yellow How do I go about walking through all the key/values that have been passed in ASP? I really don't want to have to learn this ugly language.. -- 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] RE: [PHP-DB] Resolution detect and redirect
This is the wrong mailing list for this information. try: news://comp.lang.javascript (newsgroup) http://www.javascript.com/ (website) http://www.obscure.org/javascript/ (javascript mailing list homepage) -Original Message- From: Matthew Cothier [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 27, 2001 12:17 PM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Resolution detect and redirect Why not just create a table that will resize to any resolution? Because I am using different sized images for the different resolutions as well as other page thingys. And I need the script for other things too. So can anyone help? _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. -- PHP Database 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] SNMP question
I am attempting to compile PHP with Net-SNMP package from Sourceforge (ucd-snmp-4.2.i386.rh6.2.tar.gz). configure and make/make install work fine. starting apache returns: Cannot load /usr/local/apache/libexec/libphp4.so into server: libsnmp-0.4.2.so: cannot open shared object file: No such file or directory What directory is it trying to load from, or what environment variable is it referring to? The file does exist under /usr/local/lib. Redhat 6.2 Apache 1.3.17 PHP 4.0.4pl1 --with-esoob --enable-ftp --with-xml --with-apxs --enable-track-vars --enable-force-cgi-redirect --with-mysql Thanks. Michael Geier CDMSports Systems Administration EMail: [EMAIL PROTECTED] Phone: 314.991.1511 x 6505 -- 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] trouble with odbc
I am running php4.04pl1 on RedHat6.2 with --esoob (EasySoft) connecting to MSSQL 7.0 on WinNT 4. The connection to this db works from another program on same machine. ? $connection = odbc_connect("dsn","user","password") or die ('could not connect to db'); $query = "SELECT * FROM customer WHERE email LIKE 'user@%'"; $result = odbc_exec($connection,$query) or die('could not execute query'); $count = odbc_num_rows($result); echo $count; ? $count is returning -1. When running SQL Server Enterprise Mgr. on NT box, this query reurns 3 dummy records. Does anyone see the error? All help appreciated. Michael Geier CDMSports Systems Administration EMail: [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]