[PHP] Mandrake 10.1

2004-12-24 Thread GH
This may be off topic.. but does anyone know what versions of PHP and MySql Mandrake is shipping with 10.1 Offical? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Shifting banner on re-display [SOLVED]

2004-12-24 Thread Andre Dubuc
Hi List, This is an 'oldie' thread, but since I found out what caused the odd behavior, I thought it would be nice to pass on the solution. Toying around with it last week, I suddenly remembered that often when I manipulated an image in The Gimp, sometimes the image would move slightly off-cen

Re: [PHP] Merry Christmas ;o]

2004-12-24 Thread Matthew Sims
> Merry Christmas and happy new year for all that is > part of php community, god bless us. Peace! > How is this PHP? Please consult the Christmas mailing list. JUST KIDDING! Happy holidays. :) -- --Matthew Sims -- -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] Question about dates

2004-12-24 Thread Greg Donald
On Fri, 24 Dec 2004 08:46:28 -0600, Brent Clements <[EMAIL PROTECTED]> wrote: > How does one over come the issue of unix time not going beyond a certain date? Overcome the issue in what way? A 32bit integer is what it is. > ie, when I do echo strtotime("2099-10-08"); it outputs -1 So don't use

Re: [PHP] hackers?

2004-12-24 Thread Greg Donald
On Thu, 23 Dec 2004 21:01:57 -0800 (PST), Chris Shiflett <[EMAIL PROTECTED]> wrote: > This is the least effective means of auditing an application. Letting an > experienced person review your code is much, much better. I agree. But feeding ';drop table blah' sql into the GET query is much, much m

Re: [PHP] Merry Christmas ;o]

2004-12-24 Thread Greg Donald
On Fri, 24 Dec 2004 20:45:28 -0300 (ART), Alaor Barroso <[EMAIL PROTECTED]> wrote: > Merry Christmas and happy new year for all that is > part of php community, god bless us. Peace! Same. :) -- Greg Donald Zend Certified Engineer http://gdconsultants.com/ http://destiney.com/ -- PHP General

Re: [PHP] Simple code to replace one line?

2004-12-24 Thread Greg Donald
On Fri, 24 Dec 2004 19:08:03 -0500, Aaron Paulley <[EMAIL PROTECTED]> wrote: > I know that the line in a file that I want to replace completely is > line number 9. > > Is there a simple function I can use to replace that line? php -r 'system( "sed 9s/.*/replacement/g old > new" );' -- Greg Don

[PHP] Simple code to replace one line?

2004-12-24 Thread Aaron Paulley
Can someone help me out with a little bit of simple code please? I know that the line in a file that I want to replace completely is line number 9. Is there a simple function I can use to replace that line? Thanks, Aaron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Merry Christmas ;o]

2004-12-24 Thread Alaor Barroso
Merry Christmas and happy new year for all that is part of php community, god bless us. Peace! ___ Yahoo! Acesso Grátis - Instale o discador do Yahoo! agora. http://br.acesso.yahoo.com/ - Internet rápida e gr

Re: [PHP] A serious bug? "or" operator gives out diffferent results depending on order of operands

2004-12-24 Thread Jose M.Herrera
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bogdan Ribic wrote: | Here's a little test script: | | | $x = 2; | $y = 10; | | $b1 = is_null($x) or ($y > 5); | $b2 = ($y > 5) or is_null($x); Yes, of course. Your code or example, is just like: ( $b1 = is_null($x) ) or ( $y > 5

Re: [PHP] php + html (frame)

2004-12-24 Thread Matthew Sims
> John Nichel wrote: > >> [EMAIL PROTECTED] wrote: >> > Dear All, >> > >> > I just created a webpage with frame structure: >> > top.php ( name of frame is "t" ) + buttom.php ( name of frame is "b" ) >> + >> > right.php ( name of frame is "r" ) >> > >> > Now, I want to make a hypher link with "top.p

[PHP] Re: [PHP-DB] Table Info

2004-12-24 Thread Greg Wardawy
Hi Brad, That's what I'm trying to achieve (my post "Next page every second"). Maybe Sagar's response will help you a bit. Greg "Brad Ciszewski" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I am having problems coming up with a way to do this. I highly appreciate any help what so

Re: [PHP] php + html (frame)

2004-12-24 Thread John Nichel
[EMAIL PROTECTED] wrote: John Nichel wrote: [EMAIL PROTECTED] wrote: Dear All, I just created a webpage with frame structure: top.php ( name of frame is "t" ) + buttom.php ( name of frame is "b" ) + right.php ( name of frame is "r" ) Now, I want to make a hypher link with "top.php", and when user

Re: [PHP] php + html (frame)

2004-12-24 Thread edwardspl
John Nichel wrote: > [EMAIL PROTECTED] wrote: > > Dear All, > > > > I just created a webpage with frame structure: > > top.php ( name of frame is "t" ) + buttom.php ( name of frame is "b" ) + > > right.php ( name of frame is "r" ) > > > > Now, I want to make a hypher link with "top.php", and when

Re: [PHP] Next page every second

2004-12-24 Thread Greg Wardawy
Thanks a lot Sagar, The logic looks perfect. Having no web programming experience at all I didn't even know what I was looking for. And I didn't know I needed a java script for the PHP page. Greg. - Original Message - From: "Sagar C Nannapaneni" <[EMAIL PROTECTED]> To: "Greg Wardawy" <[E

[PHP] Question about dates

2004-12-24 Thread Brent Clements
How does one over come the issue of unix time not going beyond a certain date? ie, when I do echo strtotime("2099-10-08"); it outputs -1 This has to do with the limitations of unix time, so how does one get around it? Thanks, Brent -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] hackers?

