[PHP] A long float number.

2003-08-01 Thread zavaboy
) * ($iDia[$d] + $oDia[$d])) / 32)), 6); Thanks in advance! -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: A long float number.

2003-08-01 Thread zavaboy
Thanks! number_format() fixed it! Bogdan Stancescu [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Keeping it on one line doesn't affect the calculations (as it shouldn't). Try using either sprintf() or number_format() for this purpose (the latter is generally preferred, but I don't

[PHP] Removing empty array values.

2003-08-18 Thread zavaboy
How do I remove empty array values? -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Setting execution time for a loop

2003-09-09 Thread zavaboy
without a error? -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: maillist php manger/interface

2003-09-09 Thread zavaboy
I have been thinking on developing one for some time now. I can make one for free for you, I also have a friend that wants one too. It may take me a week or two, when do you need it? If you're willing to wait 3 weeks max, I can make it for free. I can even put it in your site if you want. I'm

Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
and a error, I want 3 seconds max and no error. Curt Zirzow [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] * Thus wrote zavaboy ([EMAIL PROTECTED]): How do I set execution time for a for() loop? Like I have a loop stop once it finds 3 things, but what happens when there are only 2

Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
if I wait untill $sDate is zero, it'll be in 2000. I have $Date based on the current date, like to day is: 03252 03 is the year 252 is the day of the year. Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 10 September 2003 11:26, zavaboy contributed these pearls of wisdom

Re: [PHP] Setting execution time for a loop

2003-09-10 Thread zavaboy
Ok, I may be a little bad at telling people what exactly I want. Probably I should try and figure this out for myself, I'm good at that! :D Mike Ford [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On 10 September 2003 12:14, zavaboy contributed these pearls of wisdom: if I wait

[PHP] Can I run scripts on server?

2003-09-23 Thread zavaboy
Is there a way to have a PHP script run on the server? For example, I want to run a script to erase old database fields at 12:00 AM server time without any user interaction, how would I do that? -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Can I run scripts on server?

2003-09-23 Thread zavaboy
Ok, thanks! Leif K-Brooks [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] zavaboy wrote: Is there a way to have a PHP script run on the server? For example, I want to run a script to erase old database fields at 12:00 AM server time without any user interaction, how would I do

Re: [PHP] breaking up a string (every N chars)

2003-05-27 Thread zavaboy
, zavaboy wrote: Hi, How can I break a string every N (eg: 3) characters? //Suppose I have a string... $String = 001102203304405; //Now, how do I break this string every 3 characters? //So... $String[0] = 001; $String[1] = 102; $String[2] = 203; $String[3] = 304; $String[4] = 405

[PHP] Help with eval()

2003-05-29 Thread zavaboy
{ $i-- } Any idea how to make it work right? - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
Umm, have you tested it? It didn't work for me... Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) zavaboy wrote: Hey, I'm having problems with the eval() function... if ($Sort == Up) { $do==; } else

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
I get a infinite loop and parse error, unexpected $... David Grant [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] zavaboy wrote: Umm, have you tested it? It didn't work for me... Marek Kilimajer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] for ($i = $aNum

Re: [PHP] Help with eval()

2003-05-30 Thread zavaboy
wrote: for ($i = $aNum; eval ('return $i ' . $do . ' $bNum'); ) zavaboy wrote: Hey, I'm having problems with the eval() function... if ($Sort == Up) { $do==; } else { $do==; } for ($i = $aNum; eval ('$i ' . $do . ' $bNum'); ) //So.. the above line acts like

[PHP] UBB to HTML

2003-06-02 Thread zavaboy
How can I strip ALL HTML tags, then turn UBB code to HTML. And I also want to know how to turn the HTML back to UBB? - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Text file breaking!

2003-06-05 Thread zavaboy
); then, I put the string in a txt file... and here's what I see in the text file: 1 br22 br333 instead of: 1br22br333 How can I make it that way? Thanks in advance! -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: Text file breaking!

