[PHP] NEW !! ecTemplate !! NEW

2001-09-11 Thread Jeroen Olthof

http://www.millipede.nl/ectemplate/

hi,

I was inspired by fasttemplate. the idea of separate your HTML code from the
PHP code.
but when I first start usinging fasttemplate, it removed all my javascript
function definitions. This was a reson for me to do a rewrite in my own way.
starting from scretch I build up ecTemplate and using it now in real life
website. it called ecTemplate (easyTemplate) because it's really easy to
use.
try it out !!!

please use the comminucation board to let me know what u think of the
ecTemplate construction !

http://www.millipede.nl/ectemplate/

kind regards
Jeroen Olthof
Netherlands



-- 
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] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Alexander Skwar

So sprach »[EMAIL PROTECTED]« am 2001-09-11 um 17:36:59 +0100 :
 I'm sure your is the view shared by the VAST, VAST majority on both sides.
 
 Michael
 
 
 Quoting Clint Tredway [EMAIL PROTECTED]:
 
  
  I am sorry, but the problem is the exact opposite. If people would turn
  back to God and seek his face and live according to His will, the World
  would benefit greatly.

Well, exactly not!  Just look at the track record of believe.  May I
remind you of the great deeds in the name of god (which god doesn't
matter).

No, if people would not believe in god, world would be better.

But I also agree that the VAST majority believes in god.


--
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] Other lists

2001-09-11 Thread Data Driven Design

The lists from the html writers guild are good.

www.hwg.org


Data Driven Design
1506 Tuscaloosa Ave
Holly Hill, Florida 32117

http://www.datadrivendesign.com
Phone: (386) 226-8979

Websites That WORK For You
- Original Message -
From: Seb Frost [EMAIL PROTECTED]
To: php list [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 4:49 PM
Subject: [PHP] Other lists


 I've found this list so helpful - can anyone recommend a similar thing for
 javascript/html/etc?

 cheers,

 - seb
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.277 / Virus Database: 146 - Release Date: 05/09/2001


 --
 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] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Nael Mohammad

This is a PHP list and off the topic
Nael Mohammad
180 Montgomery St. 
Suite 2000
San Francisco CA, 94104
Phone: 415-403-7300 x314
Fax: 415-403-7373
Mobile: 415-793-0609
www.neomar.com
--
Neomar - When Wireless Means Business

-- 
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] World Trade Centre Hit By terrorists, also pentagon

2001-09-11 Thread Christopher CM Allen

Well, exactly not!  Just look at the track record of believe.  May I
remind you of the great deeds in the name of god (which god doesn't
matter).


Let me remind you of the deeds not done in Gods name - Hitler Deed's 
Stalin Deed's.
Enough said... take it off the list.


-- 
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] mysql_db_query create table error

2001-09-11 Thread David Robley

On Wed, 12 Sep 2001 01:19, mkrisher wrote:
 All,

 I am trying to create a table in a mySQL database, seems like it would
 be easy enough, but for some reason it is not working, below is the
 code:

   // Query to create table and columns
   $sql = CREATE TABLE 'products' (
   id  INTEGER UNSIGNED NOT NULL AUTOINCREMENT 
PRIMARY KEY,
   description TEXT,
   jewelery-type   VARCHAR(255),
   catalog-number  VARCHAR(255),
   price   VARCHAR(255),
   stone-type  VARCHAR(255),
   stone-color VARCHAR(255),
   stone-cut   VARCHAR(255),
   stone-clarity   VARCHAR(255),
   stone-carat VARCHAR(255),
   supplierVARCHAR(255),
   metal-type  VARCHAR(255),
   width   VARCHAR(255),
   length  VARCHAR(255),
   setting VARCHAR(255)
   );

   // create connection
   // substitute hostname, username and password
   $connection = mysql_connect(mkrisher, mkrisher, ) or die
 (Couldn't connect to server.);

   // select database
   // substitute database name
   $db = mysql_select_db(richmondjewelers) or die (Couldn't open
 database.);

   // execute SQL query and get result
   $sql_result = mysql_db_query($db, $sql) or die (Couldn't execute
 query!);

 I always get the Couldn't execute query error, is there something
 else that I should be doing, watching for permission issues or
 something?

 Thanks in advance,
 __ Michael Krisher
 __ http://www.sectiongroup.com

Immediately after the mysql_db_query line, use mysql_error() to return 
the mysql error message. I'll hazard a guess that it is because you 
haven't assigned a default value to your autoincrement field.

-- 
David Robley  Techno-JoaT, Web Maintainer, Mail List Admin, etc
CENTRE FOR INJURY STUDIES  Flinders University, SOUTH AUSTRALIA  

   I'm as busy as a bee, Tom droned.

-- 
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] CheckBoxes and Arrays

