[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 PROTE

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

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 Enginee

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

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 lette

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, M

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 overr

RE: [PHP] afraid !

2001-02-12 Thread PHPBeginner.com
and BTW: get yourself a non-2MB-limited email address... hotmail will stop working for you within approximately .hmm 1 week? there are 5.000 subscribers to this list and it's volume often get's to few hundreds emails a day. Sincerely, Maxim Maletsky Founder, Chief Developer PHPB

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 [ma

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- From:

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 1

RE: [PHP] Preserve variables between page loads?

2001-02-12 Thread PHPBeginner.com
Why don't you use sessions? php.net/sessions Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Chuck Mayo [mailto:[EMAIL PROTECTED]] Sent: Monday, February 12, 2001 2:24 PM To:

[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 res

[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 d

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 Code

[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', etc.

[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 +++ CVSROOT/

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

2001-02-12 Thread Rasmus Lerdorf
rasmus Mon Feb 12 03:46:24 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: Doc account for Fernando Augusto Medeiros Silva Index: CVSROOT/avail diff -u CVSROOT/avail:1.83 CVSROOT/avail:1.84 --- CVSROOT/avail:1.83 Mon Feb 12 03:43:4

[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 so

RE: [PHP] money maths

2001-02-12 Thread Martin E. Koss
Try the number_format example: $Price = number_format($BasePrice,2); Martin. -Original Message- From: Michael Hall [mailto:[EMAIL PROTECTED]] Sent: 12 February 2001 10:35 To: PHP List Subject: [PHP] money maths I'm building a demo shopping cart and have sorted out most things but this

[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 +++ CVSROOT/ava

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

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 Martin E. Koss
I'm using a mySQL database but to be honest I think the only thing that was timing out was the browser, since hacking the registry to eliminate that timeout the only thing I can do is wonder why it only finishes half what it is supposed to do. I'll try it on a faster machine later - it's on a AMD

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() comma

[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 /usr/local/etc/httpd/vhosts/eastcoastbicycles.com/htdoc

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 an

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... > > WR

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 would

Re: [PHP] "wide open"

2001-02-12 Thread Dan Harrington
> > "Harmlessly" pushing an unlocked door open, and walking in and writing on > > a whiteboard "Gangstaboy was here" is just as much of a crime as > > unauthorizedly logging into a machine, no matter how "wide open" it is, > > even if "harm" is not done. > > I will freely admit I have seen and pe

[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 --- php4/

[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 us

[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 hav

[PHP] PHP BOF in Stockholm

2001-02-12 Thread Rasmus Lerdorf
There will be a PHP BOF at the Nordu2001 (www.nordu.org) conference on Thursday Feb.15 at the Stockholm City Conference Center room 355 from 17:00 to 18:00. You do not need to need to be registered for the conference to attend the BOF. Also, I am giving a full day PHP tutorial tomorrow (Tuesday

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

Re: [PHP] passthru environment variables

2001-02-12 Thread Rich Puchalsky
Tim Ward <[EMAIL PROTECTED]> wrote: > fpassthru doesn't include the code in your php code. In just dumps the file > to output as it runs. I was using the command "passthru", which is supposed to pass the *output* of an external program through to standard out. In other words, let's say I wanted

[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 th

[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 --- php4/main/saf

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" publicall

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 li

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 tim

[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 o

[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 tri

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 Messag

[PHP] MySQL

2001-02-12 Thread Brandon Orther
Hello, I am new to MySql and I am trying to make a simple script get info from a table. Can someone please look at the below code and tell me if they see what is wrong? The error I get is: Couldn't execute query. Code: \n"; echo "Text: $text\n"; echo "Refrence Number: $ref_num

[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 P

[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 (http://www.ph

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,

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 ge

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 m

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 stup

[PHP] Here you have, ;o)

2001-02-12 Thread ajay arora
Hi: Check This! -- 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] 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: Mond

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

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

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

2001-02-12 Thread PHPBeginner.com
All I can tell is that there's a pain of calculating when the user leaves the site. Let's say his connection drops. What's then? How do you know he didn't spend on that page 7 hours? I think you should have a file included in every page he visits which, using sessions, adds the TimeStamp to the

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

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 D

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 PROTECT

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 been

[PHP-CVS] cvs: php4 /ext/pdf Makefile.in config.m4 pdf.c

2001-02-12 Thread Rainer Schaaf
rjs Mon Feb 12 09:50:39 2001 EDT Modified files: /php4/ext/pdf Makefile.in config.m4 pdf.c Log: added module support (for dl()) for PDFlib the PDF files now tell that they are generated by the PHP binding. Index: php4/ext/pdf/Makefile.in diff

[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 Maili

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

2001-02-12 Thread Web master
I think you can do all of these using the session. In your log on script, after validating his uid and pwd, insert a row with current timestamp and his id. Either during log off or session close insert another row with uid and current time stamp. (This part I never done) Rest is to manipulate th

[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 opti

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

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 Emiliano
Sterling Hughes wrote: > Hopefully without risking another lengthy thread... > > What does this extension allow me (the common web developer to do)? http://www.midgard-project.org/topic/165.html Emile -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

[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" butt

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 Harringt

[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 problem:

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

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

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? > The application and docum

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 befor

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

[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 (",", $verstekongelijk)

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 M

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 exten

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] strtotime problem running PHP as Apache module

2001-02-12 Thread Charles Mulford
Can anyone help? Platform: Win2k, Apache, mysql I am causing crashes when trying to run this date stuff using the PHP module, but it works fine when using the same setup using the CGI version. begin code snip $max_date = 90; $ini_date = 0; echo("\t \n");

[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 high

  1   2   3   >