Jump to content

JonnoTheDev

Staff Alumni
  • Posts

    3,584
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by JonnoTheDev

  1. Extract the urls from your source target and then get your spider to follow them. Setup what is called a penetration level. i.e. stop following links if you are say 4 levels deep from the initial source.
  2. If so you are a complete set of barstewards! Why can you not give us the current ranking of a keyphrase for a url on a particular google domain via an API or within your webmaster tools? I am sick to death of mining your SERPS!
  3. cURL is used for making HTTP requests just as your web browser does. The response from a request will contain the source of the target url. From this you can extract the data you require. Be careful when scraping websites!
  4. If you want to write your own spider then take a look at cURL. Read thoroughly and look through examples. http://uk2.php.net/curl
  5. <?php $result = mysql_query("SELECT * FROM emails WHERE emails_id >= '".$start."' AND emails_id <= '".$end."'"); ?>
  6. Your prices are a bit low eh? http://www.countrygirlwebdesign.com Are you a hobbyist?
  7. You cannot start a session after output has been commited to the screen session_start() must be at the beginning of the script. Along the lines of: <?php session_start(); if($_GET['start'] == 'start') { echo $_SESSION['health']; } else { ?> <form action="" method="get"> <input type="submit" value="start" name="start" /> </form> <?php } ?>
  8. Very similar to codeIgnitor
  9. You have an error! Switch error reporting on. <?php // top of page ini_set('display_errors', 1); ini_set('error_reporting', E_ALL & ~E_NOTICE); ?>
  10. If you have 1000 of these sites making $1 a day then do you see why this model is used. I have written applications that generate nothing but crappy content, possibly re-spin an article or generate a blog. They can then create a hundred websites on the fly containing adsense or affiliate code. If each one makes you $1 a day then that is your mortgage or rent paid for. Are you going to argue if they are your sites?
  11. When you want to maintain data through pages on a website, one of the most common ways is to pass the data in the url as a parameter. i.e http://www.google.com/search?q=cars The paramater in this case is 'q' and its value is 'cars'. The value can be obtained using the $_GET superglobal i.e. <?php // $q has the value 'cars' $q = $_GET['q']; ?> So if I have 2 pages and I set a value in page 1 and I want it to be available in page 2 I can pass it through the url as a paramater. On another note, why are you using framesets. They have been out of date for years and are a really bad way of designing a web application,
  12. If you are new to php/mysql then the above maybe a bit out of your depth, however Sphinx is fantastic for search functionality, especially if your database tables are using text fields and have a large number of records. Definately worth looking at when you get more confident.
  13. GET parameters i.e. frame3.php?id=123 <?php // frame3.php // $id has the value 123 $id = $_GET['id']; ?>
  14. Use UTF-8 encoding. When you connect to your database run the following query: mysql_query("SET NAMES UTF8"); Set the content type header in your app: <?php header('Content-type: text/html; charset=utf-8'); ?> Shouldn't have any problems then
  15. Bit more efficient <?php function addHttp($url) { if(!preg_match('%^https?://%',trim($url))) { $url = "http://" . $url; } return $url; } $url = "www.google.com"; $url = addHttp($url); print $url; ?>
  16. This is because your webserver does not know what to do with the .php extension. You may need to restart the webserver after install. If not read whichever applies to you: http://php.net/manual/en/install.windows.php
  17. That doesn't matter. I dont use a local webserver (i.e. local server or workstation) for testing code. Use a proper online webserver with test domains. The local site files are all located on the office server, everybody has mapped drives to the files. When files are saved upload them to the webserver and view online. CVS is fine in this setup.
  18. Do you not have your project files on your server with a drive mapped to your local machine. Seems a bit funny to be working on files locally.
  19. cool, ill check it out
  20. Trying netbeans now. Got a couple of querks. Im not used to the code colouring. It was much better in DW, can it be changed? To FTP files to a remote server you have to right click the file and select upload. Can there not be a ctrl key macro'd to the keyboard to do this?
  21. I like this:
  22. Ill try out netbeans
  23. Someone reccommend an IDE please. One that has FTP capabilities. Dreamweaver is finally doing my head in, keeps losing my settings and duplicating my projects.
  24. I think the older Macs are not to be compared with todays models. We have an iMac like in that video and it is crappy, but we only paid about £50 for it just so we could see what our users who have macs are looking at when they need 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.