Re: [PHP] Open Project
Hi Alex I visited your link. i would like to contribute. can you send me more details about the plan and requirements. -Sharmishtha On Sun, Nov 23, 2008 at 7:07 AM, Nathan Rixham <[EMAIL PROTECTED]> wrote: > Craige Leeder wrote: > >> Hi Nathan, >> >> Are you fluent with OOP concepts? >> >> I'm working on a framework called Ember, and wouldn't mind some help. I >> literally JUST started the re-code though >> >> - Craige >> >> Hi Craige, > > Do send through more details, I'm fluent with OO concepts and design > patterns etc, develop in Java, AS3 and PHP5 OO (many others but these are my > current primary languages) - had been coding up all of the Java lang.* and > util.* classes in PHP but kind of gave that one last week as what's the > point! > > As for a recode - I love a good refactoring! > > > Regards, > > Nathan > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >
Re: [PHP] Displaying information from table graphically]
Maybe I missed soemthing... what was wrong with Stut's suggestion of using divs? Absolute divs within a relative div is great for treating a box as a canvas with image layers. Each layer being clickable in it's visible portion (unless obscured by an overlayed transparent image). Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Hi,
idan72 wrote: I would like to write code where the user will input directory name. I want it to be able to browse to directory and choose it. With HTML if can only choose file. Can I do that in PHP ? Thanks I have to say I have NO idea what you just said besides you want to build a file-system browser in PHP. It can be done very well in PHP, but what exactly are you going to do with it? Is it going to be for downloading files or something? What happens when you get all the way down the directory tree? - Craige -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Open Project
Craige Leeder wrote: Hi Nathan, Are you fluent with OOP concepts? I'm working on a framework called Ember, and wouldn't mind some help. I literally JUST started the re-code though - Craige Hi Craige, Do send through more details, I'm fluent with OO concepts and design patterns etc, develop in Java, AS3 and PHP5 OO (many others but these are my current primary languages) - had been coding up all of the Java lang.* and util.* classes in PHP but kind of gave that one last week as what's the point! As for a recode - I love a good refactoring! Regards, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Open Project
Hi Nathan, Are you fluent with OOP concepts? I'm working on a framework called Ember, and wouldn't mind some help. I literally JUST started the re-code though - Craige Nathan Rixham wrote: Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically anything without an html front end :) Regards, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Open Project
Alex Chamberlain wrote: Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically anything without an html front end :) Regards, Nathan Hi Nathan, I am about to launch my own framework called Fred the Framework. Designed to be easy going, it is suppose to be ready to use out of the box, with very little config and a usable user management system - unlike Zend's Auth and ACL. Except, I need someone to develop the Authentication part of it. I've put it on Sourceforge the other day, but I've never developed anything like this before. I'm going to put up a sample app soonish - take a look at the svn if you want. Alex had a look through; it is early day's isn't it! 3 questions: - what do you all want to have in the framework (rough feature set) - why build it? / what do you want to offer that other's don't - what version of php are you developing in and min support (ie 5.2+ or?) cheers, nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Open Project
> > Evening All, > > > > I'm feeling the need to either start or contribute to something > > opensource and in PHP. > > > > Anybody have any worthy causes or projects they'd like to collab on > to > > get off the ground; open to all options preference going to anything > > framework, orm, webservice or basically anything without an html > front > > end :) > > > > Regards, > > > > Nathan > > Hi Nathan, I am about to launch my own framework called Fred the > Framework. > Designed to be easy going, it is suppose to be ready to use out of the > box, > with very little config and a usable user management system - unlike > Zend's > Auth and ACL. Except, I need someone to develop the Authentication part > of > it. > > I've put it on Sourceforge the other day, but I've never developed > anything > like this before. I'm going to put up a sample app soonish - take a > look at > the svn if you want. > > Alex PS forgot to say you can find it at https://sourceforge.net/projects/fredframework/ No virus found in this outgoing message. Scanned by AVG Free 8.0 Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.9/1804 - Release Date: 21/11/2008 18:24 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Open Project
> Evening All, > > I'm feeling the need to either start or contribute to something > opensource and in PHP. > > Anybody have any worthy causes or projects they'd like to collab on to > get off the ground; open to all options preference going to anything > framework, orm, webservice or basically anything without an html front > end :) > > Regards, > > Nathan Hi Nathan, I am about to launch my own framework called Fred the Framework. Designed to be easy going, it is suppose to be ready to use out of the box, with very little config and a usable user management system - unlike Zend's Auth and ACL. Except, I need someone to develop the Authentication part of it. I've put it on Sourceforge the other day, but I've never developed anything like this before. I'm going to put up a sample app soonish - take a look at the svn if you want. Alex No virus found in this outgoing message. Scanned by AVG Free 8.0 Checked by AVG - http://www.avg.com Version: 8.0.175 / Virus Database: 270.9.9/1804 - Release Date: 21/11/2008 18:24 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Open Project
Evening All, I'm feeling the need to either start or contribute to something opensource and in PHP. Anybody have any worthy causes or projects they'd like to collab on to get off the ground; open to all options preference going to anything framework, orm, webservice or basically anything without an html front end :) Regards, Nathan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
Nathan Rixham wrote: WSOT is worth a look... sorry my nickname for it.. i meant wso2 (wso2.org) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
Ashley Sheridan wrote: On Sat, 2008-11-22 at 23:07 -0100, [EMAIL PROTECTED] wrote: http://en.wikipedia.org/wiki/Adobe_Flash#Programming_language Of late, the Flash libraries are being used with the XML capabilities of the browser to render rich content in the browser. This technology is known as Asynchronous Flash and XML, much like AJAX. This technology of Asynchronous Flash and XML has pushed for a more formal approach of this technology called Adobe Flex, which uses the Flash runtime to build Rich Internet Applications. --- This is probabily what I need for this project :) [EMAIL PROTECTED] wrote: So basically all the data between Flash and SQL queries goes thru temporary XML files correct? not so much temporary as you convert the data to xml packets and transport in that format, you use the xml as a way of keeping the data structured and transportable (see SOAP, XML-RPC); think of flash as a client side program and you're php application as a webservice that the client app sends and recieves data from and you'll get on a lot better. Yeah. XML web services are the way forward for exchanging data. You can have one service spit out XML that can be used by an AJAX request, Flash and basically anything else that can digest web services. Ash www.ashleysheridan.co.uk WSOT is worth a look if you're so inclined; hardly any php lib's have support for ws-* suite of services like ws-addressing, ws-security etc (native support in soap for sessions, security etc etc) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically]
On Sat, 2008-11-22 at 23:07 -0100, [EMAIL PROTECTED] wrote: > http://en.wikipedia.org/wiki/Adobe_Flash#Programming_language > > Of late, the Flash libraries are being used with the XML capabilities of > the browser to render rich content in the browser. This technology is > known as Asynchronous Flash and XML, much like AJAX. This technology of > Asynchronous Flash and XML has pushed for a more formal approach of this > technology called Adobe Flex, which uses the Flash runtime to build Rich > Internet Applications. > > --- > > This is probabily what I need for this project :) > > > > [EMAIL PROTECTED] wrote: > >> So basically all the data between Flash and SQL queries goes thru > >> temporary XML files correct? > >> > >> > > not so much temporary as you convert the data to xml packets and > > transport in that format, you use the xml as a way of keeping the data > > structured and transportable (see SOAP, XML-RPC); think of flash as a > > client side program and you're php application as a webservice that the > > client app sends and recieves data from and you'll get on a lot better. > > > > > Yeah. XML web services are the way forward for exchanging data. You can have one service spit out XML that can be used by an AJAX request, Flash and basically anything else that can digest web services. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Displaying information from table graphically]
[EMAIL PROTECTED] wrote: http://en.wikipedia.org/wiki/Adobe_Flash#Programming_language Of late, the Flash libraries are being used with the XML capabilities of the browser to render rich content in the browser. This technology is known as Asynchronous Flash and XML, much like AJAX. This technology of Asynchronous Flash and XML has pushed for a more formal approach of this technology called Adobe Flex, which uses the Flash runtime to build Rich Internet Applications. --- This is probabily what I need for this project :) flex is a great idea for any project, it natively supports E4X as well so perfect for creating rich internet app's (also with new v4 you can develop mobile app's desktop, web all under the same banner so truely portable app's) - it is the future, all we need now is a new persitant and lite xml based protocol (like xmpp but as an http replacement) and we've got the real web 2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Displaying information from table graphically]
http://en.wikipedia.org/wiki/Adobe_Flash#Programming_language Of late, the Flash libraries are being used with the XML capabilities of the browser to render rich content in the browser. This technology is known as Asynchronous Flash and XML, much like AJAX. This technology of Asynchronous Flash and XML has pushed for a more formal approach of this technology called Adobe Flex, which uses the Flash runtime to build Rich Internet Applications. --- This is probabily what I need for this project :) > [EMAIL PROTECTED] wrote: >> So basically all the data between Flash and SQL queries goes thru >> temporary XML files correct? >> >> > not so much temporary as you convert the data to xml packets and > transport in that format, you use the xml as a way of keeping the data > structured and transportable (see SOAP, XML-RPC); think of flash as a > client side program and you're php application as a webservice that the > client app sends and recieves data from and you'll get on a lot better. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: İlgi: [PHP] a for loop and probability random all i need is make them to reverse
2008/11/22 Tontonq Tontonq <[EMAIL PROTECTED]>: > sorry i think i did tell u wrong about it problem is not showing name > of it as exaclty i just wanted give a point to it thats not real > problem real problem is i want it be more unpossible when i give the > class's add function's higher value In that case I would go for an algorithm using some kind of gaussian distribution, like the Marsaglia polar method [1]. I once wrote something similar to what (I think) you are asking for ... 1) { $u1 = 1/(rand(1, $likelihood)*$likelihood); $u2 = 1/(rand(1, $likelihood)*$likelihood); $v = $u1*$u1 + $u2*$u2; } $p = $u1*sqrt((-2)*(log($v)/$v)); return ($p < 0.85) ? 1 : (int)$p; } ?> The best return of this function would be 1. Now if you call the function with a high $likelihood (say 1000 and more) it gets less likely have 1 returned ( gaussian ). If you want to decrease the chance of getting values close to 1 then you will have to increase $likelihood inside the function or something. [1] http://en.wikipedia.org/wiki/Marsaglia_polar_method -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [Fwd: Re: [PHP] Displaying information from table graphically]
I see that. Is there some good tutorial on this topic? How to make Flash interact with SQL queries in PHP > [EMAIL PROTECTED] wrote: >> So basically all the data between Flash and SQL queries goes thru >> temporary XML files correct? >> >> > not so much temporary as you convert the data to xml packets and > transport in that format, you use the xml as a way of keeping the data > structured and transportable (see SOAP, XML-RPC); think of flash as a > client side program and you're php application as a webservice that the > client app sends and recieves data from and you'll get on a lot better. > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [Fwd: Re: [PHP] Displaying information from table graphically]
[EMAIL PROTECTED] wrote: So basically all the data between Flash and SQL queries goes thru temporary XML files correct? not so much temporary as you convert the data to xml packets and transport in that format, you use the xml as a way of keeping the data structured and transportable (see SOAP, XML-RPC); think of flash as a client side program and you're php application as a webservice that the client app sends and recieves data from and you'll get on a lot better. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [Fwd: Re: [PHP] Displaying information from table graphically]
So basically all the data between Flash and SQL queries goes thru temporary XML files correct? > Ashley Sheridan wrote: >> On Sat, 2008-11-22 at 19:47 -0100, [EMAIL PROTECTED] wrote: >>> Since I am not an expert in FLASH, I need to make sure I understand >>> what >>> you suggested below. >>> >>> >From what I understand I can pass the data from SQL query to Flash via >>> some sort of flash parameters (flashvars), but I am not sure what XML >>> file >>> serves here for? All I need is to somehow trigger SQL updates from >>> within >>> the FLASH file. >>> On Sat, 2008-11-22 at 15:20 -0100, [EMAIL PROTECTED] wrote: > At least that eliminates GD as an option for this particular purpose. > > Yes exactly something Flash like that allows interaction as well. But > how > to exchange data between flash multimedia file and MySQL queries. > This > is > a serious issue, this is not trivial. I know there must be some way, > but > I > also dont know if it's worth it. That's why I need to do this > research > in > order to determine what kind of work this particular project would > involve. Your help is invaluable in that respect. Thanks goes to all > of > you zillion times :) > > > >> On Sat, 2008-11-22 at 14:22 -0100, [EMAIL PROTECTED] wrote: >>> I mean composite in a figurative way, but they have to be >>> overlapping >>> individual images in order to be individually clickable. Does GD > allow >>> that? Can I create multiple images on the top of each other in GD? >>> >>> And how would imagemap work in this respect? >>> On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] > wrote: > Okay I would probabily define few functions such as room(), > bed(), > bed_status() etc. that I could use for any room and then it would > be > just > a matter of passing right arguments to those funtions. > > However would those beds within the room composite graphic be > individually > clickable? So the composite graphic must be interactive in > nature. >>> User > must be able to click on individual beds inside the room in order > to > change its status. Would GD approach allow this kind of > interaction? >> On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] >>> wrote: >>> It's not kind of a school/college project that I am too lazy to >>> do. > It's >>> just a matter of having 800 rooms and about 2,500 beds so I >>> believe > it's >>> gonna take forever defining all of those graphics via GD >>> functions. >>> That's >>> why I think I need to go with some rapid approach. I never used >>> GD's > so >>> I >>> dont even know how complex it is generating graphics this way. > And > also >>> those graphics dont need to be sophisticated. Just simple > graphic >>> representations of rooms and beds in few different colors >>> indicating >>> wheter bed is free, occupied, or reserved. >>> >>> GD just seems too powerful and too time consuming for this > task. I >>> probabily need some rapid approach with limited graphic >>> capabilities. >>> Does >>> such exist that's my question at this point of time >>> On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] > wrote: > I have a PHP application that accesses data from MySQL. > There >>> is >>> table > called "rooms", and table called "beds". There is another > table >>> called > "patients". Patients are being placed into beds, and beds > are >>> in > the > rooms. PHP application currently displays all information in > textual > mode > via regular HTML tags. But I would like to have that >>> information > displayed > in graphical mode instead of textual mode. > > Is there a way to display this information from the database > graphically. > Graphic would represent a room, and it would contain beds >>> inside. > You > would be able to see visually which beds are occupied and > which > are >>> free > by looking at the graphics. > > User of the system wants pictures instead of text displayed > via > HTML > tables as a list of entries. > > Anyone knows anything like this? > Thanks, > Dzenan > > > This sounds a lot like a school/college/uni project that > you're >>> too >>> lazy to research... Correct me if I'm wrong. >>
Re: [PHP] Re: Some kind of Popup
> One issue is I don't want to leave the space available on my regular web > page and would like to try not to overwrite something there - I'd rather > have a separate window of some sort that sort of floats over the web page. Well, since Javascript does the Job anyways you don't have to load it with the page when doing the div method. You would only need this little addition to your css .. .div_win { position: absolute; width: 400px; top: 100px; left: 10%; visibility: hidden; } When user initializes the request by clicking a link var div_window = document.createElement('div'); div_window.setAttribute('class', 'div_win'); div_window.className = 'div_win'; document.body.appendChild(div_window); Then you do some AJAX or JSON or whatever and apply it to the div. You can also move the div around doing it somehow like this ... http://www.quirksmode.org/js/dragdrop.html Still, opening up a new window might be the simple solution after all lol. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [Fwd: Re: [PHP] Displaying information from table graphically]
Ashley Sheridan wrote: On Sat, 2008-11-22 at 19:47 -0100, [EMAIL PROTECTED] wrote: Since I am not an expert in FLASH, I need to make sure I understand what you suggested below. >From what I understand I can pass the data from SQL query to Flash via some sort of flash parameters (flashvars), but I am not sure what XML file serves here for? All I need is to somehow trigger SQL updates from within the FLASH file. On Sat, 2008-11-22 at 15:20 -0100, [EMAIL PROTECTED] wrote: At least that eliminates GD as an option for this particular purpose. Yes exactly something Flash like that allows interaction as well. But how to exchange data between flash multimedia file and MySQL queries. This is a serious issue, this is not trivial. I know there must be some way, but I also dont know if it's worth it. That's why I need to do this research in order to determine what kind of work this particular project would involve. Your help is invaluable in that respect. Thanks goes to all of you zillion times :) On Sat, 2008-11-22 at 14:22 -0100, [EMAIL PROTECTED] wrote: I mean composite in a figurative way, but they have to be overlapping individual images in order to be individually clickable. Does GD allow that? Can I create multiple images on the top of each other in GD? And how would imagemap work in this respect? On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] wrote: Okay I would probabily define few functions such as room(), bed(), bed_status() etc. that I could use for any room and then it would be just a matter of passing right arguments to those funtions. However would those beds within the room composite graphic be individually clickable? So the composite graphic must be interactive in nature. User must be able to click on individual beds inside the room in order to change its status. Would GD approach allow this kind of interaction? On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] wrote: It's not kind of a school/college project that I am too lazy to do. It's just a matter of having 800 rooms and about 2,500 beds so I believe it's gonna take forever defining all of those graphics via GD functions. That's why I think I need to go with some rapid approach. I never used GD's so I dont even know how complex it is generating graphics this way. And also those graphics dont need to be sophisticated. Just simple graphic representations of rooms and beds in few different colors indicating wheter bed is free, occupied, or reserved. GD just seems too powerful and too time consuming for this task. I probabily need some rapid approach with limited graphic capabilities. Does such exist that's my question at this point of time On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] wrote: I have a PHP application that accesses data from MySQL. There is table called "rooms", and table called "beds". There is another table called "patients". Patients are being placed into beds, and beds are in the rooms. PHP application currently displays all information in textual mode via regular HTML tags. But I would like to have that information displayed in graphical mode instead of textual mode. Is there a way to display this information from the database graphically. Graphic would represent a room, and it would contain beds inside. You would be able to see visually which beds are occupied and which are free by looking at the graphics. User of the system wants pictures instead of text displayed via HTML tables as a list of entries. Anyone knows anything like this? Thanks, Dzenan This sounds a lot like a school/college/uni project that you're too lazy to research... Correct me if I'm wrong. The other guys who have answered are all spot on when they say you need to look at the GD library. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php GD is fine for what you need to do, and it shouldn't be difficult to create what you need to do. There isn't any pre-built rooms() function in it, but just build that yourself and use basic math to create the graphics you need. Ash www.ashleysheridan.co.uk The only way you could achieve clickable parts of a composite image like that is either to not have it as a composite and use many images, or use an imagemap. Ash www.ashleysheridan.co.uk I don't think you can do that in anything. GD outputs an image, which can be made up of layers, but there is no provision in the browser to allow you to select an image below another one even if you can see it because the top-most image is transparent. I think what you're really looking for is something Flash based? Ash www.ashleysheridan.co.uk I assume that to get this data you are querying based on some sort of ID? Why not pass that to you Flash file (with flashvars or something similar) and then have your Flash call an external XML document. The XML documen
Re: [Fwd: Re: [PHP] Displaying information from table graphically]
On Sat, 2008-11-22 at 19:47 -0100, [EMAIL PROTECTED] wrote: > Since I am not an expert in FLASH, I need to make sure I understand what > you suggested below. > > >From what I understand I can pass the data from SQL query to Flash via > some sort of flash parameters (flashvars), but I am not sure what XML file > serves here for? All I need is to somehow trigger SQL updates from within > the FLASH file. > > > On Sat, 2008-11-22 at 15:20 -0100, [EMAIL PROTECTED] wrote: > >> At least that eliminates GD as an option for this particular purpose. > >> > >> Yes exactly something Flash like that allows interaction as well. But > >> how > >> to exchange data between flash multimedia file and MySQL queries. This > >> is > >> a serious issue, this is not trivial. I know there must be some way, but > >> I > >> also dont know if it's worth it. That's why I need to do this research > >> in > >> order to determine what kind of work this particular project would > >> involve. Your help is invaluable in that respect. Thanks goes to all of > >> you zillion times :) > >> > >> > >> > >> > On Sat, 2008-11-22 at 14:22 -0100, [EMAIL PROTECTED] wrote: > >> >> I mean composite in a figurative way, but they have to be overlapping > >> >> individual images in order to be individually clickable. Does GD > >> allow > >> >> that? Can I create multiple images on the top of each other in GD? > >> >> > >> >> And how would imagemap work in this respect? > >> >> > >> >> > On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] > >> wrote: > >> >> >> Okay I would probabily define few functions such as room(), bed(), > >> >> >> bed_status() etc. that I could use for any room and then it would > >> be > >> >> >> just > >> >> >> a matter of passing right arguments to those funtions. > >> >> >> > >> >> >> However would those beds within the room composite graphic be > >> >> >> individually > >> >> >> clickable? So the composite graphic must be interactive in nature. > >> >> User > >> >> >> must be able to click on individual beds inside the room in order > >> to > >> >> >> change its status. Would GD approach allow this kind of > >> interaction? > >> >> >> > >> >> >> > On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] > >> >> wrote: > >> >> >> >> It's not kind of a school/college project that I am too lazy to > >> >> do. > >> >> >> It's > >> >> >> >> just a matter of having 800 rooms and about 2,500 beds so I > >> >> believe > >> >> >> it's > >> >> >> >> gonna take forever defining all of those graphics via GD > >> >> functions. > >> >> >> >> That's > >> >> >> >> why I think I need to go with some rapid approach. I never used > >> >> GD's > >> >> >> so > >> >> >> >> I > >> >> >> >> dont even know how complex it is generating graphics this way. > >> And > >> >> >> also > >> >> >> >> those graphics dont need to be sophisticated. Just simple > >> graphic > >> >> >> >> representations of rooms and beds in few different colors > >> >> indicating > >> >> >> >> wheter bed is free, occupied, or reserved. > >> >> >> >> > >> >> >> >> GD just seems too powerful and too time consuming for this > >> task. I > >> >> >> >> probabily need some rapid approach with limited graphic > >> >> capabilities. > >> >> >> >> Does > >> >> >> >> such exist that's my question at this point of time > >> >> >> >> > >> >> >> >> > On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] > >> >> >> wrote: > >> >> >> >> >> I have a PHP application that accesses data from MySQL. > >> There > >> >> is > >> >> >> >> table > >> >> >> >> >> called "rooms", and table called "beds". There is another > >> table > >> >> >> >> called > >> >> >> >> >> "patients". Patients are being placed into beds, and beds > >> are > >> >> in > >> >> >> the > >> >> >> >> >> rooms. PHP application currently displays all information in > >> >> >> textual > >> >> >> >> >> mode > >> >> >> >> >> via regular HTML tags. But I would like to have that > >> >> information > >> >> >> >> >> displayed > >> >> >> >> >> in graphical mode instead of textual mode. > >> >> >> >> >> > >> >> >> >> >> Is there a way to display this information from the database > >> >> >> >> >> graphically. > >> >> >> >> >> Graphic would represent a room, and it would contain beds > >> >> inside. > >> >> >> You > >> >> >> >> >> would be able to see visually which beds are occupied and > >> which > >> >> >> are > >> >> >> >> free > >> >> >> >> >> by looking at the graphics. > >> >> >> >> >> > >> >> >> >> >> User of the system wants pictures instead of text displayed > >> via > >> >> >> HTML > >> >> >> >> >> tables as a list of entries. > >> >> >> >> >> > >> >> >> >> >> Anyone knows anything like this? > >> >> >> >> >> Thanks, > >> >> >> >> >> Dzenan > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> >> > >> >> >> >> > This sounds a lot like a school/college/uni project that > >> you're > >> >> too > >> >> >> >> lazy > >> >> >> >> > to research... Correct me if I'm wrong. > >> >> >> >> > > >> >> >> >> > The other guys who have answered are all spot on
[Fwd: Re: [PHP] Displaying information from table graphically]
Since I am not an expert in FLASH, I need to make sure I understand what you suggested below. >From what I understand I can pass the data from SQL query to Flash via some sort of flash parameters (flashvars), but I am not sure what XML file serves here for? All I need is to somehow trigger SQL updates from within the FLASH file. > On Sat, 2008-11-22 at 15:20 -0100, [EMAIL PROTECTED] wrote: >> At least that eliminates GD as an option for this particular purpose. >> >> Yes exactly something Flash like that allows interaction as well. But >> how >> to exchange data between flash multimedia file and MySQL queries. This >> is >> a serious issue, this is not trivial. I know there must be some way, but >> I >> also dont know if it's worth it. That's why I need to do this research >> in >> order to determine what kind of work this particular project would >> involve. Your help is invaluable in that respect. Thanks goes to all of >> you zillion times :) >> >> >> >> > On Sat, 2008-11-22 at 14:22 -0100, [EMAIL PROTECTED] wrote: >> >> I mean composite in a figurative way, but they have to be overlapping >> >> individual images in order to be individually clickable. Does GD >> allow >> >> that? Can I create multiple images on the top of each other in GD? >> >> >> >> And how would imagemap work in this respect? >> >> >> >> > On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] >> wrote: >> >> >> Okay I would probabily define few functions such as room(), bed(), >> >> >> bed_status() etc. that I could use for any room and then it would >> be >> >> >> just >> >> >> a matter of passing right arguments to those funtions. >> >> >> >> >> >> However would those beds within the room composite graphic be >> >> >> individually >> >> >> clickable? So the composite graphic must be interactive in nature. >> >> User >> >> >> must be able to click on individual beds inside the room in order >> to >> >> >> change its status. Would GD approach allow this kind of >> interaction? >> >> >> >> >> >> > On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] >> >> wrote: >> >> >> >> It's not kind of a school/college project that I am too lazy to >> >> do. >> >> >> It's >> >> >> >> just a matter of having 800 rooms and about 2,500 beds so I >> >> believe >> >> >> it's >> >> >> >> gonna take forever defining all of those graphics via GD >> >> functions. >> >> >> >> That's >> >> >> >> why I think I need to go with some rapid approach. I never used >> >> GD's >> >> >> so >> >> >> >> I >> >> >> >> dont even know how complex it is generating graphics this way. >> And >> >> >> also >> >> >> >> those graphics dont need to be sophisticated. Just simple >> graphic >> >> >> >> representations of rooms and beds in few different colors >> >> indicating >> >> >> >> wheter bed is free, occupied, or reserved. >> >> >> >> >> >> >> >> GD just seems too powerful and too time consuming for this >> task. I >> >> >> >> probabily need some rapid approach with limited graphic >> >> capabilities. >> >> >> >> Does >> >> >> >> such exist that's my question at this point of time >> >> >> >> >> >> >> >> > On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] >> >> >> wrote: >> >> >> >> >> I have a PHP application that accesses data from MySQL. >> There >> >> is >> >> >> >> table >> >> >> >> >> called "rooms", and table called "beds". There is another >> table >> >> >> >> called >> >> >> >> >> "patients". Patients are being placed into beds, and beds >> are >> >> in >> >> >> the >> >> >> >> >> rooms. PHP application currently displays all information in >> >> >> textual >> >> >> >> >> mode >> >> >> >> >> via regular HTML tags. But I would like to have that >> >> information >> >> >> >> >> displayed >> >> >> >> >> in graphical mode instead of textual mode. >> >> >> >> >> >> >> >> >> >> Is there a way to display this information from the database >> >> >> >> >> graphically. >> >> >> >> >> Graphic would represent a room, and it would contain beds >> >> inside. >> >> >> You >> >> >> >> >> would be able to see visually which beds are occupied and >> which >> >> >> are >> >> >> >> free >> >> >> >> >> by looking at the graphics. >> >> >> >> >> >> >> >> >> >> User of the system wants pictures instead of text displayed >> via >> >> >> HTML >> >> >> >> >> tables as a list of entries. >> >> >> >> >> >> >> >> >> >> Anyone knows anything like this? >> >> >> >> >> Thanks, >> >> >> >> >> Dzenan >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > This sounds a lot like a school/college/uni project that >> you're >> >> too >> >> >> >> lazy >> >> >> >> > to research... Correct me if I'm wrong. >> >> >> >> > >> >> >> >> > The other guys who have answered are all spot on when they >> say >> >> you >> >> >> >> need >> >> >> >> > to look at the GD library. >> >> >> >> > >> >> >> >> > >> >> >> >> > Ash >> >> >> >> > www.ashleysheridan.co.uk >> >> >> >> > >> >> >> >> > >> >> >> >> > -- >> >> >> >> > PHP General Mailing List (http://www.php.net/) >> >> >> >> > To unsubscribe, visit: http://
Re: [PHP] Hi,
On Sat, 2008-11-22 at 08:30 -0800, idan72 wrote: > I would like to write code where the user will input directory name. > I want it to be able to browse to directory and choose it. > > With HTML if can only choose file. > > Can I do that in PHP ? > > Thanks > > -- > View this message in context: > http://www.nabble.com/Hi%2C-tp20637953p20637953.html > Sent from the PHP - General mailing list archive at Nabble.com. > > Yes, look at the PHP file functions, like readdir(), etc. Also, make sure you consider the possible security problems with this approach. Potentially, you could have people enter URLs like ../../ to access directories two levels down, which is real bad. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Some kind of Popup
On Sat, 2008-11-22 at 12:32 -0500, Patrick Moloney wrote: > Yeti wrote: > > Another JavaScript method would be to load the content in a hidden div > > with position: absolute. > > I think that's what I was considering doing with CSS except it would be > labels only in the content. I only wanted to retrieve the data record > from mysql if the user asked for the specs. > > One issue is I don't want to leave the space available on my regular web > page and would like to try not to overwrite something there - I'd rather > have a separate window of some sort that sort of floats over the web page. > The best way to have the popup work, even with popup blockers is to have a link like this: More Details The onclick handler is called before the link is actioned, and it opens a new window with your settings, called 'details'. When that is finished, the browser continues actioning the link, looks to find the window/frame called 'details', finds one, and uses it. This way, even if a user has scripting turned off, the link still works and opens in a new window. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Input Type="File"
On Sat, 2008-11-22 at 09:54 -0600, Shawn McKenzie wrote: > Stan wrote: > > Ashley, > > If you go back to the original append you will see the URLs. IE 6 SP1 > > returns exactly the string that appears in the > type=\"file\" /> text box, FireFox does not. I would assume that anyone > > using the dialog would expect the behaviour that IE demonstrates. > > > > www.w3.org doesn't say anything about the return value. > > > > These are the only 2 browsers that I have available. > > > > What I need to know is: Which is behaving as all browsers will behave going > > forward? > > > > > > If I remember correctly, when you POST a form the values are urlencoded > automagically. But your form method is GET so you should probably > urlencode the values, especially the ones with non-alphanumeric > characters like {, }, etc... > > -- > Thanks! > -Shawn > http://www.spidean.com > It's obvious that you can't rely on the value from the upload element. I suspect the Mozilla behaviour is a security thing. I didn't realise until Shawn just mentioned it, but why are you using GET for your form when it contains an file input box? It should really be POST and your enctype should be "multipart/form-data", as you won't get any files uploaded from this. When you have got the file uploaded, you can use the $_FILES array to get the real filename of the file, and then construct all your paths out of that. Also, if the W3C mentions nothing about how this should be implemented, then you cannot rely on any particular method. If you're still determined to use file inputs with the current form attributes as they are, why not use the basename() function to extract the filename from the path, then whichever browser you use you'll have the same value to play with. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [Fwd: Re: [PHP] Displaying information from table graphically]
After reading the article I first thought imagemaps would be the best solution, however then I realized that although I can click on individual images inside the composite image, I can not change just that individual element. I would have to reload the whole new composite image containing appropriate combination of individual elements. Other words if I want to change the status of one bed from free to occupied, I have to reload new composite image with corresponding bed status settings. So for example a room with 2 beds where each bed can have one of three possible statuses (free, occupied, reserved), would need to have total of 3^2 = 9 images defining all possible room arrangements. And that's not too bad, but if a room has 5 beds then the total number of images would be 3^5=243 and that's where things starting getting out of hand. If room has 10 beds (which is quite possible) those figures grow to extreme values, so I would have to store thousands, or tens of thousands images to be able to define every possible room arrangement. So imagemaps are quite nice and simple to use HTML features, but for this particular project I believe they would not be practical. > For the love of $DEITY, please include the list when replying!! > > On 22 Nov 2008, at 17:26, [EMAIL PROTECTED] wrote: > >> But imagemaps are constructed using DIV's and that would not be >> supported >> by IE6 correct? Is there another way to build imagemaps beside DIV's >> that >> would be supported at least since IE5? > > Imagemaps have absolutely nothing to do with divs. I suggest you read > this: http://www.elated.com/articles/creating-image-maps/ > > -Stut > > -- > http://stut.net/ > >>> On 22 Nov 2008, at 16:23, [EMAIL PROTECTED] wrote: At least that eliminates GD as an option for this particular purpose. Yes exactly something Flash like that allows interaction as well. But how to exchange data between flash multimedia file and MySQL queries. This is a serious issue, this is not trivial. I know there must be some way, but I also dont know if it's worth it. That's why I need to do this research in order to determine what kind of work this particular project would involve. Your help is invaluable in that respect. Thanks goes to all of you zillion times :) >>> >>> Since you would be using coordinates to composite the images, >>> building >>> an imagemap at the same time should be really simple. However, I'd >>> still go with constructing the images in divs or a table due to the >>> relative simplicity. >>> >>> -Stut >>> >>> -- >>> http://stut.net/ >>> > On Sat, 2008-11-22 at 14:22 -0100, [EMAIL PROTECTED] > wrote: >> I mean composite in a figurative way, but they have to be >> overlapping >> individual images in order to be individually clickable. Does GD >> allow >> that? Can I create multiple images on the top of each other in GD? >> >> And how would imagemap work in this respect? >> >>> On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] >>> wrote: Okay I would probabily define few functions such as room(), bed(), bed_status() etc. that I could use for any room and then it would be just a matter of passing right arguments to those funtions. However would those beds within the room composite graphic be individually clickable? So the composite graphic must be interactive in nature. >> User must be able to click on individual beds inside the room in order to change its status. Would GD approach allow this kind of interaction? > On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] >> wrote: >> It's not kind of a school/college project that I am too lazy >> to >> do. It's >> just a matter of having 800 rooms and about 2,500 beds so I >> believe it's >> gonna take forever defining all of those graphics via GD >> functions. >> That's >> why I think I need to go with some rapid approach. I never >> used >> GD's so >> I >> dont even know how complex it is generating graphics this way. >> And also >> those graphics dont need to be sophisticated. Just simple >> graphic >> representations of rooms and beds in few different colors >> indicating >> wheter bed is free, occupied, or reserved. >> >> GD just seems too powerful and too time consuming for this >> task. I >> probabily need some rapid approach with limited graphic >> capabilities. >> Does >> such exist that's my question at this point of time >> >>> On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] wrote: I have a PHP application that accesses data from MySQL
Re: [PHP] Re: Some kind of Popup
Yeti wrote: Another JavaScript method would be to load the content in a hidden div with position: absolute. I think that's what I was considering doing with CSS except it would be labels only in the content. I only wanted to retrieve the data record from mysql if the user asked for the specs. One issue is I don't want to leave the space available on my regular web page and would like to try not to overwrite something there - I'd rather have a separate window of some sort that sort of floats over the web page. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
İlgi: [PHP] a for loop and probability random all i need is make them to reverse
sorry i think i did tell u wrong about it problem is not showing name of it as exaclty i just wanted give a point to it thats not real problem real problem is i want it be more unpossible when i give the class's add function's higher value 2008/11/22, Yeti <[EMAIL PROTECTED]>: > That should output the full line now > > $prExample = new probabilityRandom; > > > function arasi($a,$b,$data) > { > $x = explode($a,$data); > $z = explode($b,$x[1]); > $oh = $z[0]; > if($x && $z) { return $oh; } else { return false; } > } > > > $x="jZRBb9swDIXvA/YfdFyxHJK0GHadvc7tYUAQb+iZiWlHKGUFkpy1+/WTE7uzFcr1MSbz+NmPj1s4Om3E55X4tBKyFl/Wi+VyefPxQ0Zwwv/PV+vF3fl5epDO//5mlP/bBhoqjK4HfYv1Xdv2oyESGwKH0dbbVdu40U76p7oUuW6oK3299ZWEoPD/fkGGLtE1ipTQM5r3IQs7C3DYFsI9SVtoNcTLDBxAMWw5wesU1QOSQjeDKGy8MD35BtMilXDSxg6RfmmHSu5FfkTgPH0Ac9QjtwK0DJraEbo536vvjfJVBvY4xHts7U/0H4bsXEqNtnY3rId8idaz2IK+zkxZP4ut9EwpPHswq4DoZgh4T/JFGpE7KEvOWCBQUBd41fLGudVV4/XnZeTSPD8pAb+SRUE4eoH8AKZgyH9KAxWK71BV7Gay2FxqoshMdgJcAlONaTdGonXiUR1h7xjqrn7O+t6APbzPHstWhJtPWKapEDufoJ5n2V8dQmuxEL+Pfrf9bcr3RhNNAk0kKsIUyxU79OK6pPYMDokD4HtChbUDmoMcCVkEl41aaqSyfoO3eofXSql5tS3LuNp9e4NYT6e0F99AzXH26kE5Is+EqNeP7VI/ILI84YTrve8HZKRPOPEGYb0bQI13STd2OORaPOJir83alrs2av50kyyRSerMu9Z1zz5sCf7Vb7s7MY87SPFZzEUaqcbsjSnydo81J9Iek43FfSwccTMmyrj7Dw=="; > $x = gzinflate(base64_decode($x)); > $xx=explode(" > ",$x); > $xcx=array(); > > foreach($xx as $c => $y) > { > $yy = arasi(" in ",")",$y); > $yy = str_replace(",","",$yy); > $xcx[]=$yy; > #echo $yy.""; > $itemisim = explode("(",$y); > $itemisim=$itemisim[0]; > $xcx[isim][]=$itemisim; > } > for($i=0;$i<=count($xcx)-1;$i++) > { > $prExample->add( $xx[$i], $xcx[$i] ); // <-- changed to $xx[i] > } > print $prExample->get(); > > class probabilityRandom { > #private vars > var > $data = array(), > $universe = 0; > #add an item to the list and defines its probability of beeing chosen > function add( $data, $probability ){ > $this->data[ $x = sizeof( $this->data ) ] = new stdClass; > $this->data[ $x ]->value = $data; > $this->universe += $this->data[ $x ]->probability = abs( $probability ); > } > #remove an item from the list > function remove( $index ){ > if( $index > -1 && $index < sizeof( $this->data ) ) { > $item = array_splice( $this->data, $index, 1 ); > $this->universe -= $item->probability; > } > } > #clears the class > function clear(){ > $this->universe = sizeof( $this->data = array() ); > } > #return a randomized item from the list > function get(){ > if( !$this->universe ) > return null; > $x = round( mt_rand( 0, $this->universe ) ); > $max = $i = 0; > do > $max += $this->data[ $i++ ]->probability; > while( $x > $max ); > return $this->data[ $i-1 ]->value; > } > } > ?> > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Some kind of Popup
Another JavaScript method would be to load the content in a hidden div with position: absolute. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Some kind of Popup
Patrick Moloney wrote: > > Would #2 be blocked by user popup blocker? I guess it depends on the popup blocker, but I would say no since it requires user action to open the window. I think most popup blockers block automatic popups. This popup technique works for me with firefox when I have it set to block popups. -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Some kind of Popup
Would #2 be blocked by user popup blocker? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Some kind of Popup
Patrick Moloney wrote: > I have web pages that display multiple physical products. I'd like to be > able to include a button near each one to display certain > characteristics (eg: height, length, depth, weight etc). > These characteristics will be in a single table record in Mysql for each > product, so I can retrieve the record for that product. The question is, > how to display them. I'd like a small display window to appear in front > of the web page. > If possible, I'd like the user to be able to move it or request the > specs for another product, and then have both displayed. > I realize that can get messy, and is not absolutely necessary. > I have considered locating an invisible display box near each product, > but I think some kind of floating window would be better. > The web page uses CSS. > Any ideas on how to proceed? Two options that come to mind: 1. Have a little link to details.php?product_id=X with target=_blank, then in details.php query for the details using the product_id and display. 2. Same as 1 except use a javascript popup via onclick() so that you can control the look of the window (no toolbars, menu, etc...) -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Hi,
I would like to write code where the user will input directory name. I want it to be able to browse to directory and choose it. With HTML if can only choose file. Can I do that in PHP ? Thanks -- View this message in context: http://www.nabble.com/Hi%2C-tp20637953p20637953.html Sent from the PHP - General mailing list archive at Nabble.com. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Some kind of Popup
I have web pages that display multiple physical products. I'd like to be able to include a button near each one to display certain characteristics (eg: height, length, depth, weight etc). These characteristics will be in a single table record in Mysql for each product, so I can retrieve the record for that product. The question is, how to display them. I'd like a small display window to appear in front of the web page. If possible, I'd like the user to be able to move it or request the specs for another product, and then have both displayed. I realize that can get messy, and is not absolutely necessary. I have considered locating an invisible display box near each product, but I think some kind of floating window would be better. The web page uses CSS. Any ideas on how to proceed? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] gethostbyaddr and IPv6
On 11/22/2008 02:17 AM, Lars Torben Wilson wrote: 2008/11/21 Glen Carreras<[EMAIL PROTECTED]>: On 11/22/2008 12:10 AM, Lars Torben Wilson wrote: Hi Glen, Works for me. IPv6 support was added in 2001. You didn't say what version of PHP you are having this problem with, so it's hard to say why yours doesn't have support for it. Perhaps it was configured with --disable-ipv6 for some reason, or compiled on a system without the necessary libraries installed (which would be somewhat surprising). Torben Thanks for the confirmation that it works Torben, This is version 5.2 (Windows binaries) and according to phpinfo ipv6 is enabled. Hmmm well, at least I now know for sure that it works for someone else and I can start exploring other avenues. I'm starting to think this is another problem resulting from Microsofts poor implementation of IPv6 on XP. Glen Hi Glen, I suspect that you may be correct--I generally don't run Windows (certainly not as a server) so I can't be sure; someone with more knowledge of Windows internals will have to field that one for you. With any luck you might find something in the user notes which leads you to a way to solve your problem using some other function or idea. Just for future reference, if you're having problems it will help people to answer your questions if you specify your PHP version and OS etc (where 'etc' means 'and all other relevant information, which of course won't be obvious--hehe) when writing the original question. I ain't tryin' to be some kind of netiquette freak here--just trying to help out. :) Anyway, good luck on your quest. Regards, Torben Torben.. Indeed, after re-reading my initial post I can see I was lacking a little in the information department. I appreciate your help. Just to follow-up on this. I installed PHP 5.3alpha as a test and the function does work as expected. (although there are other issues which preclude me from using that version at this time) I then tried 5.2.7RC4 and the function no longer worked. So it looks like a problem with that version series. I suppose I should raise a bug report and see if anything can be done while it's still in the RC phase. Thanks again, Glen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Input Type="File"
Stan wrote: > Ashley, > If you go back to the original append you will see the URLs. IE 6 SP1 > returns exactly the string that appears in the type=\"file\" /> text box, FireFox does not. I would assume that anyone > using the dialog would expect the behaviour that IE demonstrates. > > www.w3.org doesn't say anything about the return value. > > These are the only 2 browsers that I have available. > > What I need to know is: Which is behaving as all browsers will behave going > forward? > > If I remember correctly, when you POST a form the values are urlencoded automagically. But your form method is GET so you should probably urlencode the values, especially the ones with non-alphanumeric characters like {, }, etc... -- Thanks! -Shawn http://www.spidean.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[Fwd: Re: [Fwd: Re: [PHP] Displaying information from table graphically]]
But imagemaps are constructed using DIV's and that would not be supported by IE6 correct? Is there another way to build imagemaps beside DIV's that would be supported at least since IE5? > On 22 Nov 2008, at 16:23, [EMAIL PROTECTED] wrote: >> At least that eliminates GD as an option for this particular purpose. >> >> Yes exactly something Flash like that allows interaction as well. >> But how >> to exchange data between flash multimedia file and MySQL queries. >> This is >> a serious issue, this is not trivial. I know there must be some way, >> but I >> also dont know if it's worth it. That's why I need to do this >> research in >> order to determine what kind of work this particular project would >> involve. Your help is invaluable in that respect. Thanks goes to all >> of >> you zillion times :) > > Since you would be using coordinates to composite the images, building > an imagemap at the same time should be really simple. However, I'd > still go with constructing the images in divs or a table due to the > relative simplicity. > > -Stut > > -- > http://stut.net/ > >>> On Sat, 2008-11-22 at 14:22 -0100, [EMAIL PROTECTED] wrote: I mean composite in a figurative way, but they have to be overlapping individual images in order to be individually clickable. Does GD allow that? Can I create multiple images on the top of each other in GD? And how would imagemap work in this respect? > On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] > wrote: >> Okay I would probabily define few functions such as room(), bed(), >> bed_status() etc. that I could use for any room and then it >> would be >> just >> a matter of passing right arguments to those funtions. >> >> However would those beds within the room composite graphic be >> individually >> clickable? So the composite graphic must be interactive in nature. User >> must be able to click on individual beds inside the room in >> order to >> change its status. Would GD approach allow this kind of >> interaction? >> >>> On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] wrote: It's not kind of a school/college project that I am too lazy to do. >> It's just a matter of having 800 rooms and about 2,500 beds so I believe >> it's gonna take forever defining all of those graphics via GD functions. That's why I think I need to go with some rapid approach. I never used GD's >> so I dont even know how complex it is generating graphics this way. And >> also those graphics dont need to be sophisticated. Just simple graphic representations of rooms and beds in few different colors indicating wheter bed is free, occupied, or reserved. GD just seems too powerful and too time consuming for this task. I probabily need some rapid approach with limited graphic capabilities. Does such exist that's my question at this point of time > On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] >> wrote: >> I have a PHP application that accesses data from MySQL. There is table >> called "rooms", and table called "beds". There is another >> table called >> "patients". Patients are being placed into beds, and beds are in >> the >> rooms. PHP application currently displays all information in >> textual >> mode >> via regular HTML tags. But I would like to have that information >> displayed >> in graphical mode instead of textual mode. >> >> Is there a way to display this information from the database >> graphically. >> Graphic would represent a room, and it would contain beds inside. >> You >> would be able to see visually which beds are occupied and >> which >> are free >> by looking at the graphics. >> >> User of the system wants pictures instead of text displayed >> via >> HTML >> tables as a list of entries. >> >> Anyone knows anything like this? >> Thanks, >> Dzenan >> >> >> > This sounds a lot like a school/college/uni project that you're too lazy > to research... Correct me if I'm wrong. > > The other guys who have answered are all spot on when they say you need > to look at the GD library. > > > Ash > www.ashleysheridan.co.uk > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >>> >>> GD is fine for what you need to do, and it shouldn't
Re: [Fwd: Re: [PHP] Displaying information from table graphically]
For the love of $DEITY, please include the list when replying!! On 22 Nov 2008, at 17:26, [EMAIL PROTECTED] wrote: But imagemaps are constructed using DIV's and that would not be supported by IE6 correct? Is there another way to build imagemaps beside DIV's that would be supported at least since IE5? Imagemaps have absolutely nothing to do with divs. I suggest you read this: http://www.elated.com/articles/creating-image-maps/ -Stut -- http://stut.net/ On 22 Nov 2008, at 16:23, [EMAIL PROTECTED] wrote: At least that eliminates GD as an option for this particular purpose. Yes exactly something Flash like that allows interaction as well. But how to exchange data between flash multimedia file and MySQL queries. This is a serious issue, this is not trivial. I know there must be some way, but I also dont know if it's worth it. That's why I need to do this research in order to determine what kind of work this particular project would involve. Your help is invaluable in that respect. Thanks goes to all of you zillion times :) Since you would be using coordinates to composite the images, building an imagemap at the same time should be really simple. However, I'd still go with constructing the images in divs or a table due to the relative simplicity. -Stut -- http://stut.net/ On Sat, 2008-11-22 at 14:22 -0100, [EMAIL PROTECTED] wrote: I mean composite in a figurative way, but they have to be overlapping individual images in order to be individually clickable. Does GD allow that? Can I create multiple images on the top of each other in GD? And how would imagemap work in this respect? On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] wrote: Okay I would probabily define few functions such as room(), bed(), bed_status() etc. that I could use for any room and then it would be just a matter of passing right arguments to those funtions. However would those beds within the room composite graphic be individually clickable? So the composite graphic must be interactive in nature. User must be able to click on individual beds inside the room in order to change its status. Would GD approach allow this kind of interaction? On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] wrote: It's not kind of a school/college project that I am too lazy to do. It's just a matter of having 800 rooms and about 2,500 beds so I believe it's gonna take forever defining all of those graphics via GD functions. That's why I think I need to go with some rapid approach. I never used GD's so I dont even know how complex it is generating graphics this way. And also those graphics dont need to be sophisticated. Just simple graphic representations of rooms and beds in few different colors indicating wheter bed is free, occupied, or reserved. GD just seems too powerful and too time consuming for this task. I probabily need some rapid approach with limited graphic capabilities. Does such exist that's my question at this point of time On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] wrote: I have a PHP application that accesses data from MySQL. There is table called "rooms", and table called "beds". There is another table called "patients". Patients are being placed into beds, and beds are in the rooms. PHP application currently displays all information in textual mode via regular HTML tags. But I would like to have that information displayed in graphical mode instead of textual mode. Is there a way to display this information from the database graphically. Graphic would represent a room, and it would contain beds inside. You would be able to see visually which beds are occupied and which are free by looking at the graphics. User of the system wants pictures instead of text displayed via HTML tables as a list of entries. Anyone knows anything like this? Thanks, Dzenan This sounds a lot like a school/college/uni project that you're too lazy to research... Correct me if I'm wrong. The other guys who have answered are all spot on when they say you need to look at the GD library. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php GD is fine for what you need to do, and it shouldn't be difficult to create what you need to do. There isn't any pre-built rooms() function in it, but just build that yourself and use basic math to create the graphics you need. Ash www.ashleysheridan.co.uk The only way you could achieve clickable parts of a composite image like that is either to not have it as a composite and use many images, or use an imagemap. Ash www.ashleysheridan.co.uk I don't think you can do that in anything. GD outputs an image, which can be made up of layers, but there is no provision in the browser to allow you to select an image below another one even if you can see it because the top-most image is transparent. I think wh
Re: [PHP] a for loop and probability random all i need is make them to reverse
That should output the full line now $y) { $yy = arasi(" in ",")",$y); $yy = str_replace(",","",$yy); $xcx[]=$yy; #echo $yy.""; $itemisim = explode("(",$y); $itemisim=$itemisim[0]; $xcx[isim][]=$itemisim; } for($i=0;$i<=count($xcx)-1;$i++) { $prExample->add( $xx[$i], $xcx[$i] ); // <-- changed to $xx[i] } print $prExample->get(); class probabilityRandom { #private vars var $data = array(), $universe = 0; #add an item to the list and defines its probability of beeing chosen function add( $data, $probability ){ $this->data[ $x = sizeof( $this->data ) ] = new stdClass; $this->data[ $x ]->value = $data; $this->universe += $this->data[ $x ]->probability = abs( $probability ); } #remove an item from the list function remove( $index ){ if( $index > -1 && $index < sizeof( $this->data ) ) { $item = array_splice( $this->data, $index, 1 ); $this->universe -= $item->probability; } } #clears the class function clear(){ $this->universe = sizeof( $this->data = array() ); } #return a randomized item from the list function get(){ if( !$this->universe ) return null; $x = round( mt_rand( 0, $this->universe ) ); $max = $i = 0; do $max += $this->data[ $i++ ]->probability; while( $x > $max ); return $this->data[ $i-1 ]->value; } } ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] IMagick confusion
First of all .. always be careful with tainted data. Like when you $picture = $_GET['PICTURE']; be aware that this could be a security risk one day an ImageMagick exploid is circulating. At the first glance I saw a syntactical thingy that might cause problems .. case default: break; In PHP switch for default this way ... switch ($statement) { case 1: // do something break; default: //do something else } then you forgot a semicolon $orientation = $image->getImageProperty("exif:Orientation"); // <--- ; added after that I got your script running. Note: At least turn error reporting on during debugging etc. All error-reporting behavior can be modified at any level, so if you are on a shared host or otherwise unable to make changes to files such as php.ini, httpd.conf, or .htaccess, simply ... ini_set('error_reporting', E_ALL | E_STRICT); ini_set('display_errors', 'OFF'); -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] about SimpleXMLElement.
There are some nice SimpleXML examples at php.net, one of them also covers handling attributes ... http://in.php.net/manual/en/simplexml.examples.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [Fwd: Re: [PHP] Displaying information from table graphically]
On 22 Nov 2008, at 16:23, [EMAIL PROTECTED] wrote: At least that eliminates GD as an option for this particular purpose. Yes exactly something Flash like that allows interaction as well. But how to exchange data between flash multimedia file and MySQL queries. This is a serious issue, this is not trivial. I know there must be some way, but I also dont know if it's worth it. That's why I need to do this research in order to determine what kind of work this particular project would involve. Your help is invaluable in that respect. Thanks goes to all of you zillion times :) Since you would be using coordinates to composite the images, building an imagemap at the same time should be really simple. However, I'd still go with constructing the images in divs or a table due to the relative simplicity. -Stut -- http://stut.net/ On Sat, 2008-11-22 at 14:22 -0100, [EMAIL PROTECTED] wrote: I mean composite in a figurative way, but they have to be overlapping individual images in order to be individually clickable. Does GD allow that? Can I create multiple images on the top of each other in GD? And how would imagemap work in this respect? On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] wrote: Okay I would probabily define few functions such as room(), bed(), bed_status() etc. that I could use for any room and then it would be just a matter of passing right arguments to those funtions. However would those beds within the room composite graphic be individually clickable? So the composite graphic must be interactive in nature. User must be able to click on individual beds inside the room in order to change its status. Would GD approach allow this kind of interaction? On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] wrote: It's not kind of a school/college project that I am too lazy to do. It's just a matter of having 800 rooms and about 2,500 beds so I believe it's gonna take forever defining all of those graphics via GD functions. That's why I think I need to go with some rapid approach. I never used GD's so I dont even know how complex it is generating graphics this way. And also those graphics dont need to be sophisticated. Just simple graphic representations of rooms and beds in few different colors indicating wheter bed is free, occupied, or reserved. GD just seems too powerful and too time consuming for this task. I probabily need some rapid approach with limited graphic capabilities. Does such exist that's my question at this point of time On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] wrote: I have a PHP application that accesses data from MySQL. There is table called "rooms", and table called "beds". There is another table called "patients". Patients are being placed into beds, and beds are in the rooms. PHP application currently displays all information in textual mode via regular HTML tags. But I would like to have that information displayed in graphical mode instead of textual mode. Is there a way to display this information from the database graphically. Graphic would represent a room, and it would contain beds inside. You would be able to see visually which beds are occupied and which are free by looking at the graphics. User of the system wants pictures instead of text displayed via HTML tables as a list of entries. Anyone knows anything like this? Thanks, Dzenan This sounds a lot like a school/college/uni project that you're too lazy to research... Correct me if I'm wrong. The other guys who have answered are all spot on when they say you need to look at the GD library. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php GD is fine for what you need to do, and it shouldn't be difficult to create what you need to do. There isn't any pre-built rooms() function in it, but just build that yourself and use basic math to create the graphics you need. Ash www.ashleysheridan.co.uk The only way you could achieve clickable parts of a composite image like that is either to not have it as a composite and use many images, or use an imagemap. Ash www.ashleysheridan.co.uk I don't think you can do that in anything. GD outputs an image, which can be made up of layers, but there is no provision in the browser to allow you to select an image below another one even if you can see it because the top-most image is transparent. I think what you're really looking for is something Flash based? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] a for loop and probability random all i need is make them to reverse
i want it returns *Raptor +1 (1 in 62,000) * but it returns me nearly everytime how can i make them reverse help me please index.php > $y) { $yy = arasi(" in ",")",$y); $yy = str_replace(",","",$yy); $xcx[]=$yy; #echo $yy.""; $itemisim = explode("(",$y); $itemisim=$itemisim[0]; $xcx[isim][]=$itemisim; } for($i=0;$i<=count($xcx)-1;$i++) { $prExample->add( $xcx[isim][$i], $xcx[$i] ); } print $prExample->get(); ?> lib.probabilityRandom.php > http://www.joninhas.ath.cx:666 - CLASS --- My user account at phpclasses.org http://www.phpclasses.org/browse.html/author/84147.html Get the latest version of this class at: http://www.phpclasses.org/browse.html/package/1940.html - VERSION & HISTORY --- v1.0 2004-10-31 - Class creation - **/ class probabilityRandom { #private vars var $data = array(), $universe = 0; #add an item to the list and defines its probability of beeing chosen function add( $data, $probability ){ $this->data[ $x = sizeof( $this->data ) ] = new stdClass; $this->data[ $x ]->value = $data; $this->universe += $this->data[ $x ]->probability = abs( $probability ); } #remove an item from the list function remove( $index ){ if( $index > -1 && $index < sizeof( $this->data ) ) { $item = array_splice( $this->data, $index, 1 ); $this->universe -= $item->probability; } } #clears the class function clear(){ $this->universe = sizeof( $this->data = array() ); } #return a randomized item from the list function get(){ if( !$this->universe ) return null; $x = round( mt_rand( 0, $this->universe ) ); $max = $i = 0; do $max += $this->data[ $i++ ]->probability; while( $x > $max ); return $this->data[ $i-1 ]->value; } } ?>
[Fwd: Re: [PHP] Displaying information from table graphically]
At least that eliminates GD as an option for this particular purpose. Yes exactly something Flash like that allows interaction as well. But how to exchange data between flash multimedia file and MySQL queries. This is a serious issue, this is not trivial. I know there must be some way, but I also dont know if it's worth it. That's why I need to do this research in order to determine what kind of work this particular project would involve. Your help is invaluable in that respect. Thanks goes to all of you zillion times :) > On Sat, 2008-11-22 at 14:22 -0100, [EMAIL PROTECTED] wrote: >> I mean composite in a figurative way, but they have to be overlapping >> individual images in order to be individually clickable. Does GD allow >> that? Can I create multiple images on the top of each other in GD? >> >> And how would imagemap work in this respect? >> >> > On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] wrote: >> >> Okay I would probabily define few functions such as room(), bed(), >> >> bed_status() etc. that I could use for any room and then it would be >> >> just >> >> a matter of passing right arguments to those funtions. >> >> >> >> However would those beds within the room composite graphic be >> >> individually >> >> clickable? So the composite graphic must be interactive in nature. >> User >> >> must be able to click on individual beds inside the room in order to >> >> change its status. Would GD approach allow this kind of interaction? >> >> >> >> > On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] >> wrote: >> >> >> It's not kind of a school/college project that I am too lazy to >> do. >> >> It's >> >> >> just a matter of having 800 rooms and about 2,500 beds so I >> believe >> >> it's >> >> >> gonna take forever defining all of those graphics via GD >> functions. >> >> >> That's >> >> >> why I think I need to go with some rapid approach. I never used >> GD's >> >> so >> >> >> I >> >> >> dont even know how complex it is generating graphics this way. And >> >> also >> >> >> those graphics dont need to be sophisticated. Just simple graphic >> >> >> representations of rooms and beds in few different colors >> indicating >> >> >> wheter bed is free, occupied, or reserved. >> >> >> >> >> >> GD just seems too powerful and too time consuming for this task. I >> >> >> probabily need some rapid approach with limited graphic >> capabilities. >> >> >> Does >> >> >> such exist that's my question at this point of time >> >> >> >> >> >> > On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] >> >> wrote: >> >> >> >> I have a PHP application that accesses data from MySQL. There >> is >> >> >> table >> >> >> >> called "rooms", and table called "beds". There is another table >> >> >> called >> >> >> >> "patients". Patients are being placed into beds, and beds are >> in >> >> the >> >> >> >> rooms. PHP application currently displays all information in >> >> textual >> >> >> >> mode >> >> >> >> via regular HTML tags. But I would like to have that >> information >> >> >> >> displayed >> >> >> >> in graphical mode instead of textual mode. >> >> >> >> >> >> >> >> Is there a way to display this information from the database >> >> >> >> graphically. >> >> >> >> Graphic would represent a room, and it would contain beds >> inside. >> >> You >> >> >> >> would be able to see visually which beds are occupied and which >> >> are >> >> >> free >> >> >> >> by looking at the graphics. >> >> >> >> >> >> >> >> User of the system wants pictures instead of text displayed via >> >> HTML >> >> >> >> tables as a list of entries. >> >> >> >> >> >> >> >> Anyone knows anything like this? >> >> >> >> Thanks, >> >> >> >> Dzenan >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> > This sounds a lot like a school/college/uni project that you're >> too >> >> >> lazy >> >> >> > to research... Correct me if I'm wrong. >> >> >> > >> >> >> > The other guys who have answered are all spot on when they say >> you >> >> >> need >> >> >> > to look at the GD library. >> >> >> > >> >> >> > >> >> >> > Ash >> >> >> > www.ashleysheridan.co.uk >> >> >> > >> >> >> > >> >> >> > -- >> >> >> > PHP General Mailing List (http://www.php.net/) >> >> >> > To unsubscribe, visit: http://www.php.net/unsub.php >> >> >> > >> >> >> >> >> >> >> >> > >> >> > GD is fine for what you need to do, and it shouldn't be difficult >> to >> >> > create what you need to do. There isn't any pre-built rooms() >> function >> >> > in it, but just build that yourself and use basic math to create >> the >> >> > graphics you need. >> >> > >> >> > >> >> > Ash >> >> > www.ashleysheridan.co.uk >> >> > >> >> >> >> >> > The only way you could achieve clickable parts of a composite image >> like >> > that is either to not have it as a composite and use many images, or >> use >> > an imagemap. >> > >> > >> > Ash >> > www.ashleysheridan.co.uk >> > >> >> > I don't think you can do that in anything. GD outputs an image, which > can be made up of layers, but there is no provision in the browser to > a
[PHP] IMagick confusion
This code (invoked by an IMG tag on a page) will return the image which is then displayed: ... but this code does not (even when the value of $orientation is 1): getImageProperty("exif:Orientation") switch($orientation) { case 1: /* normal */ break; case 2: /* mirror */ break; case 3: /* 180 anti-clockwise */ break; case 4: /* mirror + 180 anti-clockwise */ break; case 5: /* mirror + 90 anti-clockwise */ break; case 6: /* 90 anti-clockwise */ break; case 7: /* mirror + 270 anti-clockwise */ break; case 8: /* 270 anti-clockwise */ $image->rotateImage(new ImagickPixel(), 90); break; case default: break; } echo $image; ?> I'm confused. Can someone please shed light on what's happening? Thanks, Stan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Input Type="File"
Ashley, If you go back to the original append you will see the URLs. IE 6 SP1 returns exactly the string that appears in the text box, FireFox does not. I would assume that anyone using the dialog would expect the behaviour that IE demonstrates. www.w3.org doesn't say anything about the return value. These are the only 2 browsers that I have available. What I need to know is: Which is behaving as all browsers will behave going forward? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically
On Sat, 2008-11-22 at 14:22 -0100, [EMAIL PROTECTED] wrote: > I mean composite in a figurative way, but they have to be overlapping > individual images in order to be individually clickable. Does GD allow > that? Can I create multiple images on the top of each other in GD? > > And how would imagemap work in this respect? > > > On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] wrote: > >> Okay I would probabily define few functions such as room(), bed(), > >> bed_status() etc. that I could use for any room and then it would be > >> just > >> a matter of passing right arguments to those funtions. > >> > >> However would those beds within the room composite graphic be > >> individually > >> clickable? So the composite graphic must be interactive in nature. User > >> must be able to click on individual beds inside the room in order to > >> change its status. Would GD approach allow this kind of interaction? > >> > >> > On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] wrote: > >> >> It's not kind of a school/college project that I am too lazy to do. > >> It's > >> >> just a matter of having 800 rooms and about 2,500 beds so I believe > >> it's > >> >> gonna take forever defining all of those graphics via GD functions. > >> >> That's > >> >> why I think I need to go with some rapid approach. I never used GD's > >> so > >> >> I > >> >> dont even know how complex it is generating graphics this way. And > >> also > >> >> those graphics dont need to be sophisticated. Just simple graphic > >> >> representations of rooms and beds in few different colors indicating > >> >> wheter bed is free, occupied, or reserved. > >> >> > >> >> GD just seems too powerful and too time consuming for this task. I > >> >> probabily need some rapid approach with limited graphic capabilities. > >> >> Does > >> >> such exist that's my question at this point of time > >> >> > >> >> > On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] > >> wrote: > >> >> >> I have a PHP application that accesses data from MySQL. There is > >> >> table > >> >> >> called "rooms", and table called "beds". There is another table > >> >> called > >> >> >> "patients". Patients are being placed into beds, and beds are in > >> the > >> >> >> rooms. PHP application currently displays all information in > >> textual > >> >> >> mode > >> >> >> via regular HTML tags. But I would like to have that information > >> >> >> displayed > >> >> >> in graphical mode instead of textual mode. > >> >> >> > >> >> >> Is there a way to display this information from the database > >> >> >> graphically. > >> >> >> Graphic would represent a room, and it would contain beds inside. > >> You > >> >> >> would be able to see visually which beds are occupied and which > >> are > >> >> free > >> >> >> by looking at the graphics. > >> >> >> > >> >> >> User of the system wants pictures instead of text displayed via > >> HTML > >> >> >> tables as a list of entries. > >> >> >> > >> >> >> Anyone knows anything like this? > >> >> >> Thanks, > >> >> >> Dzenan > >> >> >> > >> >> >> > >> >> >> > >> >> > This sounds a lot like a school/college/uni project that you're too > >> >> lazy > >> >> > to research... Correct me if I'm wrong. > >> >> > > >> >> > The other guys who have answered are all spot on when they say you > >> >> need > >> >> > to look at the GD library. > >> >> > > >> >> > > >> >> > Ash > >> >> > www.ashleysheridan.co.uk > >> >> > > >> >> > > >> >> > -- > >> >> > PHP General Mailing List (http://www.php.net/) > >> >> > To unsubscribe, visit: http://www.php.net/unsub.php > >> >> > > >> >> > >> >> > >> > > >> > GD is fine for what you need to do, and it shouldn't be difficult to > >> > create what you need to do. There isn't any pre-built rooms() function > >> > in it, but just build that yourself and use basic math to create the > >> > graphics you need. > >> > > >> > > >> > Ash > >> > www.ashleysheridan.co.uk > >> > > >> > >> > > The only way you could achieve clickable parts of a composite image like > > that is either to not have it as a composite and use many images, or use > > an imagemap. > > > > > > Ash > > www.ashleysheridan.co.uk > > > > I don't think you can do that in anything. GD outputs an image, which can be made up of layers, but there is no provision in the browser to allow you to select an image below another one even if you can see it because the top-most image is transparent. I think what you're really looking for is something Flash based? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Input Type="File"
On Sat, 2008-11-22 at 07:31 -0600, Stan wrote: > In both cases the full path appears in the file selection dialog created by > . The only thing the user does > after selecting the file is click the submit button. Default.php creates > the session variable by first > unset($_SESSION['thisSelectedFile']); > and then > foreach ($queryString as $key => $value) >{ >switch($key) > { > . > . > . > case "SELECTEDFILE": > $_SESSION['thisSelectedFile'] = $value; > break; > default: > break; > } >} > > Like I said ... everything is the same ... except the browser being used. > > > "Ashley Sheridan" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > On Sat, 2008-11-22 at 06:57 -0600, Stan wrote: > > > Default.php sets a session variable named thisSelectedFile before > putting > > > the page designated by the ID (in this case PictureProperties.php) up. > > > PictureProperties.php is . > > > > > > > > > > > > > > > > > session_start(); > > > > > > if (isset($_SESSION["Stan-and-Jeanne"])) > > > > > > { > > > > > > $thisPageHandle = > > > $_SESSION['thisPageHandle']; > > > > > > $navigation_table = > > > $_SESSION['navigation_table']; > > > > > > echo " \"-//W3C//DTD > > > HTML 4.01 Frameset//EN\" "; > > > > > > echo > > > "\"http://www.w3.org/TR/HTML4.01/frameset.dtd\"\n";; > > > > > > echo "\n"; > > > > > > echo "\n"; > > > > > > echo " > > rel=\"stylesheet\" "; > > > > > > echo "href=\"frames_style/Default.css\" > "; > > > > > > echo "type=\"text/css\">\n"; > > > > > > echo " " . > > > > > > > > > $navigation_table[$thisPageHandle]["navigateTitle"] . > > > > > > > > > "\n"; > > > > > > echo "\n"; > > > > > > echo "\n"; > > > > > > echo "picture file = '" . > > > $_SESSION['thisSelectedFile'] . "'\n"; > > > > > > $picture = str_replace("", "/", > > > $_SESSION['thisSelectedFile']); > > > > > > echo "picture file = '" . $picture . > > > "'\n"; > > > > > > $picture = > > > str_replace("//Nasserver/PicturesMaster", "../pictures", $picture); > > > > > > echo "picture file = '" . $picture . > > > "'\n"; > > > > > > $im = new imagick($picture); > > > > > > $exifArray = > > > $im->getImageProperties("exif:*"); > > > > > > foreach ($exifArray as $name => > $property) > > > > > > { > > > > > > echo "{$name} => {$property} />\n"; > > > > > > } > > > > > > echo "\n"; > > > > > > echo ""; > > > > > > } > > > > > > ?> > > > > > > > > > > > > . and results in . > > > > > > > > > > > > picture file = > > > > 'Nasserver\\PicturesMaster\\2004-07-31_Guadalupe_River_rafting_roll-1\\0 > > > 033126-R1-042-19A_20.jpg' > > > picture file = > > > > '//Nasserver/PicturesMaster/2004-07-31_Guadalupe_River_rafting_roll-1/003312 > > > 6-R1-042-19A_20.jpg' > > > picture file = > > > > '../pictures/2004-07-31_Guadalupe_River_rafting_roll-1/0033126-R1-042-19A_20 > > > .jpg' > > > exif:ColorSpace => 1 > > > exif:ComponentsConfiguration => ... > > > exif:Compression => 6 > > > exif:DateTime => 2002:09:30 11:11:11 > > > > > > . > > > > > > . > > > > > > . > > > > > > > > > > > > . with IE6 SP1 and . > > > > > > > > > > > > picture file = '0033126-R1-042-19A_20.jpg' > > > picture file = '0033126-R1-042-19A_20.jpg' > > > picture file = '0033126-R1-042-19A_20.jpg' > > > > > > Fatal error: Uncaught exception 'ImagickException' with message 'unable > to > > > open image `/Stan-and-Jeanne.com/frames/0033126-R1-042-19A_20.jpg': No > such > > > file or directory' in > /Stan-and-Jeanne.com/frames/PictureProperties.php:24 > > > Stack trace: #0 /Stan-and-Jeanne.com/frames/PictureProperties.php(24): > > > Imagick->__construct('0033126-R1-042-...') #1 {main} thrown in > > > /Stan-and-Jeanne.com/frames/PictureProperties.php on line 24 > > > > > > > > > > > > . with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.4) > > > Gecko/2008102920 Firefox/3.0.4. > > > > > > > >
[PHP] about SimpleXMLElement.
how can i get a=1 and b=2 in PHP ? i know SimpleXMLElement->attributes(); however i don't know how to get attributes in tag "aa:bb" ->array->aa:bb->attributes(); that will error. Thank You Very Much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Input Type="File"
In both cases the full path appears in the file selection dialog created by . The only thing the user does after selecting the file is click the submit button. Default.php creates the session variable by first unset($_SESSION['thisSelectedFile']); and then foreach ($queryString as $key => $value) { switch($key) { . . . case "SELECTEDFILE": $_SESSION['thisSelectedFile'] = $value; break; default: break; } } Like I said ... everything is the same ... except the browser being used. "Ashley Sheridan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Sat, 2008-11-22 at 06:57 -0600, Stan wrote: > > Default.php sets a session variable named thisSelectedFile before putting > > the page designated by the ID (in this case PictureProperties.php) up. > > PictureProperties.php is . > > > > > > > > > > > session_start(); > > > > if (isset($_SESSION["Stan-and-Jeanne"])) > > > > { > > > > $thisPageHandle = > > $_SESSION['thisPageHandle']; > > > > $navigation_table = > > $_SESSION['navigation_table']; > > > > echo " > HTML 4.01 Frameset//EN\" "; > > > > echo > > "\"http://www.w3.org/TR/HTML4.01/frameset.dtd\"\n";; > > > > echo "\n"; > > > > echo "\n"; > > > > echo " > rel=\"stylesheet\" "; > > > > echo "href=\"frames_style/Default.css\" "; > > > > echo "type=\"text/css\">\n"; > > > > echo " " . > > > > > > $navigation_table[$thisPageHandle]["navigateTitle"] . > > > > > > "\n"; > > > > echo "\n"; > > > > echo "\n"; > > > > echo "picture file = '" . > > $_SESSION['thisSelectedFile'] . "'\n"; > > > > $picture = str_replace("", "/", > > $_SESSION['thisSelectedFile']); > > > > echo "picture file = '" . $picture . > > "'\n"; > > > > $picture = > > str_replace("//Nasserver/PicturesMaster", "../pictures", $picture); > > > > echo "picture file = '" . $picture . > > "'\n"; > > > > $im = new imagick($picture); > > > > $exifArray = > > $im->getImageProperties("exif:*"); > > > > foreach ($exifArray as $name => $property) > > > > { > > > > echo "{$name} => {$property}\n"; > > > > } > > > > echo "\n"; > > > > echo ""; > > > > } > > > > ?> > > > > > > > > . and results in . > > > > > > > > picture file = > > 'Nasserver\\PicturesMaster\\2004-07-31_Guadalupe_River_rafting_roll-1\\0 > > 033126-R1-042-19A_20.jpg' > > picture file = > > '//Nasserver/PicturesMaster/2004-07-31_Guadalupe_River_rafting_roll-1/003312 > > 6-R1-042-19A_20.jpg' > > picture file = > > '../pictures/2004-07-31_Guadalupe_River_rafting_roll-1/0033126-R1-042-19A_20 > > .jpg' > > exif:ColorSpace => 1 > > exif:ComponentsConfiguration => ... > > exif:Compression => 6 > > exif:DateTime => 2002:09:30 11:11:11 > > > > . > > > > . > > > > . > > > > > > > > . with IE6 SP1 and . > > > > > > > > picture file = '0033126-R1-042-19A_20.jpg' > > picture file = '0033126-R1-042-19A_20.jpg' > > picture file = '0033126-R1-042-19A_20.jpg' > > > > Fatal error: Uncaught exception 'ImagickException' with message 'unable to > > open image `/Stan-and-Jeanne.com/frames/0033126-R1-042-19A_20.jpg': No such > > file or directory' in /Stan-and-Jeanne.com/frames/PictureProperties.php:24 > > Stack trace: #0 /Stan-and-Jeanne.com/frames/PictureProperties.php(24): > > Imagick->__construct('0033126-R1-042-...') #1 {main} thrown in > > /Stan-and-Jeanne.com/frames/PictureProperties.php on line 24 > > > > > > > > . with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.4) > > Gecko/2008102920 Firefox/3.0.4. > > > > > > > How is the path getting into the session variable? I think that may be > where you problem is, because when you echo out the variable in both > browsers after the form submission, you are getting different outputs. > > > Ash > www.ashleysheridan.co.uk > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically
I mean composite in a figurative way, but they have to be overlapping individual images in order to be individually clickable. Does GD allow that? Can I create multiple images on the top of each other in GD? And how would imagemap work in this respect? > On Sat, 2008-11-22 at 12:51 -0100, [EMAIL PROTECTED] wrote: >> Okay I would probabily define few functions such as room(), bed(), >> bed_status() etc. that I could use for any room and then it would be >> just >> a matter of passing right arguments to those funtions. >> >> However would those beds within the room composite graphic be >> individually >> clickable? So the composite graphic must be interactive in nature. User >> must be able to click on individual beds inside the room in order to >> change its status. Would GD approach allow this kind of interaction? >> >> > On Sat, 2008-11-22 at 12:14 -0100, [EMAIL PROTECTED] wrote: >> >> It's not kind of a school/college project that I am too lazy to do. >> It's >> >> just a matter of having 800 rooms and about 2,500 beds so I believe >> it's >> >> gonna take forever defining all of those graphics via GD functions. >> >> That's >> >> why I think I need to go with some rapid approach. I never used GD's >> so >> >> I >> >> dont even know how complex it is generating graphics this way. And >> also >> >> those graphics dont need to be sophisticated. Just simple graphic >> >> representations of rooms and beds in few different colors indicating >> >> wheter bed is free, occupied, or reserved. >> >> >> >> GD just seems too powerful and too time consuming for this task. I >> >> probabily need some rapid approach with limited graphic capabilities. >> >> Does >> >> such exist that's my question at this point of time >> >> >> >> > On Fri, 2008-11-21 at 16:55 -0100, [EMAIL PROTECTED] >> wrote: >> >> >> I have a PHP application that accesses data from MySQL. There is >> >> table >> >> >> called "rooms", and table called "beds". There is another table >> >> called >> >> >> "patients". Patients are being placed into beds, and beds are in >> the >> >> >> rooms. PHP application currently displays all information in >> textual >> >> >> mode >> >> >> via regular HTML tags. But I would like to have that information >> >> >> displayed >> >> >> in graphical mode instead of textual mode. >> >> >> >> >> >> Is there a way to display this information from the database >> >> >> graphically. >> >> >> Graphic would represent a room, and it would contain beds inside. >> You >> >> >> would be able to see visually which beds are occupied and which >> are >> >> free >> >> >> by looking at the graphics. >> >> >> >> >> >> User of the system wants pictures instead of text displayed via >> HTML >> >> >> tables as a list of entries. >> >> >> >> >> >> Anyone knows anything like this? >> >> >> Thanks, >> >> >> Dzenan >> >> >> >> >> >> >> >> >> >> >> > This sounds a lot like a school/college/uni project that you're too >> >> lazy >> >> > to research... Correct me if I'm wrong. >> >> > >> >> > The other guys who have answered are all spot on when they say you >> >> need >> >> > to look at the GD library. >> >> > >> >> > >> >> > Ash >> >> > www.ashleysheridan.co.uk >> >> > >> >> > >> >> > -- >> >> > PHP General Mailing List (http://www.php.net/) >> >> > To unsubscribe, visit: http://www.php.net/unsub.php >> >> > >> >> >> >> >> > >> > GD is fine for what you need to do, and it shouldn't be difficult to >> > create what you need to do. There isn't any pre-built rooms() function >> > in it, but just build that yourself and use basic math to create the >> > graphics you need. >> > >> > >> > Ash >> > www.ashleysheridan.co.uk >> > >> >> > The only way you could achieve clickable parts of a composite image like > that is either to not have it as a composite and use many images, or use > an imagemap. > > > Ash > www.ashleysheridan.co.uk > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Input Type="File"
On Sat, 2008-11-22 at 06:57 -0600, Stan wrote: > Default.php sets a session variable named thisSelectedFile before putting > the page designated by the ID (in this case PictureProperties.php) up. > PictureProperties.php is . > > > > > session_start(); > > if (isset($_SESSION["Stan-and-Jeanne"])) > > { > > $thisPageHandle = > $_SESSION['thisPageHandle']; > > $navigation_table = > $_SESSION['navigation_table']; > > echo " HTML 4.01 Frameset//EN\" "; > > echo > "\"http://www.w3.org/TR/HTML4.01/frameset.dtd\"\n";; > > echo "\n"; > > echo "\n"; > > echo " rel=\"stylesheet\" "; > > echo "href=\"frames_style/Default.css\" "; > > echo "type=\"text/css\">\n"; > > echo " " . > > > $navigation_table[$thisPageHandle]["navigateTitle"] . > > > "\n"; > > echo "\n"; > > echo "\n"; > > echo "picture file = '" . > $_SESSION['thisSelectedFile'] . "'\n"; > > $picture = str_replace("", "/", > $_SESSION['thisSelectedFile']); > > echo "picture file = '" . $picture . > "'\n"; > > $picture = > str_replace("//Nasserver/PicturesMaster", "../pictures", $picture); > > echo "picture file = '" . $picture . > "'\n"; > > $im = new imagick($picture); > > $exifArray = > $im->getImageProperties("exif:*"); > > foreach ($exifArray as $name => $property) > > { > > echo "{$name} => {$property}\n"; > > } > > echo "\n"; > > echo ""; > > } > > ?> > > > > . and results in . > > > > picture file = > 'Nasserver\\PicturesMaster\\2004-07-31_Guadalupe_River_rafting_roll-1\\0 > 033126-R1-042-19A_20.jpg' > picture file = > '//Nasserver/PicturesMaster/2004-07-31_Guadalupe_River_rafting_roll-1/003312 > 6-R1-042-19A_20.jpg' > picture file = > '../pictures/2004-07-31_Guadalupe_River_rafting_roll-1/0033126-R1-042-19A_20 > .jpg' > exif:ColorSpace => 1 > exif:ComponentsConfiguration => ... > exif:Compression => 6 > exif:DateTime => 2002:09:30 11:11:11 > > . > > . > > . > > > > . with IE6 SP1 and . > > > > picture file = '0033126-R1-042-19A_20.jpg' > picture file = '0033126-R1-042-19A_20.jpg' > picture file = '0033126-R1-042-19A_20.jpg' > > Fatal error: Uncaught exception 'ImagickException' with message 'unable to > open image `/Stan-and-Jeanne.com/frames/0033126-R1-042-19A_20.jpg': No such > file or directory' in /Stan-and-Jeanne.com/frames/PictureProperties.php:24 > Stack trace: #0 /Stan-and-Jeanne.com/frames/PictureProperties.php(24): > Imagick->__construct('0033126-R1-042-...') #1 {main} thrown in > /Stan-and-Jeanne.com/frames/PictureProperties.php on line 24 > > > > . with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.4) > Gecko/2008102920 Firefox/3.0.4. > > > How is the path getting into the session variable? I think that may be where you problem is, because when you echo out the variable in both browsers after the form submission, you are getting different outputs. Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Input Type="File"
Default.php sets a session variable named thisSelectedFile before putting the page designated by the ID (in this case PictureProperties.php) up. PictureProperties.php is . http://www.w3.org/TR/HTML4.01/frameset.dtd\"\n";; echo "\n"; echo "\n"; echo " \n"; echo " " . $navigation_table[$thisPageHandle]["navigateTitle"] . "\n"; echo "\n"; echo "\n"; echo "picture file = '" . $_SESSION['thisSelectedFile'] . "'\n"; $picture = str_replace("", "/", $_SESSION['thisSelectedFile']); echo "picture file = '" . $picture . "'\n"; $picture = str_replace("//Nasserver/PicturesMaster", "../pictures", $picture); echo "picture file = '" . $picture . "'\n"; $im = new imagick($picture); $exifArray = $im->getImageProperties("exif:*"); foreach ($exifArray as $name => $property) { echo "{$name} => {$property}\n"; } echo "\n"; echo ""; } ?> . and results in . picture file = 'Nasserver\\PicturesMaster\\2004-07-31_Guadalupe_River_rafting_roll-1\\0 033126-R1-042-19A_20.jpg' picture file = '//Nasserver/PicturesMaster/2004-07-31_Guadalupe_River_rafting_roll-1/003312 6-R1-042-19A_20.jpg' picture file = '../pictures/2004-07-31_Guadalupe_River_rafting_roll-1/0033126-R1-042-19A_20 .jpg' exif:ColorSpace => 1 exif:ComponentsConfiguration => ... exif:Compression => 6 exif:DateTime => 2002:09:30 11:11:11 . . . . with IE6 SP1 and . picture file = '0033126-R1-042-19A_20.jpg' picture file = '0033126-R1-042-19A_20.jpg' picture file = '0033126-R1-042-19A_20.jpg' Fatal error: Uncaught exception 'ImagickException' with message 'unable to open image `/Stan-and-Jeanne.com/frames/0033126-R1-042-19A_20.jpg': No such file or directory' in /Stan-and-Jeanne.com/frames/PictureProperties.php:24 Stack trace: #0 /Stan-and-Jeanne.com/frames/PictureProperties.php(24): Imagick->__construct('0033126-R1-042-...') #1 {main} thrown in /Stan-and-Jeanne.com/frames/PictureProperties.php on line 24 . with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Form Input Type="File"
On Sat, 2008-11-22 at 06:21 -0600, Stan wrote: > This generated HTML puts up a file selection dialog . > > > > echo " \n"; > > echo " Pick a picture file to examine > ...\n"; > > echo " enctype=\"text/plain\" action=\"Default.php\" target=\"_top\">\n"; > > echo " name=\"ID\" type=\"hidden\" value=\"{1BB48FF1-C6A2-4FB8-84C9-DD9615000694}\" > />\n"; > > echo " name=\"SELECTEDFILE\" type=\"file\" />\n"; > > echo " type=\"submit\" value=\"Submit\" />\n"; > > echo " \n"; > > echo " \n"; > > > > . which results in this URL . > > > > http://frames.stan-and-jeanne.com/Default.php?ID=%7B1BB48FF1-C6A2-4FB8-84C9-DD9615000694%7D&SELECTEDFILE=%5C%5CNasserver%5CPicturesMaster%5C2004-07-31_Guadalupe_River_rafting_roll-1%5C0033126-R1-042-19A_20.jpg > > > > . with IE 6 SP 1 and this URL . > > > > http://frames.stan-and-jeanne.com/Default.php?ID={1BB48FF1-C6A2-4FB8-84C9-DD9615000694}&SELECTEDFILE=0033126-R1-042-19A_20.jpg > > > > . with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.4) > Gecko/2008102920 Firefox/3.0.4, even though every thing else is exactly the > same. > > > > Am I SOL? > > > The URL you are saying results from Mozilla has none of the characters escaped. Also, you seem to be missing part of the path for the jpeg: "% 5C%5CNasserver%5CPicturesMaster% 5C2004-07-31_Guadalope_River_rafting_roll-1%5C" How are you actually handling the form submission? Ash www.ashleysheridan.co.uk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Form Input Type="File"
This generated HTML puts up a file selection dialog . echo " \n"; echo " Pick a picture file to examine ...\n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; echo " \n"; . which results in this URL . http://frames.stan-and-jeanne.com/Default.php?ID=%7B1BB48FF1-C6A2-4FB8-84C9-DD9615000694%7D&SELECTEDFILE=%5C%5CNasserver%5CPicturesMaster%5C2004-07-31_Guadalupe_River_rafting_roll-1%5C0033126-R1-042-19A_20.jpg . with IE 6 SP 1 and this URL . http://frames.stan-and-jeanne.com/Default.php?ID={1BB48FF1-C6A2-4FB8-84C9-DD9615000694}&SELECTEDFILE=0033126-R1-042-19A_20.jpg . with Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.9.0.4) Gecko/2008102920 Firefox/3.0.4, even though every thing else is exactly the same. Am I SOL? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Displaying information from table graphically
Please keep the discussion on-list. On 22 Nov 2008, at 13:40, [EMAIL PROTECTED] wrote: The second approach is I believe exactly what I need. I dont actually have to make sophisticated graphics at all. Just a simple graphical representation of a room and beds inside in different colors indicating whether they are occupied, free, or reserved. So I believe s would be definitelly the right approach for the scope of this project. Now the question would be how DIV's are supported by IE and Mozzila Firefox (I could specify this as a restriction in terms of usage) You should be fine with any Firefox and IE7, but you may have issues with IE6. Best advice is to test everything thoroughly. I'll probably get lynched for saying this, but you could avoid most compatibility issues by using a table to put the images together instead of divs. Also what does the KISS principle mentioned below stands for please? KISS === Keep It Simple, Stupid http://en.wikipedia.org/wiki/KISS_principle -Stut -- http://stut.net/ On 21 Nov 2008, at 17:55, [EMAIL PROTECTED] wrote: I have a PHP application that accesses data from MySQL. There is table called "rooms", and table called "beds". There is another table called "patients". Patients are being placed into beds, and beds are in the rooms. PHP application currently displays all information in textual mode via regular HTML tags. But I would like to have that information displayed in graphical mode instead of textual mode. Is there a way to display this information from the database graphically. Graphic would represent a room, and it would contain beds inside. You would be able to see visually which beds are occupied and which are free by looking at the graphics. User of the system wants pictures instead of text displayed via HTML tables as a list of entries. There's a couple of ways you can do this with differing qualities. 1) Use GD or ImageMagick to composite images together to represent the room. This would allow you to create the best looking images. You can either store images for rooms with 1, 2, 3, 4, ..., n beds and overlay markers to indicate occupied beds, or you could composite the whole thing. 2) Slice images up such that you can build a room using positioned divs. This would be a lot easier but you'd be limited in what type of textures and looks you can give the rooms. On the other hand this could turn out to be more flexible as you could arrange it to allow rooms of any dimensions with any number of beds. Personally I'd opt for 2 based on the KISS principle, but you could potentially run into browser compatibility issues depending on your target platforms. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php