) * ($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
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
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
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
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
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
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
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
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
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
, 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
{
$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
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
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
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
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
);
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
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
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
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
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
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
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
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
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
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
/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
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
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
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
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
31 matches
Mail list logo