6,015 Topics
![]() | |
Hi Is it possible to execute normal php code under zend framework php. As far as i have heard php is a MVC model style coding. But i have not done MVC programming in php. I have an appplication where i need small modification. I have done some programming in … | |
import java.awt.*; import java.awt.event.*; import java.io.*; public class StudentWriteApp extends Frame implements ActionListener { //Declare stream objects FileOutputStream outputStudent; //Stream to create file ObjectOutputStream objSaveStudent; //Stream to save an object //Declare components TextField txtStudentName = new TextField(20); TextField txtAddress = new TextField(20); TextField txtResults = new TextField(25); Button btnSave = … | |
hi i have a file dictionary.txt which contains a list of four-letter words which i have to read into a string vector. i have written the following code [CODE] char* char2str(char); //convert single char to null terminated string int main() { vector<string> dict; ifstream in("dictionary.txt"); char *temp, ch; int i=0; … | |
I am new to programming in Python and I am just wondering if I could have some help. I am trying to write a program which creates diary entries for events and I am currently trying to convert the raw_input from the user into a date (yyyy/mm/dd) and time (24hr … | |
everything was working before, now i keep getting the following error: FILE specified in CFHTTPPARAM tag not found someone please help. my code looks like this: [CODE] <!--- Upload the file to the server ---> <CFFILE action="upload" filefield="img" destination="#ExpandPath('../img')#" nameconflict="makeUnique"> <cfhttp url="http://www.xxx.com/admin/upload-size.php" method="post"> <cfhttpparam type="formfield" name="bThumb" value="2" > <cfhttpparam type="file" … | |
![]() | Hello, I am encountering a problem when I try to connect to my webcam using CreateFile. Using the SetupApi, I found the interface path of my webcam: \\?\usb#vid_03f0&pid_5d11&mi_00#6&aad3e6&0&0000#{6bdd1fc6-810f-11d0-bec7-08002be2092f} According to the MSDN documentation I supposed that when I use this interface path in CreateFile, I will be able to read … |
[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> typedef struct { int code; char name; float amount; int shares; float c_price; }DATA; typedef struct stockList { DATA stock; stockList* link; }STOCK; STOCK* insertStock(STOCK* pList, STOCK* pPre, DATA item); STOCK* buildList(char* fileID); void printList(STOCK* pList); void fprintList(STOCK* pList); bool searchList(STOCK* pList, STOCK** pPre, … | |
I'm creating a program that maintains a log file. The file is created at the start up of the program and appended to throughout the run. This works perfectly fine, but I went and manually added the program to run at start up in the registry. The program runs as … | |
Hi all, I'm new to this community. I am doing a project that I'd have to write a program to connect 2(at least) PCs together. each PC works as a server and at the same time as a client, which each of them can download the file which is shared … | |
hello, i have used the following code for file upload: [CODE=php] $id=100; $upload_dir = "images/"; do { $photo = $_FILES['photo']; switch($photo['error']) { case UPLOAD_ERR_INI_SIZE: $err2 = "Server doesn't allow the image size.. Please select a smaller one.."; break 2; case UPLOAD_ERR_PARTIAL: $err2 = "The image was not transferred successfully.."; break … | |
This seems simple, but it's not working. There IS a text file in the same directory, but it's not being opened (and with the ios::in | ios::out, it should open even if it doesn't exist). I also ran into trouble trying to use infile.fail, which is why I used !infile. … | |
I am trying to delete a file when my program draws itself (Using Visual Studio 2008). Currently using this method [CODE] public frmMainMenu() { InitializeComponent(); File.Delete("\\Program Files\\smartdeviceproject1\\SendXML\\1.txt"); }[/CODE] The path for the file is "\Program Files\smartdeviceproject1\SendXML\1.txt" Yet when the program is executed, breakpointing shows that the line is executed (and … | |
Hello, I was trying to implement data structures using file operations. I am using a data structure of two integers, one being the index number and other being the value. My actual aim is to recreate the file containing the data using a log. But, the program isn't running as … | |
In my code I want to upload a file to my project(named Musiker), under the folder music. Here is what I did so far, it's not working. 'to get the path where to upload it, I did the following Dim strpath As String = Application.StartupPath Dim num As Integer = … | |
Hello All, I am presently working on a developed website and want to add some functionality to it. I have a file called AssetPreview.ascx and the code behind the file as AssetPreview.ascx.cs Now, i added something to the ascx file like, [code] <a id="test" onclick = "temp()" runat="server" >Click here … | |
Ok what im tryin to do is open a file by the name a user request after that i ask the user and id number to look for in the file if its found i want to display it along with the name after it but i cant figure out … | |
hey there. first off, i hope i posted my question in the right forum. second, i thank you in advance for an answer. i have two short batch files: 1. shutdown - s - c "my message" - t 20 i expect this to shut down my computer in twenty … | |
//Trying to read double values from each line of a file..and try to store them in arrays //when i debugged,it doesnt do the parsing for the alldoubles e.g txt file consists 2.3,4.5,6.2,4.5 2.8,2.4,4.6,1.2,3.5 3.6,3.8,5.9,4.9,12.6,112.8 trying to put them in separate arrays [code] //CODE?? #include <stdio.h> #include <stdlib.h> #include <string.h> FILE … | |
1 Win 7 unit , 1 XP unit connect via a workgruop LAN. All works fine then the Windows 7 losses access with the XP unit. (XP unit still see's Win7 unit). Win7 unit can still access the XP unit via a remote control program i.e. It can access the … | |
Hello All, I seem to be having a relatively small problem with a Maze program I'm working on. Basically, I read a txt file containing a maze into a 12 x 12 2D array, but the problem is when I try to display it, none of the white spaces that … | |
hey,can any1 tell me what im doin wrong here.im trying to upload a pdf file but the file is not gettin uploaded.here's my code [code=php] <?php require_once "../inc/functions.php"; sessionCheck(); session_start(); $old_sessionid = session_id(); //i've added these lines session_regenerate_id(); //i've added these lines $new_sessionid = session_id(); if($_POST['submit'] && $_FILES['txtFile']['name']){ global $uploadPath; … | |
Hello everyone, I need help. In my assignment i have an input file that contains string data: ----> i love music and chicken. today is the first day of the rest of your life. my name is john. I must change it to the following in the output file: ----> … | |
I need to create a function that uses a loop. This function will open a text file and then must be able to skip a variable number of leading random integers. The program must be able to handle any number of leading random integers. Example if the opened file reads … | |
Hi, I'm new to this forum. I have a question regarding outputting to .txt file. [CODE]while($file =<DNAFILE>) { open FILE, ">newseq.txt"; my $dna = fasta($file); my $newseq = mutationdna($dna,$years); print FILE $newseq; #this does not work. how do I fix it? print $newseq; # this work }[/CODE] The outputting to … | |
Hi, I am a little newbie with python, more use of C++ The goal is to search a specifed filename e trought multiple directories. After finding the file, search trough it's content some description on some strings and write out the description on a xml file. So far i manage … | |
Hi I'm developing an application using jsp.In that i want to upload a file and insert the datas from that into database. I'm using file type input box to upload file. Its working fine in IE,but getting problem while running in Firefox 3.Bcoz of the security purpose,I cant get the … | |
Hi, I have a form linked to a servlet that uploads files. I would like the name of the file that has been uploaded to be displayed next to the <h3>line once it has been processed. I have no problems linking the servlet to the form or uploading the file. … | |
hello , I am making a small game engine and I have 2 header files engine.h and objects.h they both include each other. However it seems that its not getting included into objects.h , what is the "right" way to fix this ? sorry , I'm too lazy to gut … | |
I am converting a console IO program to a file IO program. The program worked perfectly as a console IO. I thought I made the appropriate changes to the program. It compiles, and when I run it output does go to my output text file, but the output is the … | |
How can i call (execute) a file (with ".c" extention) from the particular path without including it into main file ? Now the file which we have to call from particular path is containing only a function (without "main()")..... | |
Hi guys: Let's say somebody may change the extension of a .doc or .mp3 file to .wav, in my application, I want to check to make sure if a file is actually a .wav file. How do I do this in C# ? Please let me know, Thanks, Rocco | |
Hi! My problems are more of porting a code to Windows, than the code itself. I need to download a file from a URL ( http://127.0.0.1/img.jpg ) and store it in a local file. I think I've screwed up the setting up of the libcurl libraries. I am using Visual … | |
Hi all, I am doing a project work and I need to take the image(just as screenshot) of the first page of any file so that contents of that first page can be viewed by that image . And finally i want to set that image as an icon for … | |
Hi! I'm trying to build a Python extension with C/C++. I'm following the steps given in the documentation [URL="http://docs.python.org/extending/extending.html"]here[/URL]. I've followed the steps mentioned and written my first code. However, I have no clue on how to compile the project! I do not know how to create the .pyd file … | |
Hello guys. I recently formatted my computer and now I can't access some of my files. When I try to open a word file for example I get the message that I don't have enough permissions to access it. I never set access permissions for my files and I never … | |
Hi Guys, basicly what im trying to do is upload a file to a folder on a server. here is the html form: [CODE]<form enctype="multipart/form-data" action="upload.php" method="post"> <fieldset> <legend>Upload File:</legend> <input type="file" name="upload" /> <input type="submit" name="submit" value="Submit" /> </fieldset> </form>[/CODE] and here is the php code: [CODE]<?php #upload.php ini_set('display_errors',1); error_reporting(E_ALL|E_STRICT); … ![]() | |
how do i read in files from a ".txt" file into a linked list heres my code. [CODE] import java.io.*; public class LinkedList1 { class Node { String element; // list element Node next; // successor link Node(String el, Node n) { element = el; next = n; } Node(String … | |
Hi everybody, I have this File Upload control, whereby the user is granted a limit of 5 uploads. And so, the user clicks on "Attach Another File", and decides to attach a file ONLY in the first File Upload control. My problem is, I want the user to be able … | |
hi, I am developing web application using jsp and servlet. with help of this application I am downloding files from server to client machine. it is working.... But my problem is how to avoid the download window while download the files and store the perticular place in the system. please … | |
hi , i am developing web application. In that, I download two files from glashfish server into another local machine in jsf. if i access from client machine, files does not download into client machine. but it download into server machine alone. so to solve the problem, shall i use … | |
Hi, I need to define some common variables in one file and use that file in my python script , Like in php we define some variable in (eg :definevble.config) file, later we will use that file using include method in php script. Plz let me know how to do … | |
[b]Split from - [url]http://www.daniweb.com/forums/thread158197.html[/url] [/b] [QUOTE=mabros86;739291]well basically what i'm trying to do is build a program that takes a file and copies is to another new file identically!!![/QUOTE] hi.. uhm.. how did you do this? i mean how to copy a file from jFileChooser to another destination? is it possible … | |
Friends, pleas tell me a simple method to upload and then view the upload image using php and mysql. The image can be stored in a separate folder or in database itself. But anyhow tell me the simplest way to do this. It'll be very good if u post the … | |
I need some help please to recover a lost wav file on a Digital Voice Recorder that doubles as a 2 Gbt USB formatted using FAT 32. I was the only one recording an important international conference at a local university. Unfortunately on the last 90 minute recording (expected 20 … | |
I was wondering if its possible to specify the name of a file being created with a variable yet still specify the extension for the file. Example: [code] string name; cin >> name; ofstream myfile; myfile.open(name".sta", ios::out); [/code] i was wondering if you could do something of the sort i … | |
I'm writing a simple program that reads a text file and counts the vowels in it and outputs how many are included. With the code I have I keep getting the wrong number of vowels outputted. Can anyone see where I made a mistake, I can't figure it out. my … | |
Question by ~s.o.s~ Write a program which will perform the job of moving the file from one location to another. The source and destination path will be entered by the user. Perform the required error checking and handle the exceptions accordingly. (Intermediate) [code=c++]#include<fstream> #include<iostream> #include<cstdio> using namespace std; int main(){ … | |
hi ......... i have two tables emp_company and at0310 in at0310 having fields: ecardno,atdate,time,IO,serialno,cardrd and ecode. and at0310 records comes from text file.. into my text file ecardno,atdate,time,IO,serialno,cardrd record available but ecode not comes from there. in my emp_compnay i have fields like ecode,ecardno,etc i want into my at0310 table … | |
Hi all, Im trying to use a variable as a path in C. For instance, the user enters a directory and this is used with the '*.*' notation attached so the program loops all files in the directory. I've got the PHP part of this code working in a separate … | |
I am trying to read input form the user and then print them to a file but the compiler is giving me some error about invalid pointer at the fprintf statements [code]void addrecord(void) { struct custinfo info; FILE *customer; printf("\n\n\t\t\t PLEASE ENTER THE CUSTOMER INFORMATION BELOW"); printf("\n\n\t\t\t REGSISRTATION NUMBER"); scanf("%d",&info.regis); … |
The End.