Re: [PHP] bulk emailer

2005-03-11 Thread Nicholas W . Miller
On Mar 11, 2005, at 2:34 PM, Richard Lynch wrote: what i'm currently doing: -using mysql_fetcharray() to loop through an array of query results -for each iteration of the loop, get an email address from the current row in the result set, and use it with the mail() function to send out an individua

[PHP] pulling content from a URL

2005-03-04 Thread Nicholas W . Miller
I'm writing a script that needs to put the contents of an external URL into a variable. I need to include some sort of error checking that will kill this request if for some reason the URL request hangs for more then 15 seconds. In researching this, I think the correct function to use is fsoc

Fwd: Re: [PHP] passing variables in javascript

2001-02-22 Thread Nicholas W. Miller
> H ... is there anyway to do this without requiring the page >with the link to use PHP? > >> >>You have to encode each part of the query string on the URL correctly: >> >>> . "&url=" . >>urlencode("http://www.domain.com/biz/pubs.html#antitrust"); >>?>', 'email','width=410,height=435

[PHP] passing variables in javascript

2001-02-22 Thread Nicholas W. Miller
I have a text link that is coded to open a PHP file in a popup window: http://www.domain.com/biz/pubs.html#antitrust','email','width=410,height=435')">Emailthis article For some reason the $url variables cuts off the anchor, so I only get this: $url = http://www.dttgfsi.com/ebiz/pubs_eviews.h

[PHP] connectivity test

2001-02-19 Thread Nicholas W. Miller
Is it possible to test a user's line speed with PHP? I have a site with a lot of video. Each clip has the standard 28/56/128 speed choice. I would like to offer the user an interface where they can test their line speed and get a suggestion on which file to view. Any experience ... ideas?

[PHP] pgp text formatting

2001-02-16 Thread Nicholas W. Miller
I sent this off a couple days ago, but did not see it on the list ... please excuse the traffic if you are seeing this for a second time. I am writing some code (PHP3/4 on Apache) that encrypts some text using PGP and writes it to a log_file. I am having problems getting the line breaks to remai

[PHP] counting files

2001-02-16 Thread Nicholas W. Miller
I have a web page that displays an image. I would like to randomize which image it displays when the page loads. Every possible image will be the same dimensions and file format. Each image will be named a consecutive number begining with 1. The code I am using is: $number = rand(1, 10); $fi