hi everyone. been a while since i have been on here, alot has changed. I am in the middle of amending/adding features to an installer using python. I have the dropbox API (for business) set up and working, upload and downloading without issue. The potential issue i see is during the progress of either up/down the CLI sits, does nothing. So my question is (as i am still finding my way with all that is Python), how can i add a progress bar? For download and can use the API call to get the metadata file_size if that helps? PS, …

Member Avatar
Member Avatar
+0 forum 2

Hi all, its been a while since i have been on DW. I have started tasking MDT deployment. The issue i have is i need to capture a user input, for example a custom serial number. This will then be passed into the registry hive for OEM'ing. I have a VBS file that does all of this, the only thing is a standard VBS file cannot be used in the MDT Wizard. Any ideas how this can be done? I have looked at the Wizard editor, but there is no supporting documentation what so ever.

Member Avatar
Member Avatar
+0 forum 1

Good afternoon all. I have built the below class, and seem to have a problem where nothing is being displayed: <?php include_once '../include/tableStructure.php'; include 'crud.php'; //<- class by pritaeas class navigation { public $dsn; public function __construct() { $this->dsn = new crud($username, $passwd, $tableConfig); } public function nav($table, $live, $loc) { /** * nav returns multiple records from the specified table with conditions * @param string $table Table name * @param array $live Set in DB condition to show page * @return array $loc Set in DB shows location of page in Nav */ $nav = $this->dsn->getRecords($table, array('live' => $live, …

Member Avatar
Member Avatar
+0 forum 16

Hi all, I seem to have an issue with my CSS. The page setup that has the issue is: <footer> <section 1></section 1> <section 2></section 2> <section 3></section 3> </footer> The sections are set to 33% width and floating left. The containing footer does not seem to expand in height: What it looks like (very rough still) http://deval.roundthebend.info/about_us.php

Member Avatar
Member Avatar
+0 forum 2

I have a very simple class for date display: class timing { public $today; public $year; function __construct() { date_default_timezone_set('GMT'); } function now() { return $this->today = date("D j M Y"); } function year() { return $this->year = date("Y"); } } I am pulling in using: $x = new timing(); echo $x->today(); But i get nothing back. What am i missing :'(

Member Avatar
Member Avatar
+0 forum 4

Hi All, I am using pritaeas found here: http://www.daniweb.com/web-development/php/code/430455/configurable-table-class I am pulling in the data and my brain has taken a vacation. I am using $arr = $dsn->getRecord('memeber', array('user_id' => 2)); But cannot for the life of me pull the data out. I get duplication as well from the data: Array ( [0] => Array ( [user_id] => 2 [0] => 2 [loginName] => UserName [1] => UserName [password] => 30c2927b75d50c71550145ea7aebded6 [2] => 30c2927b75d50c71550145ea7aebded6 [email] => email@hotmail.co.uk [3] => email@hotmail.co.uk ) ) Can someone put me straight on this :)

Member Avatar
Member Avatar
+0 forum 8

