seriosbrad
-
Posts
4 -
Joined
-
Last visited
Never
Posts posted by seriosbrad
-
-
Would you look at that, it works! Thanks premiso you've been a great help!
-
Alright I have a link that generates an online/offline image according to the status of a server.
http://www.domain.com/script.php?ip=11.11.111.111&port=12354
By directly going to that link, it displays the image fine. However what I want to do is use that link like this:
<img src="http://www.domain.com/script.php?ip=11.11.111.111&port=12354">
and
[img=http://www.domain.com/script.php?ip=11.11.111.111&port=12354]
And have that turn into an image based on the status of the server.
Here is my script
<?php $ip = $_GET["ip"]; $port = $_GET["port"]; $timeout = 1; function ip($address){ list($ip,$port)=explode(":",$address); if($fp=@fsockopen($ip,$port,$ERROR_NO,$ERROR_STR,1)) { print "<img src='images/status/up.png'>"; fclose($fp); }else{ print "<img src='images/status/down.png'>"; } } ip("$ip:$port"); ?>
Please bare in mind that I am not a coder, I can understand some thing from copy+pasting and trial & error.
-
I've encountered this error more than once on my new shared host.
Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of fsockopen(). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /home/.fringer/seriosbrad/seriosfm.com/modules/mod_shoutcastextended.php on line 24
How can I work around this, or fix it?
Mail Reciept help
in PHP Coding Help
Posted
I have this script setup to send a mail to myself when someone fills out a form. What I want is the same thing mailed as a reciept to the person that filled out a form but only with a change of it's content. It should come from no-reply@domain.com so they can't reply to the reciept and the only change in the content that is mailed should be a line of added text like "This is a reciept of your inquiry - you can not reply to this"
$_GET['email'] gets their email from the form