Greetings Digital Natives. I'm excited join this platform. I am a sofware developer at [Timbu](http://www.timbu.com/south-africa) Hoping to learning and connecting with you guys. I want to really upgrade my tech skills. I have stayed along in front end. I need to do little of backend and move with likeminded fellow.

Member Avatar
+0 forum 0

I need an answer for this question ( write 2 program that takes grade as input and display the range of marks use the select case and if() A. 90 to 100 B+ 80 to 89 B. 70 to 79 C 60 to 69 D 50 to 50 F. F

Member Avatar
+0 forum 0

Hi guys i am new here..i am not have more experience with php.I have one good script ,this search on folder from name the file,example pdf file.Worked ok all goood but i need add the limit rezult for show because i search pdf name for example and this show me all file pdf,no have limit on page for rezult.I need limit this only 15 rezults,and another question possible add the messsage file not found for rezult nothing existent. thanks you very much!! <?php $dir = 'data'; $exclude = array('.','..','.htaccess'); $q = (isset($_GET['q']))? strtolower($_GET['q']) : ''; $res = opendir($dir); while(false!== ($file …

Member Avatar
+0 forum 0

Hi, Me and my colleague are trying to fix an error when we are testing to upload the file to the storage in our PHP test project. The error is called: **FatalThrowableError (E_ERROR): Call to a member function getRealPath() on null** ![0CtiPf.png](/attachments/large/4/a9bee726794f71d1f2c22c42f3f93093.png) We are using Laravel to create a new project. Can help what code has the problem and how to fix it? Here is the project zip file: https://1drv.ms/u/s!AqKGcmac7PpVgdUraHfDoXoZ2zpXFA

Member Avatar
+0 forum 0

Hey everyone, So I've got some some code for creating a directory (folder) but forgot to implement the option with creating another folder within a folder that was already created and then displaying that hierarchy on the same page. Here is what I have so far but I can post more code if it's needed down the line, if I've forgotten something. HTML: <form id="form1" name="form1" method="post" action="" style="margin:0px;"> <label for="category_title_box">New Category Title</label><br /> <input name="category_title_box" type="text" id="category_title_box" size="20" /> <br /> <br /> Select a current Category: <select id="Category_Select" name="Category_Select" height="27px"> <option value="" selected="selected">-----</option> <?php foreach(glob(dirname(__FILE__) . '/files/*') as …

Member Avatar
+0 forum 0

i am just transloading multiple files from one server to another, if it comes less then this script work perfect, if its crossing to thousands URL's then requests increase and then server block for accessing files. With this script if i add 5000 URL's it suddenly starts sending request and transloading the files. (Server block it due to huge requests.) <?php // Check if form has been submitted if(@$_POST['submit']){ ini_set("max_execution_time", 0); // no time-outs! ignore_user_abort(true); // Continue downloading even after user closes the browser. // URLS -- One on each line $URL = $_POST['url']; // Relative path to Save downloaded …

Member Avatar
+0 forum 0

I drew a picture of the database performance for editing. But I try not to choose a new image. Then press the update appears that it does not send the originals back. If you choose a new image It was able to get regular updates. If not, select and click Update. The original image data can not be sent. And can not be displayed. sorry i'm not good english <?php session_start(); //PUT THIS HEADER ON TOP OF EACH UNIQUE PAGE if($_SESSION['Level'] != "Admin"){ header("location:../index.php"); header("Content-type: text/html; charset=utf-8"); } include "config.php"; if(isset($_GET['u'])): if(isset($_POST['bts'])): $sql="SELECT * FROM image where image_id= '$image_id' "; …

Member Avatar
+0 forum 0

> i have bind 10 random post form json file in to marquee but the problem is arising , its show like list and showing as marquee works kindly check the code and the output , do some suggestion what to do . Thanks in advance <html> <head> <meta charset="UTF-8"> <title>Sabkideal.com Todays findmystay.com</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script src="bootstrap/js/bootstrap.min.js"></script> <!-- Boostarp --> <link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" media="all" /> <!-- Boostrap --> <link rel="stylesheet" href="bootstrap/css/custom.css" media="all" /> <script type="text/javascript"> function disableSelection(target){ if (typeof target.onselectstart!="undefined") //IE route target.onselectstart=function(){return false} else if (typeof target.style.MozUserSelect!="undefined") //Firefox route target.style.MozUserSelect="none" else //All other route (ie: Opera) target.onmousedown=function(){return false} target.style.cursor …

Member Avatar
+0 forum 0

I'm Using **AdminLTE-2.3.0** template, **jquery.imgareaselect.js** I'm using bootstrap modal to submit form via ajax. Inside Modal I have preview of image before upload. And **imgareaselect** is not working well that I proceed further with image cropping. **ScreenShot of error is attached.** **Please help.** **Thanks.** **imgareaselect-animated.css** .imgareaselect-border1 { background: url(images/border-anim-v.gif) repeat-y left top; } .imgareaselect-border2 { background: url(images/border-anim-h.gif) repeat-x left top; } .imgareaselect-border3 { background: url(images/border-anim-v.gif) repeat-y right top; } .imgareaselect-border4 { background: url(images/border-anim-h.gif) repeat-x left bottom; } .imgareaselect-border1, .imgareaselect-border2, .imgareaselect-border3, .imgareaselect-border4 { filter: alpha(opacity=50); opacity: 0.5; } .imgareaselect-handle { background-color: #fff; border: solid 1px #000; filter: alpha(opacity=50); opacity: 0.5; } …

Member Avatar
+0 forum 0

Hello, I want to simultaneously add multiple post ques to wordpress, for example i want to add 100x Animal Imgs, Food Imgs and Gamming Imgs to que at the same time so for every "X" mins it must post 1 animal pic, 1 food img, 1 gamming img. is there some way / plugin to do so? if yes can someone please help with this? Almost all the scheduler plugins i tried they allow you to schedule only 1 que. for multiple ques i had to setup a wordpress mu blog and schedule posts of each category on each sub-blog, …

Member Avatar
+0 forum 0

I am trying to upload file from postantivirus1.jsp after selecting the file from postantivirus.jsp Here is the code Postantivirus.jsp Anti Virus Software : </td><td><input type=file name="fname"><br/> <input type=submit value="submit"></td><td><input type=submit value="clear"> Postantivirus1.jsp String s=request.getParameter("fname"); System.out.println(s+" s"); FileInputStream fis=new FileInputStream(s); System.out.println(fis+" fis"); String s1=application.getRealPath("/"); String destFolder = s1 + "images/"; s1= destFolder +avno+".zip"; FileOutputStream fos=new FileOutputStream(s1); int x=0; while((x=fis.read())!=-1) { System.out.println(x); fos.write(x); } fis.close(); fos.close(); But I am getting following error on jsp page because system is not able to find the file due to insufficient path information, > java.io.FileNotFoundException: Branch2.java (The system cannot find the file specified) > how can …

Member Avatar
+0 forum 0

anybody can help me??, if the structure form like this. <input type="file" name="image_1"> <input type="file" name="image_2"> <input type="file" name="image_3"> <input type="file" name="image_4"> i want to upload multiple image with a single action to codeigniter and save it to database, my database table image coloum : image_1, image_2, image_3, image_4,

Member Avatar
+0 forum 0

Hello All, I have been working on a registration form for opencart for a while now. I think I am nearly there in how I have coded it. However I just do not know where I am going wrong with it. It is a standard form with text input fields and I just now need a file to be uploaded also on registration. I have added the upload button and added controller code just not working. I want it so it registers the path to the DB and then also uploads to a folder on the server. This is what …

Member Avatar
+0 forum 0

Following is my code effort.... I want to read first line of file(comma separated) & then create table in JavaDB but stuck here... Please someone help me how to do next???? public class DatabaseDAO { public void FileRead(String st) throws ClassNotFoundException, SQLException, IOException{ String []tokens=null; try{ try (FileReader fr = new FileReader("st"); BufferedReader br = new BufferedReader(fr)) { String line=br.readLine(); while(!"\n".equals(line)){ tokens = line.split(","); } Class.forName("org.apache.derby.jdbc.ClientDriver"); String url="jdbc:derby://localhost:1527/SmartMiner"; try (Connection con = DriverManager.getConnection("jdbc:derby://localhost:1527/SmartMiner","PKG","diaaman")) { Statement stmt=con.createStatement(); String sql="CREATE TABLE SmartMiner"; stmt.executeUpdate(sql); con.close(); } } } catch(IOException ioEx){ System.out.println(ioEx); } } }

Member Avatar
+0 forum 0

I am trying to add a functionality of uploading image while adding new data but I am not able to achieve it. I will provide my code to you. Could you please help me to achieve it? Following is my code, I have three files namely index.php, script.js, func_events.php index.php is as below, <div id="myModal" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> <h3 class="modal-title" id="myModalLabel">Add event</h3> </div> <div class="modal-body"> <form class="form-horizontal" id="addEvent" method="post" role="form" action="func_events.php" enctype="multipart/form-data"> <div class="form-group"> <label class="col-sm-2 control-label" for="inputTitle" style="padding:0px;">Title</label> <div class="col-sm-5 col-sm-offset-1"> <input type="text" id="inputTitle" class="form-control" …

Member Avatar
+0 forum 0

I'm trying to change the code below to upload multiple files. Each with a seperate progress bar as shown below. Please help. ![snip.JPG](/attachments/large/4/e311263a0071b800273939069664b69b.JPG "align-center") <!DOCTYPE html> <html> <head> <script> function _(el){ return document.getElementById(el); } function uploadFile(){ var file = _("file1").files[0]; // alert(file.name+" | "+file.size+" | "+file.type); var formdata = new FormData(); formdata.append("file1", file); var ajax = new XMLHttpRequest(); ajax.upload.addEventListener("progress", progressHandler, false); ajax.addEventListener("load", completeHandler, false); ajax.addEventListener("error", errorHandler, false); ajax.addEventListener("abort", abortHandler, false); ajax.open("POST", "file_upload_parser.php"); ajax.send(formdata); } function progressHandler(event){ _("loaded_n_total").innerHTML = "Uploaded "+event.loaded+" bytes of "+event.total; var percent = (event.loaded / event.total) * 100; _("progressBar").value = Math.round(percent); _("status").innerHTML = Math.round(percent)+"% uploaded... please wait"; …

Member Avatar
+0 forum 0

I am writing code to upload photos to Picasa, before the code runs well, now new picasa google upgrade. help yourself way up photos on picasa Code old $albumUrl = "https://picasaweb.google.com/data/feed/api/user/$user/albumid/$/albumid"; // XML Upload được cung cấp bởi google $rawImgXml = '<entry xmlns="http://www.w3.org/2005/Atom"> <title>' . $path . '</title> <summary>' . $path . '</summary> <category scheme="http://schemas.google.com/g/2005#kind" term="http://schemas.google.com/photos/2007#photo"/> </entry>'; // Lấy thông tin File $fileSize = filesize($path); $fh = fopen($path, 'rb'); $imgData = fread($fh, $fileSize); fclose($fh); // Data header, cấu trúc được cung cấp bởi google $dataLength = strlen($rawImgXml) + $fileSize; $data = ""; $data .= "\nMedia multipart posting\n"; $data .= "--P4CpLdIHZpYqNn7\n"; …

Member Avatar
+0 forum 0

I'm beginner to wordpress I'm writing Business Directory Plugin for test from scratch. I have category page with database. how to add image support for categories? I got error while uploading images. *"File is empty. Please upload something more substantial. This error could also be caused by uploads being disabled in your php.ini or by post_max_size being defined as smaller than upload_max_filesize in php.ini."* I made changes to *post_max_size* & *upload_max_filesize* but not working **Please help me to complete Business Directory Plugin** **Database** CREATE TABLE IF NOT EXISTS `lstngs_mbl_categories` ( `id` mediumint(11) NOT NULL, `name` varchar(55) COLLATE utf8_unicode_ci NOT NULL, …

Member Avatar
+0 forum 0

Hi can anyone help with EER diagram,have databse,but need EER diagram,in workbench backword engineer does not create the relationships automatically.Need to set up manually.Just for 4 tables.Can someone help? I will upload then my database file.Thanks

Member Avatar
+0 forum 0

I have tested many times Which browser and read instructions. It seems there are missing points at main app page: https://github.com/WhichBrowser/WhichBrowser Author: Niels Leenheer I have checked again and a little bit confused as this is the first time. 1. It will be under public_html 2. Cron job will update with instructions: php composer.phar update 3. I need to install files even it is installed by Composer 4. Path/Line within .htaccess is Alias /whichbrowser /app/vendor/whichbrowser/whichbrowser 5. Files should be uploaded inside folder public_html even Composer installation: app/vendor/whichbrowser/whichbrowser/index.php 6. Placed a snippet of code on all webpages 7. Set WhichBrowser object …

Member Avatar
+0 forum 0

I'm trying to implement upload on [my application](http://github.com/bl4ckdu5t/vitabiotics). I'm hosting the application on Heroku, and I'm using S3. I've created a bucket and I've followed [this guide](https://devcenter.heroku.com/articles/paperclip-s3) trying to make it all work. But it still fails and I get no errors. The uploaded images never get to the bucket.

Member Avatar
+0 forum 0

Hi guys, thanks in advance for any help. I'm using this tutorial [Click Here](https://www.youtube.com/playlist?list=PL7C25B2F18F68F3EF) To make a multi-file upload. the actual upload works just fine, however the % progress and final file list of uploaded files that is supposed to show at the end is not working. Here is the upload page itself <?php if (!empty($_FILES['file'])){ foreach($_FILES['file']['name'] as $key => $name){ if ($_FILES['file']['error'][$key] == 0 && move_uploaded_file($_FILES['file']['tmp_name'][$key], "files/{$name}")){ $uploaded[] = $name; } } if (!empty($_POST['ajax'])){ die(json_encode($uploaded)); } } ?> <html> <head> <title>Multi-file Upload</title> <script type="text/javascript" src="upload.js"></script> <style> #upload_progress {display: none;} </style> </head> <body> <div id="uploaded"> <?php if (!empty($uplaoded)){ foreach ($uploaded …

Member Avatar
+0 forum 0

Good Day, There's a sticky that TUT about uploading image but i want the restrictions to be in this manner. But my problem here is no notice, no errors but the image file won't upload eventhough the other data has been updated, Here, check my codes. this quite long to be detailed. <?php error_reporting(E_ALL | E_NOTICE); ini_set('display_errors', '1'); session_start(); $session_id = $_SESSION['user_id']; if($session_id == null){ header("location:Student_Edit.php"); die(); } include 'Connect.php'; $flag = ""; $student_id = $_POST['student_id']; $first_name = $_POST['first_name']; $last_name = $_POST['last_name']; $gender = $_POST['gender']; $date_of_birth = date("Y-m-d",strtotime($_POST['date_of_birth'])); $contact_no = $_POST['contact_no']; $grade = $_POST['grade']; $section = $_POST['section']; $LRN = $_POST['LRN']; …

Member Avatar
+0 forum 0

Hallo, I have been trying to add SCORM in my moodle LMS (Learning Management System). I already choose SCORM for activity and upload my SCORM file. Yet, when I try to run my SCORM file : A plugin is needed to display this content. If anyone ever try moodle before and know how to solve this problem, please help! Thanks before.

Member Avatar
+0 forum 0

Ok so i didnt know where to post this but i am getting two errors while useing cURL. The first says cURL: (26) coudn't open file "test.csv". The second one keeps saying please upload a file. I have been trying to fix this for over a hour now and can not get a different result if someone could tell me what im doin wrong that would be amazing. curl -F 'source="Test Contacts"' -F 'filename=@test.csv' -F 'site_id=XXXXX' -F 'user_id=XXXXX' -F 'key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' -F 'format=csv' -F 'action=add' -F 'listname=TEST List For API Integration' -F 'email=XXXXXXXXXXXXXXXXXXXXX'http://app.example.com/mail/subscriber_upload/index/

Member Avatar
+0 forum 0

I have an Android Project for my homework. I will upload an image from phone gallery and find color which is dominant but color band includes other remarkable colors. This is what I want to do exactly. I found a website when I was researching. http://lokeshdhakar.com/projects/color-thief/ . It’s written with javascript language and it is very difficult for me to change this code to Android application. The basic explanation of my android project is this. I don't know how to use these algorithms in my code. I have to use Median-Cut and Scalar Quantization algorithm for it. If you help …

Member Avatar
+0 forum 0

Hi there I'm having a problem uploading my file with a progressbar. the problems are 1. i cannot upload any photos at all 2. i cannot find/promt errors **here is my full codes:** this is for php <?php if(!empty($_FILES['file'])){ foreach ($_FILES['file']['name'] as $key => $value) { $file = $_FILES['file']['name']; $allowed = array('.jpg','.png','.gif'); $ext = substr($file, strpos($file, '.'), strlen($file)-1); if(!in_array($ext, $allowed)){ echo 'File type not allowed'; }else{ if($_FILES['file']['error'][$key] == 0 && move_uploaded_file($_FILES['file']['tmp_name'][$key], "images/{$value}")){ $uploaded[] = $value; } } } } if(!empty($_POST['ajax'])){ die(json_encode($uploaded)); } ?> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script type="text/javascript" src="upload.js"></script> <style> #upload_progress{ display: none; } </style> …

Member Avatar
+0 forum 0

i need to upload multiple image randomly in flex with php as backend..can any one help me??

Member Avatar
+0 forum 0

What we have done was : Specifying valid FTP remote server name, a username and a password if password required in their relevant textboxes on the form then we click on connect, we notice that the TreeView control is filled with main directories while ListBox control is filled with main files root, that required setting up the Treeview first in the Design-Time (IDE) then we did the same to the ListBox control as well to correctly receive data returned from the FTP remote server. While recieving the data we've changed the cursor shape beside tracking down the ftp server status …

Member Avatar
+0 forum 0

Hello Daniweb! I'm an amateur programmer who's learned quite a bit from online references, and usually searching eventually reveals the problem but I'm stuck! I've overcome many obstacles when creating a custom button on the Ajax Editor control, namespace issues, registring the controls properly etc. I resist the temptation to ask for help because the errors should lead me in the right direction. Now I get no errors, but the control isn't visible! The tag is in the .ASP page and I even set the width, height and visible tags in case it's being hidden but nothing shows up. This …

Member Avatar
+0 forum 0

The End.