2004-12-24 Thread Manuel Lemos
Hello, on 12/24/2004 03:01 AM Chris Shiflett said the following: --- Sebastian <[EMAIL PROTECTED]> wrote: im looking for a person or a place that will check or try to "break" a site. This is the least effective means of auditing an application. Letting an experienced person review your code is much

Re: [PHP] Exec() denied read on Apache (fedora core 3)

2004-12-24 Thread Zia Syed
Thanks for ur reply. I'm running httpd with php on my linux box. I dont know how to enable the exec in php.ini. Tried safe mode but no use. I get the following output from the command [EMAIL PROTECTED] html]# php -r 'system("whoami");' Error in argument 1, char 2: option not found r however, wit

Re: [PHP] filesize math

2004-12-24 Thread Greg Donald
On Fri, 24 Dec 2004 04:15:10 -0500, Sebastian <[EMAIL PROTECTED]> wrote: > i made this function and want to know if i am doing the math correctly.. > seems to be caculating ok.. $filesize is in bytes.. if the filesize is under > 1MB i want to show KBs, if its under 1GB i want to show MB, if its ove

Re: [PHP] MP3s

2004-12-24 Thread GH
Thank you will look at these after the holidays when I get back to the project On Thu, 23 Dec 2004 08:44:20 -0800, Robby Russell <[EMAIL PROTECTED]> wrote: > .m3u does this > > For example: > > > $ cat the_vacant_-_live_10192004_full_show.m3u > > http://www.thevacant.com/media/live_10192004

Re: [PHP] Exec() denied read on Apache (fedora core 3)

2004-12-24 Thread Greg Donald
On Fri, 24 Dec 2004 12:09:51 +, Zia Syed <[EMAIL PROTECTED]> wrote: > I've been trying to execute some system commands and print back the > output on the webpage. I found the following code to do so, however, > it is not working. > echo exec('whoami'); > ?> > > However, i tried to switch on t

Re: [PHP] php + html (frame)

2004-12-24 Thread Greg Donald
On Fri, 24 Dec 2004 21:35:01 +0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I just created a webpage with frame structure: > top.php ( name of frame is "t" ) + buttom.php ( name of frame is "b" ) + > right.php ( name of frame is "r" ) > > Now, I want to make a hypher link with "top.php", an

Re: [PHP] Parse Flash File for URLs

2004-12-24 Thread Greg Donald
On Thu, 23 Dec 2004 23:17:09 -0500, Jason Paschal <[EMAIL PROTECTED]> wrote: > how might i accomplish this? phpAds does this when a flash banner is > uploaded, and asks if you want to change the URLs it finds. instead > of being diligent and scouring the phpAds code for what I'm looking > for, wa

Re: [PHP] php + html (frame)

2004-12-24 Thread John Nichel
[EMAIL PROTECTED] wrote: Dear All, I just created a webpage with frame structure: top.php ( name of frame is "t" ) + buttom.php ( name of frame is "b" ) + right.php ( name of frame is "r" ) Now, I want to make a hypher link with "top.php", and when user mouse click the link under "top.php", then th

[PHP] php + html (frame)

2004-12-24 Thread edwardspl
Dear All, I just created a webpage with frame structure: top.php ( name of frame is "t" ) + buttom.php ( name of frame is "b" ) + right.php ( name of frame is "r" ) Now, I want to make a hypher link with "top.php", and when user mouse click the link under "top.php", then there will load a php ( b

Re: [PHP] hackers?

2004-12-24 Thread Manuel Lemos
Hello, on 12/24/2004 03:01 AM Chris Shiflett said the following: --- Sebastian <[EMAIL PROTECTED]> wrote: im looking for a person or a place that will check or try to "break" a site. This is the least effective means of auditing an application. Letting an experienced person review your code is much

Re: [PHP] hackers?

2004-12-24 Thread Manuel Lemos
Hello, on 12/24/2004 03:01 AM Chris Shiflett said the following: --- Sebastian <[EMAIL PROTECTED]> wrote: im looking for a person or a place that will check or try to "break" a site. This is the least effective means of auditing an application. Letting an experienced person review your code is much

[PHP] Exec() denied read on Apache (fedora core 3)

2004-12-24 Thread Zia Syed
Hi, I've been trying to execute some system commands and print back the output on the webpage. I found the following code to do so, however, it is not working. I get following errors in my /var/log/messages Dec 24 12:03:34 melville kernel: audit(1103889814.948:0): avc: denied { read } for p

Re: [PHP] filesize math

2004-12-24 Thread tg-php
Well, depends on your definition of a kb, mb, gb, etc.. You seem to be mixing definitions here. One school of thought is that... 1000 bytes = 1 kb 1000 kb = 1 mb 1000 mb = 1 gb In reality... 1024 bytes = 1 kb 1024 kb = 1 mb 1024 mb = 1 gb You're checking filesize against the '1000' method the

[PHP] filesize math

2004-12-24 Thread Sebastian
i made this function and want to know if i am doing the math correctly.. seems to be caculating ok.. $filesize is in bytes.. if the filesize is under 1MB i want to show KBs, if its under 1GB i want to show MB, if its over 1000MB i want to show GB, makes sense? ;) function byte_format($filesize) {