Jump to content

liamoco

Members
  • Posts

    64
  • Joined

  • Last visited

    Never

About liamoco

  • Birthday 10/06/1992

Profile Information

  • Gender
    Male
  • Location
    Lancashire - England

liamoco's Achievements

Member

Member (2/5)

0

Reputation

  1. Hello, I am currently dual booting win7 and Linux Ubuntu, I have install xampp on both OS, on win7 I have the DocumentRoot directing to a folder on my desktop. On my Linux OS I also change the httpd.conf file to direct to that same folder on my win7 desktop, but when I tried to view the web pages on my browser I'm getting a forbidden error. Are there any permissions I need to change how do I do this? Why am I having these problems. If I need to specify any more details please say. Thanks
  2. I've googled everything I could think of but I'm having no luck at all with this, usually I manually create an email in the control panel which the hosts provide but can this be done with PHP?
  3. For my website, when each user registers I would like them to have there own email address, but how can I create an email address for them?
  4. OK now I know that isn't possible, any ideas? Lets say a user logs into my website on Google Chrome, but the user wants to log in twice, so the user decides to use Firefox to log in again, I do not want multiple logins, so I want the user to log into the website on Firefox but at the same time logged out of Chrome. Im thinking a lot a ajax is needed? Please help. Thanks
  5. On my website I really do not want the user to be logged in more than once, My idea is to store the IP address of the user when he/she logs in, but the IP address will be the same if the user logs in from two different devices in the same location (house for example), how can I detect each individual computer. If my logic is wrong please, inform me with a better way of doing this. Thanks
  6. Yes thank you litebearer, how to I get the offset value for a user?
  7. I am making a php/ajax chat, when a post is sent to the chat, a timestamp using mktime() is stored in the database to show when that post was sent. My concern is that I am from England and my timestamp is GMT +0. Will people from different locations around the world see the wrong times that other users post into the chat? If so what do I need to do to make this work ideally? Thanks
  8. This is the error that I am getting... And this is my php file... if(isset($_POST['function'])) { $function = $_POST['function']; switch($function) { case 'readNamesOnload': readNamesOnload(); break; case 'readNamesLoop': readNamesLoop(); break; case 'readChatOnload': readChatOnload(); break; case 'readChatLoop': readChatLoop(); break; } //READ NAMES ONLOAD function readNamesOnload() { die('readNamesOnload'); } //READ NAMES LOOP function readNamesLoop() { die('readNamesLoop'); } //READ CHAT ONLOAD function readChatOnload() { die('readChatOnload'); } //READ CHAT LOOP function readChatLoop() { die('readChatLoop'); } } I don't understand why this is happening. Thanks
  9. yes, the path is correct and returning the correct value
  10. So somehow I need to get the response into a variable inside of the ajaxPost function
  11. I have put the following bit of code inside a function called ajaxPost function ajaxPost(data, path) { $.ajax({ type: "POST", url: path, data: "data=" + data, cache: false, success: function(response){ return response; } }); //somehow return response variable here } var phpLogin = ajaxPost("test", 'php/login.php'); alert(phpLogin); When I call the function, and alert the response is keep getting "undefined". I think I know why it isn't working - because the response is being return to the wrong function. What can I do to make this work
  12. liamoco

    Query Error

    This is the error is am getting And this is the query $popularToday_query = mysql_query("SELECT round(avg(likes)) + round(avg(favourites)) as rating, chat_name FROM chat_likes GROUP BY chat_name WHERE timeRated >= ".$curTime." ORDER BY rating DESC LIMIT 4"); I have triple checked that I have all the field names correct, what am I doing wrong? Thanks
  13. Lets say I have may different images on my website, how could I list them in order of popularity, what would the database structure look like? what make an image popular? Is it the total amount of views? Views per day? Ratio between time and views? Just general ideas and help of this guys anything that comes into your mind. Thanks
×
×
  • 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.