Search results

  1. learning_brain

    PayPal IPN Listeners

    Hi all I'm confused and tired and need some help.... I have an ecommerce site, which is pretty much done now - providing a CMS for the client and then dynamically generating item lists. I'm using the PayPal buttons "add to cart" form/hidden variable technique, which works great and has been...
  2. learning_brain

    MySQL Join Question

    I'm trying to create a basket on an e-commerce site and am using sessions to store item id's in a temporary row in a "sessions" table. If an item from the "items" table is clicked, the MySQL insert (in the additem.php) adds the id ($_GET), separated by commas, to the "item_ids" column in table...
  3. learning_brain

    Bug in Image Upload to dir and database insert

    Haven't been on for a while but I'm stuck!!!!! I have a table with 3 image links in MySQL In the add record page, I want to 1) upload the images to the server and 2) insert the paths to the database. I'm referencing a tut at http://php.about.com/od/phpwithmysql/ss/Upload_file_sql_3.htm The...
  4. learning_brain

    Content Based Image Censoring Class

    I have been working on this for a while and ideally need some help to tidy it up as it's my first OOP. Effectively, I wanted a class that analyses images to check for skin tone percentage. Then return the original image if the percentage is low enough, but return a pixellated image if it is...
  5. learning_brain

    Sanitising file content for Blob storage

    I thought this was going to be easy.... I have a file upload input and then use.. $fileHandle = fopen($fileUpload, "r"); $fileContent = fread($fileHandle, $fileUpload_size); $fileContent = addslashes($fileContent); which I thought would prepare it fine.. Now my sanitise...
  6. learning_brain

    Get filesize of external/ remote image

    This is an interesting one. I have an image crawler (external sites) that gets image size no problem, but filesize is proving tricky. I'm getting errors with both filesize() and stat() - presumably because I'm not reading from a local directory. I have two crawl systems - one for images...
  7. learning_brain

    dynamic sitemap

    I have an image search engine which is a dynamic site leading to lots of variations. www.qualityimagesearch.com/view_image.php?img_id=****** My issue is the number of images. I now have a dynamically generated sitemap at http://www.qualityimagesearch.com/sitemap.php (which takes a while to...
  8. learning_brain

    Re-Review - Image Search Engine

    Glad to be back on the forum. My site at www.qualityimagesearch.com is now about 10 months old and gets 700-1,000 visits a day - not bad - at least the adverts are paying for the site now! Now that it seems to be running well and I have a good amount of images in the index, I'm starting to...
  9. learning_brain

    Multiple AJAX Calls

    OK - this is weird and I hope I can get some help here. I have managed to integrate one AJAX call into a page, which uprates an image at database level and then responds with the current rating. Example page is at http://www.qualityimagesearch.com/view_image.php?img_id=34706 The js in this...
  10. learning_brain

    Content Based Image Analysis

    Hi I've been working on a php class now for about a fortnight. The class breaks down the image into critical components and patterns and compares it to a database of other image "fingerprints", before scoring it. The result is that the class will return the closest description match - meaning...
  11. learning_brain

    Returning Value from Max(Key) in Array

    Interesting one this and I have searched high and low for an answer... I have an associative array where image types are given a score. The array is set up in a loop so that the score is used as the key and the value is the name of the image type. $imageScores [$score] = $imageType; I am...
  12. learning_brain

    Accessing database within class

    Am I being stupid here or can you not connect to a database within a class in the same way as procedural php???? class imageAnalysis { var $whatever = ........... etc. function imageAnalysis (){//constructor } function imageAnalysis (){ //main class structure...
  13. learning_brain

    Problem inserting serialized array

    I can't get my head round this.... I have an array which I want to store to the DB (I won't even go into the reasons for this!) but am having problems. The serialized array string contains double quotes, so I have to be careful. $query_insert_summary = sprintf('INSERT INTO IMGCOMPS...
  14. learning_brain

    Comparing object class results?

    I don't know if I'm barking up the wrong tree here but I am new to OOP so need a bit of guidance... I'm writing an image analysis page, which attempts to identify the image type. Initially, I set "Zones".... i.e. ...main central section where a portrait would be. ...top half where the sky...
  15. learning_brain

    HTML markup validation problem...

    Hi all When trying to validate my site, I am getting errors and warnings relating to the dynamically generated links - specifically with multiple URL parameters. http://validator.w3.org/check?uri=www.qualityimagesearch.com&charset=%28detect+automatically%29&doctype=Inline&group=0 I have...
  16. learning_brain

    New css Layout

    Some of you may remember a site I was developing http://www.qualityimagesearch.com/test2.php This is a test page and does not match other linked pages. There were several comments about speed of loading, the dark design and re-sizing. I have done a complete overhaul of the design, trying to...
  17. learning_brain

    css problem

    Hi test page: http://www.qualityimagesearch.com/view_image.php?img_id=9610 In later browsers, this vertical 2 col layout works fine, but in earlier browse (IE), the top frame returns under the left column at full width. css html{ height: 100%; } body{ margin: 0px; font-family...
  18. learning_brain

    Centering image within an iframe

    For reference, try this link http://www.qualityimagesearch.com/view_image.php?img_id=41581 The image in the center has been placed in an iframe, for reasons I won't go into in detail here other than sites preventing hotlinking have difficulty if it's in a frame. My problem is simple -...
  19. learning_brain

    Force Image Caching

    I have an image preview page that dynamically shows the first 10 images from a database using a loop. The viewer can then pass/fail an image using form method. I have done 10, because I only use large images and I wanted to speed the process up. I assumed that if one image was loaded, it...
  20. learning_brain

    Cron job refresh?

    I've set up a cron job on a php file, which is reporting as being run correctly... However, I have a refresh <META HTTP-EQUIV=Refresh CONTENT="1"> normally when browsing manually. Does this refresh continue after it's first been run as a cron job, or does it stop after one page load, or does...
Top