Re: [PHP] MS SQL databse connecting

2001-03-19 Thread Yoshi Melrose
That's it, Thank you Andrew, I knew I had it somewhere. Michael, this is where you want to go, Andrew hit the nail right on the head! - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Yoshi Melrose" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 19, 2001

Re: [PHP] MS SQL databse connecting

2001-03-19 Thread Yoshi Melrose
We knew what you mean. ;) - Original Message - From: "Andrew Hill" <[EMAIL PROTECTED]> To: "Yoshi Melrose" <[EMAIL PROTECTED]>; "Work" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Monday, March 19, 2001 11:14 AM Subject: Re: [PHP] MS SQL databse connecting > Whups, sorry - looks li

[PHP] Add commas to 1188889 so--> 1,188,889

2001-03-19 Thread Karl J. Stubsjoen
Hello, Has anyone written a nifty little function to add commas to big numbers like: 119 so--> 1,188,889 If so, please share! Karl -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

Re: [PHP] Add commas to 1188889 so--> 1,188,889

2001-03-19 Thread Egon Schmid (@work)
"Karl J. Stubsjoen" wrote: > Has anyone written a nifty little function to add commas to big numbers > like: > 119 so--> 1,188,889 See number_format(). -Egon -- SIX Offene Systeme GmbH ·Stuttgart - Berlin Sielminger Straße 63 ·D-70771 Leinfelden-Echterdingen Fon +49

[PHP] unlink failed message in page but files are removed!

2001-03-19 Thread Tom Beidler
I have a script that cleans up old files with the unlink () command. On the page that runs the script I get; Warning: Unlink failed (Permission denied) in /public/tbldr/public/demo/request/step2.php4 on line 152 However when I check to see if the files are removed, there gone! It appears they're

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

2001-03-19 Thread Fredrik Öhrn
ohrnMon Mar 19 09:01:36 2001 EDT Modified files: /php4/ext/ypyp.c Log: Removed redundant initialization. Index: php4/ext/yp/yp.c diff -u php4/ext/yp/yp.c:1.16 php4/ext/yp/yp.c:1.17 --- php4/ext/yp/yp.c:1.16 Sun Mar 18 14:16:46 2001 +++ php4

Re: [PHP] Add commas to 1188889 so--> 1,188,889

2001-03-19 Thread Reuben D Budiardja
You can use the built in number_format function. Check out: http://www.php.net/manual/en/function.number-format.php Reuben D. Budiardja Web Database Application Programmer / Analyst Devcorps, ITS Goshen College, IN 46526 At 10:40 AM 3/19/01 -0700, Karl J. Stubsjoen wrote: >Hello, > >Has anyone w

Re: [PHP] pulldown population not getting the last value

2001-03-19 Thread Tom Beidler
on 3/19/01 7:08 AM, Jason Stechschulte at [EMAIL PROTECTED] wrote: > On Sun, Mar 18, 2001 at 05:38:36PM -0800, Tom Beidler wrote: >> I'm trying to create a pulldown menu with distinct names from the found set. >> For some reason I never get the last name. Here's my code; >> >> $contact_query = "

[PHP] PHP hosts?

2001-03-19 Thread Good Fella
Hi All, I am looking for some sites that host PHP. I can't really afford to pay for hosting space anymore, so I was wondering if there were any good (free) web hosts, that had PHP and/or MySQL. I would like to get a fast and stable place to host my files, but if there was a preference, I wou

[PHP] PHP Webhosting

2001-03-19 Thread Angerer, Chad
Hello, I ran across a web hosting service phpwebhosting.com and it seemed like a good deal, perhaps too good to be true. I searched the newsgroup archive to find any posts of user experiences. I didn't see anything good or bad really. I am just wondering if someone else has heard or had any ex

Re: [PHP-CVS] cvs: php4 /ext/yp CREDITS php_yp.h yp.c

