Hello,
On 04/29/2004 06:44 AM, Chris O'Shea wrote:
I have a list of email addresses in mySQL from people who have signed up on
my site and I want to use PHP to email out to the list.
My initial thought was to go through the loop, sending an email to each
person, but then I saw this somewhere:
It
Hello,
On 04/30/2004 02:05 PM, Helmut Kemper wrote:
I need install sendmail in windows 9X/Me for use mail() command.
PHP work only in localhost which active site server (similar to apache)
and send mail by proxy network.
PHP never uses sendmail under Windows. Sendmail support is only
* Thus wrote Manuel Lemos ([EMAIL PROTECTED]):
Hello,
On 04/29/2004 06:44 AM, Chris O'Shea wrote:
Does anybody know the best way of doing a mass mail through php?
mail() function is just fine in most cases.
imo, php should refuse mass mailing ;)
Also, do you know how php mail()
* Thus wrote electroteque ([EMAIL PROTECTED]):
I was wondering if there is any current API for creating match/prepare
statements, therefore say i have a script to insert, update and insert in
the same post, is there a way to reduce to many queries to the database to
do it all in one hit ?
Hi List,
How would I show 100 chars after finding the first instance of a searched
word in a string.
So I have a string of which I search for the first instance of hello and
display from there 100 more chars.
My output word then be something like:
hello and show the next 100 chars...
Thank
Hallo,
ich hoffe mir kann jemand bei folgendem Problem helfen. Habe ein Formular
erstellt und darin ist ein file field eingebettet zum Hochladen von
Dateien (z.B. Word-Dokumente). Habe den Zusatz enctype=multipart/form-data
in das form tag eingefügt und an ein php-Script zur Auswertung
===
This message is for the benefit of new
subscribers and those new to PHP. Please
feel free to add more points and send to the
list.
===
1. If you have any queries/problems about PHP
try http://www.php.net/manual/en
Draw-A-Line wrote:
Hallo,
ich hoffe mir kann jemand bei folgendem Problem helfen. Habe ein Formular
erstellt und darin ist ein file field eingebettet zum Hochladen von
Dateien (z.B. Word-Dokumente). Habe den Zusatz enctype=multipart/form-data
in das form tag eingefgt und an ein php-Script zur
Luis Bernardo wrote:
Apache or IIS? CGI or ISAPI module?
Hi,
Apache and, if possible, running on Linux or BSD. For me, Windows and
IIS have to much security holes that we cannont solve (must wait that M$
want to release a security patch).
Regards,
Jordi.
--
PHP General Mailing List
How can I get the numeric Index of an array when the index is a string?
i.e
$myArray = array (first = my first value,
second = my second value,
third = my third value);
Lets say I want the Index of the my second one: this would be second
or numerid 1
php-general Digest 2 May 2004 10:48:04 - Issue 2739
Topics (messages 185111 through 185135):
Sorting text with multibyte characters
185111 by: Michal Migurski
185114 by: Red Wingate
185117 by: Michal Migurski
- Delete records in an Access DB
185112 by:
Craig Gardner wrote:
I'm working on a script that will automatically download and burn an ISO
to a CD, when passed the filename of the ISO and I want to use some sort
of progress bar to show how much of the download/burn is complete. I
was originally going to use wget to download the file,
If a user is logged in via http (authentification e.g. with .htaccess and
.htpasswd file), how can i get the username of the current logged in user?
Thanx
Harry
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
If a user is logged in via http (authentification e.g. with .htaccess and
.htpasswd file), how can i get the username of the current logged in user?
Read the manual at: http://www.php.net/manual/en/features.http-auth.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
If a user is logged in via http (authentification e.g. with .htaccess and
.htpasswd file), how can i get the username of the current logged in user?
Thanx
Harry
try $_SERVER['PHP_AUTH_USER']
rich
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Dave Carrera wrote:
How would I show 100 chars after finding the first instance of a searched
word in a string.
$start = strpos('hello',$str);
$hundredchars = substr($str,$start,100);
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect: The Magazine for
Hi List,
How can I set fopen to time out if a url is not reachable ?
I have tried set_time_limit but that dose not seem to work.
Thank you in advance for any help or pointers.
Dave C
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version:
Phpu wrote:
I want to interogate the database and the results to be placed into array.
For now i have:
$query = SELECT product_id, brand_name, model_name FROM products WHERE
product_id='$product_id';
$result = mysql_query($query) or die(error in query - $query - .mysql_error());
$results =
Anton Krall wrote:
Guys.
Im doing a small php auth system and I was wondering, how can avoid having
to do a form to pass the user and pw to the php scripts and just use the
popup auth windows on IE and NS? do you remember the names of the vars that
get passed thru that popup or how can I invoke
The following code used to work until i upgraded to 4.3.6
Code:
---
// Get RSS feed
$c =
curl_init('http://www.vegguide.org/rss/feed.rss?all=1omit_hours=1');
curl_setopt($c, CURLOPT_ENCODING, 'gzip');
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_COOKIEFILE,
Draw-A-Line [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hallo,
ich hoffe mir kann jemand bei folgendem Problem helfen. Habe ein Formular
erstellt und darin ist ein file field eingebettet zum Hochladen von
Dateien (z.B. Word-Dokumente). Habe den Zusatz
enctype=multipart/form-data
The following code used to work until i upgraded to 4.3.6
Code:
---
// Get RSS feed
$c =
curl_init('http://www.vegguide.org/rss/feed.rss?all=1omit_hours=1');
curl_setopt($c, CURLOPT_ENCODING, 'gzip');
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_COOKIEFILE,
* Thus wrote Dac Chartrand ([EMAIL PROTECTED]):
The following code used to work until i upgraded to 4.3.6
Code:
---
// Get RSS feed
$c =
curl_init('http://www.vegguide.org/rss/feed.rss?all=1omit_hours=1');
curl_setopt($c, CURLOPT_ENCODING, 'gzip');
curl_setopt($c,
Check curl_errno() and curl_error().
it sounds like there is a problem with your libcurl
I'm not getting any errors using the above functions.
Sample PHP code is available at:
http://www.vegguide.org/plain/rss-code/get_and_parse_vegguide_rss_feed-php
(Requires an account to be able to
Sorry, this is a dupe.
See: Is Curl GZIP support broken? in this same newsgroup.
Thank you.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PS: I'm using w2k with apache.
http://www.php.net/get/php-4.3.6-Win32.zip/from/a/mirror
Check curl_errno() and curl_error().
it sounds like there is a problem with your libcurl
Curt
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello gang
My company is looking for someone who can work freelance/part-time on some
web projects we have.
The right person must have experience in PHP/MYSQL in an e-commerce
capacity. Graphics skills (Photoshop etc) are also required. C++/MFC
experience would be handy but not essential.
We
Hi folks. I'm trying to use an .htaccess file to set my include path
and for some reason it's not overriding the value in php.ini, but
instead still shows and uses the original value from php.ini, not what
is in the .htaccess file.
I know that include_path is one of the values that can be set
* Thus wrote Dac Chartrand ([EMAIL PROTECTED]):
Check curl_errno() and curl_error().
it sounds like there is a problem with your libcurl
I'm not getting any errors using the above functions.
Sample PHP code is available at:
* Thus wrote Pablo Gosse ([EMAIL PROTECTED]):
Hi folks. I'm trying to use an .htaccess file to set my include path
and for some reason it's not overriding the value in php.ini, but
instead still shows and uses the original value from php.ini, not what
is in the .htaccess file.
Most default
Natascha Chrobok wrote:
How can I get the numeric Index of an array when the index is a string?
string indexes don't have numeric indexes. they are in order however, if
you want to find the order of a value, use:
echo array_search(array_search(my second value, $myArray),
array_keys($myArray));
I am using the following array and function in the template for my website.
It works great, but I want to to be better. I would to make it so the last
item displayed looks differently than the others, but I have been unable to
figure out how to distinguish the last item.
When displayed, the
php simply calls the libcurl function and returns what libcurl came
back with. There might be problem with the curl.dll your using.
The curl.dll i am using is packaged with the binary distribution of PHP
(i'm on windows), so if there is a problem with it, there's a problem
with the PHP distro.
Dave Carrera wrote:
Hi List,
How can I set fopen to time out if a url is not reachable ?
I have tried set_time_limit but that dose not seem to work.
Thank you in advance for any help or pointers.
Dave C
I'm not sure it will help but try ini_set('default_socket_timeout', XX);
---
Outgoing
php-general Digest 2 May 2004 22:54:17 - Issue 2740
Topics (messages 185136 through 185158):
Re: Progress Bar
185136 by: Burhan Khalid
http username
185137 by: Harry.de
185138 by: Matt
185139 by: rich
Re: String Question
185140 by: John W. Holmes
snip
Most default apache configurations now a days dont have .htaccess
enabled by default (for performance reasons.) Or some hosting
services implicitly turn this option off. So no matter what
you put in the .htaccess file, it will be ignored.
You can test this by putting in your .htaccess file
As I posted last week, I seem unable to have sessions persist. I
have ruled out https as a problem, the following simple script,
installed as xxx.php will generate a new session number every time
the field is filled in and Submit is hit.
Note that I am not using cookies, the relevant session
Michael R. Wayne wrote:
As I posted last week, I seem unable to have sessions persist. I
have ruled out https as a problem, the following simple script,
installed as xxx.php will generate a new session number every time
the field is filled in and Submit is hit.
Note that I am not using cookies,
On Mon, May 03, 2004 at 12:54:54AM -0400, John Nichel wrote:
Michael R. Wayne wrote:
As I posted last week, I seem unable to have sessions persist. I
have ruled out https as a problem, the following simple script,
installed as xxx.php will generate a new session number every time
the field
If the sample of code is the whole page... where do you actually start
your session?
I didn't see a session_start() anywhere.
AFAIK the $_SESSION var doesn't exist until you do just that.
session_is_registered(): mabe I'm reading the documentation wrong, but
I interpret this function as
On Mon, May 03, 2004 at 06:55:25AM +0200, Richard Harb wrote:
If the sample of code is the whole page... where do you actually start
your session?
I am using session.auto_start, which starts it for me. I added a
session_start while testing and it made no difference.
session_is_registered():
Michael R. Wayne wrote:
form method=post action=xxx.php
input type=text maxlength=7 size=7 name=field value=?echo $_POST['field']?
input type=submit value=Submit
/form
Try adding in a hidden element
input type=hidden name=PHPSESSID value=?=session_id();?
You're relying on PHP
* Thus wrote Michael R. Wayne ([EMAIL PROTECTED]):
I suspect I'm missing something obvious, any pointers?
/\/\ \/\/
?
if (!session_is_registered(stage)) {
$_SESSION[stage] = 0;
$_POST['field'] = ;
session_register(stage);
}
manual
Caution
If you are using $_SESSION (or
On Mon, May 03, 2004 at 01:13:11AM -0400, John W. Holmes wrote:
Michael R. Wayne wrote:
form method=post action=xxx.php
input type=text maxlength=7 size=7 name=field value=?echo
$_POST['field']?
input type=submit value=Submit
/form
Try adding in a hidden element
44 matches
Mail list logo