|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
php-general-digest-help_at_lists.php.net
Date: Sat Jan 25 2003 - 02:31:12 CST
php-general Digest 25 Jan 2003 08:31:12 -0000 Issue 1843
Topics (messages 133033 through 133088):
Re: checkboxes & php
133033 by: Edward Peloke
133034 by: Richard Whitney
133036 by: Richard Whitney
133038 by: 1LT John W. Holmes
133039 by: Greg
133040 by: Greg
133041 by: Didier McGillis
133047 by: Richard Whitney
133053 by: Rick Emery
133055 by: Chris Boget
133056 by: Richard Whitney
NEWBIE: request querystring
133035 by: Tim Haskins
133042 by: Greg
133045 by: Chris Shiflett
Re: ob_gzhandler bug???
133037 by: Serge Paquin
Re: Upload is corrupting files
133043 by: 1LT John W. Holmes
php/sendmail/apache/linux...
133044 by: Bruce Douglas
133082 by: Bruce Douglas
paths after file in url
133046 by: Glenn Pierce
133049 by: Matt
WHILE IF/ELSE loop not working
133048 by: Jay Fitzgerald
133052 by: Rick Emery
133087 by: Jason Wong
MQSeries
133050 by: Didier McGillis
problems getting GD to wrok properly
133051 by: Philipp
Re: value not displayed
133054 by: Brian Burg
sessions IE 6.0 problem
133057 by: news
133059 by: Richard Whitney
133060 by: Chris Shiflett
[url] to html
133058 by: Niels Uhlendorf
133064 by: Leif K-Brooks
133079 by: 1LT John W. Holmes
Re: How do you update multiple rows at the same time?
133061 by: Brian Burg
get apache user
133062 by: Tommy Jensehaugen
133086 by: Jason Wong
file creation (again)
133063 by: Don Mc Nair
Re: file upload question
133065 by: Andrew Rench
133085 by: Jason Wong
Multitier applications using XML as an output format
133066 by: Davy Obdam
memory exhausted... memory leak?
133067 by: Tularis
133072 by: 1LT John W. Holmes
linux cpu usage
133068 by: Gareth Thomas
133069 by: Philip Hallstrom
Designing My First Content Management System
133070 by: Guru Geek
133071 by: Chris Shiflett
Re: how to verify the available email address
133073 by: 1LT John W. Holmes
parse error, unexpected $end ...
133074 by: Octavio Herrera
133075 by: Octavio Herrera
133078 by: 1LT John W. Holmes
Re: IP address
133076 by: Justin French
Re: SSH change password!
133077 by: Michael Sims
Re: domxml_new_doc() utf8 encoding
133080 by: Tom Rogers
Testing
133081 by: César Aracena
PHP and XML mailing list
133083 by: Sterling Hughes
PHP Tutor in Denver?
133084 by: Grae Wolfe
Sendmail function
133088 by: Christian Ista
Administrivia:
To subscribe to the digest, e-mail:
php-general-digest-subscribe
lists.php.net
To unsubscribe from the digest, e-mail:
php-general-digest-unsubscribe
lists.php.net
To post to the list, e-mail:
php-general
lists.php.net
----------------------------------------------------------------------
attached mail follows:
why would you give them all the same name? I can see this for radio buttons
but not checkboxes.
-----Original Message-----
From: Greg [mailto:gregchagnon
hotmail.com]
Sent: Friday, January 24, 2003 3:27 PM
To: php-general
lists.php.net
Subject: [PHP] checkboxes & php
If I have 3 checkboxes labeled "user", but each one has a seperate value,
how do I get the values of each checkbox? For example, how would I tell if
the following checkboxes are checked?
<input type="checkbox" name="user" value="1">
<input type="checkbox" name="user" value="2">
<input type="checkbox" name="user" value="3">
<input type="submit" name="Submit" value="Submit">
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
You need to give the checkboxes unique names like user1, user2 user3
RW
Quoting Greg <gregchagnon
hotmail.com>:
### If I have 3 checkboxes labeled "user", but each one has a seperate value, ### how do I get the values of each checkbox? For example, how would I tell ### if ### the following checkboxes are checked? ### ### <input type="checkbox" name="user" value="1"> ### <input type="checkbox" name="user" value="2"> ### <input type="checkbox" name="user" value="3"> ### <input type="submit" name="Submit" value="Submit"> ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ###
-- Richard Whitney Transcend Development Producing the next phase of your internet presence. rwxend.net http://xend.net 602-971-2791
attached mail follows:
Do you, prehaps, wants to use radio buttons instead?
RW
Quoting Greg <gregchagnon
hotmail.com>:
### If I have 3 checkboxes labeled "user", but each one has a seperate value, ### how do I get the values of each checkbox? For example, how would I tell ### if ### the following checkboxes are checked? ### ### <input type="checkbox" name="user" value="1"> ### <input type="checkbox" name="user" value="2"> ### <input type="checkbox" name="user" value="3"> ### <input type="submit" name="Submit" value="Submit"> ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ###
-- Richard Whitney Transcend Development Producing the next phase of your internet presence. rwxend.net http://xend.net 602-971-2791
attached mail follows:
Or name them as an array, "user[]" so that you have a $_REQUEST['user'] array. Checkboxes are a little pecular in how they come across into PHP. If you search the archives you'll get some good examples.
---John Holmes...
----- Original Message -----
From: "Richard Whitney" <rw
xend.net>
To: "Greg" <gregchagnon
hotmail.com>
Cc: <php-general
lists.php.net>
Sent: Friday, January 24, 2003 3:31 PM
Subject: Re: [PHP] checkboxes & php
> You need to give the checkboxes unique names like user1, user2 user3
>
> RW
>
> Quoting Greg <gregchagnon
hotmail.com>:
>
> ### If I have 3 checkboxes labeled "user", but each one has a seperate
value,
> ### how do I get the values of each checkbox? For example, how would I
tell
> ### if
> ### the following checkboxes are checked?
> ###
> ### <input type="checkbox" name="user" value="1">
> ### <input type="checkbox" name="user" value="2">
> ### <input type="checkbox" name="user" value="3">
> ### <input type="submit" name="Submit" value="Submit">
> ###
> ###
> ###
> ### --
> ### PHP General Mailing List (http://www.php.net/)
> ### To unsubscribe, visit: http://www.php.net/unsub.php
> ###
> ###
>
>
> --
> Richard Whitney
> Transcend Development
> Producing the next phase of your internet presence.
> rw
xend.net
> http://xend.net
> 602-971-2791
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
attached mail follows:
I want to be able to let people check multiple values. I want them to be given a list of usernames and check the ones they want deleted, so a radio button won't work. If you go to Yahoo mail and select more than one checkbox, you can delete more than one item. I looked at the source and all the checkboxes are called "Mid". Any ideas? /Greg
"Edward Peloke" <epeloke
echoman.com> wrote in message
news:NFBBIIKNALMFFNANEKEFAEPLDEAA.epeloke
echoman.com...
> why would you give them all the same name? I can see this for radio
buttons
> but not checkboxes.
>
> -----Original Message-----
> From: Greg [mailto:gregchagnon
hotmail.com]
> Sent: Friday, January 24, 2003 3:27 PM
> To: php-general
lists.php.net
> Subject: [PHP] checkboxes & php
>
>
> If I have 3 checkboxes labeled "user", but each one has a seperate value,
> how do I get the values of each checkbox? For example, how would I tell
if
> the following checkboxes are checked?
>
> <input type="checkbox" name="user" value="1">
> <input type="checkbox" name="user" value="2">
> <input type="checkbox" name="user" value="3">
> <input type="submit" name="Submit" value="Submit">
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
attached mail follows:
Ah, that's exactly what I was looking for. Thanks! I had the right PHP
code, just didn't have the right html :)
/Greg
"1lt John W. Holmes" <holmes072000
charter.net> wrote in message
news:00a201c2c3e8$6e2431d0$a629089b
TBHHCCDR...
> Or name them as an array, "user[]" so that you have a $_REQUEST['user']
> array. Checkboxes are a little pecular in how they come across into PHP.
If
> you search the archives you'll get some good examples.
>
> ---John Holmes...
>
> ----- Original Message -----
> From: "Richard Whitney" <rw
xend.net>
> To: "Greg" <gregchagnon
hotmail.com>
> Cc: <php-general
lists.php.net>
> Sent: Friday, January 24, 2003 3:31 PM
> Subject: Re: [PHP] checkboxes & php
>
>
> > You need to give the checkboxes unique names like user1, user2 user3
> >
> > RW
> >
> > Quoting Greg <gregchagnon
hotmail.com>:
> >
> > ### If I have 3 checkboxes labeled "user", but each one has a seperate
> value,
> > ### how do I get the values of each checkbox? For example, how would I
> tell
> > ### if
> > ### the following checkboxes are checked?
> > ###
> > ### <input type="checkbox" name="user" value="1">
> > ### <input type="checkbox" name="user" value="2">
> > ### <input type="checkbox" name="user" value="3">
> > ### <input type="submit" name="Submit" value="Submit">
> > ###
> > ###
> > ###
> > ### --
> > ### PHP General Mailing List (http://www.php.net/)
> > ### To unsubscribe, visit: http://www.php.net/unsub.php
> > ###
> > ###
> >
> >
> > --
> > Richard Whitney
> > Transcend Development
> > Producing the next phase of your internet presence.
> > rw
xend.net
> > http://xend.net
> > 602-971-2791
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
attached mail follows:
Then I would do what John Holmes suggested.
---John Holmes...
Or name them as an array, "user[]" so that you have a $_REQUEST['user'] array. Checkboxes are a little pecular in how they come across into PHP. If you search the archives you'll get some good examples.
---John Holmes...
>From: "Greg" <gregchagnon
hotmail.com>
>To: php-general
lists.php.net
>Subject: Re: [PHP] checkboxes & php
>Date: Fri, 24 Jan 2003 15:37:06 -0500
>
>I want to be able to let people check multiple values. I want them to be
>given a list of usernames and check the ones they want deleted, so a radio
>button won't work. If you go to Yahoo mail and select more than one
>checkbox, you can delete more than one item. I looked at the source and
>all
>the checkboxes are called "Mid". Any ideas?
>/Greg
>
>
>"Edward Peloke" <epeloke
echoman.com> wrote in message
>news:NFBBIIKNALMFFNANEKEFAEPLDEAA.epeloke
echoman.com...
> > why would you give them all the same name? I can see this for radio
>buttons
> > but not checkboxes.
> >
> > -----Original Message-----
> > From: Greg [mailto:gregchagnon
hotmail.com]
> > Sent: Friday, January 24, 2003 3:27 PM
> > To: php-general
lists.php.net
> > Subject: [PHP] checkboxes & php
> >
> >
> > If I have 3 checkboxes labeled "user", but each one has a seperate
>value,
> > how do I get the values of each checkbox? For example, how would I tell
>if
> > the following checkboxes are checked?
> >
> > <input type="checkbox" name="user" value="1">
> > <input type="checkbox" name="user" value="2">
> > <input type="checkbox" name="user" value="3">
> > <input type="submit" name="Submit" value="Submit">
> >
> >
> >
> > --
> > 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
_________________________________________________________________ STOP MORE SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail
attached mail follows:
I just logged in to my Yahoo mail account. I have only one account, but when I went to Preferences, it had a <select multiple>, which you might want to consider
RW
Quoting Greg <gregchagnon
hotmail.com>:
### I want to be able to let people check multiple values. I want them to be
### given a list of usernames and check the ones they want deleted, so a
### radio
### button won't work. If you go to Yahoo mail and select more than one
### checkbox, you can delete more than one item. I looked at the source and
### all
### the checkboxes are called "Mid". Any ideas?
### /Greg
###
###
### "Edward Peloke" <epeloke
echoman.com> wrote in message
### news:NFBBIIKNALMFFNANEKEFAEPLDEAA.epeloke
echoman.com...
### > why would you give them all the same name? I can see this for radio
### buttons
### > but not checkboxes.
### >
### > -----Original Message-----
### > From: Greg [mailto:gregchagnon
hotmail.com]
### > Sent: Friday, January 24, 2003 3:27 PM
### > To: php-general
lists.php.net
### > Subject: [PHP] checkboxes & php
### >
### >
### > If I have 3 checkboxes labeled "user", but each one has a seperate
### value,
### > how do I get the values of each checkbox? For example, how would I
### tell
### if
### > the following checkboxes are checked?
### >
### > <input type="checkbox" name="user" value="1">
### > <input type="checkbox" name="user" value="2">
### > <input type="checkbox" name="user" value="3">
### > <input type="submit" name="Submit" value="Submit">
### >
### >
### >
### > --
### > 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
###
###
-- Richard Whitney Transcend Development Producing the next phase of your internet presence. rwxend.net http://xend.net 602-971-2791
attached mail follows:
<select multiple> applies to selection lists, not checkboxes
----- Original Message -----
From: "Richard Whitney" <rw
xend.net>
To: "Greg" <gregchagnon
hotmail.com>
Cc: <php-general
lists.php.net>
Sent: Friday, January 24, 2003 2:59 PM
Subject: Re: [PHP] checkboxes & php
I just logged in to my Yahoo mail account. I have only one account, but when I went to Preferences, it had a <select multiple>, which you might want to consider
RW
Quoting Greg <gregchagnon
hotmail.com>:
### I want to be able to let people check multiple values. I want them to be
### given a list of usernames and check the ones they want deleted, so a
### radio
### button won't work. If you go to Yahoo mail and select more than one
### checkbox, you can delete more than one item. I looked at the source and
### all
### the checkboxes are called "Mid". Any ideas?
### /Greg
###
###
### "Edward Peloke" <epeloke
echoman.com> wrote in message
### news:NFBBIIKNALMFFNANEKEFAEPLDEAA.epeloke
echoman.com...
### > why would you give them all the same name? I can see this for radio
### buttons
### > but not checkboxes.
### >
### > -----Original Message-----
### > From: Greg [mailto:gregchagnon
hotmail.com]
### > Sent: Friday, January 24, 2003 3:27 PM
### > To: php-general
lists.php.net
### > Subject: [PHP] checkboxes & php
### >
### >
### > If I have 3 checkboxes labeled "user", but each one has a seperate
### value,
### > how do I get the values of each checkbox? For example, how would I
### tell
### if
### > the following checkboxes are checked?
### >
### > <input type="checkbox" name="user" value="1">
### > <input type="checkbox" name="user" value="2">
### > <input type="checkbox" name="user" value="3">
### > <input type="submit" name="Submit" value="Submit">
### >
### >
### >
### > --
### > 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
###
###
-- Richard Whitney Transcend Development Producing the next phase of your internet presence. rwxend.net http://xend.net 602-971-2791
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
> <select multiple> applies to selection lists, not checkboxes
Indeed. But I believe he was offering that as an alternative. :)
Chris
attached mail follows:
Quoting Chris Boget <chris
wild.net>:
### > <select multiple> applies to selection lists, not checkboxes ### ### Indeed. But I believe he was offering that as an alternative. :)
Ahem! Thanks Chris!
RW
### Chris ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ###
-- Richard Whitney Transcend Development Producing the next phase of your internet presence. rwxend.net http://xend.net 602-971-2791
attached mail follows:
I am crossing over from ASP to PHP and was wondering how to get the same affect as request.questring ? Thanks!
attached mail follows:
$var = $_GET["varName"];
"Tim Haskins" <tim
copiousdg.com> wrote in message
news:20030124202947.92749.qmail
pb1.pair.com...
> I am crossing over from ASP to PHP and was wondering how to get the same
> affect as request.questring ? Thanks!
>
>
attached mail follows:
--- Tim Haskins <tim
copiousdg.com> wrote:
> I am crossing over from ASP to PHP and was
> wondering how to get the same affect as
> request.questring?
If your URL is:
http://example.org/foo.php?bar=hello
Then you can use $_SERVER['QUERY_STRING'] to get:
bar=hello
or you can use $_GET['bar'] to get:
hello
The $_GET[] array is probably more convenient, depending on what you are doing, but you can get the raw query string if you want as noted above.
Chris
attached mail follows:
I found the problem. It's a bug in PHP 4.3.0 and is fixed in CVS which I just confirmed...
Serge.
In article <007a01c2c3e1$bab70650$a629089b
TBHHCCDR>, "1lt John W. Holmes"
<holmes072000
charter.net> wrote:
> Is output_handler set in your php.ini? > > ---John Holmes...
attached mail follows:
> I have troubles with my php installation and file uploads. It's > kind of a strange problem. When files are uploaded via a form in php > they double in size and become corrupt. A text file smaller than about > 2K will work, but past the text starts getting repeated spuratically > throuought the file and causes the file doubles in size. The same happens > with any file type that I've tried (.jpg, .txt, .pdf) and with several > different PHP applications that I have downloaded. > > I'm using Apache 2.0.40 with PHP 4.3.0 (./configure --with-mysql > --with-mhash --enable-mbstring --enable-mbregex --with-zlib --enable-xml). > > Would somebody know what is wrong?
Maybe the same Apache2/PHP4 bug that's been talked about on here a couple times the past week?
---John Holmes...
attached mail follows:
hey...
I'm sure the question has been answered a 1000 times!!! I'm trying to create a simple app to send email via PHP, using the "mail" function.
I'm using RedHat(Linux 8.0 , Sendmail), PHP(4.2.2), Apache (2.0.40).
I'm using the following piece of code:
===========================================================================
//test mail....
$to = "bedouglas
earthlink.net";
$subject = "savannah registration";
$message = " testing mail";
$reply = "From: bedouglas
earthlink.net\r\n"
."Reply-To: bedouglas
earthlink.net\r\n";
echo" to = " . $to . "<br>";
echo" subject = " . $subject . "<br>";
echo" msg = " . $message . "<br>";
echo" reply = " . $reply . "<br>";
$q1 = mail($to, $subject, $message, $reply); echo" return val = " . $q1 . "<br>";
============================================================================ ===========
Pretty simple eh... The problem that I have is that the mail doesn't appear to get sent. When I look in the /var/spool/clientmqueue directory, I see a great deal of what look to be error msgs.... They appear to be telling me that the mail couldn't be delivered, but I can't tell why....
I was able to successfully send a test msg via Sendmail from the command line by telnet. So I know the Sendmail engine/daemon seems to be performing... The PHP.ini file appears to be setup correctly, with the sendmail_path pointing to sendamil.
Any ideas as to what I need to do, or should be checking....
Any pointers/assistance would be greatly appreciated.
Thanks
-Bruce
bedouglas
earthlink.net
attached mail follows:
Brian....
The following information is what I have...
I created the following PHP app.... I'm running it from the command line.
-----------------------------------------------------
#! /usr/bin/php -q
<?
#
# a.php - test app for the php mail function
#
$toaddress = "bedouglas
earthlink.net";
$subject = "test";
$content = "Name: www \n"
."E-mail Address: bedouglas
earthlink.net \n";
$e = mail($toaddress, $subject, $content);
if ($e == False) { echo "mail = false\n"; } else { echo "mail = true\n"; } ?> -----------------------------------------------------
The response was: -----------------------------------------------
mail = false
-----------------------------------------------
As you can see, the mail app failed...... The information from the /var/spool/clientmqueue/ dir is:
----------------------------------------------------------------
[root
lserver2 savannah]# more < /var/spool/clientmqueue/dfh0P2qeLE006055
This is a MIME-encapsulated message
--h0P2qeLE006055.1043463166/lserver2.mesa.com
The original message was received at Fri, 24 Jan 2003 18:52:40 -0800
from root
localhost
----- The following addresses had permanent fatal errors -----
bedouglas
earthlink.net
(expanded from: bedouglas
earthlink.net)
----- Transcript of session follows -----
550 5.1.2 bedouglas
earthlink.net... Host unknown (Name server: [localhost]:
host not found)
--h0P2qeLE006055.1043463166/lserver2.mesa.com Content-Type: message/delivery-status
Reporting-MTA: dns; lserver2.mesa.com Arrival-Date: Fri, 24 Jan 2003 18:52:40 -0800
Final-Recipient: RFC822; bedouglas
earthlink.net
Action: failed
Status: 5.1.2
Remote-MTA: DNS; [localhost]
Last-Attempt-Date: Fri, 24 Jan 2003 18:52:45 -0800
--h0P2qeLE006055.1043463166/lserver2.mesa.com Content-Type: message/rfc822
Return-Path: <root>
Received: (from root
localhost)
by lserver2.mesa.com (8.12.5/8.12.5/Submit) id h0P2qeLD006055;
Fri, 24 Jan 2003 18:52:40 -0800
Date: Fri, 24 Jan 2003 18:52:40 -0800
From: root <root>
Message-Id: <200301250252.h0P2qeLD006055
lserver2.mesa.com>
To: bedouglas
earthlink.net
Subject: test
Name: www
E-mail Address: bedouglas
earthlink.net
--h0P2qeLE006055.1043463166/lserver2.mesa.com--
======================
[root
lserver2 savannah]# more < /var/spool/clientmqueue/Qfh0P2qeLE006055
V6
T1043463166
K0
N0
P31120
I3/2/1991420
Fr
$_localhost
$r
$slocalhost
${daemon_flags}c u
SMAILER-DAEMON
C:root
rRFC822; root
lserver2.mesa.com
RPF:root
H?P?Return-Path: <g>
H??Received: from localhost (localhost)
by lserver2.mesa.com (8.12.5/8.12.5/Submit) id h0P2qeLE006055;
Fri, 24 Jan 2003 18:52:46 -0800
H?D?Date: Fri, 24 Jan 2003 18:52:46 -0800
H?F?From: Mail Delivery Subsystem <MAILER-DAEMON>
H?x?Full-Name: Mail Delivery Subsystem
H?M?Message-Id: <200301250252.h0P2qeLE006055
lserver2.mesa.com>
H??To: root
H??MIME-Version: 1.0
H??Content-Type: multipart/report; report-type=delivery-status;
boundary="h0P2qeLE006055.1043463166/lserver2.mesa.com"
H??Subject: Returned mail: see transcript for details
H??Auto-Submitted: auto-generated (failure)
.
----------------------------------------------------------------
The above files are pretty much greek to me!! Other than telling me it can't
seem to handle the bedouglas
earthlink.net address... which is odd... As a
test, I changed the email address.. I get the same response...
Is there something that I'm missing that has to be set for this to work....
I have Linux Redhat 8.0, PHP 4.2.2...
I have the sendmail RPM and the PHP RPMs from the Redhat 8.0 installation disks....
Any help/assistance will be appreciated....
Thanks...
Bruce
bedouglas
earthlink.net
-----Original Message-----
From: psyche-list-admin
redhat.com
[mailto:psyche-list-admin
redhat.com]On Behalf Of Brian Schmidt
Sent: Friday, January 24, 2003 6:04 PM
To: psyche-list
redhat.com
Subject: RE: php/sendmail/apache/linux...
On Fri, 24 Jan 2003, Bruce Douglas wrote:
> However, as I stated, I'm fairly sure that the Sendmail app is working given > that I was able to send an email from the command line when i did a telnet > localhost 25.... > > I'm just not certain as to how to do it through PHP....
Bruce, How about trying something really simple like this. I know it works. It's part of an HTML form I've used, so you'll need one with a $name, $email, and $morestuff input section:
$toaddress = "whatever
whomever.com";
$subject = "My Subject";
$mailcontent = "Name: ".$name."\n"
."E-mail Address: ".$email."\n"
."Additional Information: \n".$morestuff."\n";
mail($toaddress, $subject, $mailcontent);
>
> thanks
>
> bruce
> bedouglas
earthlink.net
>
>
> -----Original Message-----
> From: psyche-list-admin
redhat.com
> [mailto:psyche-list-admin
redhat.com]On Behalf Of Lucas Albers
> Sent: Friday, January 24, 2003 4:12 PM
> To: psyche-list
redhat.com
> Subject: RE: php/sendmail/apache/linux...
>
>
> Test the mailserver with the command
>
> cat message.txt | mail -f test
joeblow.com
>
> User the Perl sendmail mail wrapper to send the mail.
> http://search.cpan.org/src/MIVKOVIC/Mail-Sendmail-0.78_5/README
>
>
> > --Luke
> > --Computer Science Sysadmin, MSU Bozeman
> > --admin(AT)cs.montana.edu 994-3931
>
> > -----Original Message-----
> > From: psyche-list-admin
redhat.com [mailto:psyche-list-admin
redhat.com]
> > On Behalf Of Bruce Douglas
> > Sent: Friday, January 24, 2003 1:48 PM
> > To: psyche-list
redhat.com; php-general
lists.php.net
> > Subject: php/sendmail/apache/linux...
> >
> > hey...
> >
> > I'm sure the question has been answered a 1000 times!!! I'm trying to
> > create
> > a simple app to send email via PHP, using the "mail" function.
> >
> > I'm using RedHat(Linux 8.0 , Sendmail), PHP(4.2.2), Apache (2.0.40).
> >
> > I'm using the following piece of code:
> >
> >
==========================================================================
> > =
> > //test mail....
> > $to = "bedouglas
earthlink.net";
> > $subject = "savannah registration";
> > $message = " testing mail";
> > $reply = "From: bedouglas
earthlink.net\r\n"
> > ."Reply-To: bedouglas
earthlink.net\r\n";
> >
> > echo"
> > to = " . $to . "<br>";
> >
> > echo"
> > subject = " . $subject . "<br>";
> >
> > echo"
> > msg = " . $message . "<br>";
> >
> > echo"
> > reply = " . $reply . "<br>";
> >
> > $q1 = mail($to, $subject, $message, $reply);
> > echo"
> > return val = " . $q1 . "<br>";
> >
> >
==========================================================================
> > ==
> > ===========
> >
> > Pretty simple eh... The problem that I have is that the mail doesn't
> > appear
> > to get sent. When I look in the /var/spool/clientmqueue directory, I see
a
> > great deal of what look to be error msgs.... They appear to be telling
me
> > that the mail couldn't be delivered, but I can't tell why....
> >
> > I was able to successfully send a test msg via Sendmail from the command
> > line by telnet. So I know the Sendmail engine/daemon seems to be
> > performing... The PHP.ini file appears to be setup correctly, with the
> > sendmail_path pointing to sendamil.
> >
> > Any ideas as to what I need to do, or should be checking....
> >
> > Any pointers/assistance would be greatly appreciated.
> >
> >
> > Thanks
> >
> > -Bruce
> > bedouglas
earthlink.net
> >
> >
> >
> >
> > --
> > Psyche-list mailing list
> > Psyche-list
redhat.com
> > https://listman.redhat.com/mailman/listinfo/psyche-list
>
>
>
> --
> Psyche-list mailing list
> Psyche-list
redhat.com
> https://listman.redhat.com/mailman/listinfo/psyche-list
>
>
>
> --
> Psyche-list mailing list
> Psyche-list
redhat.com
> https://listman.redhat.com/mailman/listinfo/psyche-list
>
bts
sdf.lonestar.org
SDF Public Access UNIX System - http://sdf.lonestar.org
-- Psyche-list mailing list Psyche-listredhat.com https://listman.redhat.com/mailman/listinfo/psyche-list
attached mail follows:
Does anyone know why url's such as
http://www.php.net/mailing-lists.php/This/is/a/test
can be passed with php.
This this legal with respect to HTML?
I have noticed that Ariadne uses this approach and was curious.
Thanks for the help
-- Glenn Pierce <glennpierceconnectfree.co.uk>
attached mail follows:
----- Original Message -----
From: "Glenn Pierce" <glennpierce
connectfree.co.uk>
To: <php-general
lists.php.net>
Sent: Friday, January 24, 2003 3:52 PM
Subject: [PHP] paths after file in url
> > Does anyone know why url's such as > > http://www.php.net/mailing-lists.php/This/is/a/test
This only works in apache. See Method 1 here: http://www.promotionbase.com/article/485
attached mail follows:
can anyone tell me why this while loop fails?
================================================== while ($row = mysql_fetch_array($sql_result)): $phone = $row["phone"]; $date = $row["date"]; if ($phone == "$_POST[areacode]$_POST[prefix]$_POST[suffix]"):
if ($date == NULL): $date = "today"; echo "<B><I>Congratulations!</B></I>
<P> <B>$_POST[areacode]-$_POST[prefix]-$_POST[suffix]</B> is qualified with an available date of <B>$date</B>. ";
elseif ($date != NULL): echo "<B><I>Congratulations!</I></B>
<P> <B>$_POST[areacode]-$_POST[prefix]-$_POST[suffix]</B> is qualified with a first available date of <B>$date</B>. ";
else: echo "<B>Sorry! $_POST[areacode]-$_POST[prefix]-$_POST[suffix]</B> is not available at this time."; endif; endif; endwhile; ==================================================
attached mail follows:
Define "fails"
----- Original Message -----
From: "Jay Fitzgerald" <jayfitz
bayou.com>
To: <php-general
lists.php.net>
Sent: Friday, January 24, 2003 3:11 PM
Subject: [PHP] WHILE IF/ELSE loop not working
can anyone tell me why this while loop fails?
================================================== while ($row = mysql_fetch_array($sql_result)): $phone = $row["phone"]; $date = $row["date"]; if ($phone == "$_POST[areacode]$_POST[prefix]$_POST[suffix]"):
if ($date == NULL): $date = "today"; echo "<B><I>Congratulations!</B></I>
<P> <B>$_POST[areacode]-$_POST[prefix]-$_POST[suffix]</B> is qualified with an available date of <B>$date</B>. ";
elseif ($date != NULL): echo "<B><I>Congratulations!</I></B>
<P> <B>$_POST[areacode]-$_POST[prefix]-$_POST[suffix]</B> is qualified with a first available date of <B>$date</B>. ";
else: echo "<B>Sorry! $_POST[areacode]-$_POST[prefix]-$_POST[suffix]</B> is not available at this time."; endif; endif; endwhile; ==================================================
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
attached mail follows:
On Saturday 25 January 2003 05:43, Rick Emery wrote:
> Define "fails"
> ----- Original Message -----
> From: "Jay Fitzgerald" <jayfitz
bayou.com>
> To: <php-general
lists.php.net>
> Sent: Friday, January 24, 2003 3:11 PM
> Subject: [PHP] WHILE IF/ELSE loop not working
>
>
> can anyone tell me why this while loop fails?
When you go to your doctor you usually give him/her a head start by telling him/her what you feel is wrong with you. You don't go in and say "What is wrong with me?".
-- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* Ha. For once you're both wrong but not where you are thinking.
- Larry McVoy to Linus Torvalds on linux-kernel */
attached mail follows:
Is there currently any hooks into MQSeries through PHP. I need to put some infromation on a queue, and was hoping not have to break out the C++ coding tools.
_________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
attached mail follows:
Hi,
i am having problem to get GD working properly. i used to compile GD by myself an link the libgd.a into PHP, but as PHP 4.3.0 offers an included version, and besides its recommonded to use it, it saves some work. but i cant get it to work right. the problem is the jpeg support. is it build in ? do i need other libraries/software installed ?
here is what i have/did:
debian woody libjpeg 62 and libjpeg-dev installed libgd-2 and libgd2-dev installed apache 1.3.27
i used this configure command:
./confiigure --prefix=/usr/local/php-4.3.0 --with-gd --with-jpeg --with-png --with-apache=../apache-1.3.27 --with-mysql=/usr/local/mysql --with-zlib
its hexed ! it always tells me: CreateImageFromJpeg in -lgd: no !
Perhaps someone can give me a brief installed if i did something wrong and perhaps a little recipe what he/she did to get it work.
thanks alot, philipp
attached mail follows:
By default PHP 4.3.0 has register_globals = off. As others have mentioned, you need to change register_globals to on in order to use HTTP GET variables as global variables. Otherwise, you need to use $_GET['varname'] in the case you can't edit the configuration file.
Regards,
Brian Burg Hudsonville Web Design Team http://www.hudsonville.k12.mi.us
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
attached mail follows:
Sessions aren't getting set.
my parent frame is on xyz.com A frame on xyz.com loads a frame that contains a page on foo.com the page on foo.com start a session and sets a variable.
but the IE does not accept this session.
I've loaded this page on foo.com directly and it sets the session fine, but if I go to this page from the frame it never gets set.
Any ideas on how to fix this?
I tested this with Opera and Mozillo and had no problems.
-mm
attached mail follows:
You need to append 'bar' to your foo page!
RW
Quoting news <news
105thmp.com>:
### Sessions aren't getting set. ### ### my parent frame is on xyz.com ### A frame on xyz.com loads a frame that contains a page on foo.com ### the page on foo.com start a session and sets a variable. ### ### but the IE does not accept this session. ### ### I've loaded this page on foo.com directly and it sets the session fine, but ### if ### I go to this page from the frame it never gets set. ### ### Any ideas on how to fix this? ### ### I tested this with Opera and Mozillo and had no problems. ### ### -mm ### ### ### ### -- ### PHP General Mailing List (http://www.php.net/) ### To unsubscribe, visit: http://www.php.net/unsub.php ### ###
-- Richard Whitney Transcend Development Producing the next phase of your internet presence. rwxend.net http://xend.net 602-971-2791
attached mail follows:
--- news <news
105thmp.com> wrote:
> Sessions aren't getting set.
>
> my parent frame is on xyz.com A frame on xyz.com
> loads a frame that contains a page on foo.com the
> page on foo.com start a session and sets a variable.
>
> but the IE does not accept this session.
>
> I've loaded this page on foo.com directly and it
> sets the session fine, but if I go to this page from
> the frame it never gets set.
>
> Any ideas on how to fix this?
>
> I tested this with Opera and Mozillo and had no problems.
I'm pretty sure that IE 6.0 will not accept 3rd party cookies from sites that are not P3P compliant. In this case, it is probably foo.com that needs to be P3P compliant for its cookie to be set. The W3C (http://www.w3.org/) has some good resources on making a Web site P3P compliant.
Otherwise, you can probably use a URL variable instead to pass the session ID instead of relying on cookies.
Chris
attached mail follows:
hi,
how to chang [url=%link%]%descr%[/url] in <a href=%link%>%descr%</a>
thx 4 help.
Niels
attached mail follows:
Take a look at my BBCode class, http://www.phpclasses.org/browse.html/package/951.html.
Niels Uhlendorf wrote:
> hi, > > how to chang [url=%link%]%descr%[/url] in <a href=%link%>%descr%</a> > > thx 4 help. > > Niels > >
-- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.
attached mail follows:
> how to chang [url=%link%]%descr%[/url] in <a href=%link%>%descr%</a>
$new_str = preg_replace("!\[url=(.*)\](.*)\[/url\]!U","<a href=$1>$2</a>",$old_str);
should work...
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/
attached mail follows:
first.. you need to find the number of categories in the table.. Use a simple MySQL function for that. Example:
mysql> SELECT `table.categoryfield`, COUNT(*) FROM `table` GROUP BY `table.categoryfield`;
this will return each category, and how many rows use this category. Example:
+---------------------+----------------+ | table.categoryfield | table.COUNT(*) | +---------------------+----------------+ | Category1 | 14356 | | Category2 | 34 | | Category3 | 343 | +---------------------+----------------+
or if you just want the plain number of categories, use COUNT(*). Example:
SELECT COUNT(DISTINCT table.categoryfield) FROM `table`;
which returns a single element, the number of unique categories.
I hope this may help you!
Regards,
Brian Burg Hudsonville Web Design Team http://www.hudsonville.k12.mi.us
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
attached mail follows:
Hi folks! I have a page where I log in as an Apache user. How do I get the apache username in php?
thanks tommy
attached mail follows:
On Saturday 25 January 2003 06:15, Tommy Jensehaugen wrote:
> I have a page where I log in as an Apache user. How do I get the apache > username in php?
print_r($_SERVER) to see which you can use.
-- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* Thirteen at a table is unlucky only when the hostess has only twelve chops. -- Groucho Marx */
attached mail follows:
Thanks for all the help so far folks.
I have finally got PHP to create a page on the web server now but the owner is set to apache. As it uses an include() function it will not allow me to display the page giving Warning: SAFE MODE Restriction in effect. uid not allowed to ....etc.
I dont seem to have permission to change the owner on the server (web) so what can I do to allow PHP to create a file with an include() and then be able to display it on the server.
Regards
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003
attached mail follows:
When you say you need to include a filename, do you mean the $_FILES['userfile']['tmp_name'] or the variable name identified in the input tag? (name="userfile")
--- Mark Heintz PHP Mailing Lists <heintzphp
mail.groupm7.com> wrote:
>
> You have to include a filename along with the path when you're using
> move_uploaded_file(); if you're only specifying
> '/usr/local/etc/httpd/htdocs/blast/images' as your destination string, php
> is trying to create a file named 'images' in
> '/usr/local/etc/httpd/htdocs/blast'. If there's still a problem,
> the user that your webserver (and therefore php, in most cases) runs as
> may not have write permission to the directory you're trying to move to.
> Make sure the webserver can write to the destination directory.
>
> mh.
>
>
> On Fri, 24 Jan 2003, Andrew Rench wrote:
>
> > thanks for the advice- this makes sense as to why I'm not seeing the file. I added the
> > move_uploaded_file() to the script to see what happens and I end up getting the following
> error:
> > PHP Warning: Unable to move '/var/tmp/phpfcwVyC' to '/usr/local/etc/httpd/htdocs/blast/images'
> in
> > /usr/local/etc/httpd/htdocs/blast/upload_test2.php on line 10
> >
> > Am I setting the path wrong? Should it be relative to the 'upload_test2.php' file?
> >
> > thanks
> >
> > --- "Ford, Mike [LSS]" <M.Ford
lmu.ac.uk> wrote:
> > > > -----Original Message-----
> > > > From: Andrew Rench [mailto:andrewrench
yahoo.com]
> > > > Sent: 24 January 2003 17:05
> > > >
> > > > the following code:
> > > >
> > > > <html>
> > > > <body>
> > > > <form enctype="multipart/form-data" action="<?= $PHP_SELF ?>" method
> > > > ="post">
> > > > <input type="hidden" name="MAX_FILE_SIZE" value="1000">
> > > > Send this file: <input name="userfile" type="file">
> > > > <input type="submit" value="Send File">
> > > > </form>
> > > > <?php
> > > > echo $_FILES['userfile']['tmp_name'];
> > > > ?>
> > > > </body>
> > > > </html>
> > > >
> > > > produces the following after upload:
> > > >
> > > > /var/tmp/phplSTEVp (or php[something-or-other])
> > > >
> > > > When I view that directory, it is empty.
> > >
> > > When you upload a file, the file PHP puts it in is a temporary file -- hence the
> ['tmp_name']
> > > key -- which is your /var/tmp/php??????. Because it's a temporary file, PHP automatically
> > > deletes it when the script ends. If you haven't done something with it in the script (such
> as
> > > move_uploaded_file() it), it's gone forever.
> > >
> > > Cheers!
> > >
> > > Mike
> > >
> > > ---------------------------------------------------------------------
> > > Mike Ford, Electronic Information Services Adviser,
> > > Learning Support Services, Learning & Information Services,
> > > JG125, James Graham Building, Leeds Metropolitan University,
> > > Beckett Park, LEEDS, LS6 3QS, United Kingdom
> > > Email: m.ford
lmu.ac.uk
> > > Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
> >
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
> > http://mailplus.yahoo.com
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
>
__________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com
attached mail follows:
On Saturday 25 January 2003 06:34, Andrew Rench wrote: > When you say you need to include a filename, do you mean the > $_FILES['userfile']['tmp_name'] or the variable name identified in the > input tag? (name="userfile")
ANY filename which makes sense to you, so most likely the latter.
-- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development */* "You have been in Afghanistan, I perceive." -- Sir Arthur Conan Doyle, "A Study in Scarlet" */
attached mail follows:
Hello people,
I have a question about developing Multi Tier applications using PHP. I wanna use XML as an output format, and then use XSL to transform this to whatever format, like HTML. However i am quite new to Object Orientated Programming and i am now wondering how-to do this. I have build a database abstraction class, as i will have to get the data from a MySQL database. This is the content layer. Now i understand how that works, what i am wondering about is what the business layer should do and how it should acces this data. Should the bussines layer generate XML? and the presentation Layer using XSL to transform this into XHTML.? I am just wondering how this all works together...?
This method of working seperates content from design, and should make the project more extensible, but is it slower the procedural code? Can anyone give me some pointers in the right direction here;-). Does anyone know some good tutorials about OOP and more specificly Multi Tier applications in PHP? Any thought and help is appreciated. Thanks for your time..
Best regards,
Davy Obdam
mailto:info
davyobdam.com
attached mail follows:
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 35 bytes) in /home/virtual/site8/fst/var/www/html/staff/libs/error.lib.php on line 61
I suddenly got this error on one of my sites, and after rechecking the script, it shouldn't be happenning :S
Anyway, I was wondering if this would be a memroy leak? or just some standard notice that I'm taking up too much memory ;)
Anyone? - Tularis
attached mail follows:
> Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to > allocate 35 bytes) in > /home/virtual/site8/fst/var/www/html/staff/libs/error.lib.php on line 61 > > I suddenly got this error on one of my sites, and after rechecking the > script, it shouldn't be happenning :S > > Anyway, I was wondering if this would be a memroy leak? or just some > standard notice that I'm taking up too much memory ;)
What were you doing when it happened?
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/
attached mail follows:
Hi all,
I have a command line PHP script that is in a continous loop to monitor a particular database event. I am running RedHat 8 and the only problem I am finding is that it hogs the CPU. I developed the script originally on Windows and it worked better there. Is there a way to limit CPU resource for a PHP command line script in Linux?
Gareth
attached mail follows:
does it hog the CPU and stop other things from running or is it just using 100% of the CPU? If the latter, that's fine. If the former, read the man page for nice or renice (it's renice on freebsd)
-philip
On Fri, 24 Jan 2003, Gareth Thomas wrote:
> Hi all, > > I have a command line PHP script that is in a continous loop to monitor a > particular database event. I am running RedHat 8 and the only problem I am > finding is that it hogs the CPU. I developed the script originally on > Windows and it worked better there. Is there a way to limit CPU resource for > a PHP command line script in Linux? > > Gareth > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >
attached mail follows:
Hello,
I've decided that for my first real PHP project I'm going to create a Content Management System that is PHP based. I was wondering if anyone out there had any thoughts, idea's or suggestions before I get started? Does anyone out there have any working examples of a PHP based CMS?
Thanks, Roger
attached mail follows:
--- Guru Geek <gurugeek2002
g-i-w-s.com> wrote:
> Does anyone out there have any working examples
> of a PHP based CMS?
http://freshmeat.net/search/?q=PHP+CMS§ion=projects
Chris
attached mail follows:
> In a signup page , I want to verify some information what the user fill in > ,inculde user name$B!"(Bpassword$B!"(Bemail etc.But I don't know how to verify the > available email address.Who can help me ?
Send them an email with a link and make them click on it. It's the only way to really verify an email address is valid.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/
attached mail follows:
Hello, my name is octavio, Im new to this news group, I have a problem, Im getting the following error message:
Parse error: parse error, unexpected $end in c:\appserv\www\octavio\user_data.php on line 63
What is this? I have looked all the source code and at the end of file there is nothing wrong, what is going on? thank you
attached mail follows:
This is the source code....
<? include("includes/encabezado_xml.php"); include("includes/conexion.php");
mysql_select_db("latinencounters");
$u_login=""; $u_pwd=""; if(isset($url_login)){ $u_login=$url_login; // parametro login del usuario } if(isset($url_pwd)){ $u_pwd=$url_pwd; // parametro password del usuario }
$query="select * from usuarios_ws where login='$u_login' and pwd=password('$u_pwd')"; $rs=mysql_query($query,$enlace); $filas=mysql_num_rows($rs);
if($filas==0){ echo "<error><mensaje>Your Login or Password is Incorrect</mensaje></error>"; }else{
echo "<usuarios_ws>\n";
for($a=0;$a<$filas;$a++){ $fila=mysql_fetch_array($rs); echo " <usuario>\n"; echo " <id>".$fila["id"]."</id>\n"; echo " <name>".$fila["name"]."</name>\n"; echo " <born>".$fila["born"]."</born>\n"; echo " <occupation>".$fila["occupation"]."</occupation>\n"; echo " <country>".$fila["country"]."</country>\n"; echo " <city>".$fila["city"]."</city>\n"; echo " <description>".$fila["description"]."</description>\n"; echo " <login>".$fila["login"]."</login>\n"; echo " </usuario>\n"; }
$query="select * from perfil"; $rs=mysql_query($query,$enlace); $filas=mysql_num_rows($rs);
$dominio="http://www.latinencounters.com/"; for($a=0;$a<$filas;$a++){ $fila=mysql_fetch_array($rs); echo "<girl>\n"; echo " <Codigo>".$fila["Codigo"]."</Codigo>"; echo " <FirstName>".$fila["FirstName"]."</FirstName>"; echo " <LastName>".$fila["LastName"]."</LastName>"; echo " <Height>".$fila["Height"]."</Height>"; echo " <Weight>".$fila["Weight"]."</Weight>"; echo " <Photo2>$dominio".$fila["Photo2"]."</Photo2>"; echo " <Photo3>$dominio".$fila["Photo3"]."</Photo3>"; echo " <Photo4>$dominio".$fila["Photo4"]."</Photo4>"; echo " <Photo5>$dominio".$fila["Photo5"]."</Photo5>"; echo "</girl>\n"; }
echo "</usuarios_ws>\n"; mysql_close($enlace); ?>
attached mail follows:
> <? > include("includes/encabezado_xml.php"); > include("includes/conexion.php"); > > mysql_select_db("latinencounters"); > > $u_login=""; > $u_pwd=""; > if(isset($url_login)){ > $u_login=$url_login; // parametro login del usuario > } > if(isset($url_pwd)){ > $u_pwd=$url_pwd; // parametro password del usuario > } > > > $query="select * from usuarios_ws where login='$u_login' and > pwd=password('$u_pwd')"; > $rs=mysql_query($query,$enlace); > $filas=mysql_num_rows($rs); > > if($filas==0){ > echo "<error><mensaje>Your Login or Password is > Incorrect</mensaje></error>"; > }else{
You don't have a closing brace for this.
> echo "<usuarios_ws>\n"; > > for($a=0;$a<$filas;$a++){ > $fila=mysql_fetch_array($rs); > echo " <usuario>\n"; > echo " <id>".$fila["id"]."</id>\n"; > echo " <name>".$fila["name"]."</name>\n"; > echo " <born>".$fila["born"]."</born>\n"; > echo " <occupation>".$fila["occupation"]."</occupation>\n"; > echo " <country>".$fila["country"]."</country>\n"; > echo " <city>".$fila["city"]."</city>\n"; > echo " <description>".$fila["description"]."</description>\n"; > echo " <login>".$fila["login"]."</login>\n"; > echo " </usuario>\n"; > } > > $query="select * from perfil"; > $rs=mysql_query($query,$enlace); > $filas=mysql_num_rows($rs); > > $dominio="http://www.latinencounters.com/"; > for($a=0;$a<$filas;$a++){ > $fila=mysql_fetch_array($rs); > echo "<girl>\n"; > echo " <Codigo>".$fila["Codigo"]."</Codigo>"; > echo " <FirstName>".$fila["FirstName"]."</FirstName>"; > echo " <LastName>".$fila["LastName"]."</LastName>"; > echo " <Height>".$fila["Height"]."</Height>"; > echo " <Weight>".$fila["Weight"]."</Weight>"; > echo " <Photo2>$dominio".$fila["Photo2"]."</Photo2>"; > echo " <Photo3>$dominio".$fila["Photo3"]."</Photo3>"; > echo " <Photo4>$dominio".$fila["Photo4"]."</Photo4>"; > echo " <Photo5>$dominio".$fila["Photo5"]."</Photo5>"; > echo "</girl>\n"; > } > > echo "</usuarios_ws>\n"; > mysql_close($enlace); > ?>
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/
attached mail follows:
on 24/01/03 1:23 PM, K.C.P. van Zijl (karel
sonosol.nl) wrote:
> Is it possible in PHP to determine the IP address of a server which is > requesting a page from my own server? > When I use $REMOTE_ADDR, I get the wrong IP address. In that case I get > the IP address of a person who is requesting the page on that other > server. > > Hopefully my question is clear enough
Not really!! :)
Here's what happens (sort of):
1. i request a URL on my computer 2. it talks to my ISP 3. my ISP talks to anywhere from 2 to 20 (or more) servers along the way 4. finally connects with the requested URL (your server with PHP) 5. page comes back thru the 2 to 20 servers 6. arrives at my ISP 7. gets sent to my computer 8. I look at the page
So, which one of these computers are you trying to get the IP address of?
Justin French
attached mail follows:
On Fri, 24 Jan 2003 11:48:50 -0600, you wrote:
>What I need is to change users password on the server, I want to write >that script and it needs to be safe. So I don't know what should I use. >I think I will need to check username and password, then log in through >website with it and then use passwd command on that user to change the >password. Or maybe I am wrong, I never done something like that.
This is exactly the sort of thing that Poppasswd was created for:
http://echelon.pl/pubs/poppassd.html
I have to do something similar soon, so I plan to use this program to do it. I haven't as yet downloaded though, so I don't know how well it works. But the principle seems to be sound.
attached mail follows:
Hi,
Saturday, January 25, 2003, 4:04:38 AM, you wrote:
ØV> how do i create ØV> <?xml version="1.0" encoding="utf8"?>?
ØV> domxml_new_doc("1.0") only creates ØV> <?xml version="1.0"?>
ØV> vennlig hilsen ØV> Øyvind
ØV> STOPP BARNEPORNO PÅ INTERNET:
ØV> Send tips om barneporno til Redd Barna:
ØV> children
risk.online.no
ØV> Øyvind Vestavik ØV> oyvindve at idi dot ntnu dot no ØV> ICQ-number: 218699329 ØV> mobil: 41422911
ØV> -- ØV> PHP General Mailing List (http://www.php.net/) ØV> To unsubscribe, visit: http://www.php.net/unsub.php
One way to force it: <? ob_start(); echo '<?xml version="1.0" encoding="utf8"?><cds/>'; $buffer = ob_get_contents(); ob_end_clean(); $dom = domxml_open_mem($buffer); //check echo '<pre>'; echo htmlentities($dom->dump_mem(true)); echo '</pre>'; ?>
-- regards, Tom
attached mail follows:
Testing.
-- Cesar Aracena www.icaam.com.ar
attached mail follows:
A mailing list for discussing the future of PHP and XML development has
been created. You can subscribe by sending a message to
php-xml-dev-subscribe
lists.php.net (normal ezmlm commands apply). This
mailing list is _only_ intended for actual php extension and api
development, user support questions should remain on
php-general
lists.php.net.
-Sterling
--
"Nothing is particularly hard if you divide it into small jobs."
- Henry Ford
attached mail follows:
Hiya!
I am back again... Is there anyone in or around Denver, CO that is familiar enough with PHP and MySQL that would be willing to help teach me enough to build a fairly simple shopping cart program for a website? I have looked at some of the free ones, and I don't really like what I have seen. I had one gentleman here give me his cart and it is truly awesome, but it is WAY over my head for making changes or corrections.
I can't pay a lot for the services, but I wouldn't expect anyone to do this for free.
Thank you for your time in reading this, and I would like to ask that replies to this message are sent to my email since I am horrible about checking on the newsgroups daily.
Thank you!!
attached mail follows:
Hello,
A friend would like to know how to check on the server (dedicated) if the function sendmail is enable or not, how ? if not activated how activate ?
Thanks,
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]