Jump to content

matthewlesh

Members
  • Posts

    12
  • Joined

  • Last visited

    Never

Everything posted by matthewlesh

  1. Thanks very much for your feedback. I'm starting to work towards your ideas and feedback. In relation to your question, the system used to ask for passwords but i've since updated it to talk to twitter using Oauth so it nolonger needs passwords. I've removed that question now from the FAQ since it is now irrelevant.
  2. I thought i'd post post about the project i've been working on - iTweetReply - Get your @Replies and Mentions Emailed Straight to you - Home . It's a basic little app that will automatically find any tweet that mentions or is directed at your username [like your replies tab] with the basic goal to instantly notify you when somebody is talking to you. Almost a "push" service. Anyway let me know what you think and any feedback you have for the system.
  3. Ok, i'm working on a site and i am trying to add a live search feature, i have got the ajax etc done but now the mysql / php is killing me. The situation is i have about 5-7 columns of information i am trying to search some long text some a word some an ID corresponding to an ID in its type... (i.e. i have a "city" column with a number within which is the same number as the city ID within another table). Anyway i want a person to be able to enter " Steve Los Angles" and for steve to be inside the "name" column (or any column) and Los Angles to represent to the city column (which is just an ID going to a different table) Sounds a little confusing i know.. but have gotten far enough to use the "explode" function and then loop around using the LIKE method all the columns i want it to search... The problem is that rows are repeating each time with a different city. It doesn't worry me how efficient it works its more a matter of getting it working. Any help would be GREAT
  4. I don't really understand.. how does this make the back button work?
  5. Hello everyone out there.... I am currently re develping an ajax system i wrote a while back a small downloads system, the basics of it is that it just goes to the next page.... But people have complained that they can't press the back button on there brower.. so i added... window.location.hash = 'file-'+num; Works great but it doesn't allow the user to go back.. i have started looking up stuff online about how to do this but it seems very complicated and a complete re write of the script.. so i was wondering if any one out there knew a simple way to quickly make the back button work on the system... I am planing to do the bookmarking of those links with PHP to make it easiest.. In advance thank you, thank you, thank you for any help you can give...
  6. I am currently working on something where i put a serialized array into mysql database. I am putting in a numbers which correspond to id nums from another table. Before without allowing for multiple selections it looked something like... mysql_query("SELECT rm.*, sc.* FROM menu_items as rm, pages as sc WHERE rm.section='$id' AND sc.id='$id'"); But now so basically i want to be able to select what menu items are used for what page without doing a wide query then looping through hundreds of records. I was wondering how i would go about doing it the simplest way? (By the way it has to be in a serialize format...) Thanks for any help Let me know if you don't get what i mean .
  7. OK, I've had a look around a bit... but now i have come into another problem... I don't know how to use curl and there doesn't seem to be much around about it. What i need to do now it work out how to : 1. Go to a page and pick up some cookies 2. Send post information to another page with those cookies being sent 3. Set more cookies after that form has been sent 4. View a page with the cookies being sent I have had a look at a few page and found out how to just do the post part.. but everything else i am extremely confused about: define('POSTURL', '<website to send post>'); define('POSTVARS', 'send=yes&q=$data'); // POST VARIABLES TO BE SENT // INITIALIZE ALL VARS $Email=''; $ch=''; $Rec_Data=''; $Temp_Output=''; if($_SERVER['REQUEST_METHOD']==='POST') { // REQUIRE POST OR DIE $ch = curl_init(POSTURL); curl_setopt($ch, CURLOPT_POST ,1); curl_setopt($ch, CURLOPT_POSTFIELDS ,POSTVARS); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_HEADER ,0); // DO NOT RETURN HTTP HEADERS curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL $Rec_Data = curl_exec($ch); ob_start(); header("Content-Type: text/html"); $Temp_Output = ltrim(rtrim(trim(strip_tags(trim(preg_replace ( "/\s\s+/" , " " , html_entity_decode($Rec_Data)))),"\n\t\r\h\v\0 ")), "%20"); $Temp_Output = ereg_replace (' +', ' ', trim($Temp_Output)); $Temp_Output = ereg_replace("[\r\t\n]","",$Temp_Output); $Temp_Output = substr($Temp_Output,307,200); echo $Temp_Output; $Final_Out=ob_get_clean(); echo $Final_Out; curl_close($ch); } else die('Hacking attempt Logged!'); exit;
  8. Hey there everyone.. This is something which i have wanted to be able to do for ages, Well anyway what i would like this script to do is : 1. Login Using POST to an SSL Server (The login system uses cookies) 3. Go to a page after login and get the information into a variable Any help with this would be very great.
  9. actually i have kinda sorta gotten past that, but i am still having problams, you see what i am trying to do is see if a address i have got like "ftp://oafa:oafe@testsite.com.xu/" is a working ftp server or not.
  10. Hello there, i seem to be getting the following error in a php script i am writeing to check if an FTP server is up. Can someone tell me what this means.. and what i should do about it?
  11. Hello there everyone... i need a bit of help with something, i want to be able to check if websites are working through FTP as well as http. I am getting address from a database such as... ftp://website.com.aa/ or ftp://user:pass@sub.yod.org/ or http://atua.goaje.org/ The system won't know what type of address it is, so the script needs to first work out what type, then check it. (Note: all these address are coming from MySQL) Please help.
  12. i know this is kinda dume but i am a newbie and working on a username validating system... and it needs to do the following things... Only allow lowercase letters Allow numbers Allow "_" and "$" and not allow anything else... and if it does not go by this print an error out. Please help:D
×
×
  • 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.