I am able to view content displayed from the API but i'm not able to extract the various contents. my codes are below: function parseInfo($barcode) { $url = "https://archive.org/advancedsearch.php?q=$barcode+AND+licenseurl:[http://creativecommons.org/a+TO+http://creativecommons.org/z]&fl[]=identifier,title,mediatype,collection&rows=15&output=json&callback=IAE.search_hits"; $contents = file_get_contents($url); // $json = json_decode($contents, true); return $contents; } echo $array = parseInfo($barcode); //var_dump($json); for ($i = 0; $i < count($array); $i++) { foreach($array as $values){ echo $id = ($values[$i]['ID']); echo $Title = ($values[$i]['title']); $SubTitle = ($values[$i]['SubTitle']); $Description = ($values[$i]['Description']); $Image = ($values[$i]['Image']); $isbn = ($values[$i]['isbn']); } } Thanks for your help.

Member Avatar
Member Avatar
+0 forum 1

Hi All, Been a bit bored, so went at it to create a class from some long procedural stuff I found littered in various guises all over the web. The code I used as a base for the class came from [here](http://www.codediesel.com/php/downloading-gmail-attachments-using-php/). As this uses IMAP functions and many of you out there use XAMPP on your local machines, ensure that you enable it in php.ini before testing this script. Search the file for `;extension=php_imap.dll` and take off the preceding semi-colon to leave `extension=php_imap.dll`. Save the file. You then need to restart Apache. Usage is pretty simple - just three …

Member Avatar
+4 forum 0

want to create an archive list like this: 2014 -March -Feb -Jan *Post 1 *Post 2 2013 -November *Post 1 My config file is: <?php ob_start(); session_start(); //database credentials define('DBHOST','127.0.0.1'); define('DBUSER','name'); define('DBPASS','pass'); define('DBNAME','sample'); $db = new PDO("mysql:host=".DBHOST.";dbname=".DBNAME, DBUSER, DBPASS); $db->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); //set timezone date_default_timezone_set('Europe/London'); ?>` the table I m using is having postDate as Datetime. postSlug is used to get a clean url. The coding I am using now is: <h1>Archives</h1> <hr /> <ul> <?php $stmt = $db->query("SELECT Month(postDate) as Month, Year(postDate) as Year, postTitle, postSlug FROM blog_posts_seo GROUP BY Month(postDate), Year(postDate) ORDER BY postDate DESC"); while($row = $stmt->fetch()){ $monthName …

Member Avatar
+0 forum 0

Here is online demo - http://cs-bg.info/news/archive/ I want to show my news like that. (like archive for each year) I want to work with epoch time. Thanks for any help.

Member Avatar
Member Avatar
+0 forum 3

I want to have ONE picture on my home page (a poster) and when the date is done I want the new one to replace it and the old to go to a list of all the previous posters. if anyone has a snippet of code that would be amazing. thanks

Member Avatar
Member Avatar
+0 forum 4

Hello, I am trying to execute a jar file with higher version of jdk. But it fails & the worst part is I am not getting any error message. Jar file compiled verison: jdk 1.5 Executed version: jdk 1.7 I assume the jar file is downward compatible. thoughts pls? Thanks! Om

Member Avatar
Member Avatar
+0 forum 3

Hello all, recently got a piece of coursework I completely know nothing of. It is shown below: Your task is to write a file archive utility similar to that of the Unix tar program. This program will be a command line program (i.e. there will be no graphical user interface). The purpose of this file archive utility is to allow users and system administrators alike to back up specific parts of their Linux file system into a single file. Backing up file systems in this way is common practice and especially useful in disaster/recovery scenarios where the resulting file can …

Member Avatar
Member Avatar
+0 forum 4

I want to have a list of months and years when content was posted to my website. Example: /// **Archive** *July 2012 June 2012 May 2012 April 2012* /// Then, clicking one of list items takes you to a page with every post from that month. I know I should setup two columns in my mysql table, month and year. From there, I don't know how to get PHP to build a list using the data. I could do it manually every time a new month comes up, but that defeats the purpose in my book. Please help me, Internet …

Member Avatar
Member Avatar
+0 forum 6

Hello, I am going to be building a blog and have rattled my brains out on this but could someone please explain in much detail as possible how i would go about building a blog archive ? I don't mean i want the php code just the logic behind it. I not started on anything yet as want to get the logic rite, everything else i seem to be ok with but i cannot for the life of me think how i would build an archive for the blog. Blog posts will be stored by month/year and just cannot think …

Member Avatar
Member Avatar
+0 forum 3

I recently inherited a website and they have a simple back-end area which was created using phpmaker. The back-end displays various MYSQL database tables. There are two tables which hold registration information related to promotions/contests the company runs online. The client wants to begin archiving the registration data monthly, but still have the data accessible for future export or review. So, can anyone tell me what the best approach would be to achieve this? I read about partitioning and [URL="http://www.maatkit.org/"]Maatkit[/URL], but I'm not sure which - if either - would be a smart choice. I would prefer to keep the …

Member Avatar
Member Avatar
+0 forum 1

Currently running python 2.7 on windows 7. I have an app created with wx python and compiled with py2exe. This app has an update utility that polls an update server at startup. If an update is found it downloads the new executable file (approx. 7mb) and makes the switch. It works well, but when I change 3 lines of code and publish an update the end user has to again download an entire 7+ mb file. I know that py2exe creates a zip archive containing the .pyo's and I would like to be able to add/remove/overwrite those .pyo files while …

Member Avatar
+0 forum 0

I've been tasked with reading in multiple emails that are stored in a single archive file and then scanning it to find certain things. My problem now is that I seem to only be reading in the first of the many individual files stored in the single archive. The "archive" file is just plain text, nothing too special about it. I can read it in notepad. the very last cout statement just starts printing jibberish until an illegal access is made, so i just have it print one beyond the char array bounds. here is my code: [CODE] #include <regex> …

Member Avatar
Member Avatar
+0 forum 4

First of all, I would like to apologize if I have posted this in the wrong forum. If I have made this mistake, please tell me where this should be placed and I will quickly fix that. Okay, now to the problem. I downloaded a zip file and extracted it into a file called [I]Game[/I] on my desktop. I extracted it. There is an executable file along with a bunch of folders. I put and extracted other zip files into the folders I just mentioned. Then, I tried to run the executable file and got this message: Archive: /home/amber/Desktop/Game/ePSXe/ePSXe.exe [/home/amber/Desktop/Game/ePSXe/ePSXe.exe] …

Member Avatar
Member Avatar
+0 forum 2

Hi, I have been searching here and Google for the past few days but I haven't been able to find an answer. I want to have a script that will download one page of a website with all the content i.e. images, css, js etc... I have been able to save the html (text) like this: [CODE] function get_data($url) { $ch = curl_init(); $timeout = 5; curl_setopt($ch,CURLOPT_URL,$url); curl_setopt($ch,CURLOPT_RETURNTRANSFER,1); curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,$timeout); $data = curl_exec($ch); curl_close($ch); return $data; } $returned_content = get_data('http://example.com/page.htm'); $my_file = 'file.htm'; $handle = fopen($my_file, 'w') or die('Cannot open file: '.$my_file); fwrite($handle, $returned_content); [/CODE] This will save a file called …

Member Avatar
Member Avatar
+0 forum 1

Hi All, I'm sorta stuck on this one. Hopefully some of you folks can help me out... My question in a nutshell: Is there a way to have PHP extract all of the files from an archive without preserving the directory structure? Extra Info: A site I'm working on allows users to upload pictures. I've just added support for Zip files, so that PHP extracts the images from the Zip, moves them to the appropriate directory, and catalogs them in the MySQL database. To do this, the names of the files are put into an array. The problem is that …

Member Avatar
Member Avatar
+0 forum 2

Hello, I'm making a tagging system for a script. The tagging system is much like the one here. be it's not normalized like this one. It's a single table in my database with three columns. uid | id | name The 'id' field is not auto increment. It is a field which holds the corresponding tables unique id. Everything works well. I explode before it hits the database, I get the unique id with mysql_insert_id. No users and just one admin so this won't be any issue. My question is.. How do I make it so one can click the …

Member Avatar
Member Avatar
+0 forum 4

Hello every one! I'm developing one simple site, and I need to make an "archive" script. My MySQL Table looks like: [CODE] | id | title | content | is_deleted | pub_date | [/CODE] *pub_date is in PHP time() format. Example: 1258150430 So, what I want to make is an example tree view of entries from database sorted by year and month. Example: [CODE] 2009 -January --Post title 1 --Post title 2 --Post title 3 --Post title 4 -February --Post title 1 --Post title 2 --Post title 3 --Post title 4 -April --Post title 1 --Post title 2 --Post title …

Member Avatar
Member Avatar
+0 forum 3

The British Library is already home to 52,000 local, regional, national and international newspaper titles spanning three centuries. Not surprisingly it has been called one of the world’s finest collections of newspapers, and every year it's used by 30,000 researchers in subjects ranging from family history and genealogy to sports statistics, politics and industrial history. The problem being that this vast resource is held mainly in hard copy and microfilm, necessitating a trip to the north London Colindale site for people wishing to access it. Which is why the British Library’s Chief Executive, Dame Lynne Brindley, has announced a ten …

Member Avatar
Member Avatar
+1 forum 4

Hi, all, When using a manual archive or autoarchive in Outlook 2007 (windows xp), the emails are [I][B]copied[/B][/I], instead of [I][B]moved [/B][/I]to the archive folder. This is happening only for one user. For other users on the same network, with seemingly the same archive settings, any archived emails are moved to the archive folders. Help desk hasn't been able to find any solution to this problem. Any help would be greatly appreciated. Thanks AEA

Member Avatar
+0 forum 0

This snippet provides 2 functions to create in memory a gziped archive of a sequence of files and directories, and to extract files from this archive. These functions are similar in effect to the linux commands [icode]tar czf[/icode] and [icode]tar xzf[/icode] but instead of writing an archive file on disk, a python string is used.

Member Avatar
+2 forum 0

hi guyz, i want to create an archive for my website entries (news,articles....etc) can anybody help? appreciate the answer

Member Avatar
Member Avatar
+0 forum 5

Once upon a time, Usenet newsgroups were the Twitter, Facebook and forums of the online world. All the early Internet community makers were there, and important announcements such as the arrival of Mosaic by Marc Andreesen broke there first. Then the inevitable happened, and Usenet slowly imploded. That could have been the end of it, but everyone assumed this fairy tale would come with a Hollywood ending after Google got involved and waved a magic wand over the Usenet archive and turned it into [URL="http://groups.google.com"]Google Groups[/URL]. Unfortunately, not a lot happened in the years since February 2001 when Google acquired …

Member Avatar
+0 forum 0

I need to write to a textfile and name it with an extension other than ".txt" (an archive file) . For example: myfile.123 I can't seem to get around the file system object adding ".txt" so my filename becomes myfile_123.txt Do I need to write it another way or is there some way to do this with fso, which I'm comfortable with? My (nonworking) code: [code]Conn = fs.OpenTextFile("c:/inetpub/wwwroot/app/files/f.123", 2, True) for each obj in s Conn.WriteLine( obj & "'" ) next obj Conn.Close()[/code]

Member Avatar
+0 forum 0

Generally speaking I would not recommend reading a newspaper in the hot tub. If that hot tub happens to be of the spa-jet variety then that only makes it worse. If the newspaper is a rare item from the 19th century then surely only a fool would consider it. Yet this weekend I have been doing just that, reading an 1815 newspaper in the hot tub with all the jets massaging my body to bits but without destroying the delicate document. How so? The wonders of the Internet of course. Specifically the wonder that is the new online archive of …

Member Avatar
Member Avatar
+0 forum 1

The End.