2001-09-11 Thread Christopher William Wesley

On Tue, 11 Sep 2001, Ryan Stephens wrote:

 Im trying to output a list of options, each with a checkbox named ChkBox
...

Name each checkbox ChkBox[] ... the brackets are the key.

When the form is submitted, you'll have an array called $ChkBox that will
contain the data only from the checked checkboxes.  You can loop over that
array pretty simply.

for( $i = 0; $i  sizeof( $ChkBox ); $i++ ){
print( $ChkBox[$i] .  was checkedbr );
// Delete the row from the database, etc ...
}



~Chris   /\
 \ / Pine Ribbon Campaign
Microsoft Security Specialist X  Against Outlook
The moron in Oxymoron.   / \ http://www.thebackrow.net


-- 
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] word wrap

2001-09-11 Thread Justin French

Hi,

I'm having trouble with some email clients not wrapping text.  So, what
I'd like to do is create a wrap function which enables me to wrap a long
text string at say 60 characters, by inserting a \n.  Of course I don't
want to wrap RIGHT ON 60 chars, I want to wrap at the space just before
the 60 characters, so I don't break words.

Any advice welcome!!


Justin French

-- 
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: word wrap

2001-09-11 Thread Adam


http://php.net/manual/en/function.wordwrap.php

-Adam
www.wangallery.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] Posts about the WTC Trajedy

2001-09-11 Thread Chip


I find the 'tone' of this thread to be very shameful! At a time like this we 
should be supporting one another in any way we can, not making off-handed 
remarks, finger-pointing or making facetious comments. I am on about a dozen 
differant lists and they all have threads going on this subject, and this 
list is the only one with any negative remarks. What a shame! I am 
disappointed in what I am reading here. I am glad to see the discussion even 
it is off-topic, but lets try to be supportive, and not make things harder 
than they already are. The world is full of hatred and love, but some of you 
are just perpetuating the hatred. This is not the time for that, but rather 
it is the time to reach out to those who have been hurt by this trajedy. And 
there are many ways we can do that, even if we are on the opposite side of 
the world, whether we are 'believers' or not.

I hope and pray the people responsible are found and brought to justice. 
God bless you, and if you don't happen to believe in God, or any god - 
Regards

--
Chip Wiegand

On Tuesday 11 September 2001 09:26, Alexander Skwar wrote:
 So sprach »[EMAIL PROTECTED]« am 2001-09-11 um 08:55:49 -0600 :
  We need the receive the help from Got, I believe He is the only one who
  can help us on this situation 

 Well, you know: *EXACTLY* this is the problem!  Your so called god.
 If it weren't for this superstition, the world would be a *MUCH* safer
 place.  I'm sure of that.

 But if it makes you feel better: Go on, believe in that.



 --
 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]


-- 
--
Chip W.

-- 
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] PERL TO PHP

2001-09-11 Thread programmer

Can anybody help me convert this perl code to PHP

