dark_destroyer Posted May 26, 2010 Share Posted May 26, 2010 Hi All, I have done some basic PHP/MySQL Programming. I am playing about with an application for a phone, i want to send the information in its raw format to a location on my server. Basically I want to enter an IP address or URL into the application, then simply view the raw contents in a simple txt file. I have tried searching posts for a way to do this but came up short. Firstly, is what Im trying to do, possible. Secondly, can someone point me in the right direction to get started? Thanks, Dark Quote Link to comment https://forums.phpfreaks.com/topic/202981-data-loggin-via-php-is-it-possible/ Share on other sites More sharing options...
premiso Posted May 26, 2010 Share Posted May 26, 2010 Very possible. You can acheive this by setting a server on your local box and making it accessible to the world (note that this opens up security risks) and using a domain service like no-ip.com to have a "name" to send your phone to. To setup Apache on Windows see WAMP on Linux LAMP on Max MAMP ( I believe). Then you just have to setup the code you need. Quote Link to comment https://forums.phpfreaks.com/topic/202981-data-loggin-via-php-is-it-possible/#findComment-1063665 Share on other sites More sharing options...
dark_destroyer Posted May 26, 2010 Author Share Posted May 26, 2010 Hi thanks for the reply.I was hoping for a pointer in the right direction for code. Ii already have my server setup with apache and php.I just don't know where to begin with tryin to log data. Thanks Gggg Quote Link to comment https://forums.phpfreaks.com/topic/202981-data-loggin-via-php-is-it-possible/#findComment-1063852 Share on other sites More sharing options...
The Eagle Posted May 27, 2010 Share Posted May 27, 2010 Text file database. Quote Link to comment https://forums.phpfreaks.com/topic/202981-data-loggin-via-php-is-it-possible/#findComment-1064081 Share on other sites More sharing options...
dark_destroyer Posted May 27, 2010 Author Share Posted May 27, 2010 Hi The Eagle, Thanks for that, but will that not just log the users IP Address? or would log any raw data being sent from that IP? Thanks, Dark Quote Link to comment https://forums.phpfreaks.com/topic/202981-data-loggin-via-php-is-it-possible/#findComment-1064092 Share on other sites More sharing options...
ixicoding Posted May 27, 2010 Share Posted May 27, 2010 <?php echo $_SERVER['REMOTE_ADDR']; ?> is actually his signature. His reply was: "Text file database" Quote Link to comment https://forums.phpfreaks.com/topic/202981-data-loggin-via-php-is-it-possible/#findComment-1064098 Share on other sites More sharing options...
The Eagle Posted May 27, 2010 Share Posted May 27, 2010 dark_destroyer, My reply was "Text file database" so you can easily access it from your mobile device and read it easily. I don't really think I do understand your question though, what type of raw data are you trying to receive? Quote Link to comment https://forums.phpfreaks.com/topic/202981-data-loggin-via-php-is-it-possible/#findComment-1064144 Share on other sites More sharing options...
dark_destroyer Posted May 27, 2010 Author Share Posted May 27, 2010 Hi All, Sorry for the mis-read earlier. I dont need to access the info from my mobile. I have an application that sends the phones IMEI and Current GPS location, it can either send it via SMS which is fine as I can just setup an SMS Modem to recieve the messages. I want to be able to send it via GPRS to a "collector" on my site. The string that is sent is similar to this: #REP#changeconfig#3934#17#012120000007502#52.345334#-7.343555#272023113718099#200#Mode#2#8# What i want to do is simply store it in a txt or csv file for further analyses. Thanks, Dark Quote Link to comment https://forums.phpfreaks.com/topic/202981-data-loggin-via-php-is-it-possible/#findComment-1064163 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.