Re: [PHP] FUNCTION TO CHECK IMAGE

2006-09-10 Thread BBC
> At 12:49 AM -0700 9/10/06, BBC wrote: > >Hi all. > >I'm having a problem regarding image handling. Sometimes an image > >can be showed in browser normally (in my computer) but when I > >upload it into my site that image is not valid, so there is an issue > >in my getimagesizes() function. > >Is

Re: [PHP] FUNCTION TO CHECK IMAGE

2006-09-10 Thread BBC
> BBC wrote: > > Hi all. > > I'm having a problem regarding image handling. Sometimes an image can be > > showed in browser normally (in my computer) but when I > > upload it into my site that image is not valid, so there is an issue in my > > getimagesizes() function. > > Is there any function t

Re: [PHP] Date maths

2006-09-10 Thread Paul Scott
Dave, Luckily for you there is a whole whack of functions made specifically for these issues... On Sun, 2006-09-10 at 21:19 +0100, Dave Goodchild wrote: > So, when an event-holder enters a repeating event, the main event details > are held in the events table, and all the relevant dates for the

[PHP] Ajax and PHP: XMLHTTP

2006-09-10 Thread Micky Hulse
Can I replace the above with some sort of XMLHTTP request? Googling now... thought I would ask here first. Any good links to tuts that might cover that sort of thing? Kinda thinking about plugging some Ajax into a random image php script. TIA. :) Cheers, Micky -- Wishlist:

Re: [PHP] PHP 4 OOP, re-using a object?

2006-09-10 Thread Micky Hulse
Christopher Weldon wrote: What's the error, and how do you have the class and functions defined? Hi Christopher, thanks for asking. :) Actually, it was one of those silly, right in front of my face, logic errors... class RandomSplash { var $alphabet = array('a', 'b', 'c', 'd', 'e', 'f', 'g

Re: [PHP] PHP 4 OOP, re-using a object?

2006-09-10 Thread Christopher Weldon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Micky Hulse wrote: > Micky Hulse wrote: >> Any help, even a RTFM link, would be really appreciated. :) > > Hi all, > > A fellow list member gave answered my question off-list and pointed me > here: > > http://www.php.net/oop > > Going to (re)read..

Re: [PHP] PHP 4 OOP, re-using a object?

2006-09-10 Thread Micky Hulse
Micky Hulse wrote: Any help, even a RTFM link, would be really appreciated. :) Hi all, A fellow list member gave answered my question off-list and pointed me here: http://www.php.net/oop Going to (re)read... It has been a while since I last worked with classes. :) I asked because I was ge

[PHP] Re: PHP 4 OOP, re-using a object?

2006-09-10 Thread M. Sokolewicz
Micky Hulse wrote: Hi, I am slowly learning how to use classes properly... quick question: # Create the object: $doSplash = new RandomSplash(); // Create the object. Shouldn't I be able to call that object like below, throughout my page: ...HTML... randomize('css'); ?> ...HTML... randomize('x

[PHP] PHP 4 OOP, re-using a object?

2006-09-10 Thread Micky Hulse
Hi, I am slowly learning how to use classes properly... quick question: # Create the object: $doSplash = new RandomSplash(); // Create the object. Shouldn't I be able to call that object like below, throughout my page: ...HTML... randomize('css'); ?> ...HTML... randomize('xhtml top'); ?> ...HT

Re: [PHP] Re: Newbie question about

2006-09-10 Thread Satyam
- Original Message - From: "Jon Anderson" <[EMAIL PROTECTED]> To: Cc: "Al" <[EMAIL PROTECTED]> Sent: Sunday, September 10, 2006 9:16 PM Subject: Re: [PHP] Re: Newbie question about Al wrote: Structurally, there is a far better way to compile your html pages. This approach is easi

[PHP] Date maths

2006-09-10 Thread Dave Goodchild
Hi all. I am in the midst of creating a national online events directory (ie evening classes, coffee mornings, yard sales etc). The user is able to enter one-off events or regular events (daily, weekly, monthly) and each event entered makes up one record in the events table in the db (mysql). Peop

Re: [PHP] Re: Newbie question about

2006-09-10 Thread Jon Anderson
Al wrote: Structurally, there is a far better way to compile your html pages. This approach is easier to design and debug and it is faster since it sends one complete packet instead of one for every short tag. And, it saves using ob_start() and ob_flush(). Consider: $report= ''; $report .=

Re: [PHP] Re: Newbie question about

2006-09-10 Thread Satyam
- Original Message - From: "Al" <[EMAIL PROTECTED]> To: Sent: Sunday, September 10, 2006 5:52 PM Subject: [PHP] Re: Newbie question about Mike Borrelli wrote: Good day, While I've been using php for more than a little while now, I've never understood why the use of the "" short t

Re: [PHP] FUNCTION TO CHECK IMAGE

2006-09-10 Thread Christopher Weldon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 BBC wrote: > Hi all. > I'm having a problem regarding image handling. Sometimes an image can be > showed in browser normally (in my computer) but when I > upload it into my site that image is not valid, so there is an issue in my > getimagesizes() fu

[PHP] Re: Newbie question about

2006-09-10 Thread Al
Mike Borrelli wrote: Good day, While I've been using php for more than a little while now, I've never understood why the use of the "" short tag is noted "to be avoided". Or rather, I understand that there's an option to disable it, and that's why it's noted in this way, but I don't understand

[PHP] Re: How could I make the browser to send a command to a cash register...

2006-09-10 Thread Alex Turner
Man-wai Chang wrote: > to open its drawer? > That 100% depends on how the cash register works. Is it an NT cash register, or an propitiatory one? Is it rs232 or on a network? Basically, find out how the cash register can be controlled, then make a php script that can fire that control. If you

[PHP] How could I make the browser to send a command to a cash register...

2006-09-10 Thread Man-wai Chang
to open its drawer? -- .~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org / v \ Simplicity is Beauty! May the Force and Farce be with you! /( _ )\ (Ubuntu 6.06) Linux 2.6.17.13 ^ ^ 21:43:01 up 1 day 2:37 0 users load average: 0.02 0.03 0.00 news://news.3home.net news://new

Re: [PHP] FUNCTION TO CHECK IMAGE

2006-09-10 Thread tedd
At 12:49 AM -0700 9/10/06, BBC wrote: Hi all. I'm having a problem regarding image handling. Sometimes an image can be showed in browser normally (in my computer) but when I upload it into my site that image is not valid, so there is an issue in my getimagesizes() function. Is there any functio

[PHP] FUNCTION TO CHECK IMAGE

2006-09-10 Thread BBC
Hi all. I'm having a problem regarding image handling. Sometimes an image can be showed in browser normally (in my computer) but when I upload it into my site that image is not valid, so there is an issue in my getimagesizes() function. Is there any function to recover such problem? I used "if(f

Re: [PHP] Newbie question about

2006-09-10 Thread Satyam
- Original Message - From: "Mike Borrelli" <[EMAIL PROTECTED]> To: "Ray Hauge" <[EMAIL PROTECTED]> Cc: ; "Mike Borrelli" <[EMAIL PROTECTED]> Sent: Sunday, September 10, 2006 6:52 AM Subject: Re: [PHP] Newbie question about Okay, after thinking about it, and looking at the replies, i