Jump to content

Birdmansplace

Members
  • Posts

    170
  • Joined

  • Last visited

Everything posted by Birdmansplace

  1. this doesnt work. and cant figure out why. no matter what ip i give it says off line. thanks for the help
  2. only one problem. regardless of the state thecomputer is i get online no matter what
  3. thanks... code that works for me <?php include("html/sidebar.html"); ?> <div id="mainContent"> <h1> Main Content </h1> <p><?php $ping_ex = exec("ping -c4 127.0.0.1", $ping_result, $pr); if (count($ping_result) > 1){ echo 'Ping online - response'; } else { echo 'Ping offline - response'; } ?>
  4. been searchin the site/web and found code thats simple but doesnt work. I have a personal web server running with various things and a place to upload or down load files from out side my lan. I am lookin for a basic code that can use the servers system host file to ping the rest of the network computers. Simple as Computer a: on or off, computer b,c,d,e and so on. no need for time just a single request to find out if its on or not. thanks
  5. Well it does work but it doesn't to the out side. so i just set it back to the way it was and test it another time
  6. Just did a major change. What does everyone think. I do know my code is still not valid.
  7. About the website not all loading. There is one part of my site that runs on another computer and i have been having issues with that computer. but i think have it figured out. I like the lay out i have now but wish i new more about css. I am html pron most of the time. I may go and do another hole rewrite of everything. I just have spent so much time on it already i hate starting over. I need to find something that works and that I understand. So thats the reason for tables. Helps me find info when i forget where its at. If i can get a template going of like the things you said above it would be and easyer change over. But o well for now. Also trying to find an easy graphics program to make better ones. I have been using gimp
  8. thanks. didn't know i have to make it in its own file. it works!
  9. <?php $url = "http://THIS IS WHERE I BUT LINK I WANT TO LOAD?"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $output = curl_exec($ch); $info = curl_getinfo($ch); if ($output === false || $info['http_code'] != 200) { header("Location: AND IF NOT FOUND PUT REDIRECT HERE?"); }else{ header("Location: $url"); } ?> i am kinda lost, this is what i am doing <iframe id="ListFrame" style="width:78%; height:250px; border:1px" src=" <?php $url = "http://http://www.webname.com:100/stats/server.php"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $output = curl_exec($ch); $info = curl_getinfo($ch); if ($output === false || $info['http_code'] != 200) { header("Location: http://192.168.x.xx/stats/server.php"); }else{ header("Location: $url"); } ?>"> </iframe>
  10. i am wounder if its possible to have a redirect to another page if the first one times out or isn't there. so say you go to www.yoursite.com/index.php and for some reason it doesn't load or isnt there it would take you to /index1.php? If that makes any sence. I am running a web site off my home connection and theres a few pages that some info i can't see cause of being hosted on another computer on my network and would like to see how the page looks and so on to the "world". My index page loads an iframe from another computer on my network so to the world i have to open another port so... and the only other way to do this from my knowledge is to make a second page the does everything localhost.
  11. Lol i think i need sleep. Hey russell is there anyway to add a close window command to the script. that way when i click on the link the programs load and do there thing and then the window closes?
  12. Well i guess i tryed. nothing i seem to do with all the above info doesn't work. Anyone else have any ideas or something. Other wise no big deal.
  13. Warning: fopen(steam://) [function.fopen]: failed to open stream: Invalid argument in C:\xampp\htdocs\test\testlink.php on line 3 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\test\testlink.php:3) in C:\xampp\htdocs\test\testlink.php on line 4 dam fopen
  14. Warning: fopen(steam://) [function.fopen]: failed to open stream: Invalid argument in C:\xampp\htdocs\test\testlink.php on line 10 Warning: Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\test\testlink.php:3) in C:\xampp\htdocs\test\testlink.php on line 12
  15. page just reloads even with content in it given that it goes between // and "
  16. <a href="steam://connect/ip:port">steam</a> <a href="teamspeak://ip:port?nickname=YOURNICK?loginname=YOURLOGIN?password=YOURPASS">teamspeak</a> I am woundering if there is a way to have both these work at the sametime. Meaning one click on the link and both steam and teamspeak load. Any ideas or do i just have wish-full thinking.
  17. thanks for the boost. I have gone through and changed alot of things i just have to go through all my html files. have to weed out the double info. So basicly all the crap i have displayin should be after <body>. I have set up overall_header and footer.html and everyother page with its own html. So would it be smart to put <body> tag last in the header and then close it in the first line of the footer?
  18. well i am .css validated. php code on the other hand i can't stop getting errors. I fix and error and it tells me to do one thing. so i do that and go validate again and tells me its still wrong. So the hell with that.....
  19. well i made some changes. code is still not valid but i am slow at that. I changed background and nav bar back ground and workin on changin all the text to the same size. I could use some ideas on what color for the .: (page name text) :. and font. And anything else
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.