2001-03-19 Thread Fredrik Ohrn
On Mon, 19 Mar 2001, Andi Gutmans wrote: > Seems to me that you can nuke the following as it will always be done in RINIT: > +static void php_yp_init_globals(YPLS_D) > +{ > + YP(error) = 0; > +} > + > +PHP_MINIT_FUNCTION(yp) > +{ > +#ifdef ZTS > + yp_globals_id = ts_allocate_id(sizeof

[PHP] OOP question regarding class extension

2001-03-19 Thread John Guynn
Can one class extend multiple classes? I'm still playing with OOP functionality and maybe my logic is reversed but I think I need one class to extend many others. John Guynn This email brought to you by RFCs 821 and 1225. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-ma

Re: [PHP] PHP Webhosting

2001-03-19 Thread support
you could try NoMonthlyFees.com - Original Message - From: Angerer, Chad <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 19, 2001 12:28 PM Subject: [PHP] PHP Webhosting > Hello, > > I ran across a web hosting service phpwebhosting.com and it seemed like a > good deal, p

Re: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Harshdeep S Jawanda
Hi, [EMAIL PROTECTED] wrote: > What seems crazy to me is that you cant just set a varable (i.e. siteroot) > in common.inc and refer to URLs at $siteroot."/page.html". Are you sure that $siteroot = "$HTTP_HOST:$SERVER_PORT" doesn't work for you (as an absolute link seems ok to you)? Have

Re: [PHP] Problems with Linux PHP

2001-03-19 Thread Christian Reiniger
On Monday 19 March 2001 15:28, you wrote: > I'm having a couple of problems while porting some software from Lynx > OS to Linux. Here they are: > > 1. The encryption method seems to be different. Does anyone know the > salt to use in the crypt() function in Linux? Depends on the distribution you'

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

2001-03-19 Thread Rasmus Lerdorf
rasmus Mon Mar 19 09:56:01 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Karma for Damien Index: CVSROOT/avail diff -u CVSROOT/avail:1.120 CVSROOT/avail:1.121 --- CVSROOT/avail:1.120 Sat Mar 17 16:37:01 2001 +++ CVSROOT/avail Mon Mar

Re: [PHP] site root variable (for Generic Unix and Windows)

2001-03-19 Thread Harshdeep S Jawanda
Errata... Harshdeep S Jawanda wrote: > $siteroot = "$HTTP_HOST:$SERVER_PORT" Sorry, this should be $siteroot = "http://$HTTP_HOST:$SERVER_PORT" -- Regards, Harshdeep Singh Jawanda. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

[PHP] posix_pwnam with shadow passwords

2001-03-19 Thread Liam Gibbs
I'm using a system that uses shadow passwords, and I'm wondering if there is a way to make posix_pwnam go around that, so that all my passwords returned don't end up being 'x'. Is there a way to do this with posix_pwnam or another command? RIght now, I'm using an ugly hack, but would much rathe

Re: [PHP] PHP hosts?

2001-03-19 Thread postmaster-vs
Try these guys :) - Original Message - From: Jeff Oien <[EMAIL PROTECTED]> To: PHP <[EMAIL PROTECTED]> Sent: Monday, March 19, 2001 12:43 PM Subject: RE: [PHP] PHP hosts? > > Hi All, > > > > I am looking for some sites that host PHP. I can't really afford to pay for > > hosting space

[PHP] Remember my username & password

2001-03-19 Thread Batis
Hello everyone, I want to build an authentication system like when entering Yahoo!. I.e. each user can sign-up for a username, which has a password. When he enters the site, there's a login box: Username: [textbox] Password: [password textbox] [checkbox] Remember my username & password If he

RE: [PHP] OOP question regarding class extension

2001-03-19 Thread Altunergil, Oktay
As far as I know a class can extend multiple classes. What you can't do -in PHP- is two create a class that inherits from multiple parent classes (multiple inheritence). I believe this is available in C++ and Java and others. I also think the reason it is not available in PHP is because inheriting

[PHP] webhosts

2001-03-19 Thread postmaster-vs
I think my outlook is on the fritz my total apologizes! Kat NoMonthlyFees.com - Never pay monthly webhosting fees again!!! http://service.bfast.com/bfast/click?bfmid=12768212&siteid=38090600&bfpage=h ome or PayMonthlyFees.com http://www.nomonthlyfees.com/pay_monthly_fees.html -- PHP General M

Re: [PHP] PHP Webhosting

2001-03-19 Thread Aviv Revach
Hey! I'm in the EXACT situation as you.. ;) I too was wondering whether phpwebhosting.com can be trusted. If someone here ever used their services, please let us know. Thank you in advance - Aviv Revach At 12:28 19/03/01 -0600, Angerer, Chad wrote: >Hello, > >I ran across a web hosting s

RE: [PHP] PHP hosts?

2001-03-19 Thread Jeff Oien
> Hi All, > > I am looking for some sites that host PHP. I can't really afford to pay for > hosting space anymore, so I was wondering if there were any good (free) web > hosts, that had PHP and/or MySQL. > > I would like to get a fast and stable place to host my files, but if there > was a p

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

