Jump to content

Ell20

Members
  • Posts

    337
  • Joined

  • Last visited

    Never

About Ell20

  • Birthday 04/11/1986

Contact Methods

  • Website URL
    http://www.streetcrime.cc

Profile Information

  • Gender
    Male
  • Location
    England

Ell20's Achievements

Regular Member

Regular Member (3/5)

0

Reputation

  1. Thanks for your answer but I dont want to close the popup on the user. I want them to click the link, then the pop up displays. Then if they close the popup within 3 seconds then allow it, but display a message saying "Vote not counted you need to vote before closing the window" Thanks
  2. Hi, I have been dabbling in PHP/MySQL for a month or two now so I know a little bit about it. However I have come across something which I am unsure how to do so I was hoping you guys/girls could help me. I am helping a friend run a MMORPG (Online Game) and basically we want our users to vote for our site on gamer websites so that we become more popular. Now we have added ourselves to these voting site we are given a direct link to give to our users to vote. Now I need to: 1) Count the vote when they vote and add it into the database. 2) If they dont vote and they just close the pop up then dont count their vote. I am very unsure on whether number 2 is possible, if its not, would it possible to have a timer, so if they close the window within 3 seconds then they dont get their voted counted? Appreciate any help with this Elliot
  3. Yeah but I mean it dosent even navigate to the logout.php page now which is just supposed to display "You have successfully logged out". Cheers
  4. Thanks for help. There are no errors now but it dosent appear to do anything now, any ideas? Cheers
  5. Hi, I have the code below, which used to work fine, however I have just changed hosts and now I am getting 2 errors: <?php if (isset($_SESSION['admin'])) { header ("Location: http://" . $_SERVER['HTTP_HOST'] . dirname($_SERVER['PHP_SELF']) . "index.php"); ob_end_clean(); exit(); } else { /* If user is logged in */ $_SESSION = array(); session_destroy(); setcookie (session_name(), '', time()-300, '/', '', 0); } ?> Errors: Warning: session_destroy() [function.session-destroy]: Trying to destroy uninitialized session in /home/prioryfi/public_html/logout.php on line 11 Warning: Cannot modify header information - headers already sent by (output started at /home/prioryfi/public_html/logout.php:11) in /home/prioryfi/public_html/logout.php on line 12 Appreciate any help
  6. Man no offence but you dont have a clue what your chatting about. If you can read/answer what im asking then there isnt much point in you answering.
  7. I just want to upload the video file to the server but I want to check the file type before I allow it to be uploaded? It dosent matter want I want to use the video for after its uploaded I just want it to be uploaded but obviously I dont want people uploaded .pdf files etc so I believe there is a php command where you can do something like this: ($_FILES['moviefile']['type'] == "video/wmv") But I wanted a list of all the possible types if possible Cheers
  8. Hey, I dont want to play the movie, I simply want to upload it. Does anyone no the types for videos like video/wmv etc? Thanks
  9. Hi, Im in the process of creating a video upload script however I wondered if anyone could point me in the direction of a list of the video upload types. By this I mean like for images you have: image/jpeg, image/gif etc. What are the video equivalents? Thanks for your help
  10. Yes, but what does that mean? Thanks
  11. Nope its not for a cron job, its used to get contacts from say MSN, Yahoo etc...
  12. Hi, I keep getting the following message when I attempt to use CURL: Warning: curl_setopt() [function.curl-setopt]: CURLOPT_FOLLOWLOCATION cannot be activated when in safe_mode or an open_basedir is set in /home/streety/public_html/grabbers/grabbers/msnm/msn_contact_grab.class.php on line 372 Can anyone assist? Thanks
  13. Thanks alot, works a treat. Is there any reason why the original dosent actually work in IE? Cheers
  14. Hey I have the following code on a drop down box so show a popup warning if the bottom option is selected. It works fine in Mozilla but in IE it dosent appear to do anything at all: <select name="acctype"> <option selected="selected" disabled="disabled" value="">Select Account Type</option> <option value="day">1 Day Account (<?=$interest?>%)</option> <option value="week" onClick="return confirm('Putting your money in a 1 week account means you cannot withdraw\n any cash until the week has passed.\nAre you sure you want to do this?');">1 Week Account (<?=$newinterest?>%)</option> </select> Thanks for help with this.
  15. Hey, Thanks for the code, it still works for the first click, in which it turns red. However if the cell is already red and you click again it dosent appear to do anything? Thanks for your help
×
×
  • 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.