Search the Community

Showing results for tags 'script'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH


  • Community Calendar




Website URL








Found 27 results

  1. Please Wotz The Difference Between And nd thier wel as wen nd wer to use them
  2. I found a code to automatically connect people on linkedin, but it is not working. It says, illegal character. Found it here What is wrong?
  3. Hello. Here I have a VBScript which shows the installed programs of the local machine in a txt-file with name and versionnumber. What I want is filter some programs, so you don't see them in the txt-file. For example Microsoft Word 2013 and Microsoft Excel 2013. Can someone help me with this? See the script as attachment. softwarelist with filter.txt
  4. Hello everyone here m new i need help if u can do i want make a mp3 music site with download fecture so anyone can explan it how i can make i want show mp3 file detail like airtest , file name , size, album name and then show 3 type of music download option like 48,128,320kbps if u know how i done plz help me for this
  5. Hello, I'm trying to reload only a script instead of entire page. And I want to apply it in an ajax script. How could I do that? My web contains a map(script of openlayers) and I put data into the map. So when I remove this data by a button I would like reload only the map. Here is my code. It only shows an alert if the object has been removed or not: // Autor: @jqcaper// Configuraciones Generalesvar nombre_tabla_pozos = "#tabla_pozos"; // idvar nombre_boton_eliminar_pozo = ".deletepozo"; // Clasevar nombre_formulario_modal_pozo = "#frmEliminarpozo"; //idvar nombre_ventana_modal_pozo = "#pozoModal"; // id// Fin de configuraciones$(document).on('ready',function(){ $(nombre_boton_eliminar_pozo).on('click',function(e){ e.preventDefault(); var Pid_pozo = $(this).attr('id'); var name_pozo = $(this).data('name'); $('#modal_idPozo').val(Pid_pozo); $('#pozo_name').text(name_pozo); }); var options_pozo = { success:function(response) { if(response.status=="True"){ alert("¡Object removed!"); var idPozo = response.pozo_id; var elementospozo= $(nombre_tabla_pozos+' >tbody >tr').length; if(elementospozo==1){ location.reload(); }else{ $('#tr'+idPozo).remove(); $(nombre_ventana_modal_pozo).modal('hide'); } }else{ alert("¡There was an error when remove!"); $(nombre_ventana_modal_pozo).modal('hide'); **RELOAD SCRIPT }; } }; $(nombre_formulario_modal_pozo).ajaxForm(options_pozo);}); Thank you very much!
  6. Does anyone know how I can get the Text Image to be in the same line as the search bar? Right now the Image sits on top of the Search Bar. This is what I have for the code so far... <!DOCTYPE html><html><script> (function() { var cx = '015893638143991805514:c78o5hkpg04'; var gcse = document.createElement('script'); gcse.type = 'text/javascript'; gcse.async = true; gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//' + cx; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gcse, s); })();</script><body><div style="background-color:white; color:white; margin:15px 0px 0px 0px; padding:0px"><img src="" border="0" width="220" /><gcse:search></gcse:search></div> </body></html>
  7. Hi all PHP newbie and first post! I hope someone can help. I have looked at some of the tutorials but still can't get my head around how to get the data from within a PHP script. Trying to create a form with two fields "Date" and "Channel" to look at the 'calldate' and 'channel' columns and then give a count result, so just want to find whatever specified on the form and give the number of ocurrences found grouped by date. Ie, how many ocurrences for specified 'chanel' %CLI/1234567% for a given date. Thanks
  8. Hi there, I´m new at this forum and a beginner with PHP. I used the here offert "PHP - Complete Form Example" and it works fine. Thanks for that.But the submit button just proves the form and doesnt send the variables to the next page. Does anyone know a way to send the proven variables to another page? I tried: 1) Print the variable on my secound page with echo $var; --> that didnt work. I guess my secound page doesnt know where to get the variable from. I also dont know where and if my variables are saved after I press the submit button on my page. 2) Create two actions in the form like <form action="<?php echo htmlspecialchars($SERVER[...]);?>"> action=page2.php method="post"> That also didnt work. Probably because you cant use 2 actions in one form. 3) I dont want to work with url links, because you can see the variables in the url. 4) I dont want to work with sessions. 5) One of my ideas was to work with another php-script after my form, which will send my variables from the form to the secound page. I figured out how to activate the scrip, when the form is filled out correctly, but I have no idea how to send my data. How would it work with the here offert form? Thanks for your help guys.
  9. Looking for a code that's uninfected, preferably code that you can post using the Facebook script code tags. Does anyone have a script code for tagging all frinds in a post, if not then .... Just like all the rest of the auto tag scripts for Facebook on youtube they are not working. I have found one script that works but I can't post what I want, I am not allowed to tag the post that I want. I am only allowed to post what the creator wants me to tag. Make sense? Can you edit the script to allow me to post what I want then tag all my friends?
  10. the thing whit this pagination script is that it works, but then thing is that it concatenates all of my "titles" into on link. But if i take away the concatenation then the pagination will only display one item from my database. include "connect.php"; $count_query = mysqli_query($con, "SELECT NULL FROM videos"); $count = mysqli_num_rows($count_query); if(isset($_GET['search'])) { $page = preg_replace("#[^0-9]#","",$_GET['search']); } else { $page = 1; } $perPage = 2; $lastPage = ceil($count/$perPage); if($page < 1) { $page = 1; } else { if($page > $lastPage) { $page = $lastPage; } } $limit = "LIMIT " . ($page - 1) * $perPage . ", $perPage"; $query = mysqli_query($con, "SELECT * FROM videos ORDER BY id DESC $limit"); if($lastPage != 1) { if($page != 1) { $prev = $page - 1; $pagination .= '<a href="pagination.php?search='.$prev.'">Previous</a> '; } if($page != $lastPage) { $next = $page + 1; $pagination .= '<a href="pagination.php?search='.$next.'">Next</a>'; } } while($row = mysqli_fetch_array($query)) { $title .= $row['title'] . "<br />"; $url .= $row['url']; $description .= $row['description'] . "<br />"; } echo "<h3><a href='$url'>$title</a><h3> $description"; echo $pagination;
  11. does anyone know how i can make a php video uploader script?
  12. Hi,i need help for a script that on a evet or condition to take screen shot ot save the web page on my PC. Can you help methe event is when its played a sound ... using firefox and Greasemokey to start the script Pls help we thank you
  13. Hello, i'm wondering is it possible to pass variable inside <script></script> to another <script></script> field. Example i have <script>var message = "Hello";</script><script>alert(message);</script> I know i could add them together in this script i write, but my actual codes is separating the scripts.
  14. I want to upload multiple files only with php.for example like my picture.when pressing the Add button, the file appears under the Add button.and after selecting a file, press the update button when the data is saved to the database.I want your help.I was confused to find references to complete my work.thank you
  15. Can someone please give me some example code so I can link a webpage to another using javascript? This is my code at the moment:- document.onkeydown = function(e) { e = e || window.event; // because of Internet Explorer k = e.which || e.charCode || e.keyCode; // because of browser differences... if (k == 49 && !e.altKey && !e.ctrlKey && !e.shiftKey) { } else { return true; } return false; } This won't link me to the other link when "1" on the keyboard is pressed... Please Help!
  16. Hi All, I'm new to web programming in general and need some advice for a site that I'm trying to pull together. The best I can do is try to describe what I'm trying to do because I really have no idea of how to implement this idea.The primary purpose of the site is to be a blog with separate directories for different themes. I was hoping to have a navigation menu on the side of the site with sort of an archive list in which a user could select the article they wish to read by selecting their way through directories as displayed in the menu. I want to be able to just bring up the article without having to redirect to a different page or reload the current one when an article is selected.I would be putting this together with Dreamweaver, but have no idea what to build this element in (JScript, VBScript, or flash item?) Thanks for any advice or guidance!
  17. My goal is to send an email at the time indicated below. (Every weds at 12). Here is my current code: <?php date_default_timezone_set('MST');$file = $_SERVER['DOCUMENT_ROOT'] . "/entries.txt"; //Path to your *.txt file$contents = file($file);$string = implode("", $contents); $to = "";$subject = "My subject";$txt = $string;$header = "From:"; $d = date( "w");$h = date( "G"); if ($d == 3) {if ($h == 12) { mail($to,$subject,$txt,$header);file_put_contents("entries.txt", "");}} ?> It works great, however if no one visits the page at 12 that day it never gets sent. How can I make it so it sends no matter what? Thanks.
  18. Are there any articles from W3Schools about CGI scripts? I want my forms to send info like username and password to a server so I can process that information with a script in like a mySQL database (so that the user can log on to their customized page in the future). I think that's right at least. Two questions: First: Where and how can I utilize a server to contain this user login info(for now)? Would I use like GoDaddy to get my own server?Second question: How would a CGI script have to be coded in order for it to process this info for later use on my website? or do I need to use PHP for that. I've heard that mentioned in conjunction with mySQL databases.I know this all sounds pretty vague, but I'm continually doing more research on the topic, just wanted to know if anyone could shed some light on the topic. This is a great site, thanks for any and all replies.
  19. hello w3schools again, i just have a question this time .today i was trying to adding a upload script to my personal website . by following this tutorial: so here is my question.if im doing the saving part ''with'' the restrictions on it. what is the syntax for uploading a .torrent/.php/.html/ect file... i mean, before a filetype, there is somfthing that needs to be typed, like now, (image) ect...what is the syntax for making the part of a PHP and TORRENT file. thanks in advance.Hoping answers soon.
  20. I would like to do a script that includes content from pages according what the user chooses. Example If the users chooses Contact us from the menu I would like to have the index page displayed with the contact us content( ). I know it is done by GET requests but don't know how to do it or what is it called. Does anyone have a script or a tutorial on how to do it? Or at lest what is it called so I find a tutorial. Thanks before hand.
  21. I have this php script stop.php <?phpinclude('ssh_con.php');$stop = 'screen -S testapplication -X quit';ssh2_exec($con, $stop);mysql_query("UPDATE servers SET Online=0 WHERE Owner='".$_SESSION['Username']."'");echo "<meta http-equiv='refresh' content='0;index.php'>";?> now i want to execute/call/get this page/script using javascript onclick to execute the code and the page refreshes itself. Can anyone guide me to do this? Thanks before hand.
  22. hi guys have this script to deal with the email it works great when you send from G-mail to script but ANYTHING else it does not handle the attachment and i just dont understand whats going on HELP!!! #!/usr/bin/php -q<?php// Use -q so that php doesn't print out the HTTP headers// Anything printed to STDOUT will be sent back to the sender as an error!// Config options$max_time_limit = 600; // in seconds// A safe place for files with trailing slash (malicious users could upload a php or executable file!)$save_directory = "/some/folder/path";$allowedSenders = Array('', 'Bob the Builder <>'); // only people you trust!$send_email = TRUE; // Send confirmation e-mail?$save_msg_to_db = TRUE; // Save e-mail body to DB?$db_host = 'localhost';$db_un = 'db_un';$db_pass = 'password';$db_name = 'db_name';// ------------------------------------------------------set_time_limit($max_time_limit);ini_set('max_execution_time',$max_time_limit);global $from, $subject, $boundary, $message, $save_path,$files_uploaded;$save_path = $save_directory;$files_uploaded = Array();function formatBytes(&$bytes, $precision = 2) { $units = array('B', 'KB', 'MB', 'GB', 'TB'); $bytes = max($bytes, 0); $pow = floor(($bytes ? log($bytes) : 0) / log(1024)); $pow = min($pow, count($units) - 1); $bytes /= pow(1024, $pow); return round($bytes, $precision) . ' ' . $units[$pow];}function process_part(&$email_part){ global $message; // Max two parts. The data could have more than one \n\n in it somewhere, // but the first \n\n should be after the content info block $parts = explode("\n\n",$email_part,2); $info = split("\n",$parts[0]); $type; $name; $encoding; foreach($info as $line){ if(preg_match("/Content-Type: (.*);/",$line,$matches)){ $type = $matches[1]; } if(preg_match("/Content-Disposition: attachment; filename=\"(.*)\"/", $line,$matches)){ $name = time() . "_" . $matches[1]; } if(preg_match("/Content-Transfer-Encoding: (.*)/",$line,$matches)){ $encoding = $matches[1]; } } // We don't know what it is, so we don't know how to process it if(!isset($type)){ return FALSE; } switch($type){ case 'text/plain': // "But if you get a text attachment, you're going to overwrite // the real message!" Yes. I don't care in this case... $message = $parts[1]; break; case 'multipart/alternative': // Multipart comes where the client sends the data in two formats so // that recipients who can't read (or don't like) fancy content // have another way to read it. Eg. When sending an html formatted // message, they will also send a plain text message process_multipart($info,$parts[1]); break; default: if(isset($name)){ // the main message will not have a file name... // text/html messages won't be saved! process_data($name,$encoding,$parts[1]); }elseif(!isset($message) && strpos($type,'text') !== FALSE){ $message = $parts[1]; // Going out on a limb here...capture // the message } break; }}function process_multipart(&$info,&$data){ global $message; $bounds; foreach($info as $line){ if (preg_match("/boundary=(.*)$/",$line,$matches)){ $bounds = $matches[1]; } } $multi_parts = split("--" .$bounds,$data); for($i = 1;$i < count($multi_parts);$i++){ process_part($multi_parts[$i]); }}function process_data(&$name,&$encoding = 'base64' ,&$data){ global $save_path,$files_uploaded; // find a filename that's not in use. There's a race condition // here which should be handled with flock or something instead // of just checking for a free filename $unlocked_and_unique = FALSE; while(!$unlocked_and_unique){ // Find unique $name = time() . "_" . $name; while(file_exists($save_path . $name)) { $name = time() . "_" . $name; } // Attempt to lock $outfile = fopen($save_path.$name,'w'); if(flock($outfile,LOCK_EX)){ $unlocked_and_unique = TRUE; }else{ flock($outfile,LOCK_UN); fclose($outfile); } } if($encoding == 'base64'){ fwrite($outfile,base64_decode($data)); }elseif($encoding == 'uuencode'){ // I haven't actually seen this in an e-mail, but older clients may // still use it...not 100% sure that this will work correctly as is fwrite($outfile,convert_uudecode($data)); } flock($outfile,LOCK_UN); fclose($outfile); // This is for readability for the return e-mail and in the DB $files_uploaded[$name] = formatBytes(filesize($save_path.$name));}// Process the e-mail from stdin$fd = fopen('php://stdin','r');$email = '';while(!feof($fd)){ $email .= fread($fd,1024); }// Headers hsould go till the first \n\n. Grab everything before that, then// split on \n and process each line$headers = split("\n",array_shift(explode("\n\n",$email,2)));foreach($headers as $line){ // The only 3 headers we care about... if (preg_match("/^Subject: (.*)/", $line, $matches)) { $subject = $matches[1]; } if (preg_match("/^From: (.*)/", $line, $matches)) { $from = $matches[1]; } if (preg_match("/boundary=(.*)$/",$line,$matches)){ $boundary = $matches[1]; }}// Check $from here and exit if it's blank or// not someone you want to get mail from!if(!in_array($from,$allowedSenders)){ die("Not an allowed sender");}// No boundary was in the e-mail sent to us. We don't know what to do!if(!isset($boundary)){ die("I couldn't find an e-mail boundary. Maybe this isn't an e-mail");}// Split the e-mail on the found boundary// The first part will be the header (hence $i = 1 in our loop)// Each other chunk should have some info on the chunk,// then \n\n then the chunk data// Process each chunk$email_parts = split("--" . $boundary,$email);for($i = 1;$i < count($email_parts);$i++){ process_part($email_parts[$i]);}// Put the results in the database if neededif($save_msg_to_db){ mysql_connect($db_host,$db_un,$db_pass); mysql_select_db($db_name); $q = "INSERT INTO `emails` (`from`,`subject`,`body`) VALUES ('" . mysql_real_escape_string($from) . "','" . mysql_real_escape_string($subject) . "','" . mysql_real_escape_string($message) . "')"; mysql_query($q) or die(mysql_error()); if(count($files_uploaded) > 0){ $id = mysql_insert_id(); $q = "INSERT INTO `files` (`email_id`,`filename`,`size`) VALUES "; $filesar = Array(); foreach($files_uploaded as $f => $s){ $filesar[] = "('$id','" . mysql_real_escape_string($f) . "','" . mysql_real_escape_string($s) . "')"; } $q .= implode(', ',$filesar); mysql_query($q) or die(mysql_error()); }}// Send response e-mail if neededif($send_email && $from != ""){ $to = $from; $newmsg = "Thanks! I just uploaded the following "; $newmsg .= "files to your storage:\n\n"; $newmsg .= "Filename -- Size\n"; foreach($files_uploaded as $f => $s){ $newmsg .= "$f -- $s\n"; } $newmsg .= "\nI hope everything looks right. If not,"; $newmsg .= "please send me an e-mail!\n"; mail($to,$subject,$newmsg);} THIS SCRIPT COME FROM HERE
  23. If anyone is wondering how to redirect to a mobile site then this will be for you. This is a code that will automatically redirect from any page you place the code on. Its great for people who use mobile devices and come across your site, automatically they will be redirected. How is this so? Within the code you see "600", this means when a vistors via there mobile devices comes upon your site that is larger (your sites page width) then 600 will be redirected to your mobile site. <script type="text/javascript"><!--if (screen.width <= 600) {document.location = "mobile.html";}//--></script> Remember, change mobile.html to your mobile site and I would just leave the 600. I hope this has helped.
  24. Good morning all. I am not new to website design/development but am new to this forum. I have an urgent matter which needs to be resolved by Friday 9th. I have a testimonial script which works fine. It takes data from a form inserts to a database and a second script displays the testimonials for users to see. My problem is it doesn't have a facility where by an administrator can approve testimonials, as a result I have had two scams which to remove you have to delete from the database it's self. May I have some suggestions on how to go about solving this problem? Kind regards Adam
  25. I want to replicate this game I made in Scratch onto my site. javascript work? Is there a better option that won't cost me money? If javascript would work, how do i make it so that the object can move and bounce off walls?