2001-03-19 Thread Sterling Hughes
sterlingMon Mar 19 10:59:24 2001 EDT Modified files: /php4/ext/bz2 bz2.c Log: Whitespace fix... Index: php4/ext/bz2/bz2.c diff -u php4/ext/bz2/bz2.c:1.12 php4/ext/bz2/bz2.c:1.13 --- php4/ext/bz2/bz2.c:1.12 Thu Mar 15 20:23:58 2001 +++ ph

Re: [PHP] Remember my username & password

2001-03-19 Thread Pierre-Yves Lemaire
The answer, like yahoo, is to also store the username and password in a database. When the cookie is not set or the option not checked, you will use a database to validate the username and password. You will build a session only if the username and password are matched in the database. py - O

[PHP] Reversing htmlspecialchars()

2001-03-19 Thread Yev
Hello I encoded my HTML text via htmlspecialchars(), but now need to get the actual HTML.. I searched the docs, but couldn't find the reverse function. How would I do this? TIA, Yev __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail.

Re: [PHP] OOP question regarding class extension

2001-03-19 Thread Matt McClanahan
On Mon, Mar 19, 2001 at 01:58:39PM -0500, Altunergil, Oktay wrote: > As far as I know a class can extend multiple classes. What you can't do -in > PHP- is two create a class that inherits from multiple parent classes > (multiple inheritence). I believe this is available in C++ and Java and > othe

Re: [PHP] Reversing htmlspecialchars()

2001-03-19 Thread Egon Schmid (@work)
Yev wrote: > I encoded my HTML text via htmlspecialchars(), but now need to get the > actual HTML.. I searched the docs, but couldn't find the reverse > function. How would I do this? See also: htmlentities(), array_flip(), and get_translation_table(). -Egon -- SIX Offene Systeme GmbH

Re: [PHP] Checking if a web, a url really exists ?

2001-03-19 Thread Geoff Caplan
Steve wrote: SH> Anybody got an idea on how to check if a url really exists ? Look at the function url_responds() in class.Validator.php3 from http://www.thewebmasters.net. This is a useful general validation class open sourced on the Gnu licence. Cheers Geoff Caplan mailto:[EMAIL PROTECTED]

Re[2]: [PHP] Automatic documentation: call for help with C++

2001-03-19 Thread Geoff Caplan
Hi folks Harshdeep Jawands wrote, HSJ> I'll try and have a look at ROOT and evaluate its suitability. That would be a helpful first step. I just don't have the background to understand the documentation well enough to get a handle on its capabilities. -- Best regards, Geoff

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

2001-03-19 Thread Jani Taskinen
sniper Mon Mar 19 10:38:09 2001 EDT Modified files: /php4/ext/midgard config.m4 Log: Fix the build. Again. # Read README.CVS-RULES # And TEST before commit. Index: php4/ext/midgard/config.m4 diff -u php4/ext/midgard/config.m4:1.18 php4/ex

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

2001-03-19 Thread Rasmus Lerdorf
rasmus Mon Mar 19 10:41:46 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Oops, wrong karma Index: CVSROOT/avail diff -u CVSROOT/avail:1.121 CVSROOT/avail:1.122 --- CVSROOT/avail:1.121 Mon Mar 19 09:56:00 2001 +++ CVSROOT/avail Mon M

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

2001-03-19 Thread Alexander Bokovoy
On Mon, Mar 19, 2001 at 06:38:09PM -, Jani Taskinen wrote: > sniperMon Mar 19 10:38:09 2001 EDT > > Modified files: > /php4/ext/midgard config.m4 > Log: > Fix the build. Again. > # Read README.CVS-RULES > # And TEST before commit. >

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

2001-03-19 Thread Andrei Zmievski
On Mon, 19 Mar 2001, Alexander Bokovoy wrote: > This fix does not work because @MIDCONFIG_FILE@ in php_midgard.h does > not substituted by PHP_OUTPUT using template file php_midgard.h.in. > Either fix building environment in PHP4 which does not allow output > variable's value through template head

Re: [PHP] Remember my username & password

2001-03-19 Thread Miles Thompson
Couple of ways of doing this --- 1. Assume you will be storing the username/password combo in a database. 2. Yes, use a cookie if you wish to store password on the client side. 3. PHP sessions are good for temporary storage of the username/password combo, or whatever else you may use for your

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

