6,015 Topics
![]() | |
Hello, I am facing a problem I cant seem to find an efficient solution for. My application is supposed to parse a text file while another process is continuously adding to it. I have tried scanner and inputstream but both seem to stop once they hit the end of the … | |
Online file hosting. I click "Upload File". I select correct file. I click "Open". File gets uploaded. I log out. What else does hosting get to know? (besides name, modification timestamp, creation timestamp, content, extension and length of upload file etc.) Assuming running Linux Ubuntu/Arch/Whatever, on Mozilla Firefox or any … | |
I am using the [jQuery File Upload plugin by Blueimp](https://github.com/blueimp/jQuery-File-Upload/wiki/Cross-domain-uploads#cross-site-xmlhttprequest-file-uploads) to upload images to a server. The problem is, the sending server is `admin.example.com`, and the receiving server where the images are stored is on `www.example.com`. Same domain, different subdomain. I followed the [instructions here on setting up cross-domain uploads](http://blueimp.github.io/jQuery-File-Upload/), … | |
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 … | |
I am attempting an extra credit assignment for a summer course. The question says : "Modify the client.c and server.c program from Assignment 1 to add the following function: when the client connects to the server, the client provides the name of a directory D to be retrieved in the … | |
The problem that im facing is, the below code is working correctly and retrieve the pdf format files correctly and displaying it in the iframe. but it is only working in eclipse internal browser but not in firefox or internet explorer. what will be the reason for this.... Source code: … | |
Here is something interesting about `detach()` vs `remove()` in jquery that happened to me. As we know, `remove()` removed an element from the DOM wherease the` detach()` does the same thing but it keeps all the jquery events bound to the element to which the method is applied to. I … | |
Good day ,wish to know how to upload multiple image files with multiple inputs and multiple directories. My code is <table border="1px" width="100%"> <tr><td colspan="3" style="background-color:#E8E8E8"><b>Supporting documents upload</b></td></tr> <tr><td> </td><td colspan="3"><input style="height:35px;" type="file" name="pri" required ></td></tr> <tr><td> </td><td colspan="3"><input style="height:35px;" type="file" name="oresult" required ></td></tr> <tr><td> </td><td colspan="3"><input style="height:35px;" type="file" name="oresult2" required ></td></tr> <tr><td> </td><td … | |
If you were to suggest an outsourced IT provider, which company would that be and why? | |
Hello to all! I have started learning android recently and I am facing a problem in file handling (in internal storage). I wrote a simple program which creates a file and writes some data in that file . I have two buttons first button writes data in the file and … | |
Hi, this was my previous post https://www.daniweb.com/programming/software-development/threads/504670/need-help-with-a-java-program-that-will-indent-code-from-another-java-file#post2204763 I heard it would make more sense if I put all the code on one line and worked on it from there. I already have code that will indent properly, but I need code that will properly separate the text in Code.java This … | |
Hello DaniWeb Users, I need some help how I can change a file name but not the file extension. Doing it one by one is pain. mv file1.gr2 test1.gr2 doing this will need a lot of time. I been searching for an hour find . -name "*.gappedPeak" -exec sh -c … | |
Hi, so I'm trying to create a Java program that will read a Java file that is incorrectly formated and properly indent and format it. This is what I have so far. import java.io.*; import java.util.*; public class Project3 { public static int SPACES = 0; public static void main(String[] … | |
Hello all hope all is well, Im new to c# and new to the site so bare with a noob :). any way I have an assignment and Im running in to a problem where I don't know how to have c# read a text file and turn the numbers … | |
> 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"> … | |
This is php code at https://developers.google.com/maps/articles/phpsqlajax_v3#putting-it-all-together. <?php $username="xxxx"; $password="xxx"; $database="xxx"; ?> <?php function parseToXML($htmlStr) { $xmlStr=str_replace('<','<',$htmlStr); $xmlStr=str_replace('>','>',$xmlStr); $xmlStr=str_replace('"','"',$xmlStr); $xmlStr=str_replace("'",''',$xmlStr); $xmlStr=str_replace("&",'&',$xmlStr); return $xmlStr; } // Opens a connection to a MySQL server $connection=mysql_connect ('localhost', $username, $password); if (!$connection) { die('Not connected : ' . mysql_error()); } // Set the active MySQL … | |
I am making a website that will images on there, but the webpage will refresh every 15seconds but I want new images to appear on the site, is there anyway to do this? | |
Im a newbie and i am a student and new to php could anyone teach me how to upload image to database and view it.Please Help me or send the link for complete tutorial | |
I want to download "Bhavcopy.cvs" file form "bseindia.com" on everyday at 5 pm. automatically. So, I want php code that automatic download this file from "nse" website... Please help.. The URL goes as follows http://www.bseindia.com/download/BhavCopy/Equity/EQ140316_CSV.ZIP I want to build an automated function to automatically upload reports from a URL at … | |
Hi guys i'm trying to do a programm for school.I have to create something using " semaphore " and i solved it using "#include <sys/sem.h>". Now i'm trying to make this work on Windows 8.I have done many exercises here and they worked,but now there is a message of error: … | |
Why This Program is not Changing Directory from C:/ to H: Drive or D: Drive. #include<iostream> using namespace std; int main(int a,char *b[]) { int option; cout<<endl<<"Enter 2 for 2nd Semster Programs "<<endl; cout<<endl<<"Enter 3 for 3rd Semster Programs "<<endl; cin>>option; if(option==2) { system("D:"); system("explorer ."); } else if(option==3) { … | |
Could anyone help with the code I have made. The problem is that it is reading in the conversion txt file but because there is a space between some of the data it will not display the result, it comes up with a message saying 'out of bounds of the … | |
<?php require('config.php'); if (!isset($_FILES['image']['tmp_name'])) { echo ""; }else{ $file=$_FILES['image']['tmp_name']; $image = $_FILES["image"] ["name"]; $image_name= addslashes($_FILES['image']['name']); $size = $_FILES["image"] ["size"]; $error = $_FILES["image"] ["error"]; if ($error > 0){ die("Error uploading file! Code $error."); }else{ if($size > 10000000) //conditions for the file { die("Format is not allowed or file size is too … | |
Hi.. I want to upload a file with help of FileUpload control, in which, i want to save the file with a specific name or say a name entered in a textbox on a same page. for ex, if textbox contains "ABC" then the files should be uploaded with abc.jpg … | |
When our template goes mobile it has two compacted menus. Any idea how I can get rid of the top one? The one under the logo is correct, the one above is some left over code I can't seem to find. You can see them here with a mobile phone … | |
I have a Text file with several different C:\ locations i need, the idea is to use the streamreader to read the text file, load each line into an array and then be able to use that specific array per line in the Sub routines to code. the idea, is … | |
Group, I can't seem to append multiple files into one text file. Unfortunately it's creating the first file but is not creating or appending the additional files into the first file. My code looks like this: getRestranName = System.IO.Directory.GetFiles(folderName) Dim counter As Integer = My.Computer.FileSystem.GetFiles(folderName).Count fileCount = Convert.ToInt32(counter) fileCount = … | |
I am new to php. I encountered the following errors. Warning: require_once(/dbtest/db_connect.php): failed to open stream: No such file or directory in C:\xampp\htdocs\dbtest\connect.php on line 2 Fatal error: require_once(): Failed opening required 'dbtest/db_connect.php' (include_path='C:\xampp\php\PEAR') in C:\xampp\htdocs\dbtest\connect.php on line 2 I am very sure I have db_connect.php file inside my dbtest … ![]() | |
fatal error: pwd.h: no such file or directory, I got this error when trying my code when using the following library #include<pwd.h> | |
Hi. I am new to the forum and I had a question. I have looked around and haven't really been able to find exactly what I am looking for. I am looking for the code in C++ to read in a random single line with spaces from a file. This … | |
I have a question regarding user membership of groups in Active directory and grabbing such memberships with PHP. My big question/situation is that I have a site I am making and essentially I am trying to assign administrators based off of groups in Active directory and I know how to … | |
Hi I have some python file.i runs these file one by one as below on unix server. python f4761sk3.py python f4761sk2.py python f4761sk1.py python f4761se3.py python f4761se2.py python f4761se1.py python f4761pl3.py python f4761pl2.py python f4761pl1.py python f4761no3.py python f4761no2.py python f4761no1.py python f4761nl3.py python f4761nl2.py python f4761nl1.py python f4761ie3.py python … | |
Is it possible to upload a file in php without form tag browse button and upload button. if particular file exist in folder i want to upload that file to server..how it is possible | |
Hi all, Can you please tell me if there is a bash command in UNIX that is similar in functionality to XCOPY in Windows? XCOPY can copy who directory trees from a source folder to a destination folder, but from what I saw about the cp command in bash, it … | |
Hi People; I've got issue in uploading image in cake php. Thing is that, I have a form, where i have input type="file". I need to upload a file in a directory and save its path in database. In "view" its like... <tr><td> <?php echo $this->Form->input('field', array( 'type' => 'file', … | |
How can i select the multiple files to upload at once using php? | |
Hello, I'm using a function for uploading images on the server and database. The only problem is that I can not properly put to the various alerts for required fields or missing and with happened insertion message. For the moment my code, obviously wrong, is so: include_once 'function/upload.php'; if(isset($_POST['submit'])) { … | |
HI, We used to have a Win 7 Pro pc running as a file server in our small office - 4 or 5 client PC's attached, all running Windows variants. This was fine, but after 5 years I decided to replace the file server before problems started developing. This is … | |
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 … | |
Hello, I'm having trouble uploading all the various data to the database, can you help? The code is this, I have done some testing but the original image and thumbnail are loaded properly in the directory, but all the data are not passed to the database. What is the correct … | |
Hello, just I ask for help because I can not find solution, despite my tests. How can I get the final image file should be alone **rand + original file name + extension** instead of the **rand + extension**. <?php // ************************************************************************* // **** Setup the variables for your script … | |
HI.... im new to php, i ve a doubt. i want source code in php for the requirement as traited below. im creating a registration form with two image file uploading system. I need a source code in such way that, the inputs NAME, AGE, MOBILE NUMBER, image upload(ONE), image … | |
Dear All, I'm developing a php system which contains over 50000 images in a directory. Is there any tools which help me to do a search script to find a similar images in that directory. What I'm looking for is the user can upload the image and the script retreive … | |
Hello, kindly ask your help regarding a function to upload images in two folders, one original image and the "Thumb" folder for thumbnails. Well, I entered the rand code to rename the file name. Loading is performed properly in the root folder (Original image) but not in the thumb folder. … | |
Hi Everyone, I have a project from school which is a console application that takes hard-coded items and process those inside of one of my custom class which intherit from a list of strings. Then, it processes those items and apply the Apriori Algorithm (I cannot use any existent package … | |
Hello, I ask your help in order to use this class. I need your explicit example is the code and form to use it properly. http://www.phpclasses.org/package/9683-PHP-Validate-and-add-watermark-to-uploaded-image-files.html#view_files $upload = new ImageOperations(); ext and the correct form. Thank you in advance for your help. | |
My acer keeps showing loading restore point no windows 7 starting after it fell blue windows screen start back again help pls | |
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 … | |
I am working with windows application, I have pictureBox to load image from the directory. I am trying to get some idea how can I display magnified image of particular area depending on the coordinates of that specific area on textbox focus. | |
Basically, I'm working with zipimport to load plugins. These plugins contain binary modules which can only be loaded via retrieving their data. Copying them to a temporary directory is stupid, so how can I get a handle to a dynamic process which I can inject the stream into before it's … |
The End.