Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-20-2008, 11:38 PM   PM User | #1
o0O0o.o0O0o
Senior Coder

 
o0O0o.o0O0o's Avatar
 
Join Date: Jan 2008
Location: C:\Windows\System32
Posts: 1,018
Thanks: 19
Thanked 9 Times in 9 Posts
o0O0o.o0O0o is infamous around these parts
Linking PHP with satellite

hi friends ,


I am working a some defence project ..(... sounds interesting? ..)


I have to link the satellite parameters with the php language.
I should be able to control the temperature , modulation , compression algorithm , latitide etc.


Do anyone have any idea or even close to it
o0O0o.o0O0o is offline   Reply With Quote
Old 02-20-2008, 11:49 PM   PM User | #2
GJay
Senior Coder

 
Join Date: Sep 2005
Posts: 1,791
Thanks: 5
Thanked 36 Times in 35 Posts
GJay is on a distinguished road
it depends entirely on what the satellite will listen to - do you have an API?. Will your code be running on the hardware, or will you be connecting remotely? Will this be over HTTP, or something else? Does the satellite have an IP address? Does it understand XML, or some other kind of command-language? You've given next to no information, how can you expect anyone to help?
__________________
My thoughts on some things: http://codemeetsmusic.com
And my scrapbook of cool things: http://gjones.tumblr.com
GJay is offline   Reply With Quote
Old 02-21-2008, 12:03 AM   PM User | #3
o0O0o.o0O0o
Senior Coder

 
o0O0o.o0O0o's Avatar
 
Join Date: Jan 2008
Location: C:\Windows\System32
Posts: 1,018
Thanks: 19
Thanked 9 Times in 9 Posts
o0O0o.o0O0o is infamous around these parts
Initially i have the satellite simulation harware and yes it has an ip address
I don;t have an api and i am connecting it remotely through http


Initially they were using unix socket prograaming to send some commands and test the system
, but they want to test the system remotely via web interface . As a member of the group i told them i will try if something can be done with php

i have no idea how to do that , but i want to give a try
o0O0o.o0O0o is offline   Reply With Quote
Old 02-21-2008, 12:21 AM   PM User | #4
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,604
Thanks: 2
Thanked 399 Times in 392 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
I don't think this would be a good implementation of PHP. You would have to serve the page from the satellite, and submit a form to it to change anything. The UNIX socket programming(I'm guessing C?) they're using now is probably the best way.
Inigoesdr is offline   Reply With Quote
Old 02-21-2008, 08:01 AM   PM User | #5
GJay
Senior Coder

 
Join Date: Sep 2005
Posts: 1,791
Thanks: 5
Thanked 36 Times in 35 Posts
GJay is on a distinguished road
there's no reason you couldn't sit a web front-end on top of it though, and then call some underlying code to do the interaction, either with PHP or something else.

PHP can write and read to sockets quite easily as well (fsockopen() and then fread() and fwrite(), just as you do with files).
__________________
My thoughts on some things: http://codemeetsmusic.com
And my scrapbook of cool things: http://gjones.tumblr.com
GJay is offline   Reply With Quote
Old 02-21-2008, 03:24 PM   PM User | #6
Inigoesdr
Super Moderator


 
Inigoesdr's Avatar
 
Join Date: Mar 2007
Location: Florida, USA
Posts: 3,604
Thanks: 2
Thanked 399 Times in 392 Posts
Inigoesdr is a jewel in the roughInigoesdr is a jewel in the roughInigoesdr is a jewel in the rough
Right, it's possible. But it's by no means probable. PHP depends on other things(webserver, etc.), while the compiled C code would be much more stable, and less likely to encounter any outside errors.
Inigoesdr is offline   Reply With Quote
Old 02-21-2008, 10:48 PM   PM User | #7
o0O0o.o0O0o
Senior Coder

 
o0O0o.o0O0o's Avatar
 