2001-03-19 Thread Alexander Bokovoy
On Mon, Mar 19, 2001 at 08:28:20PM +0100, Jani Taskinen wrote: > On Mon, 19 Mar 2001, Alexander Bokovoy wrote: > > >On Mon, Mar 19, 2001 at 01:19:06PM -0600, Andrei Zmievski wrote: > >> On Mon, 19 Mar 2001, Alexander Bokovoy wrote: > >> > This fix does not work because @MIDCONFIG_FILE@ in php_mid

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

2001-03-19 Thread Jani Taskinen
On Mon, 19 Mar 2001, Alexander Bokovoy wrote: >On Mon, Mar 19, 2001 at 01:19:06PM -0600, Andrei Zmievski wrote: >> On Mon, 19 Mar 2001, Alexander Bokovoy wrote: >> > This fix does not work because @MIDCONFIG_FILE@ in php_midgard.h does >> > not substituted by PHP_OUTPUT using template file php_mi

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

2001-03-19 Thread Jani Taskinen
On Mon, 19 Mar 2001, Alexander Bokovoy wrote: >>fi >>PHP_SUBST(MIDCONFIG_FILE) >> - AC_SUBST(MIDCONFIG_FILE) >> - AC_OUTPUT(php_midgard.h, [], []) >> + PHP_OUTPUT(php_midgard.h, [], []) >>AC_DEFINE(HAVE_MIDGARD, 1, [ ]) >>PHP_EXTENSION(midgard, $ext_shared) >> fi >This fix doe

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

2001-03-19 Thread Alexander Bokovoy
On Mon, Mar 19, 2001 at 01:19:06PM -0600, Andrei Zmievski wrote: > On Mon, 19 Mar 2001, Alexander Bokovoy wrote: > > This fix does not work because @MIDCONFIG_FILE@ in php_midgard.h does > > not substituted by PHP_OUTPUT using template file php_midgard.h.in. > > Either fix building environment in

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

