Jump to content

JonnoTheDev

Staff Alumni
  • Posts

    3,584
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by JonnoTheDev

  1. doesn't matter
  2. Website looks very clean. I would check your url param validation throughout. I can change the params/ids in the url that produce unexpected results. Make sure you are protected against code injection. I would recommend you find a niche for your site. It's pointless just going global with it as another social network for everyone to use. People may say they have issue with FB but the simple fact is that they will not let go of it. It is too large. It's the same as when Apple launched the iPhone 4 with faults. Everyone kicked up a fuss, got offered a refund or a rubber case by Steve Jobs, did they go for the refund, no, they bought more. All down to the brand! Go for something small to start like getting people from school to use it. I would tailor groups to what goes on in your school. Then, if it is successful open it up further to other areas. Unless you have a niche then nobody will use a second network along side FB as it will be seen as double the effort and a waste of time. If you are using this as a development exercise then I say well done. You have produced something that functions & looks very good. If you are looking at a commercial venture then I think you need more thought. Again, well done. P.S If you are the next Mark Zuckerberg i'll be asking for a job!
  3. Then the above code works. Have you even tried it? It seems like you do not understand the code that I have given you to see what it is doing. Are you just looking for a cut and paste answer? <?php /* fetch array of companies owned by user */ $own_company = fetch_owned_companies($user_info['uid']); /* add all the company ids to a separate array */ $company_ids = array(); for($x = 0; $x < count($own_company); $x++) { $company_ids[] = $own_company[$x]['companyid']; } /* if $news['companyid'] is in the owned companies do something */ if (in_array($news['companyid'], $company_ids)) { echo "true"; } ?>
  4. Privoxy or Polipo are both proxy software. If you do not know anything about a proxy server it maybe a bit difficult to grasp. Lets say that you wanted to allow me to browse the Internet through your server. When I go to a website, rather than my ISP IP address showing up on the website's access logs, they will see the IP address of your server. This is what is called a proxy server. You can change your connection settings within any web browser to use a proxy. All you need is the IP address and port number, maybe a username/password. The IP address would be that of your server running Privoxy. You can also block access to certain websites using it. That is why many companies may use a proxy server for all computers connected to the Internet. You can do a variety of web filtering for all traffic going through the proxy such as video, advertising, etc. Now, when you are talking about crawling websites and wanting to hide your server's identity i.e the IP address, this is where TOR comes in. TOR is a bit of software that can either act as a client or a server or both. When you run TOR as a client it will attempt to connect to other TOR servers and establish a network that web traffic can flow through. This is why people in countries such as Japan that have firewalls in place to block websites use this type of network to get around them. What Privoxy can do is send traffic through the TOR network on a specific port number. Any website you attempt to go to from your server via CURL will log the IP address of the TOR server that traffic went through. As there are hundreds of thousands of TOR servers it is impossible to block them all. The flow of traffic from your server would be: Web Application (curl) ---> Privoxy/Polipo ---> TOR client ---> TOR server ---> Website As opposed to Web Application (curl) ---> Website Running TOR on your server wont cause any issue. Just use it as a client and not a server otherwise you will have traffic coming through your server. TOR is only one option. If you want to hide your IP address then there are thousands of proxy IP addresses you can use. The only problem being that they are unrelieable and often do not work. You have to trawl through them to find decent ones. http://www.proxy4free.com You can also pay for dedicated proxy IP addresses to use. I would buy about 30 and cycle through them when making requests to websites. http://www.bestproxyandvpn.com Hope that helps. Your Curl code looks OK by the way.
  5. That doesn't make sense. Are you stating that you need a loop? Are you trying to put all company ids into an array i.e <?php $own_company = fetch_owned_companies($user_info['uid']); $company_ids = array(); for($x = 0; $x < count($own_company); $x++) { $company_ids[] = $own_company[$x]['companyid']; } if (in_array($news['companyid'], $company_ids)) { echo "true"; } ?>
  6. That's a good link. I haven't used Polipo with Tor, only Privoxy. Once you have it installed you would add the proxy option to your Curl instance i.e $ch = curl_init(); curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:8118'); Get curl to grab a page such as http://www.whatismyip.com/ Do it with & without the proxy option set. You should find that the IP in the grabbed source code is different when using Tor.
  7. Why not place an advert in your local newspapers if they have a job section or do you have a specific publication that people pick up when looking for employment. It is definately worth employing someone who if not local is within a reasonable distance in case you need to meet up. I'm guessing that you have job websites that you can post on for your country. A long distance working relationship may be difficult to manage from personal experience, especially if they are from another country and have different working practices / hours. You definately need to look for someone who has a portfollio of work they can show to you.
  8. WAP, my god how old is it. WAP is for phones that are probably 10 years old. Do you mean a mobile version of a website. If so you could use any mobile user agent to obtain the mobile version of a website. Here are a few http://learnthemobileweb.com/mobile-web-development/sample-mobile-user-agents/ I wouldn't worry too much about the user agent string like you are. To make your bot more natural make sure there is a random pause period between page requests. Also, I would use proxies or a proxy client such as TOR to make sure that your own IP address doesn't get blocked by the site if they suspect anything.
  9. My advice would be to find someone local who you can work with face to face
  10. I don't understand the question. What do you mean by Mobile Bot? There are massive online lists of user agents that you can trawl through. If you give a bit more info on what you are trying to do there may be a way to help where you do not need to use the complete agent string (this is bad anyway as it is bound to change)
  11. I use the Android SDK, Blackberry emulator, Palm Pre emulator & iPhone for smartphone development. The dotmobi emulators for featurephone & a couple of older in house phones. I have never tried drag & drop functionality on smartphone, however it is mentioned along with HTML5 in a book on mobile development that I have used. http://books.google.co.uk/books?id=FozZWHiSxrsC&pg=PA50&lpg=PA50&dq=smartphone+web+development+drag+and+drop&source=bl&ots=V82BHWk36k&sig=7Gw7baHLp2dv7dHTAE-RDWamoHg&hl=en&ei=dDjJTceRMoyp8AORt6jbBg&sa=X&oi=book_result&ct=result&resnum=4&ved=0CFIQ6AEwAw#v=onepage&q&f=false Have you also used the Viewport META element to control the page scalability? http://learnthemobileweb.com/tag/viewport/
  12. Try the HTML5 demo. HTML5 drag & drop is supported by smartphones. http://html5demos.com/drag
  13. Did I miss something? Where did he say he got the job? My bad, read it wrong. Good luck anyways.
  14. Yep, too true. They need to step out, take a walk to their bank, cancel their credit cards and ask to be issued with another. Also, take a trip to the estate agents to buy a new house in order to get a new address, go to local government to obtain the forms for a name change (deed poll in the uk), and if they have time, stop at an Internet cafe to get a new email address. I know it's quite a lot but that's what the terms & conditions are for downloading the latest Call of Duty Black Ops map pack.
  15. To be honest, Google doesn't actually care that much for the format of urls containing parameters like it used to. The pages on this site are widely indexed. Do a site:www.phpfreaks.com/forums in Google, there are over 300,000 pages. Nowadays, the main benefit of rewriting your urls is for the end user, and possibly to get a few keywords in there aswell. When a user does a search on Google, the url is displayed. A user is more likely to click on a link that contains keywords that they searched for. The filename extension such as .php, .html, .aspx doesn't make the slightest bit of difference to a search engine.
  16. I could be very picky on that but I won't. Well done on getting the job & good luck.
  17. As Gizmola stated add this to the bottom of your .htaccess document ErrorDocument 404 /404.php Now you can create the 404.php file in your document root and this page will be served whenever a page is not found.
  18. Post the contents of your .htaccess file
  19. You will need to edit the Mod-Rewrite rule in your .htaccess An example of this: # match the characters a-z between 4 and unlimited times [a-z]{4,}
  20. You should write the components yourself. This is basic PHP & MySQL stuff that you are referring to. Here are the MySQL functions in PHP. http://uk.php.net/manual/en/book.mysql.php
  21. Junior developer positions exist. The criteria for these positions are usually that you have studied at college or university and have an understanding of the language. You may have used it for a project in your coursework. They may be open for self taught individuals but you will need a portfollio of work to demonstrate your knowledge.
  22. Me too, although the one I had from 4 years ago had better speakers than the one I have now which is only a few months old.
  23. $(document).ready(function(){ $("#form1").submit(function(){ var a = parseInt($("#in1").val()); var b = parseInt($("#in2").val()); var total = a+b; $("#total").append("<p>"+total+"</p>") return false; }); });
×
×
  • 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.