The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
i have written the php code to upload pictures to my htdocs/images folder.
this works fine images are being sent to the folder and then a link is sent to my mysql so as to retrieve them with a mysql command.
the images folder has read/write permissions set to all users.
but this is this the problem....
images are not shown because when i right click and view image properties of the pictures in the images folder they are being uploaded with no read/write permissions.
When i change these to allow read/write they are then shown in my gallery page.
can anyone help please
"Perhaps all the Freeola formatting tags should be ignored within your [CODE] feature?"
Personally, I'd rather they keep the formatting within the [CODE] tag, but remove the ability for the lower-case letters to invoke it, seeing as the listings all show capital letters, as the [i] thing has caught me out a few times.
Also, how about an [h]heading[/h] tag for adding a slightly larger, bolded and underlined font for headings?
Well I thought I'd try and write something constructive for this board. I tried posting it, it was about 80 lines of code in total. In my opinion it looked worse than before. Formatting doesnt help a great deal it seems when line-wrapping occurs so much. And my formatting is quite conservative, I only use 2 spaces for an indentation.
areallyreallyreallrealylongpieceofcode( 'test' );
There is a lot more that could be done with the posting of code but at the moment the volume of posts here doesn't really justify it.
Not only did the character limit mess things up, but the JasvaScript had [ i ] in it so kept invoking the italic formatting which both changes the text and removed the [ i ] from the code. Perhaps all the Freeola formatting tags should be ignored within your [ CODE ] feature?
Hmmm...
Just realised that if I type [spaceCODEspace] the spaces get removed leaving the text unchanged. Wish I knew that before!
Search Freeola Chat
If you post some text containing tabs them this will now be converted to 4 spaces (for example if you copy and paste code from somewhere). If your post contains space to indent something then this should now be maintained.
If this forum gets busy enough then we may look into introducing a code highlighting feature to make things even clearer.
tags. That way scroll bars deal with excessively long code lines.
<?php
//This is the directory where images will be saved
$target = "images/";
$target = $target . basename( $_FILES['photo']['name']);
//This gets all the other information from the form
$name = mysql_real_escape_string($_POST['name']);
$email = mysql_real_escape_string($_POST['email']);
$phone = mysql_real_escape_string($_POST['phone']);
$pic=($_FILES['photo']['name']);
// Connects to your Database
mysql_connect("mysql.freeola.net", "sr------", "--------") or die(mysql_error()) ;
mysql_select_db("sr------") or die(mysql_error()) ;
//Writes the information to the database
mysql_query("INSERT INTO `employees` VALUES ('$name', '$email', '$phone', '$pic')") ;
if(move_uploaded_file ($_FILES['photo']['tmp_name'], $target)) {
//Tells you if its all ok
echo "The file ". basename( $_FILES['uploadedfile']['name']). " has been uploaded, and your information has been added to the directory";
if(!chmod($target, 0644)) {
echo "Unable to change file permission of".$target;
}
}
else {
//Gives and error if its not
echo "Sorry, there was a problem uploading your file.";
}
?>