Vcoderz Community
We create websites that have it all, beauty & brains
Lebanon Web Design & Development - Coddict
 

Go Back   Vcoderz Community > Computer Zone > Computers & Information Technologies

Notices

Computers & Information Technologies « Everything related to computers and internet. »

Reply
 
Share Thread Tools Search this Thread
Old 02-21-2009   #1
jadm
Registered Member
 
jadm's Avatar
 
Last Online: 07-21-2009
Join Date: Jan 2007
Posts: 138
Thanks: 60
Thanked 22 Times in 21 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default need help in PHP

hey,

i want to execute a .jar file in PHP

i can execute it using cmd : java -jar "filename.jar"

my problem inno i want on submit click button , i want to execute the file
example :

<?PHP if(isset($_POST['submit'])){

i want to echo the .jar here ya3ne when clicking submit bade yifta7 l .jar program

?>

any one can help ?

tanx in advance


jadm is offline   Reply With Quote
Old 02-21-2009   #2
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default

Sorry, but you cannot...
I don't know what are you trying to do with the JAR file, what is that jar file and what do you expect as output... I don't know if you know what are you doing...
If you want to stick to java then learn java applet and create one to satisfy your needs... Or, you can just implement what you want in another language (JavaScript, PHP...)
Google is offline   Reply With Quote
Old 02-21-2009   #3
jadm
Registered Member
 
jadm's Avatar
 
Last Online: 07-21-2009
Join Date: Jan 2007
Posts: 138
Thanks: 60
Thanked 22 Times in 21 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default

i have a .jar file as java , it is used to send files and u can chat between pc and mobile phone via bluetooth , i want to integrate it into my website , and im writing the website using PHP and mysql

any idea how i can integrate it?
jadm is offline   Reply With Quote
Old 02-21-2009   #4
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default

Quote:
Originally Posted by jadm View Post
i have a .jar file as java , it is used to send files and u can chat between pc and mobile phone via bluetooth , i want to integrate it into my website , and im writing the website using PHP and mysql

any idea how i can integrate it?
JAR files are like ZIP files, you cannot execute them with the internet browser... You have to extract the JAR file and get the JAVA classes and resources from it and use it on you website like this:
Code:
<applet width=300 height=300 code="ClassName.class"></applet>

I don't know If you know JAVA and what are classes...
But wait a minute, if you want to chat between your PC and your mobile via Bluetooth, then why INTERNET???!!!
Logically, you put this on your local host website on your own PC.
Google is offline   Reply With Quote
Old 02-21-2009   #5
jadm
Registered Member
 
jadm's Avatar
 
Last Online: 07-21-2009
Join Date: Jan 2007
Posts: 138
Thanks: 60
Thanked 22 Times in 21 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default

Quote:
Originally Posted by Edgard Chammas View Post
JAR files are like ZIP files, you cannot execute them with the internet browser... You have to extract the JAR file and get the JAVA classes and resources from it and use it on you website like this:
Code:
<applet width=300 height=300 code="ClassName.class"></applet>

I don't know If you know JAVA and what are classes...
But wait a minute, if you want to chat between your PC and your mobile via Bluetooth, then why INTERNET???!!!
Logically, you put this on your local host website on your own PC.
tanx edgard , yimkin ma3ak 7ha2 lol la shou hal tikhfi2 kilo

hmmmmm i want to create a website and i want new ideas ,

i created a banning system , and a tracking system , and integrated google maps so it track the ip address , what do u suggest to add new ideas? ideas btimche shou ma ken l subject tab3oul website , preparing for the final project
jadm is offline   Reply With Quote
Old 02-21-2009   #6
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default

Quote:
Originally Posted by jadm View Post
tanx edgard , yimkin ma3ak 7ha2 lol la shou hal tikhfi2 kilo

hmmmmm i want to create a website and i want new ideas ,

i created a banning system , and a tracking system , and integrated google maps so it track the ip address , what do u suggest to add new ideas? ideas btimche shou ma ken l subject tab3oul website , preparing for the final project
-Did you created a user login?
-Is the banning based on the IP address or on the user?
-You mean by tracking system a log for every user (IP, User Agent, Time) who visits the website? Or what?
-Make your website CSS based with a good layout.
-Follow the W3C standards.

-Make sure it is well secured. (If you want I can do a penetration test for your website)
-You don't need to make a CMS, but make an admin login where you can change things on the website from a CP (Changing news maybe).
-Take care of the SEO (Search Engine Optimization)... I can also help you with this...
-Optimize the web site speed (clean code, well optimized images, includes...)
-Put a Google analytics code i you website.
Google is offline   Reply With Quote
Old 02-21-2009   #7
jadm
Registered Member
 
jadm's Avatar
 
Last Online: 07-21-2009
Join Date: Jan 2007
Posts: 138
Thanks: 60
Thanked 22 Times in 21 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default

Quote:
Originally Posted by Edgard Chammas View Post
-Did you created a user login?
-Is the banning based on the IP address or on the user?
-You mean by tracking system a log for every user (IP, User Agent, Time) who visits the website? Or what?
-Make your website CSS based with a good layout.
-Follow the W3C standards.

-Make sure it is well secured. (If you want I can do a penetration test for your website)
-You don't need to make a CMS, but make an admin login where you can change things on the website from a CP (Changing news maybe).
-Take care of the SEO (Search Engine Optimization)... I can also help you with this...
-Optimize the web site speed (clean code, well optimized images, includes...)
-Put a Google analytics code i you website.
really tanx edgard for for ur help

*i created the tracking system based on IP address , and the banning system based on IP address

*i created a log file too ( fwrite and fread) , it will tell u the ip addres , the date wa2ta fet 3al website and the visited pages ,
* i created a website for staff , and a website lal ness , staff can take a look on the trakcing system and the banned ips , and the reason for the banning and which staff banned the ip , cuz every staff 3ando account .
and staff can change the content of the second website li bi fouto 3le l ness .

* this is a new idea , i have to create a search engine
* yea tzakarit now new idea i will try to create a voting system
jadm is offline   Reply With Quote
Old 02-21-2009   #8
Google

 
Google's Avatar
 
Last Online: 05-30-2013
Join Date: Jan 2008
Posts: 1,788
Thanks: 10,018
Thanked 1,100 Times in 651 Posts
Groans: 1
Groaned at 6 Times in 6 Posts
Default

Quote:
Originally Posted by jadm View Post
really tanx edgard for for ur help

*i created the tracking system based on IP address , and the banning system based on IP address

*i created a log file too ( fwrite and fread) , it will tell u the ip addres , the date wa2ta fet 3al website and the visited pages ,
* i created a website for staff , and a website lal ness , staff can take a look on the trakcing system and the banned ips , and the reason for the banning and which staff banned the ip , cuz every staff 3ando account .
and staff can change the content of the second website li bi fouto 3le l ness .

* this is a new idea , i have to create a search engine
* yea tzakarit now new idea i will try to create a voting system
-Banning system based on IP is not so good, because for example many users might have the same IP. This is done only in critical cases where the website is encountering a Denial Of Service attack from a certain source...
why would you want to Ban people since they are not users who can post or do something on the website?!
Plus, you don't need a whole staff to look at the banned IPs... One admin can do all this...

-I suggest you do a user registration where users can have an activity on the website, maybe by posting comments and managing their profiles... So now you can ban based on user.

-I didn't tell you to make a search engine, I talked about search engine optimization. This might not be needed for a project at university, but in real life you need it. Google for SEO if you don't know what I'm talking about.. However making a local search engine for your website is a good idea... (Making a search engine is another project, but you can put a google search box on your website for your website...)

-Voting system? based on what? IP address or user?!
Do an anti-bot for the voting system making sure that I cannot cheat with it!
Google is offline   Reply With Quote
The Following User Says Thank You to Google For This Useful Post:
jadm (02-21-2009)
Old 02-22-2009   #9
jadm
Registered Member
 
jadm's Avatar
 
Last Online: 07-21-2009
Join Date: Jan 2007
Posts: 138
Thanks: 60
Thanked 22 Times in 21 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Default

edgard , fi command bil CMD prompt when u type it it gives u all the commands li fik ta3miloun

nsit shou hiye , u have any ideas?

its help command

example : if i want to delete a system files , : DEL /..... f for forcing or midre shou lama iktoub del w 7hada shi byotla3le l commands li fine 2iktiboun bass nsit shou hiye l command

Last edited by jadm; 02-22-2009 at 09:03 AM.
jadm is offline   Reply With Quote
Old 02-22-2009   #10
xcoder
Ma ghayro
 
xcoder's Avatar
 
Last Online: 04-19-2018
Join Date: Dec 2005
Posts: 5,592
Thanks: 1,765
Thanked 4,201 Times in 2,361 Posts
Groans: 12
Groaned at 18 Times in 11 Posts
Default

I didn't read the whole conversation but PHP allows you to execute Linux commands, just keep away PHP from Microsoft, you want to deal with Apache the right way, have it on a Linux machine where it should be and you will have access to everything unlike MS Win.
__________________
http://twitter.com/danymoussa
xcoder is offline   Reply With Quote
Reply

  Vcoderz Community > Computer Zone > Computers & Information Technologies

Tags
php



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 11:58 PM.


Lebanon web design and development
Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Share