Re: [PHP] Doing simple math

2003-06-04 Thread Chris Cameron
On Tue, 2003-06-03 at 20:59, Lars Torben Wilson wrote: > On Tue, 2003-06-03 at 19:49, Chris Cameron wrote: > > > > An example that looks like it -should- work: > > > > $Math = sqrt(81)(5+4)-1; > > > What is the relation between the sqrt(81) and the (5+4)-

[PHP] Doing simple math

2003-06-04 Thread Chris Cameron
rt() mostly) and basic addition and subtraction, which adds a greater complexity. Have I missed something obvious? Or am I doomed to do a bunch of smaller math things so that I can do these bigger ones? Thanks, Chris -- Chris Cameron UpNIX Internet Administrator ardvark.upnix.net bitbucke

[PHP] Random "open_basedir" errors

2003-01-29 Thread Chris Cameron
g, please point it out. If you've also had this problem, I'd appreciate you sharing it. But I'm running a setup that hasn't changed -at all- for months and this is an error that's just popped up today. Thanks, Chris -- Chris Cameron UpNIX Internet Administrator ardvark

[PHP] 4.2.0 release and bug #15983

2002-04-23 Thread Chris Cameron
I was wondering if anyone could tell me if bug #15983 has been fixed in this new PHP release. I'd check myself, but I'm a bit short on time (thanks to this very bug). http://bugs.php.net/bug.php?id=15983 Specifically. If ever there was a more maddening bug to run across.. Thanks, Chris --

[PHP] Sessions in pop-up windows

2001-08-19 Thread Chris Cameron
I'm having some issues passing a session to a pop-up window. The pop-up window is you average DreamWeaver popup: Link When you click on the link, the session doesn't get passed. I have trans-sid enabled. Any ideas on how I could go about passing my sid? Thanks, Chris -- Chr

[PHP] PHP Script causing recursive free() calls (?)

2001-08-13 Thread Chris Cameron
pache? Thanks Chris -Original Message- From: Chris Cameron [mailto:[EMAIL PROTECTED]] Sent: Friday, August 10, 2001 12:40 PM To: [EMAIL PROTECTED] Subject: PHP Script causing recursive free() calls (?) I've got quite a problem with part of a PHP script I wrote causing Apache too fi

[PHP] open_basedir and safemode-ish things

2001-08-09 Thread Chris Cameron
I looked through the archives, and tried finding info in the PHP manual, but haven't had much luck. I'm looking for a way to restrict virtual host users to their specific little directory by putting a thing in my httpd.conf. It looked like open_basedir should do the trick, but it didn't, and ob

Re: [PHP] Fatal Execution Error

2001-07-01 Thread Chris Cameron
I've spent a bit of time on it, and it looks to me that I've gotten an infinite loop going in a database query. I'm not certain, as something else has come up, and it's something I'll have to get back to (hopefully today). This may or may not have been the case with yours. I'll let you know what I

[PHP] Fatal Execution Error

2001-06-30 Thread Chris Cameron
I'm getting quite the whacked out error when trying to run this one php file. FATAL: erealloc(): Unable to allocate 15728640 bytes When trying to load it as a webpage I get: Alert!: Unexpected network read error; connection aborted. from lynx. When running the file from the command line with

[PHP] mysql_free_result() question

2001-06-23 Thread Chris Cameron
I'm a bit unclear as to which result it is I use this function on. So lets say I; $Query = mysql_query("SELECT something FROM here"); $Result = mysql_fetch_assoc($Query); Do I mysql_free_result the $Query or the $Result? If it's $Result, would this be the same as just going unset($Result)? Thank

Re: [PHP] File upload !!!!

2001-05-13 Thread Chris Cameron
Unless you're using PHP3, I'd try using $HTTP_POST_FILES variable as suggested in http://www.php.net/manual/en/features.file-upload.php. Chris -- "... perhaps yer just such a man you put an embarasing fire in her loins" - Noah A. On Sun, 13 May 2001, Matthias Roggendorf wrote: > Hi, > s

[PHP] sprintf()'s in if()'s

2001-05-04 Thread Chris Cameron
I suppose when you have so few problems you get to nitpick.. Guess my question is; why doesn't this work? if(sprintf("%01.2f",$Result[CurrentPrice]+$Result[Increment]) <= sprintf("%01.2f",$BidAmt)) { when this works; if(0.30 <= 1.00) { I'll just settle with a workaround for now. Thanks, Chri

[PHP] mail() and a Data format error

2001-03-31 Thread Chris Cameron
My setup is PHP 4.0.4p1 with Apache 1.3.19 (PHP as a module), and sendmail at /usr/sbin/sendmail. I have sendmail_path = /usr/sbin/sendmail -t -i in my php.ini. THis is all on Linux. When I use mail() in any which way, it returns as if it were sucsessful, but in my maillog I see; Mar 31 16:22:16