2003-06-05 Thread zavaboy
old php version [4.06]?) Zavaboy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Ok, I don't get it... I put a string to one line ( $string = str_replace(\n, br, $string); ) but when I put it in a text file I see breaks right before br. For example: I have a text area and type

[PHP] How do I delete a mySQL table?

2003-06-16 Thread zavaboy
How do I delete a mySQL table? (Just what's in the subject) -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] How do I delete a mySQL table?

2003-06-16 Thread zavaboy
Thanks! David Nicholson [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hello, This is a reply to an e-mail that you wrote on Mon, 16 Jun 2003 at 22:22, lines prefixed by '' were originally written by you. How do I delete a mySQL table? (Just what's in the subject) - Zavaboy

[PHP] mySQL: Rows and columns

2003-06-18 Thread zavaboy
I know this is more of a mySQL question but, how do I delete and add rows and columns? -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Turning string into a table

2003-07-13 Thread zavaboy
tr tdCol 1 (row 2)/td tdCol 2 (row 2)/td tdCol 3 (row 2)/td tdCol 4 (row 2)/td /tr /table You get the idea... So, any idea how to do that? I want it to work correctly no matter how many rows and columns there are. -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List

[PHP] A MySQL question

2003-07-14 Thread zavaboy
Toothbrush from user 582-668243? I just want the query... I've been trying to find it out for a few hours now... Thanks in advance! -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A MySQL question

2003-07-14 Thread zavaboy
Ok, I added a primary key. I figured it out and I have it working... Thanks! Chris Shiflett [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] --- zavaboy [EMAIL PROTECTED] wrote: Lets say the table contains the following rows (user | item): 582-668243 | Toothbrush 582-668243

[PHP] Changing numbers

2003-07-21 Thread zavaboy
I have the following numbers: 12.400 666.75 23 369.2 3.234 How can I make them have at least 2 decimal places? So, they will output: 12.40 666.75 23.00 269.20 3.234 Thanks in advance! -- - Zavaboy [EMAIL PROTECTED] www.zavaboy.com -- PHP General Mailing List (http://www.php.net

Re: [PHP] Changing numbers

2003-07-21 Thread zavaboy
What about if I had 2.856 that function will make it 2.86. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] How can I make them have at least 2 decimal places? [/snip] RTFM at http://www.php.net/number_format HTH! -- PHP General Mailing List

Re: [PHP] Changing numbers

2003-07-21 Thread zavaboy
/function.round.php Zavaboy wrote: What about if I had 2.856 that function will make it 2.86. Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] How can I make them have at least 2 decimal places? [/snip] RTFM at http://www.php.net/number_format HTH

[PHP] Getting the FULL path

2003-10-02 Thread zavaboy
How do I get my FULL path... I made a web-based installer and it uses a path. Ok, my path to where I need it is: /home/jimbug/public_html/zavaboy/phptest/ZML Using dirname(): /phptest/ZML Why is that? How can I get PHP to output '/home/jimbug/public_html/zavaboy/phptest/ZML' automatically

Re: [PHP] Getting the FULL path

2003-10-02 Thread zavaboy
Ok, thanks! $_SERVER['DOCUMENT_ROOT'].dirname($PHP_SELF) was just what I wanted! J Morton [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] $_SERVER['SCRIPT_FILENAME'] or $_SERVER['DOCUMENT_ROOT'] Justin zavaboy wrote: How do I get my FULL path... I made a web-based installer

[PHP] Changing permissions

2003-10-18 Thread zavaboy
Ok, I have a installer that only works if the directory that's being installed to has public writing permissions. I tried chmod() on the directory, but I get a error. How can I make it so my installer can write in a directory with the incorrect writing permissions? Thanks! -- - Zavaboy [EMAIL

Re: [PHP] Changing permissions

2003-10-19 Thread zavaboy
How do I run my installer as root? Eugene Lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Sat, Oct 18, 2003 at 10:28:49PM -0400, zavaboy wrote: : : Ok, I have a installer that only works if the directory that's being : installed to has public writing permissions. I tried