Re: [PHP] Retrieve item from table at random

2001-02-07 Thread Ben Gollmer
I've got a better way yet: select RAND() as rand_col, column_name from table_name order by rand_col Only one query for randomized results, no PHP/Perl/etc. You can of course add the 'limit 1' on the end to get one row back. I use this method a lot - my main server is running 3.22.32 but my

Re: [PHP] Just a thanks

2001-02-07 Thread mfourny
YES, it's true this list is realy cool, every one get help in an effective maner; even beginers in PHP like me. A major THANK YOU for all of you... Marc Josh G wrote: Just a thanks to everyone on this list, for being helpful, and for being tolerant. It seems it's a rare thing these days.

[PHP] [newbie] easy question about fopen ($filename, r+)

2001-02-07 Thread SED
Hi, If I load e.g. textfile.txt with the file pointer at the beginning of the file and write a line or two into it, does it always overwrite the first lines? Is there any function that *always* moves the old lines down automatically? Regards, Sumarlidi Einar Dadason SED - Graphic Design

Re[2]: [PHP] Mixing PHP code with phplib templates... possible?

2001-02-07 Thread Max A. Derkachev
Hello derek, Tuesday, February 06, 2001, 7:58:25 PM, you wrote: df Hi Max, df Thanks for the reply. Unfortunately, the solution you suggest means df that I would have to do a set_var on all hyperlinks (i.e., define all df hyperlinks everywhere on the site), which is a huge amount of df

[PHP] PHP File Uplaod Path

2001-02-07 Thread Dhaval Desai
Hi! I need help with uploading files with php. What is the default directory where the files are uploaded..? I want to specify a particular directory where the files have to come after they are uploaded. Is it possible to specify a path in the script where the files will automatically be copied

[PHP] Seeking a SuperHost

2001-02-07 Thread Lux
Anyone know of a good host that has php built with pdflib? I'm setting one up myself right now, but I can't with any conscience recommend that to a client who needs this option. I need the host to have super tech support. I just got off a host that when I asked them to add a pop3 mail

[PHP] php mod_perl

2001-02-07 Thread Andrzej Roszkowski
Hi! After compiling mod_perl into Apache, httpd crashes. Any ideas php 4.0.4pl1 Apache 1.3.12 mod_perl latest ;) (1.25 if i good remember ;) -- Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] PHP File Uplaod Path

2001-02-07 Thread Michael Hall
On Wed, 7 Feb 2001, Dhaval Desai wrote: Hi! I need help with uploading files with php. What is the default directory where the files are uploaded..? /tmp ... file name is php(n) where 'n' is an incrementing number I want to specify a particular directory where the files have to come

RE: [PHP] sending mail with PHP from web

2001-02-07 Thread Jon Haworth
Can we see some code? I run a very similar thing (sending mails to around 500 people whose details are stored in a MySQL database and accessed via PHP) - the only difference is my OS is NT4 not FreeBSD. -Original Message- From: Yamin Prabudy [mailto:[EMAIL PROTECTED]] Sent: 07 February

[PHP] Compile error in php4.04pl1 with apache

2001-02-07 Thread Eric Persson
Hi ! I've been trying to compile apache with php4.04pl1 as a static module into apache 1.3.17. configure, make and make install works fine with php. When I get to apache configure works but when trying to run make I get an error. configure is run with: ./configure --prefix=/usr/local/apache

Re: [PHP] Passing an array as an argument.

