[PHP] Can anyone help me on nntp ?

2001-02-12 Thread James Hsieh
Hi! I want to know if I want to post a message to some newsgroup, is there any sample or function available ? Can you kindly point out where should I go or maybe give me an example for this ? Thanks. James -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] wide open

2001-02-12 Thread Rick Hodger
Dan Harrington [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Furthermore, Jonathan stated that he didn't "break into" your system - you left phpMyAdmin *wide* open, which is frankly asking for trouble. Imagine how much fun you'd have had if someone with

RE: [PHP] passthru environment variables

2001-02-12 Thread Tim Ward
fpassthru doesn't include the code in your php code. In just dumps the file to output as it runs. Anything defined in PHP (inluding variables and functions) in the file passed through will not be available to the calling program. You need include(); Tim Ward Senior Systems

Re: [PHP] Can anyone help me on nntp ?

2001-02-12 Thread Ankur Verma
I guess there is a NNTP class avaailable at http://phpclasses.upperdesign.com/ regards Ankur Verma HCL Technologies A1CD, Sec -16 Noida, UP India - Original Message - From: "James Hsieh" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 12, 2001 1:53 PM Subject: [PHP] Can

RE: [PHP] comparisons

2001-02-12 Thread PHPBeginner.com
try this first: if((strlen($pick1)==strlen(pick2))and($pick1==$pick2)) echo 'they are equal'; else echo 'they aren\'t at least in length'; However, it seens to me as a very slicky style ... whay not to make them somehow different let's say using an array, or having a

RE: [PHP] afraid !

2001-02-12 Thread PHPBeginner.com
Yes, or you can use a software written in PHP such as phpMyAdmin (search google) that will be easier , and online.. mySQL is good enough, and believe me, easier then Oracle. the perfect couple (and our best friends) are: Linux, Apache, PHP, mySQL ... this is how most of us live. Sincerely,

RE: [PHP] Search replace text

2001-02-12 Thread PHPBeginner.com
instead of writing to you the code I'll give you an idea: 1. you open the file and read it line-by-line assigning it to an array, 2. you loop that array parsing it line by line changing it's values with RegEx the way you want. 3. you open the same file and, looping the array writing it down

RE: [PHP] To The Hacker: CodeBoy

2001-02-12 Thread PHPBeginner.com
I agree with Jason, Are you guys nuts? He was just trying to be cool, and in order to be cool he needed to mention: THAT WAS ME!!! He's not a hacker (hey, no offence Jonathon) ... a real hacker will never post any threaten message on a 5000 users mailing list. A beginner(amateur) hacker however

RE: [PHP] way to save data

2001-02-12 Thread PHPBeginner.com
then you are on the right way: use SQL languages. They are fast, secure and reliable. Plus even easier to play with. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: McShen

RE: [PHP] checking for presnet file name

2001-02-12 Thread PHPBeginner.com
$PHP_SELF will give you the file name rlative to your Document Root http://www.php.net/manual/language.variables.predefined.php Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message-

RE: [PHP] unsubscribe php-general

2001-02-12 Thread PHPBeginner.com
nope you have to write it here: [EMAIL PROTECTED] Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: John McKown [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001

[PHP] RE: help: column into array?

2001-02-12 Thread Tim Ward
if ($result = mysql_db_query($database, $sql, $link_id);) { while ($thisrow = mysql_fetch_array($result)) { $array[] = $thisrow("field"); }; }; ... or something like that Tim Ward Senior Systems Engineer Please refer to the following disclaimer in

[PHP] RE: A way to duplicate data across databases

2001-02-12 Thread Tim Ward
you should be able to query the structure of the database in php/mysql. this should then give you everything you need to build your create table statement dynamically so you can build a black-box function that takes source and target databases and table name. You can proably find the tables in a

Re: [PHP] wide open

2001-02-12 Thread Carsten Gehling
From: "Jason Murray" [EMAIL PROTECTED] Sent: Monday, February 12, 2001 3:44 AM My *point* was that he should be glad that all he did was add an entry to the database instead of deleting every damn table in there, hence the bit about "someone with *malicious* intent". I disagree. If Codeboy

[PHP] COM vs ???

2001-02-12 Thread Ghislain Bruyere
Hello, I would like make some componnent on linux wich I can use on php. Like I create a COM object on Windows and use it with a asp pages and reuse it in a vb application without code duplicate, I would like install PHP on a linux and not on a Windows. Thanks Have a nice day Ghislain

[PHP] Apache/mod_rewrite for User Tracking

2001-02-12 Thread jdwright
I'm not sure how off-topic this may be, but I'll carry on anyway... I wan't to create a user tracking system on the web site, that I can use in PHP. I've had a look at mod_rewrite, and would like to implemet something like the following: I have a few scripts, say 'home', 'search', 'help',

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-12 Thread Rasmus Lerdorf
rasmus Mon Feb 12 03:43:45 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: CVS account for Alan Knowles Index: CVSROOT/avail diff -u CVSROOT/avail:1.82 CVSROOT/avail:1.83 --- CVSROOT/avail:1.82 Sun Feb 11 12:50:35 2001 +++

[PHP-CVS] cvs: php4 /ext/imap php_imap.c

2001-02-12 Thread Thies C. Arntzen
thies Mon Feb 12 03:57:22 2001 EDT Modified files: /php4/ext/imap php_imap.c Log: fixed possible leak in imap_search Index: php4/ext/imap/php_imap.c diff -u php4/ext/imap/php_imap.c:1.54 php4/ext/imap/php_imap.c:1.55 --- php4/ext/imap/php_imap.c:1.54

[PHP] money maths

2001-02-12 Thread Michael Hall
I'm building a demo shopping cart and have sorted out most things but this: I have php work out subtotals by multiplying $quantity * $price ... this works fine except that 14.95 * 2 comes out as 29.9 not 29.90. In other words, how to add a zero so that there are always two decimal places. Any

[PHP-CVS] cvs: CVSROOT / avail cvsusers gen_acl_file.m4

2001-02-12 Thread Rasmus Lerdorf
rasmus Mon Feb 12 04:05:12 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Switch mgddavid to davidg Index: CVSROOT/avail diff -u CVSROOT/avail:1.84 CVSROOT/avail:1.85 --- CVSROOT/avail:1.84 Mon Feb 12 03:46:24 2001 +++

RE: [PHP] money maths

2001-02-12 Thread Michael Hall
Brilliant! Once again this list proves to be one of the wonders of the world. Problem solved in 10 minutes or less. Thanks again. On Mon, 12 Feb 2001, Martin E. Koss wrote: Try the number_format example: $Price = number_format($BasePrice,2); Martin. -Original Message- From:

Re: [PHP] Run a script for 20minutes

2001-02-12 Thread Carsten Gehling
From: "Martin E. Koss" [EMAIL PROTECTED] Sent: Monday, February 12, 2001 1:08 PM Is it a surprise that it might take up to 20 or 30 minutes to build over 20,000 simple HTML files? Maybe you shouldn't run your script through the browser. To me it sounds like you're doing a one-time process

[PHP] Run a script for 20minutes

2001-02-12 Thread Martin E. Koss
Hi, I have PHP3 and MySQL on Win98 and am trying to run a script that loops through a file making process and it needs about 20 - 30 minutes to run. It generates static HTML files based on content in a database. I've increased Internet Explorer's timeout to allow for this but for some reason only

RE: [PHP] Run a script for 20minutes

2001-02-12 Thread Dominick Vansevenant
I think there are timeouts on php as well: This is taken from the php.ini file. max_execution_time = 30 ; Maximum execution time of each script, in seconds I hope this helps you, you can find php.ini in your windows directory. If you are using a database, also check that for timeouts. D.

Re: [PHP] Run a script for 20minutes

2001-02-12 Thread Andy Woolley
Something doesn't seem right here. I've executed scripts that have taken 4 hours to complete in the past and the only thing I had to set was: set_time_limit(0); Are you echoing anything to the screen, if not maybe you should after every loop increment, you may also need to use the flush()

[PHP] ssl

2001-02-12 Thread andreas \(@work\)
hi all, is there anything we should be aware of if we like that our php/mysql pages are working with an ssl-server ? thank you 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

[PHP] Newbie dummy questions..... error messages

2001-02-12 Thread Brian V Bonini
I get the following on one of my pages, Warning: Use of undefined constant month - assumed 'month' in /usr/local/etc/httpd/vhosts/eastcoastbicycles.com/htdocs/index.php on line 121 Warning: Use of undefined constant mday - assumed 'mday' in

RE: [PHP] XML Parsing The Sequel II

2001-02-12 Thread Dave
here is come code (not exactly what you need) that sends an XML file(variable) to an XML server, and then gets the XML response from the server and writes it out to a file, returning the filename as the function return for the php file to resume its processing of the file in the XML parser (yet

Re: [PHP] fscanf problem

2001-02-12 Thread John Vanderbeck
Hmm..noone has any ideas on this one? Its really driving me crazy - John Vanderbeck - Admin, GameDesign - Original Message - From: "John Vanderbeck" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 11, 2001 10:01 PM Subject: [PHP] fscanf problem my code... WRITE TO

Re: [PHP] Run a script for 20minutes

2001-02-12 Thread Charlie Llewellin
If you don't want to run the script from the command line you can use ignore_user_abort with set_time_limit(?) in the script to allow you to close the browser and let it do its thing. I have PHP3 and MySQL on Win98 and am trying to run a script that loops through a file making process and it

[PHP] Capturing Emails

2001-02-12 Thread Website4S
Hi, What is the best way to capture an email sent to a server so that I can copy it and send it to a number of emails selected from a db. I can do the scripting except for the capturing part (Presuming I have no idea when the email is sent to the server) Any links regarding this subject

[PHP] header() in apache/CGI mode PHP

2001-02-12 Thread Aaron Held
I recently moved a site to a host that only supports PHP as a CGI, not mod_php. I cannot seem to set any headers using the header() function, so I can't set cookies either. Where can I find additional documentation as to the differences between the mod_php and CGI/commandline versions of PHP in

[PHP-CVS] cvs: php4 /ext/oci8 oci8.c

2001-02-12 Thread Thies C. Arntzen
thies Mon Feb 12 06:36:28 2001 EDT Modified files: /php4/ext/oci8 oci8.c Log: @- Improved OCI8 dead-session detection. (Patch by: George Schlossnagle) Index: php4/ext/oci8/oci8.c diff -u php4/ext/oci8/oci8.c:1.105 php4/ext/oci8/oci8.c:1.106 ---

[PHP] Cannot get PHP w/GD to compile with Apache on RH

2001-02-12 Thread Greg Kopp
I am having trouble getting PHP, GD and apache compiled. I have successfully compiled PHP plus options with Apache, but can't seem to get this to work. I need to get ImageCreateFromJPEG working. I have searched the digest, newsgroups, etc., and haven;t found a solution that seems to work. I am

[PHP] Re: [PHP-INST] Cannot get PHP w/GD to compile with Apache on RH

2001-02-12 Thread Rasmus Lerdorf
You should be using: --with-jpeg-dir=/usr Also make sure that you don't have the old gd.h from gd-1.3 lying around. ie. locate gd.h and make sure you only have one. rpm -qa | grep gd -Rasmus On Mon, 12 Feb 2001, Greg Kopp wrote: I am having trouble getting PHP, GD and apache compiled. I

Re: [PHP] Cannot get PHP w/GD to compile with Apache on RH

2001-02-12 Thread jason cox
Greg, I've done this many a time and haven't ever been able to do it from rpms. I install the gd stuff including libjpeg and libpng into the same directory. In my case it's /usr/local/gd. Then you should specify the path like --with-gd=/usr/local/gd . This has always worked for me. Jason

Re: [PHP] Capturing Emails

2001-02-12 Thread jason cox
Ade, If you're running Unix/Linux, I would recommend using Procmail. It does the local delivery for mail. You would setup processing rules and can work with copies of emails for processing without disturbing delivery. Useful Procmail links Top site: http://www.ii.com/internet/robots/procmail/

[PHP] Problem with enctype=multipart/form-data forms

2001-02-12 Thread System Administrator
Hi, I'm having a weird problem with a recently upgraded box. Its a RedHat + PHP4.0.4pl1-3 + Apache-1.3.14-3 box (All packages were installed from RedHat official RPMs) I have a very simple form with enctype=multipart/form-data. This will allow some users to upload files. This code was working

[PHP] Time in php problem....

2001-02-12 Thread Ng Kok Chun
hi... i need some help... currently i doing web base programming ( econsultant )using php, apache and mysql as well... now i facing a problem which i need : 1) get time when consultant log on 2) get time when consultant log off 3) calculate how long for the specified consultant been log on to