Join Date: Jan 2008
Location: C:\Windows\System32
Posts: 1,018
Thanks: 19
Thanked 9 Times in 9 Posts
o0O0o.o0O0o is infamous around these parts
i know C code is much more stable , but we want a good web front end.
I have to first show them samples how thimgs work and the

problems or advantages or disadvantages are will be seen later on.

we are not any way moving from C to php but , just want to add extra features of web

I think every problem can be solved by some means . Things which may cause errors can be taken care of
o0O0o.o0O0o is offline   Reply With Quote
Old 02-21-2008, 11:44 PM   PM User | #8
bcarl314
Mega-ultimate member


 
Join Date: Jun 2002
Location: Winona, MN - The land of 10,000 lakes
Posts: 1,855
Thanks: 1
Thanked 45 Times in 42 Posts
bcarl314 will become famous soon enough
Not to mention reliable...

I can just see it now.

Sitting at the web site click "Change Z -500m / s"

Satalite starts decending

Click button "stop descent"

error 404

Satallite burns up on re-entry!

Oh well, there goes another $15 billion
bcarl314 is offline   Reply With Quote
Old 02-22-2008, 12:24 AM   PM User | #9
o0O0o.o0O0o
Senior Coder

 
o0O0o.o0O0o's Avatar
 
Join Date: Jan 2008
Location: C:\Windows\System32
Posts: 1,018
Thanks: 19
Thanked 9 Times in 9 Posts
o0O0o.o0O0o is infamous around these parts
Quote:
Sitting at the web site click "Change Z -500m / s"

Satalite starts decending

Click button "stop descent"

error 404

Satallite burns up on re-entry!

Oh well, there goes another $15 billion

Any thing is first tested several times and only then it is made live.
I think i have a test in my mind ehich i will definitely try


Code:
. . . . . . .  findTarget.php . . .. 

finding target . .. . .. ..

Target found . . .. 

Missile Loaded . . . .. . . 

Ready for Attack  . . . . . .. .

Are you sure you want to attack the location  Winona, MN - The land of 10,000 lakes

he he guess what i will be pressing . . . .
o0O0o.o0O0o is offline   Reply With Quote
Old 02-22-2008, 01:38 AM   PM User | #10
outseeker
Regular Coder

 
Join Date: Feb 2008
Location: Australia baby!
Posts: 143
Thanks: 6
Thanked 3 Times in 3 Posts
outseeker has a little shameless behaviour in the past
hahaha I wish I could help on this one! Did you get anywhere on your own mate?
__________________
outseeker - http://outer.reaches.dyndns.org/index.php
I hope this helped someone. Due to this forums lame rep system penalising me for nothing, and admins inability to do anything about it, I'm sorry to say I will no longer be online here. Pride is important. Good Luck All.
outseeker is offline   Reply With Quote
Old 02-22-2008, 02:30 AM   PM User | #11
o0O0o.o0O0o
Senior Coder

 
o0O0o.o0O0o's Avatar
 
Join Date: Jan 2008
Location: C:\Windows\System32
Posts: 1,018
Thanks: 19
Thanked 9 Times in 9 Posts
o0O0o.o0O0o is infamous around these parts
Currently i am reading the hardware manual of the satellite system. i will see how harware interacts with software then i will see how thing goes
o0O0o.o0O0o is offline   Reply With Quote
Old 02-23-2008, 02:39 PM   PM User | #12
outseeker
Regular Coder

 
Join Date: Feb 2008
Location: Australia baby!
Posts: 143
Thanks: 6
Thanked 3 Times in 3 Posts
outseeker has a little shameless behaviour in the past
Keep us posted will you? Sounds like a very interesting idea! I would try to help if I can..
__________________
outseeker - http://outer.reaches.dyndns.org/index.php
I hope this helped someone. Due to this forums lame rep system penalising me for nothing, and admins inability to do anything about it, I'm sorry to say I will no longer be online here. Pride is important. Good Luck All.
outseeker is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 07:02 AM.


Advertisement
Log in to turn off these ads.