[PHP] From $25 to Half a Million, As Seen on TV

2001-01-15 Thread successfulmillionaire
Dear Friends & Future Millionaire:=20 AS SEEN ON NATIONAL TV:=20 Making over half million dollars every 4 to 5 months from your home for=20 an investment of only $25 U.S. Dollars expense one time=20 THANK'S TO THE COMPUTER AGE AND THE INTERNET !=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Re: [PHP] logging page views, which method is better????

2001-01-15 Thread php3
Addressed to: Alex Black <[EMAIL PROTECTED]> [EMAIL PROTECTED] ** Reply to note from Alex Black <[EMAIL PROTECTED]> Sun, 14 Jan 2001 17:06:39 -0800 > > the problem with that is as soon as you run a load-baanced > installation, collecting apache logs start to be a pain in the a$$ :)

[PHP] RE: [phplib] Call Time Pass By Reference PROBLEM.

2001-01-15 Thread Ignatius Teo
Hi, I got around this by changing the following two functions below. Basically you can remove the call by reference construct &$str by resetting $str to its returned value: function serialize($prefix, $str) { static $t,$l,$k; ## Determine the type of $$prefix eval("\$t = gettype(\

Re: [PHP] :: MySql and PHP Book

2001-01-15 Thread Kristofer Widholm
Here's what you wrote, 01-01-11: > I was looking for a good book that teaches you how to use PHP (mainly 3) >with MySql. I went to Amazon.com and found "MySql" by Paul Dubois, which was >supposed to be THE book for mySql programming. However, after reading some >of the customer reviews, it

[PHP] Upgrade PHP3 to PHP4

2001-01-15 Thread TOM
I would like to upgrade PHP3 to PHP4 on my Turbo Linux, does anyone has experience on this? -- best wishes, enethk -- 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,

[PHP] __FILE__,$PATH_INFO,$PATH_TRANSLATED

2001-01-15 Thread petr . juza
Hi, please, would anybody be so kind and tell me what differences are amoung __FILE__, $PATH_INFO and $PATH_TRANSLATED? And in which cases they will have other values? Thanks. Regards, PETER - Tento e-mail byl odeslán ze serveru www.worldmail.cz

[PHP] Date data type problem

2001-01-15 Thread [EMAIL PROTECTED]
Hi people, I have tried to compare 2 date values to see if one come before another using the sniplet below: if ($date1 < $date2) { do something }else{ ... } while $date1 is in "mmdd" format but $date2 is in "-mm-dd" formate because I get value of $date2 from a "date" data type fiel

Re: [PHP] hello

2001-01-15 Thread Brian Clark
Hello Herb, (SOM == "SuiteNet Operations Manager") [EMAIL PROTECTED] writes: SOM> I was wondering what Im sure a well knowledged php expert like SOM> your self would recommend a hands on php crash course. The best SOM> way for me to jump right in to understanding php and getting SOM> started ma

Re: [PHP] Upgrade PHP3 to PHP4

2001-01-15 Thread Brian Clark
Hello TOM, (T == "TOM") [EMAIL PROTECTED] writes: T> I would like to upgrade PHP3 to PHP4 on my Turbo Linux, does anyone T> has experience on this? Not specifically on Turbo Linux, but this may shed some light on the subject: http://www.php.net/version4/migration.php T> enethk -Brian --

Re: [PHP] mixing HTML and PHP code

2001-01-15 Thread Iván Sánchez Ortega \"MR\"
"Alex Black" ... > the horse is back from the dead! huh? > > And aside from that, i don't have a one and only common_head.php ... i have > > a separate plain common head, in plain HTML... the real common_head.php > > should look like (definitively not real PHP sintax): > > right, and though this

Re: [PHP] tie string value together

2001-01-15 Thread Iván Sánchez Ortega \"MR\"
"Brian Clark" ... > > Not quite; you want the concatenation operator: > > $Birthdate = $year . $month . $day; /* assuming &&day was a typo */ > > This will also work: > > $Birthdate = "$year$month$day"; As i know, databases use a 00/00/ date format, so the thing you may do is $birthdate = $d

Re: [PHP] __FILE__,$PATH_INFO,$PATH_TRANSLATED

2001-01-15 Thread Rasmus Lerdorf
__FILE__ is the filename of the current file being parsed. This can change around as the php script includes other files. It is mostly used for printing out information on where an error occurred. $PATH_INFO is the part of the URI after the script. ie. www.php.net/test.php/whatever/blah In thi

Re: [PHP] logging page views, which method is better????

2001-01-15 Thread Jason Brooke
I take advantage of a handy feature of apache that allows log data to be piped to another program instead of written to a file - and pipe it's log data directly to stdin of a small C program which does a tiny bit of parsing before putting it into mysql. Before I did it in C, I was just using a Ph

Re: [PHP] hello

2001-01-15 Thread Philip Olson
Hi Herb, PHP is wonderful. Regarding any upgrade issues, check out : http://www.php.net/FAQ.php#11 http://www.php.net/version4/migration.php http://www.opendeveloper.org/PHP/HowTo/Upgrading_From_PHP3_to_PHP4/ AFAIK, it *won't* cause problems upgrading. Do be sure to parse the curr

RE: [PHP] Problem with Exec()

2001-01-15 Thread Jon Haworth
| | It should also be noted that the system interaction functions (namely, | passthru(), exec(), system() and popen()) are | broken/incorrectly implemented, | actually, its windows that's incorrectly implemented, but be | that as it may, the | functions do not work with windows). Well, I guess

RE: [PHP] hello

2001-01-15 Thread Maxim Maletsky
Actually it does.. I've seen it so many times on this list... subjects like: HEEELLPPP!! Upgrating problems I just think it is time to do it. First or Later you should upgrade your PHP so, do it now and listen to these few complains you'll receive Cheers... -Original Mess

Re: [PHP] variable size limit?

2001-01-15 Thread Andrew Threlfall
> I'm generating a page of HTML by reading an entire page of HTML source into > a variable, and then doing various functions and str_replace on the > variable. > > However when I finialy write this out to a file the variable containing the > HTML source is truncated, at about 5800-ish bytes. > >

RE: [PHP] load balancing with php/apache?

2001-01-15 Thread Tim Parkin
A NetApp (Network Appliance) is a big RAID that uses multiple scsi drives to create a single transparent volume which, with CIFS (transparent filesystem) can be used by any OS. They are v fast, use NVRAM buffering and can go up to post terabyte storage capacity without worries. Oh and they start

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

2001-01-15 Thread Zeev Suraski
zeevMon Jan 15 02:22:19 2001 EDT Modified files: /php4/ext/odbc php_odbc.c Log: Fix Win32 build Index: php4/ext/odbc/php_odbc.c diff -u php4/ext/odbc/php_odbc.c:1.70 php4/ext/odbc/php_odbc.c:1.71 --- php4/ext/odbc/php_odbc.c:1.70 Sun Jan 14 17

[PHP] Perl-like DBI and generic SQL

2001-01-15 Thread Dean Hall
I read once on this list that PHP supports a DBI-like database access object (such as the one in Perl). Is this true? Does anyone know where I can find documentation for it? I can't seem to find it in the manual. Also, how do you all handle generic SQL for multiple DBMSs? I'd like (ideally) to

[PHP-CVS] cvs: php4 /ext/standard php_string.h

2001-01-15 Thread Zeev Suraski
zeevMon Jan 15 02:48:48 2001 EDT Modified files: /php4/ext/standard php_string.h Log: Nuke a couple of warnings Index: php4/ext/standard/php_string.h diff -u php4/ext/standard/php_string.h:1.32 php4/ext/standard/php_string.h:1.33 --- php4/ext/standard/p

Re: [PHP] regular expression

2001-01-15 Thread Christian Reiniger
On Monday 15 January 2001 09:03, Fai wrote: > ^.+@.+\\..+$ This regular expression can check if the email address is > valid. But it cannot validate the email address with two "@", does I use this code: /* * Check whether the supplied string is a * (syntactically) valid email address * Only

[PHP] Modifying arrays

2001-01-15 Thread Catalin Borcea
How do I modify the value of the current element of an array? -- Catalin Borcea -- \\\|/// \\ - - // ( @ @ ) -oOOO(_)OOOo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED]

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

2001-01-15 Thread Zeev Suraski
zeevMon Jan 15 02:50:39 2001 EDT Modified files: /php4/main rfc1867.c Log: Use free_estring() Index: php4/main/rfc1867.c diff -u php4/main/rfc1867.c:1.57 php4/main/rfc1867.c:1.58 --- php4/main/rfc1867.c:1.57Sat Jan 13 02:19:17 2001 +++ php4/main/rfc

[PHP-CVS] cvs: php4 /main php_globals.h php_ini.c

2001-01-15 Thread Zeev Suraski
zeevMon Jan 15 02:52:02 2001 EDT Modified files: /php4/main php_globals.h php_ini.c Log: - Remove the ini_extension_list global - Switch to delayed loading of Zend extensions Index: php4/main/php_globals.h diff -u php4/main/php_globals.h:1.60 php4/mai

[PHP] How does PHP handle %20 (blank spaces)

2001-01-15 Thread Nyon
Hi, I wrote a script that does searching against a MySQL database. The resultant page displays 10 records at a time while there is the Prev...Next Page at the bottom of the page. There is no problem if the search string is say, "ABC". However, it will give a problem if the string is "Mr ABC". I

Re: [PHP] SMs

2001-01-15 Thread [EMAIL PROTECTED]
On Sat, 13 Jan 2001, Dhaval Desai wrote: Hi Dhaval, > I am trying to build a SMS(Short message service) It is really very simple as long as you have a tie up with SMSC (usually a mobile phone service operator) Then all you have to do is (in most cases) send a specially formatted email to the SM

[PHP] Session cookies appearing where there is no session

2001-01-15 Thread CC Zona
This must sound pretty far-fetched, but as far as I can tell, my site is attempting to set a session cookie from any and all PHP pages, even when the page has no calls to session_* functions and where there were also no previous visits to pages with such calls. Where is the setting that is in

Re: [PHP] Templates

2001-01-15 Thread Paul K Egell-Johnsen
andrew wrote: > > Sure, > > My understanding of templating engines > 1.array or item is assigned to a variable > 2.php placeholders in a html page match in name to above variable. > 3.a parser separate from php subsitutes the variable values set in (1) > into (2) > > I've seen plent

Re: [PHP] Session cookies appearing where there is no session

2001-01-15 Thread CC Zona
(responding to myself) In article <93uoh9$613$[EMAIL PROTECTED]>, [EMAIL PROTECTED] (CC Zona) wrote: > This must sound pretty far-fetched, but as far as I can tell, my site is > attempting to set a session cookie from any and all PHP pages, even when > the page has no calls to session_* funct

[PHP] hello

2001-01-15 Thread Kevin Cawthorne
subscribe

[PHP] Regex for telephone number

2001-01-15 Thread Vikram Vaswani
Hi! Can someone help me out with a regex to validate a phone number? Thanks Vikram -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] kevin@intuitive.net

2001-01-15 Thread Kevin Cawthorne
subscribe

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

2001-01-15 Thread Egon Schmid
eschmid Mon Jan 15 04:01:35 2001 EDT Modified files: /php4/ext/mhash mhash.c Log: Some protos fixed. Index: php4/ext/mhash/mhash.c diff -u php4/ext/mhash/mhash.c:1.24 php4/ext/mhash/mhash.c:1.25 --- php4/ext/mhash/mhash.c:1.24 Wed Nov 22 13:52:53 2000 +++ p

Re: [PHP] Sessions

2001-01-15 Thread Hardy Merrill
Randy Johnson [[EMAIL PROTECTED]] wrote: > Hello, > > I was going to use sessions to save a logged in variable so if the user > logged in with a username and password I checked for the session variable > and if it existed then I could continue. > > Is there a way for the loggedin session variabl

Re: [PHP] How does PHP handle %20 (blank spaces)

2001-01-15 Thread Alejandro Garín
> There is no problem if the search string is say, "ABC". However, it will > give a problem > if the string is "Mr ABC". I display this string at every page so that > users know > what they searched for. > For example: > You search for: $searchstring > Try urlencode/urldecode. regards --

Re: [PHP] Regex for telephone number

2001-01-15 Thread Angus Mann
At 17:55 15/01/01 +0500, Vikram Vaswani wrote: >Hi! > >Can someone help me out with a regex to validate a phone number? We'd need to know what format of telephone numbers you're looking to validate, first. Angus. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

[PHP] imap ssl

2001-01-15 Thread elacroix
Is there any IMAP PHP functions using ssl ?? Do I have to just switch the port 143->993 to use ssl or do I have to use specific functions implemented in PHP 4 ?? __ ifrance.com, l'email gratuit le plus complet de l'Int

RE: [PHP] Regex for telephone number

2001-01-15 Thread Spallek, Heiko
Hi! > Can someone help me out with a regex to validate a phone number? Read the examples at: http://www.php.net/manual/en/function.ereg-replace.php Der Heiko Buchtipp: http://www.aufbruch.com/ Heiko und Gisela Spallek: Aufbruch ins Land der unbegrenzten Moeglichkeiten. Studieren, Arbeiten und L

[PHP] Missing function virtual () ???

2001-01-15 Thread Frank Gadegast
Hi, compiled PHP3/PHP4 as external CGI under Apache. Calling results in a Fatal error: Call to undefined function: virtual() in "local-path" on line 4 Does this funktion need to be activated ? Does is not work in a CGI-PHP ? MfG, Frank Gadegast -- PHADE Software - PowerWeb

Re: [PHP] Modifying arrays

2001-01-15 Thread bard
try this one.. seems to easy though. Maybe I'm missing something?? Cheers, Brad On Mon, 15 Jan 2001, Catalin Borcea wrote: > How do I modify the value of the current element of an array? > > -- Catalin Borcea -- > \\\|/// > \\ - - // >

Re: [PHP] Display who is onlin

2001-01-15 Thread Toby Butzon
This has been discussed before; you should probably check the archives (see php.net/support.php for list of archives; one archive can be found at marc.theaimsgroup.com). --Toby - Original Message - From: "TOM" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, January 15, 2001 2:3

[PHP] Apache 1.3.14 - PHP-404 - GD-1.3.8 problems

2001-01-15 Thread Kees Hoekzema
Hi all, I've some strange problems. First i tried to update PHP-403pl1 with PHP-404. PHP was running smoothly on my Apache-1.3.14 but after the upgrade (no compile errors, ./configure okay and no errors at all when compiling PHP-404) i wanted to restart Apache.. it said something like: crc32; und

Re: [PHP] Perl-like DBI and generic SQL

2001-01-15 Thread Michael Kimsal
Dean Hall wrote: > I read once on this list that PHP supports a DBI-like database access object (such >as the one in Perl). Is this true? Does anyone know where I can find documentation >for it? I can't seem to find it in the manual. > > Also, how do you all handle generic SQL for multiple DB

[PHP] Unknown number of fields

2001-01-15 Thread Shimon Dekel
Hi, I need to be able to reactive an unknown number of fields from a Data Base generated form. How do I handle an unknown number of fields? II can generate a list of all possible fields and try them all but will this generate errors? I will appreciate any help or information. Thanks Shimon Dekel

Re: [PHP] Unknown number of fields

2001-01-15 Thread Joe Stump
http://www.php.net/manual/en/function.mysql-fetch-field.php --Joe On Mon, Jan 15, 2001 at 05:27:03PM +0200, Shimon Dekel wrote: > Hi, > I need to be able to reactive an unknown number of fields from a Data > Base generated form. > How do I handle an unknown number of fields? > II can generate a

php-general Digest 15 Jan 2001 14:44:12 -0000 Issue 456

2001-01-15 Thread php-general-digest-help
r of methods in the session class of phplib. > > With phplib and php4.0.4 I am seeing the following warnings: Warning: > Call-time pass-by-reference has been deprecated - argument passed by > value; If you would like to pass it by reference, modify the > declaration of [runtime function

[PHP] safe_mode setup question

2001-01-15 Thread Lutz Jaenicke
Hi! On my webserver I want to switch to enable safe_mode setup, but not for all directories. 1) I have one common directory, in which I have some root-owned files with the header and footer of our lab. I want to allow all users to include these files to easily make them look similar :-) 2)

Re: [PHP] date comparison

2001-01-15 Thread Joe Stump
The way you want to do this is with UNIX timestamps. FYI a timestamp is the number of seconds starting at 1970 and going up (it's important to remember that date - since some people were born before, etc.) So you need to do this: $dateA = '12-25-1999'; $dateB = '12-24-1999'; // conve

Re: [PHP] date comparison

2001-01-15 Thread Joe Stump
the same format (/mm/dd), say > $Date1 = 20010115 and $Date2 =20010120. If what I want is to find out if > $Date1 come before $Date2, can I just use this sniplet below? > > if ($Date1 < $Date2) { > ... > } else { > ... > } > > Do I still need to use

Re: [PHP] Date data type problem

2001-01-15 Thread Joe Stump
This is not possibly - do this on $date2 first: $foo_date2 = str_replace('-',$foo_date2); then if($date1 < $foo_date2) { } else { } --Joe On Mon, Jan 15, 2001 at 03:15:38PM -0600, Jacky@lilst wrote: > Hi people, > I have tried to compare 2 date values to see if one come before another usin

[PHP-CVS] cvs: php4 /sapi/aolserver aolserver.c

2001-01-15 Thread Sascha Schumann
sas Mon Jan 15 06:48:15 2001 EDT Modified files: /php4/sapi/aolserveraolserver.c Log: Try harder to push data through the wire. I just learned that the AOLserver module will be used for a 100k users webmail service. Wheee! Index: php4/sap

Re: [PHP] load balancing with php/apache?

2001-01-15 Thread Joe Stump
I would agree - we started using one at work (the 760 I believe) with 128GB of online RAID 4 storage - YUM! We run a large SUN DB and run our DB straight from the NetApp. NetApp basically rules. --Joe On Mon, Jan 15, 2001 at 10:08:32AM -, Tim Parkin wrote: > A NetApp (Network Appliance) is

Re: [PHP] Modifying arrays

2001-01-15 Thread Joe Stump
$array = array('foo','bar','hello'); for($i = 0 ; $i < sizeof($array) ; ++$i) { if($i == 1) { $array[$i] = 'not_bar'; } } Hope this helps! Also check out: http://www.php.net/manual/en/ref.array.php --Joe On Mon, Jan 15, 2001 at 01:19:56PM +0200, Catalin Borcea wr

[PHP-CVS] cvs: php4 /sapi/isapi/stresstest notes.txt stresstest.cpp

2001-01-15 Thread Zeev Suraski
zeevMon Jan 15 06:55:30 2001 EDT Modified files: /php4/sapi/isapi/stresstest notes.txt stresstest.cpp Log: - Implement quick file comparing routine - Fix crash - wait on the threads themselves, not on Event objects. It takes time between the time a threa

[PHP-CVS] cvs: php4 /sapi/isapi/stresstest stresstest.cpp

2001-01-15 Thread Zeev Suraski
zeevMon Jan 15 07:13:50 2001 EDT Modified files: /php4/sapi/isapi/stresstest stresstest.cpp Log: - Implement CompareStringWithFile() - Remove a stupid NULL assignment that slipped in the last commit Index: php4/sapi/isapi/stresstest/stresstest.cpp d

[PHP-CVS] cvs: php4 /sapi/isapi/stresstest stresstest.dsp

2001-01-15 Thread Zeev Suraski
zeevMon Jan 15 07:16:30 2001 EDT Modified files: /php4/sapi/isapi/stresstest stresstest.dsp Log: Fix output dir Index: php4/sapi/isapi/stresstest/stresstest.dsp diff -u php4/sapi/isapi/stresstest/stresstest.dsp:1.2 php4/sapi/isapi/stresstest/stresstest.

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

2001-01-15 Thread Rasmus Lerdorf
rasmus Mon Jan 15 09:12:59 2001 EDT Modified files: /CVSROOTavail cvsusers gen_acl_file.m4 Log: doc account for J.Anton, Lee Index: CVSROOT/avail diff -u CVSROOT/avail:1.39 CVSROOT/avail:1.40 --- CVSROOT/avail:1.39 Sun Jan 14 16:28:09 2001 +++ CVSROOT/

[PHP] GD Library ??? Where to find.

2001-01-15 Thread Dallas Kropka
Please point me to the GD library I cant seem to find it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] problem that has been really annoying me...

2001-01-15 Thread PeterOblivion
I have a problem which i dont know how to solve my script... $game = "roguespear"; $title = "quepasa??mecasa..."; $num = mysql_query("SELECT * FROM DLtemplates WHERE id='$game'"); $num =mysql_fetch_array($num); print(stripslashes("$num[sub]")); what sub in DLtemplates where id=$game = $titl

Re: [PHP] GD Library ??? Where to find.

2001-01-15 Thread Cynic
www.boutell.com/gd/ IIRC At 18:26 15.1. 2001, Dallas Kropka wrote the following: -- >Please point me to the GD library I cant seem to find it. > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: [

[PHP] Re: Fixed: Simple form not passing variables

2001-01-15 Thread jeff fitzmyers
Thanks!, I was getting bogged down in variable declaration, OOP, etc. This works perfectly: Please enter user name here: You typed: >>> Within your configurations, is register_globals on? I try this code and it works just fine. Although if register_globals setting in php.ini is off it wi

Re: [PHP] problem that has been really annoying me...

2001-01-15 Thread Toby Butzon
First of all check this: print(stripslashes("$num[sub]")); ... should be... print(stripslashes($num['sub'])); That will change the result, but I don't know if it's the result you're going for... One other note of interest... why is your variable named $num? If it was supposed to be a significan

[PHP] CyberCash Libraries?

2001-01-15 Thread ncook
Where can I get the Cybercash Libraries? -nc -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

[PHP] safe mode in 4.0.4pl1

2001-01-15 Thread Ian Gulliver
I'm running PHP 4.0.4pl1 as a CGI under Apache 1.3.14 with suexec. Whenever I turn on safe_mode in php.ini, the following messages appear from a script owned by and running as uid 1013 which is trying to include files owned by uid 1013 in a directory owned by 1013: Warning: SAFE MODE Restriction

Re: [PHP] problem that has been really annoying me...

2001-01-15 Thread Toby Butzon
O wait... I think I see what you're saying... the database actually has an entry in it that is '$title', not the value of $title... what you need to do is run eval('echo ' . $num['sub']) instead of the print command you've got right now (note: print/echo makes no difference for this example; just

Re: [PHP] load balancing with php/apache?

2001-01-15 Thread Alex Black
> > We used LocalDirector for awhile, with it's 'sticky bit' functionality, > and it basically didn't work with AOL. I just looked at the > coyote product and they claim it works with 'large ISP' proxies - maybe a > veiled > reference to AOL directly (why not just say AOL?). from my testing, th

Re: [PHP] hello

2001-01-15 Thread Stephan Ahonen
I don't know about everybody else, but I learned PHP by taking a simple, pre-existing script and upgrading it to my needs by studying the syntax and putting in new code to do what I wanted it to, always keeping the PHP online manual at my side. By just jumping in like that, I've managed to build a

[PHP] how do I do this, please?

2001-01-15 Thread John Hinsley
Can anyone show me how to do this? I'm using a script out of Julie C. Meloni's book: http://localhost/calculate_form.html"); exit; if (ereg !=("^[0-9]+[.]?[0-9]*$", $val2)) { header("Location:http://localhost/calculate_form.html");

Re: [PHP] hello

2001-01-15 Thread Toby Butzon
My fault for missing the original post... but if this is the discussion I think it is... I'd say if you've already got one language under your belt you can probably learn PHP without too much trouble just by reading the first few chapters of the manual and using the function reference beyond that

[PHP] Re: [PHP-DEV] cookies and sessions security

2001-01-15 Thread Kristofer Widholm
>Poor security: log in with a form or basic authentication; set cookie on >client with username/password combo (vulnerable to network sniffers, >anybody with access to browser's cookie file) >Decent security: log in with form or basic authentication; set cookie with >session id number and store us

[PHP] looping

2001-01-15 Thread Jerry Lake
excuse my density today my brain is still in weekend mode how would I make this loop put 4 or 5 items (haven't decided) per line instead of just one item and the checkbox on each line? echo ""; while($myrow = mysql_fetch_array($result2)) { $name = $myrow["name"]; $personal_cost = $myrow["pers

[PHP] simple division.. but how?

2001-01-15 Thread PeterOblivion
if you want to do 10 / 3 i want it to show 3 and not 3.3 how do I control that? - Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTE

Re: [PHP] simple division.. but how?

2001-01-15 Thread Cynic
look at the math functions. also, number_format() might be your friend. At 19:53 15.1. 2001, [EMAIL PROTECTED] wrote the following: -- >if you want to do >10 / 3 >i want it to show 3 and not 3.3 > >how do I control that? > > >- Th

Re: [PHP] simple division.. but how?

2001-01-15 Thread Alejandro Garin
--- [EMAIL PROTECTED] wrote: > if you want to do > 10 / 3 > i want it to show 3 and not 3.3 > > how do I control that? > $a= 10/3; echo (int)$a; echo $a; Result 3 3.3 regards = Ing. Alejandro Garín Telecom Internet _

Re: [PHP] CyberCash Libraries?

2001-01-15 Thread Nathan Cook
Nevermind, cybercash.com has an MCK (Merchant Kit) that has the libs in it. Thx, though. -nc --- .:: Nathan Cook- Network/Security Admin office: 208.343.3110 - Web Programmer email:

[PHP] Format a number for Money

2001-01-15 Thread Brandon Orther
Hello Everybody, I want to take a number and echo it with only 2 numbers after the decimal point. I can't remember how to do this but I do remember it was easy. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800

RE: [PHP] simple division.. but how?

2001-01-15 Thread Cal Evans
$a= intvalue(10/3) echo($a) Cal http://www.calevans.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 12:53 PM To: [EMAIL PROTECTED] Subject: [PHP] simple division.. but how? if you want to do 10 / 3 i want it to show 3 and n

Re: [PHP] Format a number for Money

2001-01-15 Thread Chris Lee
Chris Lee Mediawaveonline.com "Brandon Orther" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello Everybody, > > I want to take a number and echo it with only 2 numbers after the decimal > point. I can't remember how to do this but I do remember it was e

[PHP] gif vs png using gd

2001-01-15 Thread meeks
Hey folks, I've been experimenting with creating some graphics on the fly with GD. So far, so good. However, I've switched ISP's, and their gd doesn't support gifs. I've tried changing the header syntax header("content-Type: image/gif") to header("content-Type: image/png"); and the imagegif

Re: [PHP] Re: [PHP-DEV] cookies and sessions security

2001-01-15 Thread Tim Zickus
> Wow, I never thought of using the remote IP! Thanks for the tip. I > am going to use it today for an authentication system I'm building. Please note that remote IP is NOT reliable. For clients behind the proxies & gateways of large ISP's (AOL is the prime example) you can see the remote addre

[PHP] 2 questions, can't find in the manual or archives . . .

2001-01-15 Thread Foley, John
3 questions I guess. I'm writing a SYSV LP script in PHP so that I can have a print-to-database (MySQL) solution. First question: Am I wasting my time? Are there already canned solutions? (LPRng perhaps?) Second question: How do I go about opening file descriptors

[PHP] Zend Optimizer

2001-01-15 Thread Marcus Ouimet
I have download the Zend Optimizer (Running Apache 1.3.14 and PHP 4.04) and untarred it. Then I copied the ZendOptimizer.so to usr/local/Zend/lib Then I edited the PHP.ini and added: zend_optimizer.optimization_level=15 zend_extension="/usr/local/Zend/lib/ZendOptimizer.so" Somewhere near the

[PHP] mail() question

2001-01-15 Thread Robert Hough
Sorry in advance for being redundant. I was unable to find the answer I needed, on the php.net site. We have a mailto form, which uses the mail() funciton. For the most part, it works as intended. All of my headers seem to be coming through intact (To, From, Reply-To, Return-Path, Error-To, etc).

[PHP] uploading files through php-generated scripts

2001-01-15 Thread David P. Schwartz
I've got a strange thing with overriding an ini file in PHP. I'm trying to implement a simple example of a script that allows a file to be uploaded. I put an tag on the form, along with a submit button. (yeah, the rest of the HTML is fine...) The script gets the file, uploads it, and the $my

Re: [PHP] mail() question

2001-01-15 Thread jeremy brand
Your Return-Path: header should have that email address. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http://www.JeremyBrand.com/Jeremy/Brand/Jeremy_Brand.html for more Get your own Free, Private email at http://www.smackdown.com/ - - - - - - - - - - - - - -

[PHP] 4.0.4 Postgres link resource bug?

2001-01-15 Thread kris
Hi, I have a script that worked up until I upgraded the server from PHP 4.0.2 to 4.0.4. I get: 1 is not a valid PostgreSQL link resource. Why is this broken all of a sudden? here is some code: function SQLCall($call){ global $psqlhost, $psqldb, $rows, $result; $db_connect=p

Re: [PHP] mail() question

2001-01-15 Thread Robert Hough
On Mon, 15 Jan 2001, jeremy brand wrote: > Your Return-Path: header should have that email address. Thanks, but as stated in my post, all of my headers Return-Path included, are coming through correctly. Here is what I am using for my headers, is there something missing here? $headers .= "From

Re: [PHP] mail() question

2001-01-15 Thread jeremy brand
I understand. So, does $sender_address have the email address that you want it returned to? You didn't specifically say this, that is why I asked. If you actually get the mail sent on the internet, and the headers contain explicit instructions, then the mail has no choice but to return to who y

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

2001-01-15 Thread Zeev Suraski
zeevMon Jan 15 12:34:31 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Add Ben Mansell to the ISAPI committers PR: Submitted by: Reviewed by: Obtained from: Index: CVSROOT/avail diff -u CVSROOT/avail:1.40 CVSROOT/avail:1.41 --- C

Re: [PHP] Zend Optimizer

2001-01-15 Thread Alejandro Garin
--- Marcus Ouimet <[EMAIL PROTECTED]> wrote: > I have download the Zend Optimizer (Running Apache > 1.3.14 and PHP 4.04) and untarred it. Then I copied > the ZendOptimizer.so to usr/local/Zend/lib Then I > edited the PHP.ini and added: > > zend_optimizer.optimization_level=15 > zend_extension="/

[PHP] calling perl from within php

2001-01-15 Thread Kevin McCarthy
Apologies if this is documented here, especially since it seems to be something commonly done, but I couldn't locate it. My problem: We are running PHP 4 on a Solaris 2.7 box with Apache 1.3.11 with mod_perl 1.24. We need to communicate with 3rd-party Perl APIs from within PHP to handle proce

Re: [PHP] mail() question

2001-01-15 Thread Robert Hough
On Mon, 15 Jan 2001, jeremy brand wrote: > So, does $sender_address have the email address that you want it > returned to? You didn't specifically say this, that is why I asked. Sorry, yes it does. The message, if delivered properly, is fine. The receiver can hit "Reply" and that works as intend

Re: [PHP] mail() question

2001-01-15 Thread jeremy brand
Well, I don't know exactly what you mean by a bounce. But, an undelivered email will return to the Return-Path address. Why don't you forward the actuall email headers to the list and I can look at them. Jeremy Jeremy Brand :: Sr. Software Engineer :: 408-245-9058 :: [EMAIL PROTECTED] http:/

[PHP] PDFLIB 3.0 PHP 4.04

2001-01-15 Thread Cal Evans
Has anyone gotten PHP 4.04 to compile with PDFLIB support? I have successfully compiled pdflib and all of it's supporting libs. (It runs the tests that come with it) But when I ./configure php, I use: ./configure --with-pdflib=/usr/local/lib And in the output of configure I see: ... checking

Re: [PHP] Zend Optimizer

2001-01-15 Thread Marcus Ouimet
I did that and it only says: This program makes use of the Zend scripting language engine: Zend Engine v1.0.3, Copyright (c) 1998-2000 Zend Technologies And nothing about the optimizer. So I am assuming that it is not running? - Original Message - From: "Alejandro Garin" <[EMAIL PROTECT

Re: [PHP] mail() question

2001-01-15 Thread Egan
>> Thanks, but as stated in my post, all of my headers >> Return-Path included, are coming through correctly. >From the sendmail bat book: > The Return-Path: header is intended to show the envelope address of > the real sender ... it is intended to be used solely for notification > of deliver

Re: [PHP] gif vs png using gd

2001-01-15 Thread Mark Maggelet
On Mon, 15 Jan 2001 19:52:29 GMT, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: >Hey folks, > >I've been experimenting with creating some graphics on the fly with >GD. So >far, so good. However, I've switched ISP's, and their gd doesn't >support >gifs. I've tried changing the header syntax heade

Re: [PHP] mail() question

2001-01-15 Thread Robert Hough
On Mon, 15 Jan 2001, jeremy brand wrote: > Why don't you forward the actuall email headers to the list and I can > look at them. Well, after checking the headers myself, it doesn't look like sendmail is accepting my return-path, or php isn't sending it. Headers below: Received: (from nobody@loc

Re: [PHP] mail() question

2001-01-15 Thread Egan
On Mon, 15 Jan 2001 16:05:22 -0500, Egan <[EMAIL PROTECTED]> wrote: > >>> Thanks, but as stated in my post, all of my headers >>> Return-Path included, are coming through correctly. > > >>From the sendmail bat book: > > >> The Return-Path: header is intended to show the envelope address of >> the

  1   2   3   >