+44 (0)785 715 1348
office@bogdans.co.uk

Currently Browsing: PHP

PHP – Convert objects to Arrays 0

Posted on 11, December 2013

in Category Web development

I’d suggest using sections from the sections below in order to convert with PHP from objects to Arrays $responseXml2 = (array) $responseXml; $responseXml3 = array_values($responseXml2); $responseXml4 = $responseXml3[4]; $responseXml5 = array_values($responseXml4); $responseXml6 = $responseXml5[0]; $responseXml7 = (array) $responseXml6; $responseXml8 = array_values($responseXml7); $responseXml9 = $responseXml8[3]; $responseXml5 = array_values($responseXml9); $responseXml6 = $responseXml5[0]; $responseXml7 = (array) $responseXml6; $responseXml8 = array_values($responseXml7); $responseXml9 = $responseXml

Read More

Upload WordPress post thumb image with PHP 0

Posted on 26, July 2013

in Category Web development

Here’s what you need to use in order to upload the thumb automatically with PHP instead of manually from the backend. $upload_dir = wp_upload_dir(); $image_data = file_get_contents($image_url); $filename = basename($image_url); if(wp_mkdir_p($upload_dir[‘path’])) $file = $upload_dir[‘path’] . ‘/’ . $filename; else $file = $upload_dir[‘basedir’] . ‘/’ . $filename; file_put_contents($file, $image_data); $wp_filetype = wp_check_filetype($filename, null ); $attachment = array( ‘post_mime_type’ => $wp_filetype[‘type’], ‘post_title’ => sanitize_file_name($filename), ‘post_content’ => ”, ‘post_status’ => ‘inherit’ ); $attach_id = wp_insert_attachment( $attachment, $file, $post_id ); require_once(ABSPATH . ‘wp-admin/includes/image.php’); $attach_data = wp_generate_attachment_metadata( $attach_id, $file ); wp_update_attachment_metadata( $attach_id, $attach_data ); set_post_thumbnail( $post_id, $attach_id )

Read More

Nintendo Customer Service Centre

Nintendo Customer Service Centre

Nintendo MK7 micro-site build and maintenance – both front-end (HTML, CSS and jQuery) and back-end via OOP PHP, MySQL database design and normalisation. Frameworks used – Drupal and WordPress. Project planning, scoping and managing long term search engine optimization campaigns for official Nintendo Customer Service Centre web site, staff training, web analytics and web / SEO audits performed over competitor web sites

Read More

BD Network

BD Network

Comprehensive set of development services including front-end (HTML, CSS and jQuery), back-end (PHP OOP, WordPress, Typo3 or Zend MVC), search engine optimization or search engine marketing along with project management. Technical requirements included:  HTML5, CSS3, JQuery – front-end development  PHP OOP and various CMSs and frameworks (WordPress, Drupal / Zend / YII) for back-end development  Implementing Google ranking factors within existing websites (considering Panda and Pinguin updates) – for the online marketing purposes  Strategy and consulting over the development process, workflow improvements, documentation, SoW, advising services for the entire product development life cycle. Delivered on various projects including Nintendo Mario [&hellip

Read More