[PHP] MySQL fields

2001-02-12 Thread Brandon Orther
Hello, What type of field should I use if I don't want it to have a max length of characters? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com

[PHP-CVS] cvs: php4 /main safe_mode.c

2001-02-12 Thread Andi Gutmans
andiMon Feb 12 07:47:38 2001 EDT Modified files: /php4/main safe_mode.c Log: - Fix warning PR: Submitted by: Reviewed by: Obtained from: Index: php4/main/safe_mode.c diff -u php4/main/safe_mode.c:1.25 php4/main/safe_mode.c:1.26 ---

RE: [PHP] To The Hacker: CodeBoy

2001-02-12 Thread Philip Olson
Don't worry about him Phillip. And you Jonathon erase all these files and contact Phillip *personally* telling him more what his security wholes are, so he'll be grateful to you. Just to clear things up, my only comments mentioned that this is silly and calling someone a "hacker" publically

Re: [PHP] MySQL fields

2001-02-12 Thread Christopher Allen
text field Hello, What type of field should I use if I don't want it to have a max length of characters? Thank you, -- 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

RE: [PHP] Time in php problem....

2001-02-12 Thread Dave VanAuken
almost didn't respond to this given the wide dissemination and the broad nature of the question can't be done with any accuracy. you could, create a session or uservariable... have that transmitted with a screen refresh, or anytime your consultant moves within the site resetting an internal