2001-03-19 Thread Andrei Zmievski
On Mon, 19 Mar 2001, Alexander Bokovoy wrote: > Andrei, problem is that build environment needs to be fixed, not module alone. > This is really serious problem because it prevents people from using Midgard > extension with, say, PHP 4.0.4pl1 (latest stable PHP4 version) though > they could do it (

Re: [PHP] PHP & MYSQL BOOKS

2001-03-19 Thread YoBro
I actually think this is the book I have been waiting for. A bookstore in New Zealand told me not until March 2001. It must be pretty good, all the Sams books are. The only problem is in NZ it is about $170 as opposed to amazons $49.95US ($100NZ). If you know somewhere cheaper than amazon, I am al

Re: [PHP] PHP & MYSQL BOOKS

2001-03-19 Thread Kurth Bemis
At 03:46 PM 3/19/2001, YoBro wrote: i get a lot of my books at bookpool.com. Their prices are lower than amazon.com check them out. www.bookpool.com ~kurth >I actually think this is the book I have been waiting for. A bookstore in >New Zealand told me not until March 2001. It must be pretty

[PHP] Reading one line, and no more.

2001-03-19 Thread Richard
Greetings. How can I read one specified row in a flat textfile? I am working in arrays and so forth, therefore one row is enough. Thanks. - Richard -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

RE: [PHP] Reading one line, and no more.

2001-03-19 Thread Altunergil, Oktay
http://www.php.net/manual/en/function.file.php Look into this, you might be able to do it using the file() function which reads in a file and populates and array line by line. array file (string filename [, int use_include_path]) Identical to readfile(), except that file() returns the file in

Re: [PHP] PHP & MYSQL BOOKS

2001-03-19 Thread Jeff Oien
http://www.fatbrain.com/ http://www.booksamillion.com/ Jeff Oien PHP >start here - Web site coming soon >I actually think this is the book I have been waiting for. A bookstore in >New Zealand told me not until March 2001. It must be pretty good, all the >Sams books are. The only problem is in NZ

Re: [PHP] Reading one line, and no more.

2001-03-19 Thread Miles Thompson
http://www.php.net/manual/file There are a slew of file operations, you can read lines, sets of characters, position the pointer in a specific place. Fill your boots. Miles Thompson At 09:59 PM 3/19/01 +0100, Richard wrote: >Greetings. > > How can I read one specified row in a flat textfil

SV: [PHP] PHP vs Servlet

2001-03-19 Thread Jesper Blomström
I found out how to do it. Thx anyway / J Jesper Blomström <[EMAIL PROTECTED]> skrev i diskussionsgruppsmeddelandet:[EMAIL PROTECTED] > Hi! > > I am sure you have a solution to this... > > How shall I communicate with a servlet from PHP? > I have a servlet which makes a DB-query and returns the

Re: [PHP] weeks revisited

2001-03-19 Thread Chris Worth
OK I did this below and it works just great. I had stumbled across the message earlier. my next question would be. I'm working on a list of meetings. I return a list for the current month, what I would like to do is make the current week meetings show in red. However, I'm not sure of the

[PHP] Help with array creation

2001-03-19 Thread Chris Carbaugh
Hello, I'm trying to take the query string of a url and turn it into an associative array. Let's say I have a URL like myHost.com/somepage.php?val1=one&val2=two I can get the query with HTTP_SERVER_VARS["QUERY_STRING"], but how do I generate an array equivilent to array('val1'=>'one', 'val2

[PHP] PHP Install Problem

2001-03-19 Thread Joseph Koenig
Hi, I'm trying to get php to install on a RH 6.2 system. Apache 1.3.12. All goes well with the configure, make, and make install, but my server (apache) won't start and I get this message: Syntax error on line 249 of /etc/httpd/conf/httpd.conf: Cannot load /etc/httpd/modules/libphp4.so into serve

[PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Yoshi Melrose
Can someone direct me or send me a script that will convert number of seconds into a format readable as HH:mm? I've tried making it myself, but it gets all messed up in the calculations. Thanks Yoshi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED

[PHP-CVS] cvs: php4 /ext/standard array.c basic_functions.c php_array.h

2001-03-19 Thread Andrei Zmievski
andrei Mon Mar 19 13:20:03 2001 EDT Modified files: /php4/ext/standard array.c basic_functions.c php_array.h Log: @- Added array_map() function that applies a callback to the elements @ of given arrays and returns the result. It can also be used with a @ n

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread mjriding
How about something like this: $secs = number of seconds; $hours = intval($secs/360); $minutes = intval(($secs-$hours*360)/60) $seconds = $secs - $hours*360 - $minutes * 60; Hope this helps. Michael Ridinger On Mon, 19 Mar 2001, Yoshi Melrose wrote: > Can someone direct me or send me a scrip

[PHP] get_meta_tags bug?

2001-03-19 Thread Paul Rees
Hi, The php function 'get_meta_tags' doesn't work when the meta tag name/ content values are single quoted. It's fine for double quotes. I've had a look but can't find anything on the w3 site to say whether or not double quotes are required in meta tags. Does anyone know what the rule is? (php v

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Phillip Bow
function philtime($time){ $hours = (int) ($time / 3600); $min = (int) (($time % 3600) / 60 ); return ("$hours:$min"); } Should be 3600 since: 60sec = 1min 60min = 1hour 60 * 60 = 3600sec/hour -- phill > How about something like this: > > $secs = number of seconds; > $hours = intval

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

2001-03-19 Thread Sterling Hughes
On Mon, 19 Mar 2001, Jani Taskinen wrote: > On Mon, 19 Mar 2001, Alexander Bokovoy wrote: > > >On Mon, Mar 19, 2001 at 01:19:06PM -0600, Andrei Zmievski wrote: > >> On Mon, 19 Mar 2001, Alexander Bokovoy wrote: > >> > This fix does not work because @MIDCONFIG_FILE@ in php_midgard.h does > >> > n

RE: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Javier Muniz
should probably be: function philtime($time) { $hours = ($time - ($time % 3600)) / 3600; $min = (int) (($time % 3600) / 60); return ("$hours:$min"); } This way you don't risk rounding up on your first cast to int and being off by an hour... rounding is ok, however, for mi

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Phillip Bow
Oh in addition this won't work accurately if $time is greater than about 2 billion(2147483648 I believe). -- phill ""Phillip Bow"" <[EMAIL PROTECTED]> wrote in message 9961qg$ma4$[EMAIL PROTECTED]">news:9961qg$ma4$[EMAIL PROTECTED]... > function philtime($time){ > $hours = (int) ($time / 3600

Fw: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Yoshi Melrose
Ok, you guys both rock. and now I feel real stupid. LOL Thanks! - Original Message - From: "Phillip Bow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, March 19, 2001 4:42 PM Subject: Re: [PHP] Script to convert # of seconds to HH:mm > function philtime($time){ > $hours

[PHP] Re: Zend?

2001-03-19 Thread Richard Lynch
> I've heard alot about the Zend Encoder. Using it can I encode I file so that > php still executes it, but a person cannot read my source by looking at the > file? Yes. You replace all of the files you wish to protect with their Encoded representations, and they're pretty much indecipherable --

[PHP] Re: php editors

2001-03-19 Thread Richard Lynch
> I am looking for good php editors. Currently, i am using PHP coder. It > highlights syntax and checks my syntax. It's also executes my PHP codes. Are > there any editors like that? I just want a editor that highlights my code > and check my syntax. Give the Zend IDE a trial run. You'll be able

Re: [PHP] \"deleted\" cookie

2001-03-19 Thread Nikolai Vladychevski
[EMAIL PROTECTED] wrote: > > How do you "delete" the cookie? I delete like this: is this correct? to set cookie i use: setcookie("username",$username); Nikolai > > Nikolai Vladychevski <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > My site has been working with cookies just fine u

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

2001-03-19 Thread Colin Viebrock
> I don't think it belongs in PEAR at all. I could see the logic behind > distributing it with PHP, but don't see any reason to distribute it in > pear... Except that isn't this what PEAR was for all along? A collection of classes and add-on modules to extend PHP's functionality? I don't have

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Phillip Bow
I thought about that when I first started, but then went looking to see if using "\" would return the value without the decimal part. Not good when you start confusing VB and PHP and it makes you mess up your code. -- phill > This way you don't risk rounding up on your first cast to int and bein

RE: [PHP] Re: php editors

2001-03-19 Thread Altunergil, Oktay
Try this. This guy has two versions. One with a debugger. It also does previews if you have PHP installed on your machine. Only WINDOWS though. http://soysal.com/PHPEd/download.php3 -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED]] Sent: Monday, March 19, 2001 4:27 PM T

[PHP] math query

2001-03-19 Thread Peter Houchin
hiya, is there a way to get php to know that $200,000 = $20 as if you do a calculation with it $200,000 it only uses the things befor the comma .. Peter Houchin [EMAIL PROTECTED] = _ __ /\ /_/

[PHP] PHP w/ Oracle OCI8 - how stable?

2001-03-19 Thread Hardy Merrill
I'm thinking of using PHP to talk to an Oracle database with the OCI8 interface - is PHP's OCI8 interface stable? Anything unusual I should know about? I'm using: Redhat 6.1 Linux PHP 4.0.4pl1 Oracle 8i 8.1.6 Apache 1.3.14 TIA. -- Hardy Merrill Mission Critical Linux, Inc. http://www

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

2001-03-19 Thread Colin Viebrock
> I don't think it belongs in PEAR at all. I could see the logic behind > distributing it with PHP, but don't see any reason to distribute it in > pear... Except that isn't this what PEAR was for all along? A collection of classes and add-on modules to extend PHP's functionality? I don't have

RE: [PHP] math query

2001-03-19 Thread Johnson, Kirk
do an ereg_replace("[^0-9]","",$var) before the calculation, to remove all non-numeric characters. kirk > -Original Message- > From: Peter Houchin [mailto:[EMAIL PROTECTED]] > Sent: Monday, March 19, 2001 4:13 AM > To: Php-General@Lists. Php. Net > Subject: [PHP] math query > > > hiya,

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

2001-03-19 Thread Emiliano
Colin Viebrock wrote: > There is also the license issue (which I know has been discussed before). > But the first thing I read on the Midguard website is: > > Midgard will always implement an OS development to publishing > solution, future releases will include APIs for implementing >

Re: [PHP] HELP insert still dosn't work

2001-03-19 Thread David Robley
On Tue, 20 Mar 2001 03:32, Rudolf Frint wrote: > > I want to insert the Values into my Database like this > > $handle = ora_logon("iusr@test","kiwi1"); > $cursor1 = ora_open($handle); > $query = "insert into internet_tmp select > rv_ret($FF),$FF,$sesid,(sysdate+0.0021) from dual"; > ora_parse($cu

[PHP] (HELP) Reading a file sent through HTTP

2001-03-19 Thread Fabian Raygosa
A site is trying to send our website a xml file. Unfortunately it is not being sent through POST or GET. Using tools that the other site gives me to test my site i have determined only the file size through server vars CONTENT_LENGTH and CONTENT_TYPE which is text/xml. But thats it. I am stuck on

Re: [PHP] (HELP) Reading a file sent through HTTP

2001-03-19 Thread Rasmus Lerdorf
Uh, if it is not a POST or a GET, what is it? There must be some HTTP primitive or it isn't HTTP at all. -Rasmus On Mon, 19 Mar 2001, Fabian Raygosa wrote: > A site is trying to send our website a xml file. Unfortunately it is not > being sent through POST or GET. Using tools that the other si

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

2001-03-19 Thread david
> > I don't think it belongs in PEAR at all. I could see the logic behind > > distributing it with PHP, but don't see any reason to distribute it in > > pear... > > > Except that isn't this what PEAR was for all along? A collection of classes > and add-on modules to extend PHP's functionalit

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

2001-03-19 Thread Zeev Suraski
At 00:30 20/3/2001, Emiliano wrote: >Colin Viebrock wrote: > > > There is also the license issue (which I know has been discussed before). > > But the first thing I read on the Midguard website is: > > > > Midgard will always implement an OS development to publishing > > solution, future r

Re: [PHP] (HELP) Reading a file sent through HTTP

2001-03-19 Thread Fabian Raygosa
It's coming in as a binary file, as i mentioned before in some examples, perl reads the file with read (STDIN, &$request, $length); an asp example uses Request.TotalBytes to get the size then does a BinaryRead() then in a for loop converts it to a string. This is all well and good for them but i c

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

2001-03-19 Thread Emiliano
Zeev Suraski wrote: > >MySQL access functions were in PHP long before it went open source. I'm > >not saying that Midgard is on the same level of general usefullness > >but just that the fact that there's an organization behind it > >doesn't change it's licensing. > > MySQL was always opensource

Re: [PHP] (HELP) Reading a file sent through HTTP

2001-03-19 Thread Rasmus Lerdorf
> It's coming in as a binary file, as i mentioned before in some examples, How? Via what? It must be either a POST or a PUT if perl can read it. Chances are the data will be in $HTTP_RAW_POST_DATA -Rasmus -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTE

RE: [PHP] how do i get a variable type? - not that simple

2001-03-19 Thread Mahmoud Abu-Wardeh
You could take advantage of the type conversion performed by php as demonstrated in this snippet (the trick is in multiplying $value by 1). if you need to distinguish further between doubles and floats you can do a regex on $value once you've established it's type: \n", gettype($tmp)); }

Re: [PHP] (HELP) Reading a file sent through HTTP

2001-03-19 Thread Fabian Raygosa
Sorry to clarify, the server environment does report it coming in as a POST but there is no variable name, its just a binary file - Original Message - From: "Rasmus Lerdorf" <[EMAIL PROTECTED]> To: "Fabian Raygosa" <[EMAIL PROTECTED]> Cc: "Php-General@Lists. Php. Net" <[EMAIL PROTECTED]>

Re: [PHP] (HELP) Reading a file sent through HTTP

2001-03-19 Thread Jason Brooke
What request method is it then? I only know of HEAD and PUT other than GET and POST make a script that receives their request, and write getenv("REQUEST_METHOD") to a file and look I don't think socket functions will help you read it anyway, unless you replace your httpd with an ever-running, lis

Re: [PHP] HELP insert still dosn't work

2001-03-19 Thread ben
On Tue, 20 Mar 2001, David Robley wrote: > On Tue, 20 Mar 2001 03:32, Rudolf Frint wrote: > > > > I want to insert the Values into my Database like this > > > > $handle = ora_logon("iusr@test","kiwi1"); > > $cursor1 = ora_open($handle); > > $query = "insert into internet_tmp select > > rv_ret($F

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

2001-03-19 Thread Rasmus Lerdorf
> > >MySQL access functions were in PHP long before it went open source. I'm > > >not saying that Midgard is on the same level of general usefullness > > >but just that the fact that there's an organization behind it > > >doesn't change it's licensing. > > > > MySQL was always opensource. It was

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

2001-03-19 Thread Sterling Hughes
On Mon, 19 Mar 2001, Colin Viebrock wrote: > > I don't think it belongs in PEAR at all. I could see the logic behind > > distributing it with PHP, but don't see any reason to distribute it in > > pear... > > > Except that isn't this what PEAR was for all along? A collection of classes > and a

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

2001-03-19 Thread Emiliano
Sterling Hughes wrote: > Yes. But the midgard extension doesn't really do that, it provides some > propreitary functions and classes for use by Midgard only. The reason its > being distributed as an extension is -- Proprietary? If you mean 'only disclose functionality to deal with' then all ex

Re: [PHP] (HELP) Reading a file sent through HTTP

2001-03-19 Thread Fabian Raygosa
:) > Chances are the data will be in $HTTP_RAW_POST_DATA THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU THANK YOU It spit out everything i needed. In the form of a string!! i had no idea that variable existed. damn my incompetence!! :) Thanks again. There i go making it ove

[PHP] Hey Everyone

2001-03-19 Thread WebMaster
Hi Everyone, I just wanted to let you know (and thank some of you for all your help!), that I've finally launched my revamped website. There are two main sections in the site: Section 1 is for High School and College Students and has almost 3000 Essays available. Section 2 is for anyone seeking

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

2001-03-19 Thread Zeev Suraski
At 00:29 20/3/2001, [EMAIL PROTECTED] wrote: >Midgard is not exactly a layer above PHP, it's an extension to PHP, >exactly like the session extension, or the gd extension. > >Here is my own point of view (far from objective, cause I'm from the >Midgard team ;): >Midgard is a CMS, like MySQL is a

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

2001-03-19 Thread Zeev Suraski
At 00:55 20/3/2001, Rasmus Lerdorf wrote: > > > >MySQL access functions were in PHP long before it went open source. I'm > > > >not saying that Midgard is on the same level of general usefullness > > > >but just that the fact that there's an organization behind it > > > >doesn't change it's licens

Re: [PHP] Script to convert # of seconds to HH:mm

2001-03-19 Thread Stephan Ahonen
> Oh in addition this won't work accurately if $time is greater than about 2 > billion(2147483648 I believe). This shouldn't be a problem unless you're calculating how many hours and minutes a really old guy (>68) has been alive or something. Sig for a Day Stephan Ahonen, ICQ 491101 "That's very

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

2001-03-19 Thread Zeev Suraski
At 00:53 20/3/2001, Emiliano wrote: >Zeev Suraski wrote: > > > >MySQL access functions were in PHP long before it went open source. I'm > > >not saying that Midgard is on the same level of general usefullness > > >but just that the fact that there's an organization behind it > > >doesn't change it

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

2001-03-19 Thread Jani Taskinen
On Tue, 20 Mar 2001, Zeev Suraski wrote: >> > Not a problem for me. But how is PEAR being made available, then? >> >>We still don't have a good framework for having PEAR extensions that >>contain PHP extensions written in C in them. That was always the goal, it >>just hasn't been done yet. And

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

2001-03-19 Thread Rasmus Lerdorf
PEAR will be separate at some point, but let's not go overboard here. The midgard stuff adds a total of 76K to the tar.gz file. Big deal. -Rasmus On Tue, 20 Mar 2001, Jani Taskinen wrote: > On Tue, 20 Mar 2001, Zeev Suraski wrote: > > >> > Not a problem for me. But how is PEAR being made avai

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

2001-03-19 Thread Emiliano
Zeev Suraski wrote: > >OK, substitute OCI8, the argument stands. > > That's only an interface module though. OCI8 isn't a part of PHP... True, but as said: all elements that could possibly touch PHP are LGPLd. > >Not a problem for me. But how is PEAR being made available, then? > > PEAR is a

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

2001-03-19 Thread Emiliano
Jani Taskinen wrote: > >It probably won't get finished until people start using it. The midgard > >people may be the right people for the job :) > > One question about this: Could we setup a separate module for Pear in the > CVS? As now it's also 'bundled' with php. That's exactly what I meant

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

2001-03-19 Thread Jason Greene
> "Thou shalt never break the CVS build" is one of the > 'higher laws' around here :) Amen to that one : ) -Jason > Zeev > > > -- > PHP CVS Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the l

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

2001-03-19 Thread Emiliano
Zeev Suraski wrote: > Not quite :) The main difference is that, unlike most other extensions, > this extension isn't a 'glue' layer that connects PHP to some external > resource. In this case, we're including the resource itself. It's more > similar to including the source code of MySQL or Pos

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

2001-03-19 Thread david
missed the reply-all button... > > At 00:29 20/3/2001, [EMAIL PROTECTED] wrote: > > >Midgard is not exactly a layer above PHP, it's an extension to PHP, > > >exactly like the session extension, or the gd extension. > > > > > >Here is my own point of view (far from objective, cause I'm from the >

[PHP-CVS] cvs: php4 /ext/midgard config.m4 php_midgard.h

2001-03-19 Thread David Guerizec
davidg Mon Mar 19 15:37:03 2001 EDT Modified files: /php4/ext/midgard config.m4 php_midgard.h Log: Fixed the build (hope so). Index: php4/ext/midgard/config.m4 diff -u php4/ext/midgard/config.m4:1.19 php4/ext/midgard/config.m4:1.20 --- php4/ext/midgard/co

<    1   2   3   >