Java or PHP.. or JScript |
Author: |
Message: |
LifelesS
Full Member
Posts: 115 Reputation: 4
32 / /
Joined: Dec 2006
|
O.P. Java or PHP.. or JScript
Don't know if it's the correct place to post asking this, but it's something I want to implement on a script I'm building so...
Anyway, my question is, I want to be hable to make a bar/line chart, but I don't know if I should use Java or PHP.
Java, you just need to have Java Platform installed...
With PHP it needs to be on a server...
Also, can it be done with JScript + GDI or something? How?
TIA
Best Regards,
Joćo Godinho
|
|
07-31-2007 11:27 AM |
|
|
Nathan
Veteran Member
Yeah, "large dimensions" ;)
Posts: 2984 Reputation: 76
– / /
Joined: Apr 2005
|
RE: Java or PHP.. or JScript
You can make them in all of those programs, php or js being the most efficient (js the most efficient for the server)
|
|
07-31-2007 11:35 AM |
|
|
LifelesS
Full Member
Posts: 115 Reputation: 4
32 / /
Joined: Dec 2006
|
O.P. RE: Java or PHP.. or JScript
maybe I'll go for js, that way it's all done locally... but how do I do it? can someone give me an example or point me to an example?
Best Regards,
Joćo Godinho
|
|
07-31-2007 11:39 AM |
|
|
Volv
Skinning Contest Winner
Posts: 1233 Reputation: 31
35 / /
Joined: Oct 2004
|
RE: Java or PHP.. or JScript
js wouldn't allow you to create a graph in an image form (ie. which can be right click > saved etc.), PHP would probably be the best way to go as it supports the GD library (you'll need to check with your web host though - or just try it and see if it works) and has perhaps some relatively simpler methods of creating such graphs depending on how you want it to look.
Most important is that you've planned how you're going to incorporate this PHP or JS into your script. If it's gonna be something done completely locally then JS is really the only way to go (if you want it to show in a browser), if the script user is going to have to visit a website then PHP is probably best. There are methods of doing this in a PlusWnd as well which would probably be most suitable for a script, but as I don't know what exactly you're trying to do it's a bit difficult to determine what's best for you.
This post was edited on 07-31-2007 at 12:52 PM by Volv.
|
|
07-31-2007 12:32 PM |
|
|
LifelesS
Full Member
Posts: 115 Reputation: 4
32 / /
Joined: Dec 2006
|
O.P. RE: Java or PHP.. or JScript
PHP allows you right click and save and my web host has PHP. I can do it locally with Java too, the user just needs to have Java Platform installed, I think basicly everyone has Java installed. Thinking that way, I could probably use Excel to build the graphic... but not all people have office installed, I think Java is more 'safe' that way.
Using PHP I could also make a database for each user that has the script so they could see diferent graphics from diferent months/weeks/days.
Or just to save it in the script file path instead of filling a database (since the host I'm on is free :\)
The script I'm trying to make basicly does some % statistics about the number of online contacts, etc etc, and I would like to use a bar/line chart for a more... 'eye catching' thing, I think it could be interesting.
Best Regards,
Joćo Godinho
|
|
07-31-2007 12:45 PM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
Joined: Mar 2003
|
RE: Java or PHP.. or JScript
quote: Originally posted by LifelesS
The script I'm trying to make basicly does some % statistics about the number of online contacts, etc etc, and I would like to use a bar/line chart for a more... 'eye catching' thing, I think it could be interesting.
You don't need any webservices for that, i'm sure you can do that perfectly well with GDI+
This post was edited on 07-31-2007 at 12:54 PM by Ezra.
|
|
07-31-2007 12:53 PM |
|
|
Nathan
Veteran Member
Yeah, "large dimensions" ;)
Posts: 2984 Reputation: 76
– / /
Joined: Apr 2005
|
RE: Java or PHP.. or JScript
However, the user has to have Javascript enabled, and if they don't it wont work at all.
In most case's I would choose PHP because like so many people have said that it can be saved by the user. Also with php you can save it onto the server.
|
|
07-31-2007 01:04 PM |
|
|
matty
Scripting Guru
Posts: 8336 Reputation: 109
39 / /
Joined: Dec 2002
Status: Away
|
|
07-31-2007 01:09 PM |
|
|
Ezra
Veteran Member
Forgiveness is between them and God
Posts: 1960 Reputation: 31
37 / /
Joined: Mar 2003
|
RE: Java or PHP.. or JScript
quote: Originally posted by Napbree
However, the user has to have Javascript enabled, and if they don't it wont work at all.
In most case's I would choose PHP because like so many people have said that it can be saved by the user. Also with php you can save it onto the server.
But he's talking about msgplus scripts right? not browser Javascript?
|
|
07-31-2007 01:30 PM |
|
|
Volv
Skinning Contest Winner
Posts: 1233 Reputation: 31
35 / /
Joined: Oct 2004
|
RE: Java or PHP.. or JScript
quote: Originally posted by Ezra
But he's talking about msgplus scripts right? not browser Javascript?
Scripts use JScript, not Javascript.
|
|
07-31-2007 01:34 PM |
|
|
Pages: (3):
« First
[ 1 ]
2
3
»
Last »
|
|