Evening all. I am goign through my Image upload script and found it looks messy, would you recommend an cleaner way of doing this: move_uploaded_file($_FILES['file']['tmp_name'], 'photos/' . $_FILES['file']['name']); try { $fileName = $_FILES['file']['name']; $resizeObj = new resize('photos/' . $fileName); // *** Resize options: exact, portrait, landscape, auto, crop $resizeObj->resizeImage(225, 150, 'auto'); $extension = strtolower(strrchr($fileName, '.')); // extract file extension $clean = str_replace($extension, '', $fileName); // replace file extension with nothing -> removes $resizeObj->saveImage('photos/' . $clean . '.png', 100); unlink('photos/' . $fileName); } catch (Exception $e) { echo 'Error ' . $e->getMessage() . "\n"; } I have tried parsing the `$_FILES['file']['name']` …

Member Avatar
Member Avatar
+0 forum 6

Hi All, I am creating an "About Us" portfolio page for a company. On this page will be a small bio and a photo. The bio is not a problem, uploading and storing/calling the image is not a problem, as i already have code i can reuse. The part i am struggerling to get my head around, as just cant seem to imagine the functions, is how to choose/select a photo to link to the bio from what is available in a "photo" folder on the server. Images would need to be changable -> this would be from an Admin …

Member Avatar
Member Avatar
+0 forum 3

Afternoon all. I have noticed recently that i am unable to log in to DaniWeb from Android Mobile. When selecting the "Member Login" the pop out box appears then disappears before i can do anything. Could this be looked at? Or has DaniWeb got a mobile app?

Member Avatar
Member Avatar
+0 forum 3

Hi All, Not sure really where this should go but..... I have recently setup a shared HTDOCS under XAMPP across a dual boot system (Win7 & Ubuntu). Not sure if there is an interest, but if anyone would like to know how to do it, please give me a shout and i can post up how i did it

Member Avatar
Member Avatar
+0 forum 3

Evening all I am working my way through Zend Framework 1.x, and seem to have an issue. I am trying to set the `doctype()` to HTML5: class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { protected function __initDoctype() { $this->bootstrap('view'); $view = $this->getResources('view'); $view->doctype('HTML5'); } } I have check the documentation and using `doctype('HTML5')` seems to be correct, but my output keeps showing others. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

Member Avatar
Member Avatar
+0 forum 7

Strange question i am afraid, i have a friend who is after information on a database called "Profile". Does anyone have any links to this, as I have been unable to find anything

Member Avatar
Member Avatar
+0 forum 8

Hi all. Does anyone have a good autoloader script for namespace classes ? Namespace is identical to the file structure.

Member Avatar
Member Avatar
+0 forum 3

Hi all. I recently set up dual boot Os (7, and Ubuntu 12.10). The namespace call was/is working on the Windows 7 env (same version of XAMPP). I know Linux is case sensitive so i have amended the file/folder calls. Although the file exists, i am getting: `Message: Class classLib\dataBase\database_Connection could not be loaded` DB Class: <?php // root -> /classLib/dataBase/database_Connection.php: namespace classLib\dataBase; // declare namespcae class database_Connection { /** * @var PDO The database link. */ protected static $dbLink; /** * Returns an open PDO object. This object will be shared * among all who call this method, so …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I am putting together a CRUD. I have read through tutorials, and references. Just wanted to see if i was on the right track: <?php // root -> /classLib/CRUD/CRUD spl_autoload_extensions(".php"); spl_autoload_register(); use classLib\database\database_Connection as DB; class CRUD { private $id; #__construct to be extended public function __construct($id=null){ $this->id = $id; #__construct to be extended } public function save() { try{ $sql = ""; $q = DB::get()->prepare($sql); $q->execute(array()); } catch (Exception $e){ print "Error: " . $e->getMeasage(); } } public function update() { } public function delete() { try{ $sql = "DELETE FROM [table to be clarified] WHERE id=:id"; …

Member Avatar
Member Avatar
+0 forum 5

Evening all. I am using nivoSlider, and have come across an issue with ow i'd like it to work. Here is a sample of the slider: http://gavdev.roundthebend.info/index2.html This is what i would like it to do: http://www.directenergypurchasing.com/ This is the HTML: <link rel="stylesheet" href="nivo-slider/nivo-slider.css" type="text/css" media="screen" /> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script> <script src="nivo-slider/jquery.nivo.slider.pack.js" type="text/javascript"></script> <script> .nivoSlider { position:relative; background:url(images/loading.gif) no-repeat 50% 50%; } .nivoSlider img { position:absolute; top:0px; left:0px; display:none; } .nivoSlider a { border:0; display:block; } .nivo-caption { position:absolute; left:0px; bottom:0px; background:#B4B905; color:#005866; width:350px; height: 100%; z-index:8; padding: 5px 10px; padding-left: 35px; overflow: hidden; display: none; } .nivo-caption p { padding:5px; …

Member Avatar
Member Avatar
+0 forum 1

Evening All, I am looking to start a class that dynamically creates a sitemap.xml on command and if possible auto uploads to google. The only thing is all the scripts i have come across by searching google tend to be using static pages. My links are dynamic and are also modified with mod_rewrite. I am stuck at where to start. Could anyone point me in the right direction to start? Thanks for reading

Member Avatar
Member Avatar
+0 forum 2

hi all, I have a scrap working but it also brings the restred trade mark. I have permission from the company to do this. How do i strip these out? // get simple_html_dom from http://simplehtmldom.sourceforge.net/ include_once('simple_html_dom.php'); // @todo change $url for form input $url = ""; $html = file_get_html($url); // look for ul tags inside DIV with id ProductDetail $ul = $html->find('div[id=ProductDetail] ul'); // look for h1 tags inside DIV with id ProductDetail $h1 = $html->find('div[id=ProductDetail] h1'); // look for span tag with discription class inside DIV with id ProductDetail $det = $html->find('div[id=ProductDetail] span[class=discription]'); foreach($h1 as $header1){ echo $header1 ."<br/>"; …

Member Avatar
Member Avatar
+0 forum 5

Hi all, I am in need of assistance. I am trying to configure PEAR with XAMPP 1.8.0 on Win 7 64Bit. I download the go-pear.phar (http://pear.php.net/manual/en/installation.getting.php) and ran the instructions. Updated my env path. All looked ok. Tried to run `pear help` and i get nothing, no error, not a snip. Uninstalled XAMPP, ran CCleaner, rebooted, removed and env path that was changed. Rebooted. Reinstalled XAMPP, rebooted (see where this is going?), redownloaded go-pear.phar. Reran it, rebooted, re ran `pear help` still nothing I have tried this in different combinations, and cannot for the life of me see what i …

Member Avatar
Member Avatar
+0 forum 4

Ok, following from my previous thread (now resolved) i want to convert and use namespace. **headScript.php**: <?php class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=roundth4_rtb2", 'root', ''); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- " . $e->getMessage(); die(); } } public function headLoad() { $cxn = $this->connection()->prepare("SELECT scriptCode FROM head_scripts WHERE active != '0'"); $cxn->execute(); $cxn->setFetchMode(PDO::FETCH_ASSOC); while($row = $cxn->fetch()) { print "<script>"; print $row['scriptCode']; print "</script>"; } } } ?> I'd like to remove the connection function and put this in its own file, then using namespace to pull this in. …

