-4

I was looking for all possible ways to get the G.P.S. X,Y coordinates with altitude from the web browser and the cell phone device / smart watch without any JavaScript. 3 foot radius with a 3 foot altitude. JavaScript is not allowed in this project. The built in HTML5 GeoLocation stuff all use JavaScript tags and functions. The built in P.H.P. G.P.S. X,Y Coordinates functions and libraries stuff does not work and relies on some kind of external system.

This right here, I can't get it to work, it's bogus: https://www.php.net/manual/en/book.geoip.php

The built in HTML5 GeoLocation stuff works, but I refuse to use any JavaScript in this project: https://www.w3schools.com/html/html5_geolocation.asp

The G.P.S. X,Y coordinates with altitude go into a 24 hour log file separated into organized directories by day, month and year. The log updates every 3 - 5 seconds to track the movement of the device such as a smart watch, cell phone or laptop. The logs are hyperlinked to go to Google Maps to show the G.P.S. X,Y coordinates trail of the device so it can always be found. This is being used to track the whereabouts of users down to 3 feet radius and 3 feet altitude on the system by the admins. This is being written to track our field agents whereabouts down to 3 feet radius and 3 feet altitude. I have to state that. If I could do it down to 1 inch that would be about as good as the CIA.

I was also looking to see how I could make this work on P.H.P. 8 with the newest Zend version without having to rewrite the S.Q.L. statements in PDO. I don't like PDO because the driver is stupid. I did get it to work on P.H.P. 8 by excluding a few things and by switching it over to the MySQLi / Improved driver and then by using the MySQLi / Improved P.H.P. statements, but it goes blank after I include some modules. I can't find the bug / culprit.

I was also looking to see if I could get someone to show me how to get the live video camera feed of a device such as from a web browser and a cell phone by using the built in software / hardware driver in the OS with only P.H.P. programming code.. it worked when I did it but the video data won't fill up the temporary file on the server and cap it at 4GB automatically.. also the video comes out choppy even with 720p on the local network. This is for recording live videos from the device itself by transmitting the video stream from the camera device through the web browser, smart glasses or the cell phone to the server running this and by populating a .MP4 file with a randomized name that caps at 4096MB and then moves the file to the Video/Live directory in the user directory so the users can record live videos in 720p/i or higher resolution and store it in their profile wall similar to Facebook and Twitter.

Finally I was looking to rice the S.Q.L. queries. I noticed when more than 100 people are simultaneously connected to the server with this it lags out. I was looking to make it super fast while having 1,200 unique simultaneous concurrent connections constantly adding data. I tested it on a shared host server, virtual server on a shared server. What do I need to do ? Setup a server rack with 6 or more servers and separate them into x2 SQL servers, x1 web server, x2 data storage servers and another one for 1,200+ concurrent connections without lag or stalling ?

This is my project

https://github.com/GCJohnsonChev/CerberusCMS_CurrentDevelopment/tree/main/Cerberus

Open video camera and store video stream with the built in software / hardware driver with only PHP code. Use MySQL Improved driver and no PDO statements to make it work on PHP version 8. Get GPS Coordinates X,Y and altitude to 3 feet radius and 3 feet altitude without any JavaScript code. Only pure PHP code.

enter image description here

enter image description here

enter image description here

enter image description here

  • It's not the platform that is wrong, it's what/how you are asking. You have a long essay of a question. I appreciate you want to give background details etc... Why can't it be simplified to 2 paragraphs at most? This means ask about the **one most important part** to solve right now, eg: "How to play a video thru PHP"? Or maybe it is "How to get GPS coordinates in PHP"? ... For Geo-location in web browser, you need Javascript or else forget it. – VC.One Sep 02 '23 at 22:42
  • **PS:** PHP runs from the server-side (it doesn't know anything about the device) but your required Geo-location is held at client-side (and specific to the device) so that's why we recommend using JS for client-side (device) information extraction. You can obfuscate JS code, you can also run it on the web page dynamically (add/remove code whenever needed, even using for just a few milliseconds). So why not have a PHP function that adds JS code to read location, pass the numbers back to your PHP function, then finally JS code removes itself (target and delete a specific ` – VC.One Sep 02 '23 at 22:44
  • None of that stuff matters. Even if there is any JS code that is "secure" in the source code it's still possible to a bunch of hacks like buffer overflows in the browser or on the server to get priv escalation to send root commands. JavaScript cannot be secured. The only way to beat the hacks is to filter out all JS code injections from the URL and input forms as well as not use any JavaScript code in the source code. – Gcnord1008 Sep 03 '23 at 02:57
  • @VC.One actually that seems like a good idea. How can a function be written to insert the JS code into the web page temporarily on 1 refresh and then remove it on the next one ? – Gcnord1008 Sep 03 '23 at 03:03
  • JS code obsfugation doesn't do anything for security if the project is open source because everyone will figure out how to hack it. JS code is not secure at all and it can never be secured. That's why Fagbook and Twitter get hacked every day. – Gcnord1008 Sep 03 '23 at 03:12

0 Answers0