Jump to content

richiec

Members
  • Posts

    126
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

richiec's Achievements

Member

Member (2/5)

0

Reputation

  1. Hey all, having a little issue with this script when using IE, everything works fine in firefox but when I open it up in IE there is no text box and the page has the following error Message: Invalid source HTML for this operation. Line: 808 Char: 6 Code: 0 URI: http://fspgeastmidlands.com/index2/scripts/wysiwyg.js Line 808 is textarea.insertAdjacentHTML("afterEnd", editor); Any idea how to get this to work in IE I don't want to have people download firefox to be able to use the website backend pages.
  2. Well I contacted my host support since I couldn't understand why it wasn't working and they pretty much said they don't offer the ability for 3rd party file manager scripts lol, so guess that explains why I was having issues - sigh.
  3. Thanks for the responces! I don't really want to use a direct ftp link with the username and password in it I would rather it be an actual script for a file manager just like the script you posted the link too. I checked the script out and filled out all of the settings, not using the ip either using the actual url of ftp.freehostia.com and I'm still having an issue, it's still saying that it can't connect to ftp.freehostia.com. Is there something in the php.ini file that I would have to change/add to allow a filemanager ftp connection that's the only thing I can think of now with this script saying the same thing.
  4. Hey there, I'm trying to set up a little ftp script to make it easier to upload files and add new folders for images and videos ect on a backend admin page however the following script just will not connect I keep getting the "Couldn't connect to 66.40.52.167" error so it's not even finding the server however when I put it into my browser it connects just fine, I've even pinged it and all works fine so I don't get it. $ftp_server = "66.40.52.167"; $ftp_user = "username"; $ftp_pass = "password"; $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to $ftp_server"); if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) { echo "Connected as $ftp_user@$ftp_server\n"; } else { echo "Couldn't connect as $ftp_user\n"; } ftp_close($conn_id); Any ideas would be appreciated!
  5. You need to $i++ at the end to then make $i go up by one each time untill it gets to 5 and then it will stop. However since you have another use for $i in the script define it as something else, maybe thats what the $x was but you just didn't change it in the while function. $x=0; //number of instruments (for exemple, 5 instruments) while($x < 5) { if ($dados [cod_curso] == 1) { echo "<a href=\"curso_guitarra.php\"><img src=\"".$dados['image_curso']."\"/><br />".$dados['nome_curso']"</a>"; } $x++; } ?>
  6. echo "<a href=\"curso_guitarra.php\"><img src=\"".$dados['image_curso']."\"/><br />".$dados['nome_curso']"</a>"; Updated, had an error in it.
  7. Hey there, I have an image gallery running on my website right now and I want to give the site admins access to add/delete the images from the different gallery directories. But to be honest I'm totally lost on how to do it lol I know my way around PHP but I've never had to code something to pull up the dir contents with an option to delete the files. I've found scandir which will get the contents of a dir and unlink which deletes a file but I have no clue how to get them to work together, anyone got any ideas or a different function if I'm looking in the wrong direction with those functions. Any help would be much appreciated. Thank you!
  8. Well i have got it working now, i just broke it all down and changed a few things around. This is how i got it working, its not great but it works lol: First of all i split the date and time from the form so one is date the other is time, i also changed the submitted format around to now be submitted as 10-26-09 and 1:35 PM $updatebosstime = $_REQUEST['updatebosstime']; $updatebossdate = $_REQUEST['updatebossdate']; $temp = explode("-",$updatebossdate); $newdate = $temp[2] . "-" . $temp[0] . "-" . $temp[1]; $ts = strtotime("$newdate $updatebosstime") + (60 * 60 * 36); $nt = date("F jS, Y, g:i a", $ts); like i said, its not great and its just temp until i figure out how to get it working the shorter way instead of being so messy but it works for now. Thanks for the help, now i just need to figure out how to work out how long is left until the 36 hours a count down timer kinda thing lol ~Rich
  9. I just tried it on a fresh page with nothing else on it and this is all that was printed back: 02-01-1970 06:59:59 <-- using exactly what you just posted October 26th, 2009, 12:27 pm <-- print $_POST['updatebosstime'];
  10. Hey all so im building this one page on my site and it requires people to put in a time and then it will save the time and also a time 36 hours after the time which is put in. So basically a time and then 36 hours after that time but i keep traveling back in time lol I have this in my code: //example: October 26th, 2009, 12:00 pm $updatetime = $_POST["updatebosstime"]; //date and time 36 hours after the example $ts = strtotime("$updatetime") + (60 * 60 * 36); $nt = date("F jS, Y, g:i a ", $ts); however its just coming up with January 2nd, 1970, 6:59 am whenever it gets updated, any ideas on how to fix it to display correctly?
  11. Well ive fixed the problem now, it was indeed the motherboard but hey pretty much built a new pc lol only thing which is the same is the processor and case everything else got replaced when i was trying to figure out what it was. But at least it is fixed now. Thanks for the help =) much appreciated Rich
  12. booting it up in normal mode and managing to get to the login screen is very lucky and even if you leave the computer alone it will shut down after at max 5 mins if booted in normal mode, safe mode has never caused the computer to turn off. Today i went and decided to eliminate things, bought new hard drive psu and ram but still does it, which i guess now just leaves the motherboard? Guess ill replace that tomorrow too and see if it fixes the problem.
  13. Before formating i had left it on safe mode over night and when i woke up next morning it was still on and everything was still fine so i knew that the problem wasnt happening when booting in safe mode that it was just when windows was booting normally.
×
×
  • 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.