Member Avatar
Member Avatar
+0 forum 12

Hi all, Hoping you can assist. I am probably starring at the darn thing but i cannot see the wood through the trees :) class headScript { public function connection() { try { $dbh = new PDO("mysql:host=localhost;dbname=xxx", 'xxx', 'xxx'); // Dev return $dbh; } catch(PDOException $e) { echo "Error :- " . $e->getMessage(); die(); } } public function headLoad() { $cxn = $this->connection()->prepare("SELECT scriptCode FROM head_scrips WHERE active = '0'"); $cxn->execute(); $cxn->setFetchMode(PDO::FETCH_ASSOC); print "<script>"; while($row = $cxn->fetch()) { print $row['scriptCode']; } print "</script>"; } } I have this basic class, it will get all active scripts from the database. I …

Member Avatar
Member Avatar
+0 forum 5

Hey Mods. I have changed my avatar 2~3 days ago. But my old one is still posting when i do things. Why?

Member Avatar
Member Avatar
+0 forum 4

Hi all, I am working on a generic form validation class. However I have hit a stubling block. Form fields will never be the same from user to user. Is there a work around for this? Would it be easier to use numerical values for field names and use multiple validation functions (minimal duplication then :))? Any assistance would be greatly appreciated

Member Avatar
Member Avatar
+0 forum 10

WTF, i got a PM today. Please block how ever this bell end is: > Hello my name is queen how are you doing ,i hope fine i saw your profile today and became interested in you, it will be my humble pleasure to know you the more, and i kindly want you to send an email to my mail so that i will send you my picture for you to know whom i am . Here is my email address [jobe.queen@yahoo.com] I believe we can move from here if it will be your pleasure thanks and God bless,have the …

Member Avatar
Member Avatar
+0 forum 4

I have been looking over current frameworks available and I am looking to settle on CodeIgnitor. What framework and IDE do you use? What are the plus sides, limitations of your choice?

Member Avatar
Member Avatar
+2 forum 4

Hi all, Does anyone have a good rss class? i am looking to use one where i have a list of feeds in a database and you can select which feed to display via CMS

Member Avatar
Member Avatar
+0 forum 1

Hello evryone. I am new to PHP and MySQL. I have created an admin area for where selected people can add, delete, and edit data from a database. I have managed to get the add, and delete to work, but I am stuck with the editing. Can you help? [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Admin | RTB</title> <link href="../stylesheets/styleadmin.css" rel="stylesheet" type="text/css" /> <script type="text/javascript" src="../tiny_mce/tiny_mce.js"></script> <script type="text/javascript"> tinyMCE.init({ // General options mode : "textareas", save_onsavecallback : "Editor_Save", theme : "advanced", plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,imagemanager,filemanager", // Theme options theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", …

Member Avatar
Member Avatar
+0 forum 4

The End.