Jump to content

redgunner

Members
  • Posts

    31
  • Joined

  • Last visited

    Never

Everything posted by redgunner

  1. Hey I have a website where a user can click English or Spanish but I was thinking I could use javascript so that when they click the English Flag, the text changes to English or the Spanish Flag to Spanish... How could I do this?
  2. $headers = 'From: user@domain.com' . "\r\n" . 'Reply-To: user@domain.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); How do I replace the value user@domain.com with the value entered $_POST['emailaddress'] from the previous webpage with a form?
  3. $message = 'Hi ' . $_REQUEST["fullname"] . ' How are you?!; Is this an efficient way of doing this?
  4. $SMS->send('44123456789', 'SMS Alert Sent'); This is my above code which works fine, however I want it do the following; $SMS->send('44123456789, 'SMS Alert from $_REQUEST["emailaddress"]'); What do I need to do? Thanks in advance!
  5. Hey, How do you log all IP addresses to a file and also if a port number is open? Can this be done in php, i'm still new to all this... thanks for any help or advice.
  6. Hey This is my code <? $imglist=''; $img_folder = "images/users/"; mt_srand((double)microtime()*1000); $imgs = dir($img_folder); while ($file = $imgs->read()) { if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file)) $imglist .= "$file "; } closedir($imgs->handle); $imglist = explode(" ", $imglist); $no = sizeof($imglist)-2; $random = mt_rand(0, $no); $image = $imglist[$random]; echo '<img src="'.$img_folder.$image.'" border=0 width=166 height=134><br />'; print $image ?> as you can see on the lastline is $image and it displays ImageName.jpg however I want it to display only ImageName and not the extension.
×
×
  • 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.