Jump to content

BigShieldsy

Members
  • Content Count

    32
  • Joined

  • Last visited

Community Reputation

0 Neutral

About BigShieldsy

  • Rank
    Newbie
  1. yes. i am still getting the same problem.The phpinfo page can be found at www.bellgroveafc.com/phpinfo.phpI have also found a folder called php at the location of /home/bellg980/ is there any possibility of making the changes in there at all? as all the folders appear to be empty.
  2. hey JustI tried that other option and yet i am still getting the same error moving file.. sooo annoying now lol
  3. Hey guys sorry for the late replyI have made the changes suggested by both of you's and after adding php_admin_value to the .htaccess file my site has since went down and produces this error: Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@bellgroveafc.com and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. This error is now throughout the website.
  4. Sorry forgot about phpinfo.php (located at /home/bellg980/public_html) 644 highlights.php (located at /home/bellg980/public_html/MembersArea/Highlights/) 664 This file is being used at the moment but will be used to player the selected video.
  5. Ok These are the changes i have made since the topic has been started:.htaccess (located at /home/bellg980/public_html): SetEnv PHPRC "/home/bellg980/public_html" php.ini (located at /home/bellg980/public_html): upload_tmp_dir = "/home/bellg980/public_html/tmp1" Permissions:/tmp (located at /home/bellg980/) 777 /tmp1(located at /home/bellg980/public_html/) 777 /MembersArea (located at /home/bellg980/public_html/) 777 /Highlights (located at /home/bellg980/public_html/MembersArea/) 777 /Videos (located at /home/bellg980/public_html/MembersArea/Highlights/) 777 upload_highlights.php (Script) (located at /home/bellg980/public_htmlMembersArea/Highlights/) 777 highlight_upload.php (Html) (located at /home/bellg980/public_htmlMembersArea/Highlights/) 777 highlight_upload.php (code) <?php session_start(); $loggedin = $_SESSION['loggedin']; //include '../Docs/notloggedin.php'; //include '../Docs/check_mem.php';?><html><head> <link rel="stylesheet" type="text/css" href="../../Stylesheets/Main_Sheet.css"/> <link rel="stylesheet" type="text/css" href="../../Stylesheets/Menus/Menu_System.css"/> <title>Bellgrove AFC - Highlight Upload</title> <link rel="Shortcut Icon" href="../../Pictures/Club/Badge.ico"> </head><body> <section class="Main-Container"> <section class="Left-side-Container"> <section class="Logo"> <img src = "../../Pictures/Club/TeamBadge.png"/> <h1>Bellgrove AFC</h1> </section> <hr/> <section class="Main-Menu"> <img src="../../Pictures/Menu.jpg" width="140px" style="margin:2px 0 4px 6px;"/> <br/> <section class="menuwrapper"><!-- Navigation System --> <ul><!-- LEVEL ONE --> <li><a href="../../index.html">Home</a></li> <li><a href="../../Squad_Selection.html">Squads</a> <ul><!-- LEVEL TWO --> <li><a href="SaturdaySquad.html">Saturday Squad</a></li> <li><a href="SundaySquad.html">Sunday Squad</a></li> </ul> </li> <li><a href="../../Fixture_Selection.html">Team Fixtures</a> <ul><!-- LEVEL TWO --> <li><a href="../../SatFixtures_13_14.html">Saturday Team</a> <ul> <li><a href="../../SatFixtures_13_14.html">Season 13/14</a></li> <!--<li><a href="../Archive/SatFixtures_12_13.html">Season 12/13</a></li>--> </ul> </li> <li><a href="../../SunFixtures_13_14.html">Sunday Team</a> <ul> <li><a href="../../SunFixtures_13_14.html">Season 13/14</a></li> <!--<li><a href="../Archive/SunFixtures_12_13.html">Season 12/13</a></li>--> </ul> </li> </ul> </li> <li><a href="../../Table_Selection.html">League Tables</a> <ul><!-- LEVEL TWO --> <li><a href="../../GDSML_League_13_14.html">Saturday League</a> <ul> <li><a href="../../GDSML_League_13_14.html">Season 13/14</a></li> <li><a href="../../Archive/SatLeague_12_13.html">Season 12/13</a></li> </ul> </li> <li><a href="../../SCAFL_League_13_14.html">Sunday League</a> <ul> <li><a href="../../SCAFL_League_13_14.html">Season 13/14</a></li> <li><a href="../../Archive/SunLeague_12_13.html">Season 12/13</a></li> </ul> </li> </ul> </li> <li><a href="../../Sponsors.html">Sponsors</a> <ul><!-- LEVEL TWO --> <li><a href="../../Sponsors.html">Club Sponsors</a> <ul><!-- LEVEL THREE --> <li><a href="http://www.yourdebtexpert.com" target="_blank" title="Click to open new tab">Your Debt Expert</a></li> <li><a href="http://www.musicmagpie.com" target="_blank" title="Click to open new tab">Musicmagpie</a></li> <li><a href="http://www.turnbullmccarron.com" target="_blank" title="Click to open new tab">Turnbull and McCarron</a></li> <li><a href="http://www.armstrongs-glasgow.co.uk" target="_blank" title="Click to open new tab">Armstong Bar</a></li> </ul> </li> <li><a href="../../Sponsors.html">League Sponsors</a> <ul><!-- LEVEL THREE --> <li><a href="http://www.harleysskybar.com/" target="_blank" title="Click to open new tab">Harley's Skybar</a></li> <li><a href="http://www.hisltd.com" target="_blank" title="Click to open new tab">Highland Industrial Supplies</a></li> </ul> </li> </ul> </li> <li><a href="../../Club_Information.html">Club Information</a> <ul><!-- LEVEL TWO --> <li><a href="http://www.facebook.com/profile.php?id=100003892391812" target="_blank" title="Click to open new tab">FACEBOOK</a></li> <li><a href="https://twitter.com/AFCBellgrove" target="_blank" title="Click to open new tab">Twitter</a></li> <li><a href="mailto:bellgroveafc@gmail.com?subject=Please Enter Your Subject!" title="Click to Email the club">Email Us</a></li> </ul> </li> <li><a href="../Pages/welcome.php">Members</a> <ul> <li><a href="#">Chat Room</a></li> <li><a href="../Fixtures/fixture_selection.html">Reports</a></li> <li><a href="#">Highlights</a></li> <li><a href="../Logout/logout.php">Logout</a></li> </ul> </li> </ul> </section> <br/> <img src = "../../Pictures/RoyalArmsScotland.png" width = "120px" height = "130px" style="margin-left:10%;"/> </section> </section> <section class="Right-side-Container"> <section class="Header"> <section class="HeaderPictureLeft"> <img src="../../Pictures/Fix_n_Leag/GDSML_league_cup.png" height="100px" width="120px" /> </section> <section class="HeaderPictureRight"> <img src="../../Pictures/Fix_n_Leag/SCAFL_LeagueWinners.png" height="100px" width="120px" /> </section> <section class="HeaderCenter"> <li class="Photos"><img src="../../Pictures/Club/TeamPhoto2.jpg" width="90" height="100"/></li> <li class="Photos"><img src="../../Pictures/Club/SeeMe1.jpg" width="90" height="100"/></li> <li class="Photos"><img src="../../Pictures/Club/Club1.jpg" width="90" height="100"/></li> <li class="Photos"><img src="../../Pictures/Club/SeeMe2.jpg" width="90" height="100"/></li> <li class="Photos"><img src="../../Pictures/Club/TeamPhoto1.jpg" width="90" height="100"/></li> </section> <section class="memberNav"> <h4> <? if(($member_level == 0)||($member_level == 1)){echo ' Chat Room - <a href="../Fixtures/fixture_selection.php"> Match Reports </a> - <a href="../Fixtures/fixture_selection.php"> Match Highlights </a> - <a href="../Logout/logout.php"> Logout </a>';} if(($member_level == 2)||($member_level == 3)){echo ' Chat Room - <a href="../Fixtures/fixture_selection.php"> Match Reports </a> - <a href="../Fixtures/fixture_selection.php"> Match Highlights </a> - <a href="../Reports/report_upload.php">Report Upload </a> - <a href="../Highlights/highlight_upload.php"> Highlight Upload </a> - <a href="../Logout/logout.php"> Logout </a>';} ?> </h4> </section> </section> <section class="Contents-Container"> <section class="Contents"> <form enctype="multipart/form-data" method="post" action="upload_highlight.php"> <table class="report_upload_form" cellpadding="4" cellspacing="0"> <tr> <td width="20%" align="left" valign="top">Home Team:</td> <td width="80%"><input name="home_team" type="text" id="home_team" value="<? echo $home_team; ?>"></td> </tr> <tr> <td align="left" valign="top">Away Team</td> <td><input name="away_team" type="text" id="away_team" value="<? echo $away_team; ?>"></td> </tr> <tr> <td align="left" valign="top">Score</td> <td><input name="score" type="text" id="score" value="<? echo $score; ?>"></td> </tr> <tr> <td align="left" valign="top">Fixture</td> <td> <select name="fixture"> <option value= '<? echo $fixture = 0; ?>'>GDSML</option> <option value= '<? echo $fixture = 1; ?>'>League Cup</option> <option value= '<? echo $fixture = 2; ?>'>Away</option> <option value= '<? echo $fixture = 3; ?>'>Away</option> <option value= '<? echo $fixture = 4; ?>'>Scottish Cup</option> <option value= "#">.................</option> <option value= '<? echo $fixture = 5; ?>'>SCAFL</option> <option value= '<? echo $fixture = 6; ?>'>GlassCo Cup</option> <option value= '<? echo $fixture = 7; ?>'>Presidents Cup</option> <option value= '<? echo $fixture = 8; ?>'>Away</option> <option value= '<? echo $fixture = 9; ?>'>Scottish Cup</option> </select> </td> </tr> <tr> <td align="left" valign="top">Team</td> <td> <select name="team"> <option value="Saturday">Saturday</option> <option value="Sunday">Sunday</option> </select> </td> </tr> <tr> <td align="left" valign="top">Video File:</td> <td><input name="video" type="file" id="video"></td> </tr> <tr> <td align="left" valign="top"> </td> <td><input type="submit" name="Submit" value="Upload Report"></td> </tr> </table> </form> </section> </section> <section class="Advert-Container"> <section><!-- Ad Three --> <a href="http://www.carringtondean.com" target="_blank"><img src="../../Pictures/Sponsors/Car_Dean.jpg" alt="Carrington Dean Logo" style="margin-top:15px;" /></a> </section> <hr/> <section><!-- Ad Four --> <a href= "http://www.turnbullmccarron.com" target="_blank"><img src="../../Pictures/Sponsors/Turnbull_McCarron.jpg" style="margin-bottom:5px;" /></a> </section> <hr/> <section><!-- Ad Five --> <a href= "http://www.hisltd.com" target="_blank"><img src="../../Pictures/Sponsors/H_I_S.jpg" style="margin-bottom:5px; height:150px;"/></a> </section> </section> </section> <section class="footer"> <hr/> <p>© COPYRIGHT STEVEN SHIELDS 2013</p> </section> </section></body></html> upload_highlight (code) <? ini_set('display_errors', 1); error_reporting(E_ALL); include '../Docs/db.php'; $home_team = $_POST['home_team']; $away_team = $_POST['away_team']; $fixture = $_POST['fixture']; $team = $_POST['team']; $score = $_POST['score']; $allowedExts = array("mp4", "ogg", "webm"); $temp = explode(".", $_FILES['video']['name']); $extension = end($temp); if(isset ($_FILES["video"])) { $name = $_FILES["video"]["name"]. "<br/>"; $type = $_FILES["video"]["type"]. "<br/>"; $size = $_FILES["video"]["size"]. "<br/>"; $tmp_name = $_FILES["video"]["tmp_name"]. "<br/>"; /*echo 'The file name is: ' . $name . '<br/>'; echo 'The file type is: ' . $type . '<br/>'; echo 'The file extension is: ' . $extension . '<br/>'; echo 'The file size is: ' . $size . '<br/>'; if ($size < 25000000){ echo 'The file size is: ' . $size . ' is correct <br/>'; } if ($extension == 'mp4'){ echo 'The file size is: ' . $extension . ' is correct <br/>'; }*/ if (($extension == 'mp4') && ($size < 25000000) && in_array($extension, $allowedExts)) { if ($_FILES['video']['error'] > 0) { echo "Return Code: " . $_FILES['video']['error'] . "<br>"; } else { echo 'PHPRC=' . getenv('PHPRC') . '<br>'; echo 'PHPRC=' . apache_getenv('PHPRC'); echo "Upload: " . $name . "<br>"; echo "Type: " . $type . "<br>"; echo "Size: " . ($size / 1024) . " kB<br>"; echo "Temp video: " . $tmp_name . "<br><br>"; $temp_video = 'Videos/' . $name; echo "temp_video name: " .$temp_video. "<br/>"; $sql = "SELECT * FROM highlight"; $result=mysql_query($sql); $rows=mysql_fetch_array($result); $location = $rows["location"]; if(($location == "") || ($location != $temp_video)){ echo 'The file name is: ' . $name . '<br/>'; echo 'The file type is: ' . $type . '<br/>'; echo 'The file size is: ' . $size . '<br/>'; $location = "/public_html/MembersArea/Highlights/Videos/" . $name; echo 'The new location of the video is: ' . $location; if(move_uploaded_file($tmp_name, $location)) { echo "Video Stored in: " . "Videos/" . $name; /*$sql1 = mysql_query("INSERT INTO highlight (location, team, posted) VALUES ('$location', '$team', now())") or die (mysql_error()); echo '<br /> Video location added to database <br />';*/ }else{ echo 'Error moving file'; } } else { echo "The File named: " .$name . " already exists. <br>"; } } } else { echo "Invalid video"; } }?>
  6. Yeah Don the whole hosting company are having some issue with slow or unresponsive connections Here is the message: Slow/unresponsive websites We have recently received numerous reports regarding slow connectivity to our services (website/cPanel/Webmail). We have forwarded this issue to our system department and have contacted the datacenter technicians as well. The issue seems to be affecting just some part of our clients, particularly the ones using Comcast provider. What we have observed so far, is that the connection is broken of at a node in the middle of the network pathway in the Comcast network. This issue is quite difficult to deal with since the source of it is out of our reach. You could try to press the issue by contacting Comcast support team regarding this. We will make sure to communicate with the relevant parties and try to resolve this as soon as possible. We understand the inconvenience this is causing you and we are trying to resolve the issue as swiftly as possible. Thank you for your patience and understanding. However before i made the changes it was making it through its only been since the changes that i have been giving this error. However on writing this the last request had made it through and produced the "error moving file"..If you are looking at the live website please be patient with it haha
  7. hey guys after doing some investigating into my files through the cpanel File Manager and found a folder called /tmp in this location /home/bellg980/ I have since changed the permissions on this page and have now managed to get a connection reset error now.. I do hope that this is down the issue the hosting company are experiencing at the moment.. However does not do me any good during testing lol. the page used to load up to the move function but since the changes to the /tmp permissions the page has been taking too long to load
  8. hey justsomeguy i have created the php.ini file as well as the phpinfo.php page however the change does not seem to have taken effect
  9. Hi Don thanks for explaining it for me it confirms what i was think however having added the two lines of code i am getting this message from them on the page:PHPRC=/home/bellg980/public_htmlPHPRC=/home/bellg980/public_htmldoes that mean that my location of the /tmp folder should be inside there?What do they mean?? Thanks
  10. in any of the php pages or the upload_highlight.php page sorry i am new to this stuff with php.
  11. Hi don, I have tried that in the past still with the same outcome... did they not tell you that you are not allowed to move a file from the tmp folder to a folder that is created into your own folder in your account.. You are allowed to move any file form with in your account.. Is it getting the file uploaded to a location in my account that i need to crack first but he is saying that is not allowed then i do not understand how i ment to move the file..Let me see if i have the correct.. The file is being uploaded from a form using the muiltipart/form-data and POST method with an action to go to upload_highlight.php(the script).. Now should the file be stored in a temperary folder with in the server?? before being moved using the move_uploaded_file()function to a location with in my account i.e /home/bellg980/public_html/MembersArea/Highlights/Video/.... If this is correct then this is the problem as i know this is not allowed to move files from that location on the server to a location in my own account.. You are only allowed however to move files from one location in your own account to another in your own account.. (now if you are allowed to do this then how am i ment to change the location of the temp folder so that it is inside my account, if i am not allowed to use a php.ini file to change anything ??? )
  12. Hi justsomeguy i have decided against using this form of checking and if you look at the Missing File after upload topic (Which you have already)you will be able to see the situtation i am now in..
  13. i was told from the hosting company that /home/bellg980/public_html was equal to just using /public_html/I will give it a try though no harm in it i guess. UPDATE!! After changing the paths i am still in the same situtation where nothing in the phpinfo has been changed..The webpage to upload a video file is: www/bellgroveafccom/MemebrsArea/Highlights/highlight_upload.php(if uploading you will require a mp4 file less than 20mb)(3-5 mins video will be fine)The upload script will run and appear with echo's through out details values stored in the variables being used up until it gets to the move_upload_file() function and will fail with the error message being printed
  14. Hi i started with this code and had the same issue with it i have since manage to update the code to allow the file to uploaded to the server's tmp folder (however this is now where i am stuck as i am not allowed to move the file fue to hosting security reason and i am in the process of trying to find out how to change the server tmp location to a location with in my own account folder..Here is a link to the topic i had created.. in here you will be able to see the code as well.. Hope its helpshttp://w3schools.invisionzone.com/index.php?showtopic=50284
  15. Hi Don the hosting company are from your side of the pond lol. Its an American company called Hosting24.Yes after log in i am presented with a option to sign into my cpanel where i have made and set up my database tables through myphpadmin. I have now uploaded the new phpinfo page and can be found at www.bellgroveafc.com/phpinfo.php Hope that helps a little i have also included the .htaccess page along with the new php.ini file.htaccess SetEnv PHPRC /public_html php.ini upload_tmp_dir = /public_html/tmp1 (using tmp1 to tell the difference between my own tmp folder and the server's tmp folder.)
×
×
  • Create New...