Jump to content

semlabs

Members
  • Posts

    23
  • Joined

  • Last visited

    Never

Everything posted by semlabs

  1. Hi, I need to integrate PayPal, but I am not sure which of their packages would be best. I want to use the system across a number of sites all of which only have one item which can be bought, but I need to be able to change the price.
  2. Thanks for the heads up. Are you on Windows, Linux without MSCoreFonts or Mac?
  3. You can order database entries using SQL. In your SQL query just do something like: SELECT datetime FROM table ORDER BY datetime DESC Alternatively, you can use ASC instead of DESC to sort the results in ascending order.
  4. mysql_query("UPDATE agents (aname, address, post_code) VALUES ('{$_POST[aname]}','{$_POST[address]}','{$_POST[post_code]}') WHERE AID = '[$_POST[aid]}'"); When inserting array values into a string, you should use the curly braces as per the example above. What you have done might have caused some errors. I would advise you research PHP templating engines. They allow you to separate all your PHP and HTML output, rather than just stuffing it all in one file. Also, I'd recommend using PDO for your database: http://uk.php.net/manual/en/book.pdo.php
  5. Don't know if this is of any help: http://gcov.php.net/PHP_5_2/lcov_html/
  6. It may be possible some how, but something like that should be in something like C++. Alternatively, there will be some freely available on the interveebs. Have a read through this: http://uk.php.net/features.commandline
  7. You do it like this: $doc = new DOMDocument(); $doc->load( 'doc.xml' ); $doc->formatOutput = true; $doc->preserveWhiteSpace = false;
  8. This has been done repeatedly in Flash and also in JS with a Flash API. See: http://www.schillmania.com/projects/soundmanager/
  9. Look at this: http://httpd.apache.org/docs/2.0/programs/ab.html
  10. Thanks for your input "twebman84". Someone else has made the same comment about the services page. I think its a very good point. People don't like to read text, they like to see nice pictures with text on them, bold headings etc.
  11. Depends what your site is and what your content is. If you site is new on the block, I'd look at using StumbleUpon to promote it as you can get good traffic from it quite easily. On the other hand there are sites like Digg, which are difficult to get to page one on. I'd also recommend looking for niche SMSs in your field. for example there is DZone for web developers.
  12. Thanks for the comprehensive replies. All info taken on board for mark 2.
  13. Just order it by ename and limit it to 1: Select Id, Name, EName, ENumber, Download1, Link, DateAdded FROM table ORDER BY EName DESC LIMIT 1
  14. Hi. You are using the old PHP4 XML functions. Try the newer ones: http://uk.php.net/manual/en/book.dom.php An example: $doc = new DOMDocument; $doc->Load( 'file.xml' ); // Create an XPath object $xpath = new DOMXPath( $doc ); //Query the document $query = '//isbn[text()=12345]'; $entries = $xpath->query( $query ); if( $enteries->length > 0 ) { echo $entries->item( 0 )->nodeValue; } else echo "no ISBN found\n"; This uses XPath. It's a query language for XML. You can get some schooling on it at w3schools
  15. I'm not sure exactly what you want to do, but I don't think there is a way to shorten what I think you are trying to do. I have PMed you with an alternative solution.
  16. Hi, I have recently finished work on an open source project. It is an XML transformation language (like XSL) and PHP parser that is designed to automate, simplify and standardise the development of HTML forms. You can find the project page here: http://semlabs.co.uk/products/xfl Docs: http://semlabs.co.uk/docs/xfl Demos: http://semlabs.co.uk/docs/xfl/demos I've used it quite a bit and had no problems, so am releasing it for open beta assuming that there will be a few gremlins in the system. If anyone has time to dabble with it will be interested to hear their thoughts etc. It is comprehensive. Will handel all types of advanced forms such as repeating forms (like comment moderation) and any sort of weird field names like: name="this[is][a][weird][64][field][][][name]"
  17. If you are looking at making a search engine, I would recommend looking into SQL full text queries. You can use them to produce similar functionality to search engines.
  18. Hi, I put my site online about 3 months ago. I would like people to take a look at my site as if they were going to it looking for the services I offer and tell me what is good and or bar about it in their opinion. I am looking for answers to questions like: Does the text engage ? Do you even want to read it? Is there information you think should be there but isn't? Is there anything that puts you off? My site is: http://semlabs.co.uk/ and my services are SEO related. I would like to point out that I don't want to turn the site into a giant flashing commercial bill board. I am rather trying to make it a distinguished site. I don't want to be working with people who are falling for sales pitches. I am more interested in working with people who are looking for someone with my ideals and approach to work. Thanks in advance for any input.
  19. I don't know if there are degrees in this area - XML. Try googling for "XML degree". Here is a longer code example using XPath: <?php $doc = new DOMDocument; $doc->load( 'http://www.lowersouthlounge.com/updates.php' ); // Create an XPath instance with your document $xpath = new DOMXPath( $doc ); // Get the last pubDate element $last = $xpath->query( '//pubDate[position() = last()]' )->item( 0 )->nodeValue; ?> XPath is an query language for XML documents, just in the same way SQL queries databases. There is some good documentation on XPath at W3Schools.
  20. Try using XPath: http://uk.php.net/manual/en/class.domxpath.php You can get the last element by using the following query: $last = $xpath->query( '//pubDate[position() = last()]' );
  21. I would go for: www.domain.com/it-is-the-url.html As far as I can tell Google treats - and _ differently. If you do a search for "hi_tek" and "hi-tek" you get different results. Also, try Googeling the following: site:wikipedia.org "hi_tek" site:wikipedia.org "hi-tek" On the one you don't get results. To my knowledge - is equated by Google to be a space, whereas _ is just considered to be itself.
  22. You might be able to get rid of the local search coming up in the main listing using this plug-in: http://www.customizegoogle.com/
×
×
  • 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.