2001-02-07 Thread Christian Reiniger
On Tuesday 06 February 2001 18:18, April wrote: How do you pass an array as an argument to a function? Just as any other variable. Read on... function process_members($asker_rank, $email) { global $database_mysql; mysql_select_db($database_mysql); while (list ($key, $val) = each

Re: [PHP] Com

2001-02-07 Thread Christian Reiniger
On Tuesday 06 February 2001 19:07, Vora Vor wrote: "Fatal error: Cannot instantiate non-existent class: com in /var/www/html/version2/file.php on line 8" is the result of running the following code: ? $word=new COM("word.application") or die("Cannot start word"); print "Loaded word

Re: [PHP] Sessions and Objects

2001-02-07 Thread Christian Reiniger
On Tuesday 06 February 2001 19:39, Conover, Ryan wrote: If I save an object as a session var. will I still have access to its methods. Yes, at least with PHP4. I'm doing that all the time. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) "Software is like sex: the best is for

Re: [PHP] Com

2001-02-07 Thread Pavel Kalian
COM of course comes with PHP (but is available on Win only), RTFM on calling COM support... Pavel - Original Message - From: "Christian Reiniger" [EMAIL PROTECTED] To: "php" [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 11:49 AM Subject: Re: [PHP] Com On Tuesday 06 February

Re: [PHP] binmode() in php?

2001-02-07 Thread Christian Reiniger
On Tuesday 06 February 2001 20:03, Joel Alan Chornik wrote: is there an equivalent in PHP to Perls binmode() function? does anyone know? See the docs for fopen () --- The mode may contain the letter 'b'. This is useful only on systems which differentiate between binary and text files (i.e.,

[PHP] what is ::?

2001-02-07 Thread Chien-pin Wang
Dear all, Pardon me if this is explained somewhere in the documentation. I've found the :: notation (double colons) in class definitions of PHP's ~/lib/php directory, such as DB.php. It looks like doing the same thing as - notation. Can someone help to explain this a little bit or

[PHP-CVS] cvs: php4 /ext/mnogosearch .cvsignore

2001-02-07 Thread Sergey Kartashoff
gluke Wed Feb 7 02:41:39 2001 EDT Added files: /php4/ext/mnogosearch .cvsignore Log: Added .cvsignore Index: php4/ext/mnogosearch/.cvsignore +++ php4/ext/mnogosearch/.cvsignore Makefile *.lo *.la libs deps libs.mk -- PHP CVS Mailing List

Re: [PHP] parent constructor

2001-02-07 Thread Christian Reiniger
On Wednesday 07 February 2001 05:14, Aaron Tuller wrote: ok, I == dumb. this works: $parentClass = get_parent_class($this); eval("$parentClass::$parentClass();"); still, I think I should be able to do what I wrote below. Um, you know the name of your parent class, so why do you use

Re: [PHP] [newbie] easy question about fopen ($filename, r+)

2001-02-07 Thread Christian Reiniger
On Wednesday 07 February 2001 09:42, SED wrote: If I load e.g. textfile.txt with the file pointer at the beginning of the file and write a line or two into it, does it always overwrite the first lines? Yes Is there any function that *always* moves the old lines down automatically? No.

Re: [PHP] php mod_perl

2001-02-07 Thread Christian Reiniger
On Wednesday 07 February 2001 10:13, Andrzej Roszkowski wrote: After compiling mod_perl into Apache, httpd crashes. Any ideas php 4.0.4pl1 Apache 1.3.12 mod_perl latest ;) (1.25 if i good remember IIRC the INSTALL mentioned possible conflicts in MySQL support for these modules. Have

[PHP] function problem ...

2001-02-07 Thread Miguel Loureiro
Hello I have a script that use other script file(php) twice, I call a function with certain parameters and call it again with other parameters and when runnig the script, the first function works well, but on second time I got a error message: "Fatal error: Cannot redeclare getndays() in

Re: [PHP] Com

2001-02-07 Thread Christian Reiniger
On Wednesday 07 February 2001 11:52, Pavel Kalian wrote: COM of course comes with PHP (but is available on Win only), RTFM on calling COM support... Yes, but there ain't no class "COM". Read the manual section about COM support. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/)

Re: [PHP] Com

2001-02-07 Thread Pavel Kalian
The COM construct was introduced in PHP4 as a replacement for com_* functions to provide something looking similar to MS's syntax AFAIK and it exists and works at least for me and many others. And it behaves more or less like a normal class. Cheers Pavel - Original Message - From:

Re: [PHP] function problem ...

2001-02-07 Thread Frederico Augusto Costa
Try require_once($your_file) or verify in $your_file use the function function_exists() []'s Frederico Augusto Costa [EMAIL PROTECTED] On Wed, 7 Feb 2001, Miguel Loureiro wrote: Hello I have a script that use other script file(php) twice, I

Re: [PHP] Com

2001-02-07 Thread Christian Reiniger
On Wednesday 07 February 2001 12:40, Pavel Kalian wrote: The COM construct was introduced in PHP4 as a replacement for com_* functions to provide something looking similar to MS's syntax AFAIK and it exists and works at least for me and many others. And it behaves more or less like a normal

RE: [PHP] Com

2001-02-07 Thread Dominick Vansevenant
Anyone has good examples for COM usage? D. -Original Message- From: Christian Reiniger [mailto:[EMAIL PROTECTED]] Sent: woensdag 7 februari 2001 12:48 To: php Subject: Re: [PHP] Com On Wednesday 07 February 2001 12:40, Pavel Kalian wrote: The COM construct was introduced in PHP4 as a

Re: [PHP] I wish: IIS and ISAPI $PHP_AUTH_USER

2001-02-07 Thread Phil Driscoll
Did you happen to copy the php4ts.dll into the winnt directory? I am not sure of the error you are getting, but it may help? I have all my dlls in a separate php directory since they are never going to be shared with anything else. I'm sure that this is not the problem, as a simple

RE: [PHP] Questions about simple php problems

2001-02-07 Thread Jon Haworth
One exception, on the main page, I have "index.html" which is simply a copy of "Index.php" renamed. This is so that requests to www.server.org/ will come up correctly. Probably there's a place to fix that in apache, but I haven't gone after it yet. There is a way to fix this on

Re: [PHP] How to get information out of an external page?

2001-02-07 Thread Tobias Talltorp
Try this: http://www.zend.com/codex.php?id=39single=1 Just replace the fopen() and eregi() to suit your needs. // Tobias ""David Tandberg-Johansen"" [EMAIL PROTECTED] wrote in message 95onrm$dj6$[EMAIL PROTECTED]">news:95onrm$dj6$[EMAIL PROTECTED]... Hello! I try to get some information

Re: [PHP] which template?

2001-02-07 Thread Alexander Wagner
Thomas Jaske wrote: Which template can I use to do this simply? $template = new Template(); $template-assign(content_item, placeholder); $page = template($template_file); $page-print(); With PHPlib-Templates, it would look like this: $template = new Template("./path/to/template/files");

[PHP] RE: db forms creator?

2001-02-07 Thread Tim Ward
There isn't an easy way as the form is filled in client side (and is html not PHP). Work out the info you need to plug Into the SQL command line (ALTER or CREATE TABLE). Build a form asking for that info and have it submit to the same page which does the PHP and SQL bit using the filled in fields

[PHP] Access a printer via PHP

2001-02-07 Thread ThoVer Webproducties
Hello, For an e-commerce project we want to connect the mySQL-database we created to a printer (attached to a computer which has 24h internet [and mySQL database] access). I assume it's different to couple the mySQL-database directly to a printer. We are however accessing the database via PHP,

[PHP-CVS] cvs: php4 / NEWS

2001-02-07 Thread Andrei Zmievski
andrei Wed Feb 7 06:10:14 2001 EDT Modified files: /php4 NEWS Log: Only one entry for mnoGoSearch is necessary. Index: php4/NEWS diff -u php4/NEWS:1.585 php4/NEWS:1.586 --- php4/NEWS:1.585 Tue Feb 6 18:09:09 2001 +++ php4/NEWS Wed Feb 7

Re: [PHP] Time problem

2001-02-07 Thread Steve Werby
"Roman" [EMAIL PROTECTED] wrote: I have one problem with mysql database. In table i have 2 arrays with time format. For example this arrays calls IN and OUT. In php script i want to have distinction between this arrays. For example IN is 8:30:45 and OUT is 16:45:15 and result will be:

Re: [PHP] Retrieve item from table at random

2001-02-07 Thread Steve Werby
"Ben Gollmer" [EMAIL PROTECTED] wrote: I've got a better way yet: select RAND() as rand_col, column_name from table_name order by rand_col Ben, you must have overlooked David Robley's reply and my confirmation that his idea does indeed work (which was in the email you responded to). David

RE: [PHP] Dear Friends Future Millionaire:

2001-02-07 Thread Jon Haworth
If I'd sent $5 off for every spam I've received someone else would be a millionaire by now. -Original Message- From: Duncan Hill [mailto:[EMAIL PROTECTED]] Sent: 06 February 2001 21:00 To: [EMAIL PROTECTED] Subject: Re: [PHP] Dear Friends Future Millionaire: On 2001-02-06, Hi Tech

Re: [PHP] Seeking a SuperHost

2001-02-07 Thread Michael Kimsal
You're setting one what up yourself? A hosting company? Or just a hosting situation for yourself? Won't get much play here, but anyone looking to do anything serious should undoubtedly invest in a dedicated server of their own. Hire another company to host and manage it, but have it to

RE: [PHP] Access a printer via PHP

2001-02-07 Thread Cal Evans
Thomas, You don't connect databases to printers. As you discerned, you could use a program to query the database and output the results to a printer. I f you absolutely MUST have it start printing AS SOON as the order is inserted into the database (and I challenge you to re-think that

[PHP] HTTP Authentication

2001-02-07 Thread Nick Kostirya
Hi, all. HTTP Authentication in PHP 4 - Apache don't work!!! Help me. Best. __ ?php if(!isset($PHP_AUTH_USER)) { Header("WWW-Authenticate: Basic realm=\"My Realm\""); Header("HTTP/1.0 401 Unauthorized"); echo "Text to send if user hits

[PHP] Where to put the include()

2001-02-07 Thread Remi Ricard
Hi, I want to know why in the second file I don't get a=134 as expected. // fileToBeIncluded.php ?PHP $a = 134; function f1() { global $a; echo "a=$a BR"; } class smallClass { function smf1() { f1(); } } ? // file that don't work as expected // print a= ?PHP function

Re: [PHP] Odd question regarding creating a php file

2001-02-07 Thread Dusten
In reply to Chris. The reason I'm having this page created is because people will need to be able to see this person's "win/loss" record. I have a script that displays all of the ppl registered and when you view their page, you can get a real time report on their ratings. As another alternative:

Re: [PHP] Dear Friends Future Millionaire:

2001-02-07 Thread Carsten Gehling
From: "Jon Haworth" [EMAIL PROTECTED] Sent: Wednesday, February 07, 2001 4:01 PM If I'd sent $5 off for every spam I've received someone else would be a millionaire by now. And if I had $5 for every time somebody on a mailing list commented a spam mail that went through the list, I'd be

[PHP] 20 Million Fresh E-Mail Addresses

2001-02-07 Thread Luke2
TO BE REMOVED FROM FUTURE MAILINGS, SIMPLY REPLY TO THIS MESSAGE AND PUT "REMOVE" IN THE SUBJECT. 20 MILLION E-MAIL ADDRESSES FOR ONLY $249 **Over Night International Shipping Included** Many Call This "The "Perfect E-Mail List" Over 20-Million Of The Best E-Mail Addresses

[PHP] Hosting in UK

2001-02-07 Thread TV Karthick Kumar
Hi List, Can any body suggest / recommend me a good web hosting provider ?. I want to register some domains and host with the same provider which essentially has php, mysql, postgresql good support. Pls. let me know. Thanks in adv. ~ Karthick -- PHP General Mailing List

[PHP] list() = each() Question

2001-02-07 Thread Jason Mowat
Greets, I have a quick question: $Array = array( "val1" = "Value 1", "val2" = "Value 2", "val3" = "Value 3" ); while(list($a,$b,$c,$d) = each($Array)) { print "$a = $c and $b = $d br"; } Doesn't the "each" construct return a 4 element array, where element 1's index is 0, element 2's

Re: [PHP] list() = each() Question

2001-02-07 Thread Jason Mowat
Hehehe, I searched around on PHP.net, and found this tidbit of information. It sounds to me that list() is written to only accept the first two elements from the each(). Please correct me if I am misinformed :-) Cheers, Jason [EMAIL PROTECTED] 16-Feb-2000 03:41 Ok, for you folks who are

[PHP] PHP - CGI Version

2001-02-07 Thread Tim Livers
I have installed the CGI version of PHP and customized Apache's httpd.conf. (Had to use CGI for this instance). Since I only need (and want) a few php scripts to be available on this server, I added the following line to httpd.conf in order to get my script to work. ScriptAlias /myfile.php

php-general Digest 7 Feb 2001 16:17:41 -0000 Issue 498

2001-02-07 Thread php-general-digest-help
php-general Digest 7 Feb 2001 16:17:41 - Issue 498 Topics (messages 38487 through 38554): Re: Name of Class' instance 38487 by: Steve Werby Re: parent constructor 38488 by: Aaron Tuller 38525 by: Christian Reiniger Re: Alarm/Timer in PHP?? 38489 by: Rasmus

Re: [PHP] Odd question regarding creating a php file

2001-02-07 Thread Steve Werby
"Dusten" [EMAIL PROTECTED] wrote: In reply to Chris. The reason I'm having this page created is because people will need to be able to see this person's "win/loss" record. I have a script that displays all of the ppl registered and when you view their page, you can get a real time report on

[PHP] Re: Hide PHP from web server header [was: PHP - CGI Version]

2001-02-07 Thread Steve Werby
"Tim Livers" [EMAIL PROTECTED] wrote: Everything works fine except that I get "X-Powered-By: PHP/4.0.4pl1 Content-type: text/html #!/usr/local/bin/php" at the top of the page. 1. In php.ini, set "expose_php = Off" 2. Restart Apache. -- Steve Werby COO 24-7 Computer Services, LLC Tel:

Re: [PHP] Com

2001-02-07 Thread Vora Vor
yes. it is all very clear to me now. however self-evident it appears to me now, imagine my disconcertation when i was in ignorance! this is so self-evident, it didn't need to be documented. Com shows up in searches about launching external apps on the client, thus i was nefariously misled by my

[PHP] newbie mail() function

2001-02-07 Thread Angerer, Chad
Hello! I am very new to php programming. I have been experimenting around with php's mail function and html forms. I have a generic HTML form with user_name, email_address, comments, and like_site as inputs on the HTML form. I have the following code in a seperate php file which the form

[PHP] string vs. integer...

2001-02-07 Thread Julia A . Case
How do I detrmine of a value is a string or a integer? I'm trying to tell the differnce between "machine.domain.com" and "192.168.2.1" I was going to explode on "." and parse through the data and validate it. Julia -- [ Julia Anne Case ] [Ships are safe inside the harbor, ]

Re: [PHP] newbie mail() function

2001-02-07 Thread Steve Werby
"Angerer, Chad" [EMAIL PROTECTED] wrote: $mailheaders = "From: My Web Site\n" 9$mailheaders .= "Reply-To: $email_address\n\n"; mail("[EMAIL PROTECTED]", "Feedback Form", $msg, $mailheaders); echo ("Thank you $user_name\nbr"); echo ("I appreciate your feedback\n\n"); ? for some reason I

RE: [PHP] newbie mail() function

2001-02-07 Thread Jon Haworth
You're missing a semicolon on line 8. HTH Jon -Original Message- From: Angerer, Chad [mailto:[EMAIL PROTECTED]] Sent: 07 February 2001 16:37 To: [EMAIL PROTECTED] Subject: [PHP] newbie mail() function Hello! I am very new to php programming. I have been experimenting around with

Re: [PHP] newbie mail() function

2001-02-07 Thread April
Your ''s in your strings are the problem. They need to be escaped, or they will create a parse error. Instead of $msg = "Sender's Full Name:\t$user_name\n"; you should have $msg = "Sender\'s Full Name:\t$user_name\n"; - Original Message - From: "Angerer, Chad" [EMAIL PROTECTED] To:

[PHP] Earn $235 - $760 Or More Weekly At Home In Your Spare Time

2001-02-07 Thread Income Opportunity
Earn $235 - $760 Or More Weekly Home Workers Needed Nationwide Hundreds of companies are currently looking for telecommuters. There is no experience needed and you can start right away. This is NOT your average get-rich-quick program. In fact, none of the companies require any special fees to

RE: [PHP] newbie mail() function

2001-02-07 Thread Angerer, Chad
d'oh! I knew it was something simple. Thanks -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 10:42 AM To: 'Angerer, Chad'; '[EMAIL PROTECTED]' Subject: RE: [PHP] newbie mail() function You're missing a semicolon on line 8. HTH Jon

Re: [PHP] newbie mail() function

2001-02-07 Thread Steve Werby
"April" [EMAIL PROTECTED] wrote: Your ''s in your strings are the problem. They need to be escaped, or they will create a parse error. Not true. They (quotes inside a string) only need to be escaped if they are the same style as the quotes enclosing the string. And for those that don't know

Re: [PHP] string vs. integer...

2001-02-07 Thread Steve Werby
"Julia A . Case" [EMAIL PROTECTED] wrote: How do I detrmine of a value is a string or a integer? I'm trying to tell the differnce between "machine.domain.com" and "192.168.2.1" I was going to explode on "." and parse through the data and validate it. is_numeric(), is_string() -- Steve

Re: [PHP] HTTP Authentication

2001-02-07 Thread Shane McBride
Nick, I'm not sure were you are getting the value of $PHP_AUTH_USER from, so you might want to try this snippet. This causes a dialog box to open and ask for a username/password. Also, in your code: you do not need to escape the quotes in the header. ? // Check to see if $PHP_AUTH_USER

[PHP] PHP as Scripting Language

2001-02-07 Thread John Huggins
Well, I have compiled a php binary for use as yet another scripting language to work along side AWK, Perl, Sh, etc. It works too. I have this file... #!/usr/local/bin/php ? print("Hello World\n"); ? I run it and get.. host:~/projects/PHPScripts # ./test.php Content-type: text/html

[PHP-CVS] cvs: php4 /ext/domxml config.m4

2001-02-07 Thread Sascha Schumann
sas Wed Feb 7 08:01:29 2001 EDT Modified files: /php4/ext/domxmlconfig.m4 Log: Improve use of $withval. This also cures the problem of adding -Lyes/lib to $LIBS. Index: php4/ext/domxml/config.m4 diff -u php4/ext/domxml/config.m4:1.20

[PHP] Sum from Arrays ?

2001-02-07 Thread Keith Whyman
It's probably a stupid question but... I've got the following ; SELECT t_category_name COUNT(*) AS count FROM t_city,t_zipcodecity,t_location,t_category , t_locationcategory WHERE (t_category_id_category = t_locationcategory_id_category) AND (t_location_id_location =

[PHP] PHP4 Changelog

2001-02-07 Thread TV Karthick Kumar
Hi List As I am working on the upgradation of my system into PHP 4.0 from the lower version, I want the Change log in a good format. A word document or some other good format which comprises the complete the Change log would be great for me to look through and do the upgradation process in

Re: [PHP] PHP as Scripting Language

2001-02-07 Thread Shane McBride
This is just a guess, but remove the path (#!/usr/local/bin/php) If you have the php.ini and (I'm assuming Apache) the httpd.conf file configured you shouldn't need it. I never have used it. It looks like the Perl way to script... :) DISCLAIMER: I am by no means well-versed in this, or any

php-i18n Digest 7 Feb 2001 16:40:33 -0000 Issue 50

2001-02-07 Thread php-i18n-digest-help
php-i18n Digest 7 Feb 2001 16:40:33 - Issue 50 Topics (messages 112 through 115): DB/2 and php 112 by: Dennis Hammer 20 Million Fresh E-mail Addresses 113 by: Luke Dear Friends Future Millionaire: 114 by: Hi Tech Services Earn $235 - $760 Or More Weekly At Home

Re: [PHP] Sum from Arrays ?

2001-02-07 Thread Shane McBride
Hum, maybe the count() function. Works with mysql_fetch_array() too. Here's a sample: $a[0] = 1; $a[1] = 3; $a[2] = 5; $result = count ($a); //$result == 3 Here's a link: http://php.net/manual/en/function.count.php DISCLAIMER: I am by no means well-versed in this, or any other, topic - Shane

Re: [PHP] Sum from Arrays ?

2001-02-07 Thread Keith Whyman
No I've explained this badly I've got the array $a what I want is a sum of what's in the array ie from your sample the answer would be 1+3+5 = 9 Thanks Keith Hum, maybe the count() function. Works with mysql_fetch_array() too. Here's a sample: $a[0] = 1; $a[1] = 3; $a[2] = 5; $result =

Re: [PHP] PHP as Scripting Language

2001-02-07 Thread Frank Joerdens
On Wed, Feb 07, 2001 at 12:10:46PM -0500, John Huggins wrote: [ . . . ] host:~/projects/PHPScripts # ./test.php Content-type: text/html Hello World Great. Now how do I get rid of the Content-type line? I have searched the docs with little clues. #!/usr/local/bin/php -q Is what you

Re: [PHP] Sum from Arrays ?

2001-02-07 Thread Philip Olson
As of PHP 4.0.4 the function array_sum() exists (it's undocumented, but in changelog), it's used as such : $array = array(1,3,5); $sum = array_sum($array); Or loop through array as such : foreach ($array as $value) { $sum += $value; } Either way, $sum now equals

[PHP] OCI* function VS. ORA* function

2001-02-07 Thread Reuben D Budiardja
Hi, I'm wondering if anybody can give me the advantages of using OCI* function over ORA* function. I mean, in term of speed and efficiency. The documentation does n't say a lot about this. I have my API using ORA* funct. for my development team. I'm thinking of rebuilding it using OCI*, but

Re: [PHP] what is ::?

2001-02-07 Thread John Donagher
It calls a class method statically, although its exact behavior depends on the scope from which it was called. If called from outside a class, then the method has no instanciated object, it's just a function. This is also how you can use work with inheritance in PHP. If you have an

Re: [PHP] Sum from Arrays ?

2001-02-07 Thread Reuben D Budiardja
Try this: for($i=0;$i count($the_array); $i++) $sum = $sum + $the_array[$i]; or if the index of your array is not in order, try this: while($element = array_pop($the_array)) $sum = $sum + $element; Hope that helps. Rdb At 06:38 PM 2/7/01 +0100, you wrote: No I've explained this

[PHP-I18N] Earn $235 - $760 Or More Weekly At Home In Your Spare Time

2001-02-07 Thread Income Opportunity
Earn $235 - $760 Or More Weekly Home Workers Needed Nationwide Hundreds of companies are currently looking for telecommuters. There is no experience needed and you can start right away. This is NOT your average get-rich-quick program. In fact, none of the companies require any special fees to

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

2001-02-07 Thread Boian Bonev
bbonev Wed Feb 7 09:47:59 2001 EDT Modified files: /php4/ext/vpopmail php_vpopmail.c Log: # fixed several warnings - variables not used, functions not declared # added vclose() declaration - vpopmail does not declare it Index:

AW: [PHP] OCI* function VS. ORA* function

2001-02-07 Thread Sebastian Stadtlich
i never heard anything about speed difference, but as far as i remember OCI supports some things that don't work with ORA ( lobs, stored procedures,pl/sql,etc) and i think OCI is still improved and developed while ORA is not. Sebastian -Ursprungliche Nachricht- Von: Reuben D Budiardja

RE: [PHP] PHP as Scripting Language

2001-02-07 Thread John Huggins
Nailed it!!! Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 12:39 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP as Scripting Language Usage: php [-q] [-h] [-s] [-v] [-i] [-f file]

[PHP] html -echo-print

2001-02-07 Thread Christopher Allen
Hello, Is there any way around having to go back and backslash every quote in a html table that contains millions of quotes? I noticed that pre print " his name's jack"; /pre works for a single quote, but not double I would literally have a thousand quotes to

[PHP] DSO security

2001-02-07 Thread Gabor Gludovatz
how can I prohibit users to read arbitrary files on the system if run PHP as apache module? the best solution would be to restrict all the file system functions to the docroot or the users' home. thanks Gabor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

[PHP] reg-ex problem

2001-02-07 Thread Lee Stretton
Hi, I am using regular expressions in a php program to decide what should be done next. I am having a problem with one of my regex's. The following is the code i am using: for( $i = 0; $i sizeof( $arg ); $i++ ) { if( $arg[$i] == '' ) { continue; }

RE: [PHP] Access a printer via PHP

2001-02-07 Thread Foley, John
Make your PHP script push an HTML formatted tmp file, run it through html2ps, (then perhaps ghostscript to make it PCL et al) and redirect it to your printer. (Or, then run ps2pdf on it and also email a PDF order confirmation page to your customer . . . the potential is limitless.)

Re: [PHP] html -echo-print

2001-02-07 Thread JB
Uhmm well, you don't have to use print to display HTML. If you did there would be no reason for the ? ? tags. ? ? switches between HTML (which is not parsed by the interpreter and PHP code (which is interpreted). Basically, print is used when you have to print a variable. For instance

[PHP] Moving files between 2 servers??

2001-02-07 Thread Michael Geary
Oh Ye Wizards, I'm toying around with the thought of a dev-site/live-site administration system. Among other things, administrators would be able to remotely (via a web interface), push files from the dev-site to the live-site. Can anyone help me understand what it would take to do this?

Re: [PHP] parent constructor

2001-02-07 Thread Aaron Tuller
At 12:13 PM +0100 2/7/01, Christian Reiniger wrote: On Wednesday 07 February 2001 05:14, Aaron Tuller wrote: $parentClass = get_parent_class($this); eval("$parentClass::$parentClass();"); still, I think I should be able to do what I wrote below. Um, you know the name of your parent

Re: [PHP] html -echo-print

2001-02-07 Thread Philip Olson
Here are a few examples of what you _can_ do : ?php $color = 'blue'; $width = 300; print 'table width="300" bgcolor="blue"'; print "table width='300' bgcolor='blue'"; print 'table width='.$width.'" bgcolor="'.$color.'"'; print "table width='$width' bgcolor='$color'";

RE: [PHP] html -echo-print

2001-02-07 Thread Jeff Oien
On that subject what's the difference between echo and print? Jeff Oien -- 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] reg-ex problem

2001-02-07 Thread CC Zona
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Lee Stretton) wrote: snip elseif( preg_match( "/^[a-zA-Z]+$/", $arg[$i], $matches ) ) snip elseif( preg_match( "/(div\d|prem)/", $arg[$i], $matches ) ) snip The first 3 work fine, but the last one "/(div\d|prem)/" doesnt work

RE: [PHP] html -echo-print

2001-02-07 Thread Philip Olson
See this : What is the difference between echo and print ? --- http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/41 It should help! Regards, Philip On Wed, 7 Feb 2001, Jeff Oien wrote: On that subject

Re: [PHP] html -echo-print

2001-02-07 Thread JB
To the best of my knowledge, they do the same thing. I believe echo was started back in the early days of PHP. Print has now replaced it with more functionality. Echo still exists because some people are used to it and for compatibility with older code. - Original Message - From: Jeff

[PHP] unlink(); in windows?

2001-02-07 Thread Brandon Orther
Hello, I am trying to use unlink(); in windows. Does anyone know if unlink works in windows? Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364 www.webintellects.com

Re: [PHP] html -echo-print

2001-02-07 Thread Christopher Allen
JB, yes I do know that, but thanks :) I was looking for: pre print EOF EOF; /pre of course it was on : http://www.php.net/manual/en/function.print.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] unlink(); in windows?

2001-02-07 Thread Brian Clark
Hi Brandon, @ 2:02:12 PM on 2/7/2001, [EMAIL PROTECTED] wrote: I am trying to use unlink(); in windows. Does anyone know if unlink works in windows? "Note: This function may not work on Windows systems." http://www.php.net/manual/en/function.unlink.php Read under 'User Contributed Notes'

[PHP] PHP Newbie, Experienced Porgrammer, Annoying fread() problem

2001-02-07 Thread John Vanderbeck
Hello all, Please bear with me for a moment. I am new to PHP work, but have over 10 years experience in various other programming languages including C/C++ I'm just getting really frustrated here, and i'm hoping its a simple mistake. What I am running into is that ever file I open and read

RE: [PHP] PHP Newbie, Experienced Porgrammer, Annoying fread() problem

2001-02-07 Thread James Moore
[snip] for ($index = 0; $index sizeof($books); $index++) { $book_data_file = fopen("$thisdir/$books[$index]/book_info.dat", "r"); echo "pOpened $thisdir/$books[$index]/book_info.dat/p"; $book_data_in = fread($book_data_file, filesize($book_data_file));

Re: [PHP] PHP as Scripting Language

2001-02-07 Thread Michael Dearman
John Huggins wrote: Well, I have compiled a php binary for use as yet another scripting language to work along side AWK, Perl, Sh, etc. It works too. I have this file... #!/usr/local/bin/php ? print("Hello World\n"); ? I run it and get.. host:~/projects/PHPScripts #

[PHP] Getting ASPELL to work?

2001-02-07 Thread Nicholas Pappas
Is there a secret to get the 'aspell_*' functions to work? I tried running one and got a 'unsupported function' error. :( I am running a RH7.0 system with PHP3. Aspell is installed on the system, but I did not do anything special at compile time (except MySQL support). Is

Re: [PHP] PHP Newbie, Experienced Porgrammer, Annoying fread() problem

2001-02-07 Thread Brian Clark
Hi John, @ 2:01:49 PM on 2/7/2001, [EMAIL PROTECTED] wrote: Please bear with me for a moment. I am new to PHP work, but have over 10 years experience in various other programming languages including C/C++ I'm just getting really frustrated here, and i'm hoping its a simple mistake. What

Re: [PHP] Getting ASPELL to work?

2001-02-07 Thread Brian Clark
Hi Nicholas, @ 2:19:38 PM on 2/7/2001, [EMAIL PROTECTED] wrote: Is there a secret to get the 'aspell_*' functions to work? I tried running one and got a 'unsupported function' error. :( I am running a RH7.0 system with PHP3. Aspell is installed on the system, but I did not do anything

Re: [PHP] Getting ASPELL to work?

2001-02-07 Thread Sam Masiello
When you compile PHP, you also need to include the --with-aspell flag (similar to how you did to include MySQL support). HTH -- Sam Masiello Systems Analyst Chek.Com (716) 853-1362 x289 [EMAIL PROTECTED] On 2001.02.07 14:19:38 -0500 Nicholas Pappas wrote: Is there a secret to get the

  1   2   >