This line in particular
while( /hidden name=(.*?)/gs ) {

but I have included more of the source below:

Thanks in Advanace

Randy


undef $/;
#print p$curlargsp;
#print p$sysstringp;
open(foo, $sysstring|)  ||  die (Failed FO $!_);
while(foo){
# pull out the hidden fields...the pattern starts with hidden name= and
# ends with 
while( /hidden name=(.*?)/gs ) {
# see if there was some kind of error
if(index($1, ERROR) == 0) {
$e=yes;
$errstring = $1;
$errstring =~ ( /value=(.*)/ );

-- 
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] Posts about the WTC Trajedy

2001-09-11 Thread Richard Baskett

Amen, Ill second that

Rick

 From: Chip [EMAIL PROTECTED]
 Date: Tue, 11 Sep 2001 20:27:41 -0700
 To: [EMAIL PROTECTED]
 Subject: [PHP] Posts about the WTC Trajedy
 
 
 I find the 'tone' of this thread to be very shameful! At a time like this we
 should be supporting one another in any way we can, not making off-handed
 remarks, finger-pointing or making facetious comments. I am on about a dozen
 differant lists and they all have threads going on this subject, and this
 list is the only one with any negative remarks. What a shame! I am
 disappointed in what I am reading here. I am glad to see the discussion even
 it is off-topic, but lets try to be supportive, and not make things harder
 than they already are. The world is full of hatred and love, but some of you
 are just perpetuating the hatred. This is not the time for that, but rather
 it is the time to reach out to those who have been hurt by this trajedy. And
 there are many ways we can do that, even if we are on the opposite side of
 the world, whether we are 'believers' or not.
 
 I hope and pray the people responsible are found and brought to justice.
 God bless you, and if you don't happen to believe in God, or any god -
 Regards
 
 --
 Chip Wiegand
 
 On Tuesday 11 September 2001 09:26, Alexander Skwar wrote:
  So sprach »[EMAIL PROTECTED]« am 2001-09-11 um 08:55:49 -0600 :
   We need the receive the help from Got, I believe He is the only one who
   can help us on this situation 
 
  Well, you know: *EXACTLY* this is the problem!  Your so called god.
  If it weren't for this superstition, the world would be a *MUCH* safer
  place.  I'm sure of that.
 
  But if it makes you feel better: Go on, believe in that.
 
 
 
  --
  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]
 
 
 -- 
 --
 Chip W.
 
 -- 
 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: Mailing list

2001-09-11 Thread Richard Lynch

You could examine the web-server logs...

But you either have to assume people only read it once, or count IPs and
ignore AOL/DHCP/Hotmail etc users whose IPs will change more or less at
random.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Sheni R. Meledath [EMAIL PROTECTED]
Newsgroups: php.general
To: PHP Masters [EMAIL PROTECTED]
Sent: Sunday, September 09, 2001 10:57 AM
Subject: Mailing list


 Hi,

 I am using PHP script for a mailing list application. Is there a way to
 track the no of users opened the email. All the images in this html email
 are read from the server. In that manner can we call a script from the
 email that can be used to store the no of counts. If anybody has got any
 idea on the same please let me know.

 Thanks  Regards

 Sheni R Meledath
 [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: mysql help

2001-09-11 Thread Richard Lynch

A create SQL statement is just an SQL statement.

Send it the same way you would send Select

You'll have to have the permissions set up right, so use mysql_error() until
you figure out what's going on.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Nikola Veber [EMAIL PROTECTED]
Newsgroups: php.general
To: php forum [EMAIL PROTECTED]
Sent: Sunday, September 09, 2001 4:04 PM
Subject: mysql help


 Hi !

 Is there a way for creating a table inside an exciting database from php ?

 Thanx

 Nikola



-- 
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: Getting a script to download files from an ftp server?

2001-09-11 Thread Richard Lynch

header(Content-type: application/x-octet-stream);
You'll also need differing Content-disposition: headers for IE and Netscape.
And, just for fun, you need Content-length: if you expect the pretty
progress meter to work.
For total fun, there's also a minor version of some browser where you need
to incorporate the filename into the URL:

yourserver.com/whatever.php/filename.tar.gz?filename=filename.tar.gz

The broken browser stupidly ignores your headers and uses the URL to decide
what to do...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Smileyq [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 1:15 AM
Subject: Getting a script to download files from an ftp server?


 I'm attempting to write a script to download files from a ftp server.
 Basically what will need to be done is this. The website will have a
 searchable database and once the selected items are found will have a
 download link. From this I would like to click on the download link and
 sent that to the php script to download the file.
 I've been messing around with it but can't seem to get it to work. As an
   example I've sending the request from the previos page like this.
 page.php?dir=blablafile=downloadme.tar.gz  . This is then sent to the
 php script and I cant' get it to download correctly. I'm looking for it
 to pop up the download manager and download it that way instead of
 opening it up in the browser. I'm at a loss here. 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] Re: PHP module unloadable

2001-09-11 Thread Richard Lynch

I think uncompress may be in zlib, which you said not to use...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Kevin Way [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 3:46 AM
Subject: PHP module unloadable


 I'm having a problem building a loadable PHP module with mysql support.
 without mysql support, there's absolutely no problem.  the module appears
 to load correctly, until you start apache, at which point I receive:

 Syntax error on line 227 of /usr/www/conf/httpd.conf:
 Cannot load /usr/www/libexec/libphp4.so into server:
/usr/www/libexec/libphp4.so: undefined symbol: uncompress

 I am running PHP's configure as:

 cd ../${php}
 ./configure --enable-inline-optimization \
 --prefix=${instdir} \
 --with-config-file-path=${instdir}/conf \
 --with-pgsql \
 --with-regex=php \
 --with-gettext \
 --enable-magic-quotes \
 --enable-shmop \
 --enable-trans-sid \
 --enable-sockets \
 --enable-sysvsem \
 --enable-sysvshm \
 --enable-versioning \
 --enable-memory-limit \
 --with-apache=../${apache} \
 --enable-wddx \
 --without-zlib \
 --with-pgsql \
 --with-mhash \
 --with-imap || exit 1
 #   --with-mysql=/usr || exit 1

 (last two lines changed to --with-imap \ --with-mysql=/usr || exit 1, for
 a module that fails as described above).

 I'd greatly appreciate any help in tracking this problem down.

 Kevin Way


-- 
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: Ramesus HELP ! Fwd: [PHP] mail() ERROR - WHY, WHY, WHY

2001-09-11 Thread Richard Lynch

Did anybody disable the mail() function in PHP?

What did  you put in php.ini to call sendmail?

Are there any error messages in your Apache logs?

Re-posting with Rasmus' name is probably not particularly useful...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Badger [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 1:34 PM
Subject: Ramesus HELP ! Fwd: [PHP] mail() ERROR - WHY, WHY, WHY


 This is a forwarded message
 From: Badger [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Monday, September 10, 2001, 12:23:54 AM
 Subject: [PHP] mail() ERROR - WHY, WHY, WHY

 ===8==Original message text===
 Hello ,


 I drowing here and need a life-ring!  I have a site relying heavily on
 e-mail registration, forums, etc. and mail() is broken in my php
 install.  I've been using an smtp server other than sendmail, but
 based on recommendations I have removed that smtp server, removed php,
 installed sendmail, reinstalled php, and php still complains that
 Warning: mail() is not supported in this PHP build and sendmail is
 clearly in my /var/lib/php.ini sendmail_path and the location is
 correct.  I can send mail from the command line, but not via php's
 mail()

 Need Heelp! real bad.

 (beg, beg)
 --
 Best regards,
  Badger  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]

 ===8===End of original message text===

 I am desperate to get this working.   If anyone can tell me a way to
 troubleshoot this problem, I'll be happy to pursue it myself.  I am
 running the RedHat 7.1 distribution of Linux, Apache 1.3.20, php
 4.0.6, and sendmail-8.10.11.  The Apache and php are src builds using
 tarballs and the sendmail is an rpm - I am only using sendmail to
 troubleshoot the problem, but I will eventually use dmail as my smtp
 server.  All the above servers are on the sam machine.

 I have turned logging on in my php.ini, but the mail() error does not
 get written to the log file I specified, only to the Apache error log
 - but the error is the same as that displayed in my browser when php
 tries to call mail()  Warning: mail() is not supported in this PHP build

 I've tried everything I can think of and recommendations from this
 list...

 I have removed php, removed sendmail, reinstalled sendmail,
 reinstalled php:

 here is my php build:

 -

 CPPFLAGS=-I/usr/local/include
 LDFLAGS=-L/usr/local/lib
 ./configure --prefix=/usr/local \
 --with-apache=/usr/local/src/Apachetoolbox-1.5.38/apache_1.3.20 \
 --enable-exif \
 --enable-track-vars \
 --with-calendar=shared \
 --enable-safe-mode \
 --enable-magic-quotes \
 --enable-trans-sid \
 --enable-wddx \
 --enable-ftp \
  --with-gd=/usr/local \
 --with-zlib \
 --enable-gd-native-tt \
 --with-t1lib=/usr/local/lib/php/t1libs \
 --with-jpeg-dir=/usr/local \
 --with-png-dir=/usr/local \
 --with-zlib-dir=/usr/local \
 --with-ttf \
 --with-freetype-dir=/usr/local \
  --with-imap=/usr/local \
  --with-mhash=/usr/local \
  --with-mcrypt=/usr/local \
  --with-unixODBC=/usr/local/unixODBC \
  --with-mysql \
  --

  My php.ini is i the proper location and chnges get reloaded after
  reloading Apache - verified by phpinfo().  Here is the pertinent area
  of my php.ini file:

  ---

  sendmail_path = /usr/sbin/sendmail -t -i

  -
  Here are others that I've tried in my php.ini file:

  
  sendmail_path = /usr/sbin/sendmail
  ---

  sendmail_path = /usr/sbin
  --

  sendmail_path = .:/usr/sbin/sendmail -t -i

  --

  sendmail_path = .:/usr/sbin/sendmail


  

  sendmail_path = .:/usr/sbin
  --

  ;sendmail_path =   (default)

  --


  I still get the mail() error


  Please help me figure this one out.

 --
 Best regards,
  Badgermailto:[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: Hierarchic menus using Javascript and PHP?

2001-09-11 Thread Richard Lynch

See my response to Girish' post.
You can't have JavaScript talking to PHP in real-time for user-interaction.
You either need to send your ENTIRE tree to JavaScript, or make the user
choose on each page from a sub-menu...

For that, you would just need to have JavaScript set the location to
something involving the ID of the sub-category so PHP can then generate a
new menu.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Nelson Goforth [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 3:06 PM
Subject: Hierarchic menus using Javascript and PHP?


 On my site I have a page that takes input into a MySQL database
 (though this isn't a db question).

 Each entry has a category and a subcategory entry, which should come
 from predefined lists and are therefore instituted as pull-down
 lists.  The category list is in a PHP array which feeds a SELECT
 pull-down list.  The subcategory choices should depend upon what
 category is selected.  In order to ease user input, I've used a
 javascript function to cause the subcategory pulldown to depend upon
 the category selection.  Thus if the category is Animals, the
 subcategory SELECT would show dog, cat, fish - but if the
 category were Colors the possible subcategories might be Red,
 Green, Yellow, Puce.

 On the initial entry - a blank record - this all works fine.  But if
 I go back in to modify a record I run into trouble, as I can't make
 the page reflect the stored value of the subcategory within the
 pull-down list (i.e. as the SELECTED item).


 I use the following PHP code to display the $categories array - and
 if there is a stored value ( $formValues[category] ) it displays
 that selection as SELECTED - which is exactly right.

printf(TRTDCategory /TD);
printf(TDSELECT NAME=category ONCHANGE=\updateCats()\\n);
printf(OPTION VALUE=0 === Select One === /OPTION\n);

$i=0;
while ($i  count($categories)) {
  printf(OPTION VALUE=%s %s%s/OPTION\n,
$categories[$i],
$categories[$i] == $formValues[category] ? SELECTED : ,
$categories[$i]);
  $i++;
}

printf(/SELECT/TD/TR);

 But when it comes to the Sub-Category the list that feeds the SELECT
 list is not in an array, but is coming from the JavaScript function
 like:

if(subCategoryIndex == 1)  // Colors
  document.search.subcategory.options[1] = new Option('Red');
  document.search.subcategory.options[1].value = red;
  document.search.subcategory.options[2] = new Option('Blue');
  document.search.subcategory.options[2].value = blue;
  ...etc...

 I can't figure a way to make the 'Update' version of the page display
 the value of the Sub-Category in a select list (so that the user CAN
 update it).  I can certainly have the value display, but it no long
 has the other possible members of the list, since it's not coming
 from a display.

 I couldn't see a way to do this (updating one form element from
 another) completely in PHP - else I would have.

 Does anyone have any ideas?

 Could I feed a PHP array FROM JavaScript?  If I could get the
 subcategory selection list into an arry I think I could make this
 work.

 Or possibly use another JavaScript script inside the PHP portion of
 the page in order to force it to mark the appropriate item
 SELECTED?  I tried this but couldn't make it work.

 Any help is appreciated - Thanks,
 Nelson



-- 
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: check box help.

2001-09-11 Thread Richard Lynch

Add [] to the name if you expect multiple checkboxes of the same name...
http://php.net/FAQ.php

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Chris Worth [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 9:24 AM
Subject: check box help.



 Hey gang I'm using a checkbox in a form that has its values dumped into a
mysql
 database.  for some odd reason, the checkbox information is lost

 It worked earlier so I'm guessing I introduced a typo someplace.

 this is the code in the form.  I figure if this looks ok to you all. I
just need to go search
 through my code more carefully.

 H2
 Recurring Seminar:input type=\checkbox\
 name=\recur\ value=\$recur\/H2 Recurring
 seminars are displayed with a different color text in
 listings BR


 I create the form as a variable that is displayed.

 thanks,

 chris




-- 
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: Uploading Photos to MySQL

2001-09-11 Thread Richard Lynch

Rasmus' classic Photo Album is still online with source code.

Google:
Rasmus Lerdorf and Photo Album

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Mike Gifford [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 2:45 PM
Subject: Uploading Photos to MySQL


 Hello,

 Has anyone developed another class for uploading images to a MySQL
database?

 I downlaoded upload_db.zip from:
 http://circle.ch/scripts/

 as it was a phplib based and it looks like it should do what is required.
 However it doesn't seem to be working.

 Does anyone else have any good pointers to scripts to store jpg/png files
in
 MySQL using PHP?

 Thanks.

 Mike
 --
 Mike Gifford, OpenConcept Consulting, http://openconcept.ca
 Offering everything your organization needs for an effective web site.
 Abolish Nuclear Weapons Now!: http://pgs.ca/petition/
 In all things it is better to hope than to despair.Wolfgang von Goethe



-- 
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: Problem with session_destroy

2001-09-11 Thread Richard Lynch

The file isn't written out until the end of your script, and you're trying
to kill it?...

Since you haven't registered any variables nor set them, deleting the
session doesn't seem like a big deal...

What's your overall design goal here?

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Rosen [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 9:05 AM
Subject: Problem with session_destroy


 I have the code:

 ?include(con.php);

 session_start();
 require_once(func1.php);

 if (lExistUser($cusr, $cpass)==false)
 {
 if (session_id()  )
 {session_destroy();}

 }

 When the page loads the first time I receive error:



 Warning: Session object destruction failed in main.php on line 9

 but when I make Refresh of page, there is no error !!

 Can someone any ideas ?

 Thanks
 Rosen






-- 
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: Can' connect to ldap server

2001-09-11 Thread Richard Lynch

Check your Apache log for any errors...

And, it's *possible* PHP was configured to log errors elsewhere as well...

See php.ini, or write some intentionally broken code to be sure you get
error messages to the browser.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Andre Konopka [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 4:18 AM
Subject: Can' connect to ldap server


 Hi

 I compiled PHP_4.0.6 with LDAP support (openldap-2.0.12) without any
 problems, but I can't connect to my locally
 running LDAP-Server. The whole thing is running on a HP-UX11 box.

 Here are my very simple two lines of code:


 $ds=ldap_connect (localhost);

 print connect result is .$ds.BR;


 If try to show the results I get error popup with

 'Documents contained no data. Try again later, or contact the server's
 administrator.'


 If I comment out the 'connect' line the browser show the line
 'connect result is'

 I started slapd with debugging level 65535 and I can see that there are
 no connection requests from PHP.


 Any idea?

 Andre


-- 
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: the proverbial mail() is not supported in this PHP build

2001-09-11 Thread Richard Lynch

It's entirely possible your ISP turned it off on purpose to foil spammers...

You *may* be able to http://php.net/exec sendmail and do an end-run around
that, if they were not smart enough to close off that access...

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Badger [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Sunday, September 09, 2001 7:41 PM
Subject: the proverbial mail() is not supported in this PHP build


 Hello ,

 I'm afraid that I have the mail() is not supported in this PHP build
 problem.  I have serached the archives to find an answer to this
 problem, but can only find others with the same problem and no
 solutions.

 Please let me know how this can be fixed, it is a MAJOR headache !



 --
 Best regards,
  Badger  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] Re: php apache server problem

2001-09-11 Thread Richard Lynch

What do you mean by an overloading of the server?...

It's possible that your configuration of MySQL number of clients that can
connect is lower than the number of httpd children that can live.

At some point, you'll have requests asking for MySQL connections, but MySQL
won't hand out any more...

Check httpd.conf and my.cnf for these numbers.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: | [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Tuesday, September 11, 2001 3:56 AM
Subject: php apache server problem


 Hello php-general,

   Ive got a virtual hosted site
   at  this  site  Ive  got some php files which are taking images from
   database but tey stopped operating since a overloading of the server
   the code of the taking pictores are here. Is there anyone who has an
   idea.
   codes are like that
   ?
   $DB  = @MYSQL_CONNECT( $dbserver, $user, $pass) or die(dbserver not
   ready);
   @mysql_select_db( $dbname) or die(Veri tabany seçilemedi);
   $Query=mysql_query(select  logo  from logotable where id='$id') or
   die (theres no such a thing);
   while ($Result = mysql_fetch_array ($Query))
   {
 $logo=$Result[logo];
 header(Content-type: image/gif);
 echo $logo;
   }

 --
 Best regards,
  itü  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] Re: PHP4 in .html. HELP!

2001-09-11 Thread Richard Lynch

Try it without the . in .html -- Just html, no .

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Max Kluev [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 5:54 AM
Subject: PHP4 in .html. HELP!



 Please, help.

 I write in httpd.conf:
 AddType application/x-httpd-php .html

 And see result in browser - browser get reply with content-type:
application/x-httpd-php and suggest to save it.
 If I rename script to *.php and call it from browser it works Ok.

 How and where can I explain httpd and apache reply with content-type:
text/html for .html PHP4 documents.

 Apache Version Apache/1.3.20 PHP/4.0.6

 Could you help me, please.


 --
 Max Kluev


-- 
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: Accessing Variable !!!

2001-09-11 Thread Richard Lynch

PHP lives on the server.
JavaScript lives on the browser.
Consider the sequencing of events:

1: Browser sends GET request
2: Apache begins processing request, decides to invoke PHP
3: PHP begins processing, starts sending out HTML (or other data)
4: Apache passes through PHP's HTML/data
5: Browser begins receiving HTML/data
6: Apache and PHP finish sending data and CLOSE CONNECTION
7: Browser displays HTML and executes JavaScript

By the time your JavaScript runs, PHP is long-gone.

The only way to get data back to PHP is to send a whole 'nother HTTP request
from JavaScript to get a whole 'nother URL.

This is not generally useful for humanly bearable interaction time-wise, but
is occasionally useful.

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Girish P [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 10:37 AM
Subject: Accessing Variable !!!


Hi,
 I am trying to use value of the text box  for the querying ..The
query is defined with in the a javaScript .
I am not able to get the Value.. inside the function.. However
document.form.text.value is getting the value.
How do we assign the value of javscript to PHP??? Is there a better way
,,,


Php is as follows:


html
head
titleSearch result/title
/head

body bgcolor=#f0
?php
echo Script Language = \JavaScript\\n;
echo function getNames()\n;
echo {\n;
echo alert(\Inside the FUcntion\);\n;
$connection = mssql_connect(girishp, sa, ) or die
(could not connect to server.);
$db = mssql_select_db(AZADMINGROUP, $connection) or die
(Could not select database);
$sql_employee = Select E_Number,E_First_Name,E_Last_Name from
T_Employee where E_First_Name = \$searchName\;
echo alert(document.searchEmpl.searchName.value);\n;
$result_employee = mssql_query($sql_employee, $connection) or die
(Coule not execute);  $count = 1;
while($row = mssql_fetch_array($result_employee)) {
$ENo = $row[E_Number];
$val = $row[E_First_Name];
$val = $val . $row[E_Last_Name];
#echo var val = document.searchEmpl.searchresult;\n;
$val = $val .  (  . $ENo .  );
echo document.searchEmpl.searchResult.options[$count].value =
'$val';\n;
echo document.searchEmpl.searchResult.options[$count].text =
'$val';\n;
$count++;
}
echo }\n;
echo /Script\n;
echo form name=\searchEmpl\ method=\POST\
action=\Employee_Details.php\\n;
echo h2font color=\#CC6699\Search :/font/h2\n;
echo hr color=\#CC6699\\n;
echo pfont color=\#CC6699\bEmployee Name :nbsp;
/b/fontinput type=\text\ name=\searchName\
size=\20\nbsp;\n;
echo input type=\button\ value=\Search\ name=\searchButton\
onClick=\getNames();\/p\n;
echo p align=\left\select size=\1\ name=\searchResult\\n;
echo optionSearch Result/option\n;
echo option/option\n;
echo option/option\n;
echo option/option\n;
echo option/option\n;
echo option/option\n;
echo option/option\n;
echo option/option\n;
echo option/option\n;
echo option/option\n;
echo /selectnbsp;nbsp; input type=\submit\ value=\Show
Details\ name=\B3\
/p\n;

echo /form\n\n;
?
/body

/html


TIA
Girish



-- 
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: enumerations // collections

2001-09-11 Thread Richard Lynch

First of all, you're going to have an awfully slow site if you end up
calling mysql_connect as often as it looks like you will.

You really only want to call mysql_connect once per script...

Collections in PHP are handled with arrays.

http://php.net/array

--
WARNING [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm
- Original Message -
From: Mitja Pagon [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
Sent: Monday, September 10, 2001 3:36 PM
Subject: enumerations // collections


 I'm writting a class in PHP that has the following syntax

 ?
 require_once(consts.inc);

 class User {
   var $ID;
   var $name;
   var $lastname;
   var $username;
   var $password;

   function GetUser($ID) {
$db = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASSWORD);
mysql_select_db(SQL_DATABASE, $db);

$RS = mysql_query(SELECT * FROM users WHERE ID=$ID, $db);

if ($fld = mysql_fetch_object($RS)) {
 $this-ID = $fld-ID;
 $this-name = $fld-name;
 $this-lastname = $fld-lastname;
 $this-username = $fld-username;
 $this-password = $fld-password;
 return true;
}
else {
 return false;
} #end if

mysql_free_result($RS);
mysql_close($db);
   }#end function


   function AddUser() {
if ((empty($this-name)) or (empty($this-lastname)) or
 (empty($this-username)) or (empty($this-password))) {
 return false;
}
else {
 $db = mysql_connect(SQL_SERVER, SQL_USER, SQL_PASSWORD);
 mysql_select_db(SQL_DATABASE, $db);
 $SQL = INSERT INTO users(name, lastname, username, password)
 VALUES('$this-name', '$this-lastname', '$this-username',
 '$this-password');
 mysql_query($SQL, $db);
 return true;
} #end if

   } #end function

  } #end class

 ?

 What I want to do now is implement a method(function) named ListUsers that
 will return all users from the database and asign the values to the
objects
 properties

 The result should be look something like this(at lest thats how
collections
 look like  in COM objects)

 $user-item[i]-property

 I hope I got my point accross.

 Thanks in advance!

 Mitja








-- 
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] reading a pop3 without imap functions

2001-09-11 Thread Carry Ian

Hello,

I want to read mails from a pop3 account. Our ISP doesn't support IMAP with PHP.

Can anybody help me how to do it using php.

Any help will be highly appreciated.

Thanks in advance.

Regards,
Carry

Carry Ian
e-mail: [EMAIL PROTECTED]



--
Get real solutions to all your problems.

http://www.salahkarindia.com - India's first advisory Portal

Your friend, advisor, healer,companion!!!

Register now  to  get free advice on all your problems.

--


-- 
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] CheckBoxes and Arrays

2001-09-11 Thread Don Read


On 12-Sep-2001 Christopher William Wesley wrote:
 On Tue, 11 Sep 2001, Ryan Stephens wrote:
 
 Im trying to output a list of options, each with a checkbox named ChkBox
 ...
 
 Name each checkbox ChkBox[] ... the brackets are the key.
 
 When the form is submitted, you'll have an array called $ChkBox that will
 contain the data only from the checked checkboxes.  You can loop over that
 array pretty simply.
 
 for( $i = 0; $i  sizeof( $ChkBox ); $i++ ){
   print( $ChkBox[$i] .  was checkedbr );
   // Delete the row from the database, etc ...
 }
 

$p=array();
while (list($k,$v) = each($cbk)) {
$p[]=$k;
}
$ids=implode(',', $p);
$qry=DELETE FROM foo WHERE id IN ('$ids');
mysql_query($qry);


Regards,
-- 
Don Read   [EMAIL PROTECTED]
-- It's always darkest before the dawn. So if you are going to 
   steal the neighbor's newspaper, that's the time to do it.

-- 
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] terror

2001-09-11 Thread nafiseh saberi

in IRAn all people hear bad news about terror.
and want to help.
how are you,are you safe ???
-
Best regards.
Nafiseh Saberi  
Iran -  Shiraz
Try to always happy and hopefull.
The smooth sea never made a skillful mariner.
Love your enemies , it will cause to try more.
-- please send me your sentences .
--



[PHP] Re: PHP module unloadable

2001-09-11 Thread Kevin Way

 I think uncompress may be in zlib, which you said not to use...

DOH!  Yeah, that was the problem... I 

Embarassed,
Kevin Way

-- 
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] terror

2001-09-11 Thread Richard Baskett

We, well I can't speak for everyone, but I appreciate your sentiments and I
am sure many people do.  Pray, pray for those survivors, pray for those who
are possibly still trapped in/under the world trade center, pray for the
relatives of victims, spread the word of peace.  Like I heard earlier all it
takes is a small stone to start a large snowball, which can also be applied
to doing good in the world instead of evil.

thank you for your concern and God bless.

Rick


 From: nafiseh saberi [EMAIL PROTECTED]
 Date: Wed, 12 Sep 2001 10:33:59 +0430
 To: [EMAIL PROTECTED]
 Subject: [PHP] terror
 
 in IRAn all people hear bad news about terror.
 and want to help.
 how are you,are you safe ???
 -
 Best regards.
 Nafiseh Saberi  
 Iran -  Shiraz
 Try to always happy and hopefull.
 The smooth sea never made a skillful mariner.
 Love your enemies , it will cause to try more.
 -- please send me your sentences .
 --
 


-- 
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] Changing perl to PHP

2001-09-11 Thread Richard Kurth

Could somebody tell me how to convert this little bet of code to PHP.
The rest of the code for this was easy to do but I dont know what to
do with this. Can I call LWP from php and if yes how?

# read the post from PayPal system and add 'cmd'
read (STDIN, $query, $ENV{'CONTENT_LENGTH'});
$query .= 'cmd=_notify-validate';

# post back to PayPal system to validate
use LWP::UserAgent;
$ua = new LWP::UserAgent;
$req = new HTTP::Request 'POST','https://www.paypal.com/cgi-bin/webscr';
$req-content_type('application/x-www-form-urlencoded');
$req-content($query);
$res = $ua-request($req);













Best regards,
 Richard  
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]




<    1   2