[PHP] Include files

2001-02-12 Thread Conover, Ryan
I have an include file foo.inc. I want to call a function that is in another include file,say anotherfoo.inc, from the foo.inc. //Foo.inc include "c:\\...\\anotherfoo.inc"; //other code //end of include can I call an include from another include? I tried the above but it fails opening the

[PHP] character problem

2001-02-12 Thread John P. Donaldson
I've created a PHP script that is called from a form to send an email. The contents of the email is a hidden value in the form named "info," and is typically a paragraph of text. It works fine, however, for some reason, the apostrophy character always gets emailed looking like this: /' I've

RE: [PHP] character problem

2001-02-12 Thread Dave VanAuken
PHP is doing what it should to your form input. It automatically performs "addslashes" to all form input so that the variables are parsed correctly on the receiveing end. do a "stripslashes" to get rid of it. read the manual on these two and it will all be explained. Dave -Original

[PHP] What Does This Mean?

2001-02-12 Thread Ben Ocean
Hi; I just ran into the following error while doing maintenance on my RedHat box: Unsatisfied dependencies for mod-php3-mysql-3.0.8-2: mod-php3 = 3.0.8 What does this mean and how do I fix it? TIA, BenO -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Regex help needed...

2001-02-12 Thread Jesse Swensen
This should be a quick one, but I can't seem to wrap my brain around it. All I need to do is replace leading or trailing spaces with underscores. If there is spaces in between words, leave them alone. Suggestions? -- Jesse Swensen [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] imagecolorallocate / imagesetpixel / palette size?

