Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
4
Posts with Upvotes
4
Upvoting Members
4
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
~29.5K People Reached
Favorite Forums

39 Posted Topics

Member Avatar for Tko_1

I needed a script that would grab all the folders in the directory and add them to a dropdown list and allow the user to upload to there choosen folder. This is what i came up with. (upload script is not mine) Thought i would share.

Member Avatar for rproffitt
0
4K
Member Avatar for Tko_1

js file : function countdown(endT,callback) { var days,hours,minutes,sec,timer; end = new Date(endT); end = end.getTime(); //Get initial Date in Milliseconds, if (isNaN(end)) { alert('@ countdown.js @ "Invalid Date", valid format- mm/dd/yyyy hh:mm:ss TT '); return; } timer = setInterval(calculate,1000);//Timer to calculate remaining time function calculate(){ var current = new Date(); …

Member Avatar for AleMonteiro
0
559
Member Avatar for Tko_1
Member Avatar for Tko_1

So this code below is part of a install file within a calendar script, when i try to upload the file it disappears. I have cut the code down to these lines that will not allow it upload. I can even just add these lines to a test.php file and …

Member Avatar for diafol
0
155
Member Avatar for Tko_1

Hello so i have this encode/decode script <?php // Encoding key $key = "vns98ogavna5489hverz9np950yhz9gzx89fghjv9pv4598hj"; function encode($string,$key) { $key = sha1($key); $strLen = strlen($string); $keyLen = strlen($key); for ($i = 0; $i < $strLen; $i++) { $ordStr = ord(substr($string,$i,1)); if ($j == $keyLen) { $j = 0; } $ordKey = ord(substr($key,$j,1)); …

Member Avatar for Tko_1
0
244
Member Avatar for Tko_1

Right so as the title says im trying to show the selected option from my radio type to be highlighted. I know this can be done with css as it is done [here](http://jsfiddle.net/hekh8/) however i can not implement it within this script. Any help would be very appreciated, thank you. …

Member Avatar for gentlemedia
0
277
Member Avatar for Tko_1

This is not my code/script all hardwork came from Codelair Full script located [here](http://doheth.co.uk/codelair/php-mysql/scoreboard) I really hope i posted this in the correct section because im unsure which code will work best for this. As the name for the script gives this away it is a scoreboard. allows admin to …

0
183
Member Avatar for rajabhaskar525

sms.php <?php $info = date("d/m/y : H:i:s", time()); echo $info; if(isset($_POST['submit'])){ $number = $_POST['number']; $provider = $_POST['provider']; $message = $_POST['message']; if((is_numeric($number)) && (is_numeric($provider)) && ((strlen($message))<120) && ((strlen($number))==10) && ($provider<17) && ($provider>0)){ if($provider == '1'){$ext='@message.alltel.com';} elseif($provider == '2'){$ext='@cingularme.com';} elseif($provider == '3'){$ext='@mms.mycricket.com';} elseif($provider == '4'){$ext='@mymetropcs.com';} elseif($provider == '4'){$ext='@metropcs.sms.us';} elseif($provider == '4'){$ext='@metropcs.com';} elseif($provider …

Member Avatar for Bishnoi_1
1
2K
Member Avatar for dudegio
Member Avatar for Tko_1

This script will add a submit button on the next line to remove that line, I have done this before but in this script i can not seem to get it to work. i know im missing something simple. Im tring to have the submit be an image and also …

Member Avatar for Tko_1
0
209
Member Avatar for Tko_1

hello, when I echo $acfile; it shows up with the users name. when i try to insert the variable into the text field, the below code will show the value as blank. $HTML .= ' <input type="text" value="' . $acfile . '" id="contest-name" name="contest[name]" value="' . ( isset( $entry['name'] ) …

Member Avatar for broj1
0
100
Member Avatar for Tko_1

Hello, so the code i have gets the files in the directory and lists them in a dropdown. what im trying to do is rename the selected dropdown file with the input of the text field. error i get is: Warning: rename(test.php,) [function.rename]: No such file or directory in..... For …

Member Avatar for Tko_1
0
190
Member Avatar for Tko_1

Okay so i have a page when it is visted stores there ip to file and bans there ip access to a differant page. Problem i have is it will only ban the last visted ip, which i want to ban all ip's in the file. page1 which is visted …

Member Avatar for Tko_1
0
2K
Member Avatar for Tko_1

I have a script that search's for the word in the file just fine, I would like to echo the line number it was found on. Thank you. <html> <body> <form name="form" method="post"> input: <input type="text" id="search" name="search_box" style="background:#000006; color: #FF0000" /> </p> </p><input type="submit" name="submit" value="submit" /> </form> </body> …

Member Avatar for Tko_1
0
258
Member Avatar for Tko_1

What im tryig to do is add one line of code to all files at once Can this even be done ? I have tried reading all files in a directory then fopen to fwrite without any success. Any ideas ? Thank you

Member Avatar for Tko_1
0
203
Member Avatar for garyjohnson
Member Avatar for Tko_1

Basically i have the search script working well, but i need to replace the $input with $inputused if word is found. I have tried str_replace() with no luck any ideas? Thank you <html> <body> <form name="form" method="post"> <br><input type="text" id="search" name="search_box" style="background:#000006; color: #FF0000" /> <br><input type="submit" name="submit" value="Search for …

Member Avatar for Tko_1
0
175
Member Avatar for Tko_1
Member Avatar for Tko_1

Hello i am able to add icons next to files that end in these extentions, what im tring to do is to add icons next to directories. Any ideas ? Thank you a[href$='.zip'], a[href$='.rar'], a[href$='.gzip'] { background:transparent url(zip.jpg) center left no-repeat; display:inline-block; padding-left:40px; line-height:18px; }

Member Avatar for Tko_1
0
92
Member Avatar for raihanbd1000

There's actually alot of premade ones out there just google it. I have used this one before. [linky](http://codecanyon.net/item/dynamic-comment-system/149777?sso?WT.ac=search_item&WT.seg_1=search_item&WT.z_author=Adytzoo)

Member Avatar for diafol
0
144
Member Avatar for Tko_1

Hello again. I have this backup script to grab files/folders rar them and save them. What i have been tring to do is ignore certain files. ignore test.php within folder. Thank you <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script> <script type="text/javascript"> function submitform(){ $('#myForm').post("backup.php", $("#myForm").serialize()); } </script> </head> <form action="backup.php" method="post" id"myForm"> <input type="hidden" …

Member Avatar for Tko_1
0
198
Member Avatar for firelife12

Here's a flat file chat script i have used many time before, also very easy to alter to your needs. [Click Here](http://www.phptoys.com/download/chat-scripts.html)

Member Avatar for masterjiraya
0
225
Member Avatar for Tko_1

hello i only want to reshresh a part of a page <?php include 'index.php'; ?> is this possible ? Thank you

Member Avatar for LastMitch
0
74
Member Avatar for Tko_1

All i would like to do is insert an image next to the question. Im sure this is a very easy thing to do. I just cant seem to do it. any help would be great, thank you '<input type="hidden" name="questions[' + n + '][number]" value="' + n + '" …

Member Avatar for Tko_1
0
162
Member Avatar for Tko_1

Okay so i have this script that will upload and remane the file to image.png which works perfect. what i am trying to get is when uploaded number the image in order image1.png image2.png image3.png if (isset($_POST['submit'])) { $newext = '.png'; $filename = $_FILES["file"]["name"]; $file_basename = substr($filename, 0, strripos($filename, '.')); …

Member Avatar for Tko_1
0
165
Member Avatar for vibhaJ
Member Avatar for Tko_1

hello again, Im tring to stop this redirect with a button. this is the orginal script. <script language="JavaScript" type="text/javascript"> var count =16 var redirect="example.php" function countDown(){ if (count <=0){ window.location = redirect; }else{ count--; document.getElementById("timer").innerHTML = ""+count+" seconds." setTimeout("countDown()", 3000) } } </script> Browser refresh in <span id="timer"> <script> countDown(); …

Member Avatar for Tko_1
0
538
Member Avatar for Tko_1

Hello im sry if i have any of this code wrong, im not very good at Javascript. so basically i have a ChgText() which works fine althou it replaces the whole field of my text area. how would i go about changing this code so i could have it just …

Member Avatar for Tko_1
0
144
Member Avatar for Tko_1

Hi i have this script to upload and replace the exciting image which is good. The one thing i can not figure out is i would like to resize any images that are uploaded, to like 60x60. any ideas ? <?php if (isset($_POST['submit'])) { $newext = '.png'; $filename = $_FILES["file"]["name"]; …

Member Avatar for Tko_1
0
151
Member Avatar for Tko_1

Im tring to show image1.png if it exists, else show image2.png <?php $image1 = images/image1.png; $image2 = images/image2.png; if ( $image1 < true ) { echo "$image1"; } else { echo "$image2"; } ?> I am getting a Warning: Division by zero Thank you

Member Avatar for Tko_1
0
177
Member Avatar for Tko_1

Not mine but has been usefull so thought i would share. <script type="text/javascript"> function toggleMe(a){ var e=document.getElementById(a); if(!e)return true; if(e.style.display=="none"){ e.style.display="block" } else{ e.style.display="none" } return true; } </script> <input type="button" onclick="return toggleMe('para1')" value="Toggle"> <div id="para1" style="display:none"> blah blah blah blah blah blah blah blah blah blah blah blah blah …

Member Avatar for Troy III
0
210
Member Avatar for Tko_1

so i have this script for a countdown and i would like to have the font color to be white, but i can not figure it out. thanks <script type="text/javascript"> today = new Date(); BigDay = new Date("<?php require("date.php"); ?>"); msPerDay = 24 * 60 * 60 * 1000 ; …

Member Avatar for Tko_1
0
123
Member Avatar for Tko_1

I am trying to redirect if working.php is present in folder other wise echo no file. this script only echo's no file. thanks. <?php $filename = 'working.php'; if(file_exists('$filename')) { header( 'Location: welcome.php' ) ; } else { echo "NO FILE"; } ?>

Member Avatar for Tko_1
0
116
Member Avatar for Tko_1

hello, im tyring to change script from another page. i would like to change (a > true) to false and back if need be. As a dropdown or radio selection, maybe using variables but everything i have tried i have no luck. <?php if (a > true ) print "a …

Member Avatar for Tko_1
0
288
Member Avatar for Tko_1

hello again, so i have a countdown in which i would like to add a automatically redirect to a specific url when timer hits 0 , as of now timer just goes into the negative.. <script type="text/javascript"> today = new Date(); BigDay = new Date("8,26,2012"); msPerDay = 24 * 60 …

Member Avatar for Tko_1
0
319
Member Avatar for Tko_1

hello again, okay so what im tring to do is have text field that when you input text and submit , it creates new file with text value as the name. as this shows this inputs the text into the file and randomly generates a # for the name of …

Member Avatar for Tko_1
0
168
Member Avatar for Tko_1

Ok im a little new to php so please bare with me. this is the code i have been using to Transfer Variables from and to. What i want to do is to keep the variables in page2 untill further notice even after submited. Concept of this for customer to …

Member Avatar for Biiim
0
202
Member Avatar for Tko_1

I just spent some time tryin to figure this out and found out how, so thought i would share. (hope this is the right section for this.) <?php ob_start(); include('index.php'); $content = ob_get_clean(); ?> then insert where ever you want it to show up. <?php echo $content;?> Hope this helps …

Member Avatar for Tko_1
0
144
Member Avatar for Tko_1

Hello i am new to php and i need some help. I'm looking to delete a section of a php file (start - end) from another file with a submit button. So lets say i have logdata.php and index.php. The submit button would be in the index.php and on the …

Member Avatar for Tko_1
0
67

The End.