6,015 Topics

Member Avatar for
Member Avatar for nccsbim071

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 …

Member Avatar for nccsbim071
0
121
Member Avatar for Ciarant

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 = …

Member Avatar for Ciarant
0
196
Member Avatar for gaurav10

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; …

Member Avatar for gaurav10
0
124
Member Avatar for emma.parsons

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 …

Member Avatar for hondros
0
226
Member Avatar for xrum

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" …

Member Avatar for utdream
0
85
Member Avatar for Thew

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 …

0
115
Member Avatar for ganesanronaldo

[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, …

Member Avatar for ganesanronaldo
0
139
Member Avatar for zacory

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 …

Member Avatar for tetron
0
93
Member Avatar for ckjie

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 …

Member Avatar for strmstn
0
185
Member Avatar for JigneshManek

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 …

Member Avatar for JigneshManek
0
156
Member Avatar for richman0829

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. …

Member Avatar for richman0829
0
159
Member Avatar for Rageagainst20

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 …

Member Avatar for Geekitygeek
0
187
Member Avatar for techie1991

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 …

Member Avatar for WaltP
0
483
Member Avatar for plusplus

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 = …

Member Avatar for kvprajapati
0
229
Member Avatar for laptop545

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 …

Member Avatar for Renukavani
0
70
Member Avatar for smeghead007

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 …

Member Avatar for WaltP
0
105
Member Avatar for bibiki

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 …

Member Avatar for gerbil
0
163
Member Avatar for infrapt

//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 …

Member Avatar for abhimanipal
-1
1K
Member Avatar for Birilac

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 …

Member Avatar for AlwaysOnCall
1
290
Member Avatar for Menathradon

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 …

Member Avatar for WaltP
0
2K
Member Avatar for lisles

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; …

Member Avatar for lisles
0
97
Member Avatar for blakenbama

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: ----> …

Member Avatar for Ancient Dragon
0
144
Member Avatar for elainadani

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 …

Member Avatar for Ancient Dragon
0
152
Member Avatar for fuyuki

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 …

Member Avatar for fuyuki
0
125
Member Avatar for playonlcd

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 …

Member Avatar for playonlcd
0
175
Member Avatar for vsaransweety

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 …

Member Avatar for vsaransweety
0
92
Member Avatar for puk

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. …

Member Avatar for stultuske
0
61
Member Avatar for wwsoft

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 …

Member Avatar for wwsoft
0
140
Member Avatar for wolfkrug

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 …

Member Avatar for WaltP
0
183
Member Avatar for nirav99

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()").....

Member Avatar for WaltP
0
72
Member Avatar for rocco_h

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

Member Avatar for Diamonddrake
0
1K
Member Avatar for kedarm

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 …

Member Avatar for Salem
0
1K
Member Avatar for shivnath

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 …

0
60
Member Avatar for kedarm

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 …

Member Avatar for kedarm
0
5K
Member Avatar for blerina12

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 …

Member Avatar for caperjack
0
160
Member Avatar for sweetorangepie

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" />&nbsp;<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); …

Member Avatar for diafol
0
138
Member Avatar for xxunknown321

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 …

Member Avatar for BestJewSinceJC
0
198
Member Avatar for blur_guava

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 …

Member Avatar for Airshow
0
318
Member Avatar for manikandan_dani

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 …

Member Avatar for jwenting
0
68
Member Avatar for manikandan_dani

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 …

Member Avatar for masijade
0
60
Member Avatar for shyami

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 …

Member Avatar for shyami
0
123
Member Avatar for miyu15

[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 …

Member Avatar for BestJewSinceJC
0
98
Member Avatar for ronaldpaul

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 …

Member Avatar for CFROG
0
97
Member Avatar for Chris Nicola

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 …

0
69
Member Avatar for rockstar8577

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 …

Member Avatar for rockstar8577
1
73
Member Avatar for e40thrilla

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 …

Member Avatar for mitrmkar
0
1K
Member Avatar for vidit_X

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(){ …

Member Avatar for mrnutty
0
381
Member Avatar for mcastu

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 …

Member Avatar for damnpoet
0
108
Member Avatar for Tango2010

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 …

Member Avatar for Salem
0
209
Member Avatar for HBK_100

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); …

Member Avatar for WaltP
0
118

The End.