2001-02-12 Thread Matt McClanahan
On Sun, Feb 11, 2001 at 01:40:11AM -0700, Dan Harrington wrote: (snip) Its like the "palette" only holds 256 pixels or something, what's the deal with that? Anyone experienced this before? I've looked through the GD library documentation at boutell.com, i've looked through php.net, and

RE: [PHP] MySQL

2001-02-12 Thread Brandon Orther
I fixed it, Me so stupid, I had it order by a field that wasn't there. -Original Message- From: Brandon Orther [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 9:15 AM To: PHP User Group Subject: [PHP] MySQL Hello, I am new to MySql and I am trying to make a simple script

RE: [PHP] character problem

2001-02-12 Thread Philip Olson
On Mon, 12 Feb 2001, Dave VanAuken wrote: PHP is doing what it should to your form input. It automatically performs "addslashes" to all form input so that the variables are parsed correctly on the receiveing end. do a "stripslashes" to get rid of it. Yes and it's doing this via the

RE: [PHP] MySQL

2001-02-12 Thread Philip Olson
For this sort of thing, replacing statements such as : or die("Couldn't execute query."); With : or die(mysql_error()); Would have instantly told you the problem, in nice human readable format. Regards, Philip On Mon, 12 Feb 2001, Brandon Orther wrote: I fixed it, Me so

RE: [PHP] imagecolorallocate / imagesetpixel / palette size?

2001-02-12 Thread Dan Harrington
You are kidding me, right? I can't believe it. In this age, 256 colors just doesn't cut the mustard. Oh well, free is free, ya get what ya pay for. And here I was all excited about the GD library. Thanks Dan -Original Message- From: Matt McClanahan [mailto:[EMAIL PROTECTED]] Sent:

[PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mgd_attachment.h mgd_calendar.h mgd_element.h mgd_errno.c mgd_errno.h mgd_errno.pl mgd_event.h mgd_eventmember.h mgd_file.h mgd_group.h mgd_host.h mgd_image.h mgd_internal.h mgd_mail.h mgd_member.h mgd_midgard.h mgd_oop.h mgd_page.h mgd_pageelement.h mgd_pagelink.h mgd_person.h mgd_preferences.h mgd_preparser.h mgd_sitegroup.h mgd_snippet.h mgd_snippetdir.h mgd_style.h mgd_topic.h midgard-logo.h midgard-root.php midgard-team.h midgard.c mkall oop.c page.c pageelement.c pagelink.c parameter.c person.c php4_porting.txt php_midgard.h preferences.c preparser-parser.y preparser-scanner.l preparser.c sitegroup.c snippet.c snippetdir.c style.c test-db.tar.gz topic.c /ext/midgard/logo midgard-logo.gif mklogo.c

2001-02-12 Thread Emiliano Heyns
emile Mon Feb 12 09:23:37 2001 EDT Added files: /php4/ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge

Re: [PHP] Include files

2001-02-12 Thread Alexander Wagner
Conover, Ryan wrote: I have an include file foo.inc. I want to call a function that is in another include file,say anotherfoo.inc, from the foo.inc. [..] can I call an include from another include? Sure. I tried the above but it fails opening the other include. Should I have the '

RE: [PHP] imagecolorallocate / imagesetpixel / palette size?

2001-02-12 Thread Brian V Bonini
That's because it was originally designed for gif's. Gif's only have a 256 color palette.. -Original Message- From: Dan Harrington [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 12:30 PM To: Matt McClanahan Cc: [EMAIL PROTECTED] Subject: RE: [PHP] imagecolorallocate

RE: [PHP] header() in apache/CGI mode PHP

2001-02-12 Thread PHPBeginner.com
I think you can just search the archives for it. I am sure it was covered here many times. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Aaron Held [mailto:[EMAIL

Re: [PHP] Regex help needed...

2001-02-12 Thread Jason Stechschulte
On Mon, Feb 12, 2001 at 12:15:04PM -0500, Jesse Swensen wrote: This should be a quick one, but I can't seem to wrap my brain around it. All I need to do is replace leading or trailing spaces with underscores. If there is spaces in between words, leave them alone. $fix = ereg_replace("(^ )|(

RE: [PHP] MySQL fields

2001-02-12 Thread PHPBeginner.com
Text field will support something over 65,000 characters read the docs on mySQL... Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Brandon Orther [mailto:[EMAIL

RE: [PHP] Include files

2001-02-12 Thread PHPBeginner.com
Yes, you can include foo.php which has another include in it and another and another they will all appear to you as a one single file. But, be careful though, do not reinclude them, or you'll create an infinite loop.. use include_once instead Sincerely, Maxim Maletsky Founder, Chief

RE: [PHP] Regex help needed...

2001-02-12 Thread PHPBeginner.com
rtrim() www.php.net/rtrim Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Jesse Swensen [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 13, 2001 2:15 AM To: [EMAIL

Re: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.h mg

2001-02-12 Thread Sterling Hughes
emile Mon Feb 12 09:23:37 2001 EDT Added files: /php4/ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge

RE: [PHP] XML Parsing The Sequel II

2001-02-12 Thread Steve Haemelinck
-Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: zondag 11 februari 2001 11:13 To: PHP Mailing Listl (E-mail) Subject:[PHP] XML Parsing The Sequel II Ok, yesterday I had problems parsing an XML from Nasdaq. Thx to Matt these problems have

[PHP-CVS] cvs: php4 /ext/midgard test-db.tar.gz

2001-02-12 Thread David Guerizec
davidg Mon Feb 12 10:10:40 2001 EDT Removed files: /php4/ext/midgard test-db.tar.gz Log: This file is not needed anymore, check the midgard CVS for the up-to-date file: http://cvs.midgard-project.org/cvsweb.pl in /midgard/data -- PHP CVS

[PHP] How to send email

2001-02-12 Thread Emmanuel Halphen
Hi, I have a big problem. I am trying to send email by php on a server which doesn't have sendmail installed. In fact, we don't like to install it. I use the 4.0.4pl1 version of PHP, and I have understand that the function imap_mail doesn't work any more in this version. Is there another

Re: [PHP] Capturing Emails

2001-02-12 Thread Jamie Alessio
What is the best way to capture an email sent to a server so that I can copy it and send it to a number of emails selected from a db. Here's one way to do it: - You'll need to compile PHP as a cgi executable (http://php.net/manual/en/install.commandline.php). - If you are using sendmail you

[PHP] incorrct behavior w/ persistent connection

2001-02-12 Thread Michael George
Hello all! I'm VERY new to PHP+MySQL, but I've been writing software for years. Anyway, I have a simple question to see if anyone else has had this problem. I have a PHP app that creates a table and makes entries to it. Those entries can then be edited. I've found that if I hit the "add"

RE: [PHP] XML Parsing The Sequel II

2001-02-12 Thread Steve Haemelinck
I think I found the problem. Because I am behind a proxy I can not connect to http://quotes.nasdaq.com. And get the data !!! -Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: zondag 11 februari 2001 11:13 To: PHP Mailing Listl (E-mail) Subject:

Re: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.cevent.c eventmember.c file.c fudge genentry.pl group.c ho

2001-02-12 Thread Derick Rethans
On Mon, 12 Feb 2001, Emiliano wrote: http://www.midgard-project.org/topic/165.html Well, that's a nice project, but why does it need to be in the PHP CVS? Derick Rethans - PHP: Scripting the Web - www.php.net - [EMAIL

[PHP] curl - USERPWD

2001-02-12 Thread Benji Spencer
Has anyone successfully used CURL_USERPWD? When using this, it returns a "Document contains no data", and a "segmentation fault" is written to the apache error_logs. I can produce slightly different results by leaving the username:password field empty. It at least writes a "password:" line to

php-general Digest 12 Feb 2001 19:58:27 -0000 Issue 508

2001-02-12 Thread php-general-digest-help
php-general Digest 12 Feb 2001 19:58:27 - Issue 508 Topics (messages 39182 through 39254): Can anyone help me on nntp ? 39182 by: James Hsieh 39185 by: Ankur Verma Re: "wide open" 39183 by: Rick Hodger 39197 by: Carsten Gehling 39214 by: Dan

[PHP] Apache not starting after adding php via mod_so.

2001-02-12 Thread Sieger, Roland
hello gurus, this is the first time, trying to solve a problem with this list. I checked some of the archives, may be not all. So if that has been an already asked question, please forgive. I also do not know anything about the common "behaviour" on this list. But anyway : here is the

RE: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.

2001-02-12 Thread Sean R. Bright
This is distributed as GNU and the GNU license is splattered throughout, is that a problem as we have seen with readline? Sean -Original Message- From: emile [mailto:emile]On Behalf Of Emiliano Sent: Monday, February 12, 2001 1:42 PM To: Sterling Hughes Cc: [EMAIL PROTECTED]

RE: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c ho

2001-02-12 Thread James Moore
http://www.midgard-project.org/topic/165.html Well, that's a nice project, but why does it need to be in the PHP CVS? Just too add to this.. I dont see what place midgard has in PHP CVS, If I go and create a totally separate project which isnt a PHP extension really then can I put it in CVS

Re: [PHP] Regex help needed...

2001-02-12 Thread Jesse Swensen
on 2/12/01 1:01 PM, Jason Stechschulte at [EMAIL PROTECTED] wrote: On Mon, Feb 12, 2001 at 12:15:04PM -0500, Jesse Swensen wrote: This should be a quick one, but I can't seem to wrap my brain around it. All I need to do is replace leading or trailing spaces with underscores. If there is

RE: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.

2001-02-12 Thread James Moore
This is distributed as GNU and the GNU license is splattered throughout, is that a problem as we have seen with readline? Sean This is distributed as GNU and the GNU license is splattered throughout, is that a problem as we have seen with readline? quote The application and

Re: [PHP] Search replace text

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 01:22, David Robley wrote: while (!feof($file)) { $line = fgets($file, 255); if(eregi($oldemail, $line, $out)) { str_replace($oldemail, $newemail, $line); You need to assign the output of this function to a string:

Re: [PHP] rewriting this SQL statement to remove subselect

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 01:31, Scott Mebberson wrote: I understand that as of version 3.24, MySQL will support subselects. But untill then (because 3.23 is the latest stable release) I need to convert this SQL satement into something that can be used with v3.2? - the version just before

Re: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.cevent.c eventmember.c file.c fudge genentry.pl group.c ho

2001-02-12 Thread Emiliano
Derick Rethans wrote: On Mon, 12 Feb 2001, Emiliano wrote: http://www.midgard-project.org/topic/165.html Well, that's a nice project, but why does it need to be in the PHP CVS? I don't really understand this question. It's a PHP extension. Why do the mysql, or the imap extensions need

[PHP] mysql +php+ array

2001-02-12 Thread Ramiro Radjiman
I have the following code: $arr_aantal = explode (",", $aantal); $arr_str_men = explode (",", $str_men); $arr_recht = explode (",", $recht); $arr_rechtverstek = explode (",", $rechtverstek); $arr_verstekgelijk = explode (",", $verstekgelijk); $arr_verstekongelijk = explode (",",

Re: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c host.c image.c mail.c member.c mgd_access.h mgd_article.

2001-02-12 Thread Emiliano
"Sean R. Bright" wrote: This is distributed as GNU and the GNU license is splattered throughout, is that a problem as we have seen with readline? I'm not familiar with the problems you may have had with readline. If there's a licencing issue I'd love to talk about it. Emile -- PHP CVS

Re: [PHP-CVS] cvs: php4 /ext/midgard .cvsignore ChangeLog INSTALL Makefile.in access.c article.c attachment.c calendar.c config.m4 element.c event.c eventmember.c file.c fudge genentry.pl group.c ho

2001-02-12 Thread Emiliano
James Moore wrote: http://www.midgard-project.org/topic/165.html Well, that's a nice project, but why does it need to be in the PHP CVS? Just too add to this.. I dont see what place midgard has in PHP CVS, If I go and create a totally separate project which isnt a PHP extension

Re: [PHP] Regex help needed...

2001-02-12 Thread Jason Stechschulte
This is very close. If the string, " Testing ", had multiple spaces, but I wanted to convert each space to a "_", then what? I tried: There may be a better way, but here is a lengthy one that works. $checkme = " this is it "; if(ereg("^( )+", $checkme,

[PHP] sorting a csv text file in PHP

2001-02-12 Thread Mike Mike
Hi list, I have a csv text file that looks like this: Mike,1,Monday 12th of February 2001 02:14:09 PM Bob,3,Monday 12th of February 2001 02:14:17 PM Marry,2,Monday 12th of February 2001 02:16:38 PM I'm trying to get it to sort by the 2nd value (number descending and to show only the top two

[PHP] returning multiple variables from a function?

2001-02-12 Thread James, Yz
Hrms. Got a small problem. I'm now using functions on a regular basis, but I've come to another sticking point with them: returning multiple variables from the function... Here's a really quick example (nothing to do with what I intend to use the functions for): function CUP

[PHP] (g)Zip archiving of local files?

2001-02-12 Thread Michael Geary
Hi All, I've seen a couple of references to archiving files using exec() and tar or zip. I am wondering, however, if this is the best/only way to do this. Is this an inherently threaded process, so multiple simultaneous requests won't seriously compromise server performance? What other gotchas

Re: [PHP] returning multiple variables from a function?

2001-02-12 Thread Matt McClanahan
On Mon, Feb 12, 2001 at 09:13:09PM -, James, Yz wrote: What if I wanted to "return" more than one variable from the function? And how would I assign it a name? Like the actual variable, or is that just not possible? I've tried return $var1,$var2; You're on the right track. return

Re: [PHP] money maths

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 11:34, Michael Hall wrote: this works fine except that 14.95 * 2 comes out as 29.9 not 29.90. In other words, how to add a zero so that there are always two decimal places. Any solution to this, including regex? I can't find anything look for number_format() and

Re: [PHP] mysql +php+ array

2001-02-12 Thread Web master
Hi Ramiro, Your code looks ok, why don't you try the following and tell me is working or not $arr_aantal = explode (",", $aantal); $arr_str_men = explode (",", $str_men); $arr_recht = explode (",", $recht); $arr_rechtverstek = explode (",", $rechtverstek); $arr_verstekgelijk = explode (",",

Re: [PHP] returning multiple variables from a function?

2001-02-12 Thread John Donagher
An approach that many people take is to simply have a function return success or failure, and have any data that needs to be propogated upwards assigned to pass-by-reference parameters. I like this approach because it removes any question as to what a function returns. One drawback is that it

[PHP] Broken icon?

2001-02-12 Thread Malouin Design Graphique
Hello, My problem is that I have in the table below an URL (see $indice_url) that points to the graphic (.gif) that has to be use by the the "$indice" variable. The graphics ( five different ones) located in the same folder as the script " data_out.php3" Any Guru out here could shred me the

Re: [PHP] comparisons

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 10:41, PHPBeginner.com wrote: I'm having a rather strange problem. I'm trying to compare two values. "01" and "1". The variables names that they are submitted under are pick1 and pick2. i use the following code [...] I still get the error. Anyone have any

Re: [PHP] Problems with ! in mail();

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 22:27, Curtis, Lorenzo wrote: I am trying to process a form using text/html and mail(). The resulting email continues to have an ! inserted randomly into the email. Does anyone know how to avoid this?? Yes. Look through your code and find out where you're

[PHP] Using PHP to process forms

2001-02-12 Thread Don
Does anyone have examples of using PHP to process forms? I'd also like to know if I can embed the code in my html file or do I have to write a CGI server side script to do it? Thanks, Don -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Using PHP to process forms

2001-02-12 Thread Joe Stump
These are really basic functions of PHP and you should probably start out with some of the beginner tutorials found on php.net --Joe On Mon, Feb 12, 2001 at 04:54:30PM -0500, Don wrote: Does anyone have examples of using PHP to process forms? I'd also like to know if I can embed the code in

RE: [PHP] Problems with ! in mail();

2001-02-12 Thread Curtis, Lorenzo
I don't think it's a bug in my code... I have gone through it dozens of times and there are NO exclamation points... __ Lorenzo Curtis Website/Database Developer prexar - internet and beyond [EMAIL PROTECTED] (207) 974-4334 -Original Message- From:

Re: [PHP] Problems with ! in mail();

2001-02-12 Thread Christian Reiniger
On Monday 12 February 2001 23:00, Curtis, Lorenzo wrote: I don't think it's a bug in my code... I have gone through it dozens of times and there are NO exclamation points... Well, somewhere it has to come from, and PHP doesn't have an "insert stuff into mails randomly" festure... On Monday

FW: [PHP] XML Parsing The Sequel II

2001-02-12 Thread Steve Haemelinck
-Original Message- From: Steve Haemelinck [mailto:[EMAIL PROTECTED]] Sent: maandag 12 februari 2001 21:52 To: 'Steve Haemelinck' Subject:RE: [PHP] XML Parsing The Sequel II Ok, I solved the problems with my proxy, I can get the xml but I can not get it completely. Why?

[PHP] input type equals image

2001-02-12 Thread matthewt tozer
When a form is submitted from an image (e.g. input src="../images/next1.gif" name="paging" type="image" value="pageforward" ) this will be passed in the URL as paging.x=SOME_NUMBER. If I try and access this variable as ${paging.x} in the subsequent PHP script I get nothing. How can I access

  1   2   >