6,015 Topics

Member Avatar for
Member Avatar for samohtvii

Hi all, I am having trouble getting a tree to and from a text file. The text file will hold questions and animals. Each node should hold one question and one animal. So if you can imagine: Does it have 4 legs? / \ Does it purr? Does it swim? …

Member Avatar for samohtvii
0
3K
Member Avatar for Sanchixx

I would like to split a txt file that i use as a log in a comment system after each 10 comments how can i do that? Here is my code, Sorry for the bad indentation: <?php $act = $_POST['act']; if ($act == "post") { $name = $_POST['name']; $area = …

Member Avatar for iamthwee
0
138
Member Avatar for niobi

Hi, I've written a program in environment DELPHI 7. This file is inserted in a launcher that I've sent to my client; he has installed then the file.exe on its computer (SO: VISTA/7). My procedure works leaning to a simple text.file, but it must be before created at root (usually, …

Member Avatar for Reverend Jim
0
272
Member Avatar for C#Jaap

I am working on an application that keeps track and uses files stored on the file system. Users are allowed to open, create, delete and move files in the file system. Meanwhile my application is not constantly running so I can't keep track of all changes real-time. Afterwards my application …

0
151
Member Avatar for thak123

I want to get a pop like save As in a HTML page .In the Page i am writing all my data And I append it to a variable . And i attach it to a tag in the page which is the hyperlink to save the file . I …

0
68
Member Avatar for nchy13

evrything was fine until i inserted 100 to 125 lines in code. i am wondering what kv is doing wrong as it is not even printing that version file was opened.. any sort of help is appreciated. files included in the code are given below for reference. proc/version file: ** …

Member Avatar for deceptikon
0
241
Member Avatar for stevelk

I want to build a module to combine multiple text file in a .csv file by using vb.net. My text file data like this: (T1.txt) UnitCode|Qty 001|56 002|45 003|100 004|78 005|67 (T2.txt) UnitCode|Qty 001|78 002|166 003|10 005|12 I want the output like this: (Output.csv) UnitCode,T1,T2 001,56,78 002,45,166 003,100,10 004,78, 005,67,12 …

Member Avatar for Reverend Jim
0
411
Member Avatar for hungryjack

the lan connects the file share and a group of PC's, but 1 pc in a back room with no ethernet has a wifi connection on a router with a different IP range to the LAN i want the wifi connected pc to get access to the same file share …

Member Avatar for JorgeM
0
121
Member Avatar for garyjohnson

I have a hosting account through godaddy and im trying to make a php upload file so users can upload files to my site, but the php file upload I have found on the internet wont work, here is the html code <html> <body> <form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> …

Member Avatar for urtrivedi
0
698
Member Avatar for AMADH

Hello, I was wondering if somone might be able to help me. I have a txt file, it looks like this ID1|NAME1|URL1|EMAIL1|LOGO1|ADTEXT1|ADTEXT1|CATEGORY1|PUBDATE1 ID2|NAME2|URL2|EMAIL2|LOGO2|ADTEXT2|ADTEXT2|CATEGORY2|PUBDATE2 ID3|NAME3|URL3|EMAIL3|LOGO3|ADTEXT3|ADTEXT3|CATEGORY3|PUBDATE3 This is my php code // initial database stuff $host = "localhost"; $user = "root"; $pass = "root"; $db = "database"; $connection = mysql_connect($host, $user, $pass) …

Member Avatar for cereal
0
6K
Member Avatar for PhilEaton

I just thought of this and was wondering if it is possible. So similar to how you can relatively reference a parent folder using ../. Is there a way to access a parent directory if a domain name is associated with a sub-folder. For instance, on my server, I have …

Member Avatar for JorgeM
0
491
Member Avatar for julfikerctg
Member Avatar for t888eddy

In a forest n animals has homes. Each home has m racks, each rack for each of the m products which the animals can buy from the shop. From the shop, only the king can buy and only in the first day of the month. The king needs to know …

Member Avatar for t888eddy
0
226
Member Avatar for phorce

Hello, having a weird problem and wondering if someone can help me.. Basically, I'm trying to read in a .wav file, and I have read in the header information and that's all fine, it's just the data.. Here is the code: bool Wav::readHeader(ifstream &file) { file.read(this->chunkId, 4); file.read(reinterpret_cast<char*>(&this->chunkSize), 4); file.read(this->format, …

Member Avatar for Ancient Dragon
0
236
Member Avatar for hellerz85

Hello, I would like to be able to Read from a CSV file that will have "fields", lets call them ID, Name, Price. I want to be able to create a seperate XML file for each row in the CSV file. Right now, i have it so it will read …

Member Avatar for nmaillet
0
515
Member Avatar for megax24505

Is it possible to make a text file or separate class file that could be imported as lines of code. e.g. I have this simple line of code: Dim x = 0 messagebox.show(x) Import(text file or other file) 'run the code from the other file 'resume code in this file …

Member Avatar for Maligui
0
206
Member Avatar for oppedal

hello i made a website called http://www.searchswamp.com and what im wondering is how should i describe the page this is my first website so im new to this. my description is poor and i have no idea what my webpage should be described as but i think its some kind …

Member Avatar for oppedal
0
177
Member Avatar for dnbmadness

Hey guys, I have a form with fields and a file upload input which saves the uploaded file to a folder (/images), adds some random numbers to the filename and inserts the filename into a mysql DB. I'm just not sure how to add file type validation into this form. …

Member Avatar for diafol
0
150
Member Avatar for klemme

I am about to create a video upload function to a cms. But havent dealt with video and video player functionality before. So my question is what file extensions i should tjeck for under validation in the upload script? Are the a video player which is working in all browsers, …

Member Avatar for nikesh.yadav
0
164
Member Avatar for brodiesword

[CODE]http://zicosur.org/submit.php 5 http://www.perfectdir.com/ 3 http://www.submityoursite.com/ 4 http://www.submit-url-add.com/ 2 http://www.tagshub.com/submit.php 3 http://www.devoteclub.com/submit.php 4 http://www.linkgay.org/submit.php 4 http://www.websitesubmissiondirectory.org/submit.php 2 http://www.universalwebdirectory.com/ 3 http://www.travelandvacations.org/ 1 http://www.agrieducation.org/ 3 http://directory.hewdirectory.com/ 2 http://bclinks.ca/ 4 http://www.directoryutopia.com/ 2 http://www.wsdaj.com/ 3 http://www.sitereview.com.au/submit.php 4 http://www.piseries.com/9/Business/ 3 http://www.wwwi.co.uk/submit.php 4 http://websitesee.com/ 1 http://www.dhdphoto.com/submit.php 3 http://www.vipdig.com/submit.php 2 http://www.dir-listing.com/ 1 http://www.opendir.info/ 2 http://www.biowatchmed.net/ 2 http://www.evilgeniusmusic.com/ 1 …

Member Avatar for rahul1241
-1
742
Member Avatar for ali3011

this is my code which working,and every image is posted with it's original name but i want it to have little one.. i want it to overwrite the uploaded image <?php error_reporting(0); $change=""; $abc=""; define ("MAX_SIZE","400"); function getExtension($str) { $i = strrpos($str,"."); if (!$i) { return ""; } $l = …

Member Avatar for ali3011
0
266
Member Avatar for rev_ollie

Hi again I have another query I a struggling with that I would like to get some advice on. Basically put as part of a process we have a number of shortcuts created. These are Windows shortcuts based on an item id - so an example would be 1000.lnk Also …

Member Avatar for woooee
0
229
Member Avatar for Mechizedek

Please help me, I need help on uploading pix, the error is " 'AccountPicture' is not a member of UrlHelper". UrlHelper is an Extension module in my project. Please how do I fix that?

Member Avatar for nakor77
0
59
Member Avatar for viktor.jiracek.5

Hello all, I am working on an upload script. This one is taken straight from php.net. I tried to get it to work but can't seem to. Could you help out? This is the code: <?php $uploads_dir = 'file:///PETBookPro09/Users/petuser1/Desktop/'; foreach ($_FILES["pictures"]["error"] as $key => $error) { if ($error == UPLOAD_ERR_OK) …

Member Avatar for viktor.jiracek.5
0
195
Member Avatar for viktor.jiracek.5

Hello all, I am working on an upload function and am having problems. This is the message that it says: Warning: move_uploaded_file(../../../../data/C0017593-Human_brain,_PET_scan-SPL.jpg) [function.move-uploaded-file]: failed to open stream: Permission denied in /Applications/XAMPP/xamppfiles/htdocs/...(other stuff) on line 163 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/Applications/XAMPP/xamppfiles/temp/phpMtgNWy' to '../../../../data/C0017593-Human_brain,_PET_scan-SPL.jpg' in /Applications/XAMPP/xamppfiles/htdocs/...(other stuff) on line 163 …

Member Avatar for viktor.jiracek.5
0
1K
Member Avatar for SHASHWATH

File program which gives output induntation code when we call that file actualy it was uninduntationed before

Member Avatar for WaltP
-3
146
Member Avatar for SunnySideUp

Hi, I am looking for a procedural PHP script that would allow me/my users to upload video content in a number of popular formats. I would also like all the information to be linked into a MySql database as well. I already have a upload script for uploading documents but …

Member Avatar for phpapprentice
0
1K
Member Avatar for EulavValue

Hello all, Currently I am trying to create a program that prompts the user to select a file via JFileChooser, and then continues to use that file to gather information for objects. I have no problem selecting the file from JFileChooser, but I do have a problem reading the correct …

Member Avatar for Taywin
0
157
Member Avatar for sandorlev

Hey guys! I'm having a hard time finding a way to set up pythonpath on a windows machine, by a script. I know how to do it manually, but I want to make a script that would add a certain directory to pythonpath and would save it. Thanks for reading, …

Member Avatar for Gribouillis
0
255
Member Avatar for Gobble45

Hello Daniweb. Im currently working on a solution that involves querying a specific user (either by getting the user to 'login' or by detecting who the user is that is logged in to the machine) against the domains active directory structure to determine if they are a member of 1 …

0
167
Member Avatar for rahul pareek
Member Avatar for phorce

Hello, I'm trying to read the header information of a .wav file and I'm kind of stuck. Basically, the header information is located at different offsets in the file. So for example: (0-4) = ChunkID (4-8) = ChunkSize (8-12) = Format .. .. .. .. .. .. From this: https://ccrma.stanford.edu/courses/422/projects/WaveFormat/ …

Member Avatar for np complete
0
280
Member Avatar for Synapomorphy

First off this is a homework question, please don't do my homework for me as nice as that would be... I have to make a program that can search a library for an author or title from a file and output all the matching lines. I am very close but …

Member Avatar for WaltP
0
85
Member Avatar for dawsonrose

Hello, I've a file which contains names and grades of students, and I'd like to write a program which can sort their grades (like midterm 1,midterm 2) according to user choice. I wrote as far as the choice part and opening the file, yet I don't know how to make …

Member Avatar for WaltP
0
788
Member Avatar for ska_defender

Hello, The following script writes to a file include.php <?php $path = "./files/"; $path2="http://".$_SERVER['SERVER_NAME'].dirname($_SERVER["PHP_SELF"])."/files/"; //echo $path2; $folder = opendir($path); $start=""; $Fnm = "./include.php"; $inF = fopen($Fnm,"w"); fwrite($inF,$start."\n"); while( $file = readdir($folder) ) { if (($file != '.')&&($file != '..')&&($file != 'index.htm')) { $result="{\nlevels: [\n{ file: \"$path2$file\" }\n],\n\ntitle: \"$file\"\n},\n"; fwrite($inF,$result); } …

Member Avatar for Morta
0
218
Member Avatar for balamithra

Hi, *I have installed sql server 2008 management studio with "use sql server authentication". *I have created a database with database name:stock owner:<default> *In Vb.net created a windows application;clicked on Add datasource;changed d datasource to microsoft sql server database file(SqlClient);clicked on option button use sql server authentication n then provided …

Member Avatar for M.Waqas Aslam
0
247
Member Avatar for matt.malone.921

#include <stdio.h> main() { FILE*fp ; if ((fp = fopen("new.txt","r")) == NULL); { printf("file could not be opened\n"); return 0; } } this is what ive written and it always comes back with file could not be opened. I need to read the text file new, which has 10 variables …

Member Avatar for Sokurenko
0
90
Member Avatar for newuser17

Hi Experts, I am searching for a way to edit web.config connection strings using .msi file. Since it needs to be installed by other people. I dont want others to explicitly go into file and edit the server address and db username and password. I want to have a nice …

Member Avatar for newuser17
0
544
Member Avatar for vstl

And I want to show the different words in two text files and make them bold, show on the screen. my code compiles when entering a word show the common words in two txt files and underlined them. instead of entering the word, I want to read a txt file, …

Member Avatar for Taywin
0
841
Member Avatar for kristo5747

Hello, I have a script that "validates" a ZIP file that look like this > AAA_20120801.zip => > x~back end~20120801.TXT > y~time in~20120801.TXT > z~heat_chamber~20120801.TXT > AAA_20120801.ctl My task is to compare its contents (i.e the list of files contained inside) with the control file that is provided inside the …

Member Avatar for kristo5747
0
132
Member Avatar for mochiboo5

hello everyone, I am having a major problem with this assignment that asks to create a function whose input is a reference to an input file, which asks user to enter a file name to open for input, then checks to see where the file opened successfully. the function returns …

Member Avatar for Karkalash
0
277
Member Avatar for Divinedar

I am trying to do the following in excel 2010: For instance: If I have a directory file name "Brazilian Navy Ku" and then I have another directory file folder name " Brazilian Aeronautical VSAT Spares"; then it will go through the first directory file folder name, search for excel …

Member Avatar for Divinedar
0
249
Member Avatar for serph09

So I have the code below. The whole program just reads from a text file and prints certain characters if it detects specific characters from the text file (in this case I just made it mimics what the text file has). My text file contains this: .........www... bbb..........ww ...bb....ww.... The …

Member Avatar for JamesCherrill
0
614
Member Avatar for sofien.fkih

I'm having a problem of displaying all the data of a column in a text file I can display only the first data, so please someone tell me what can I make to display them together in a text file. Connection con = DriverManager.getConnection(host, uname,password); Statement stmt = con.createStatement(); ResultSet …

Member Avatar for JamesCherrill
0
172
Member Avatar for munieb

i have a input file having words "Olympics,Olympics,Olympics" when i try to count them and use function readlines() it count them as 1 rather than 3 !! what should i do !! this is my code def input_files(file): sum=0 #word=raw_input('enter the word you want to search\n') file=file.readlines() for lines in …

Member Avatar for snippsat
0
170
Member Avatar for Decamm

Hi there, here i post new article because need to improve my upload function. What i want is to make my selecting item for uploading file to be multiple select, only by pressing "ctrl" button, like yahoo mail does. Here I create a code for upload file but the problem …

Member Avatar for arrgh
0
222
Member Avatar for milindchawre

how to use file operations using C like fopen,fclose,fread,fwrite,fseek,delete,modifying.

Member Avatar for Ancient Dragon
0
303
Member Avatar for kindofsudden

I put together a vb.net program that does some string parsing and creates a fixed-width file at the end. When I run it on each of my 2 machines it creates a properly formatted file. When my client downloads the msi file, installs it, and runs it, he gets several …

Member Avatar for belenos46
0
222
Member Avatar for shehnaz1991

<?php mysql_connect('localhost','root','root'); mysql_select_db('project'); $dbname="project" require('fpdf.php'); //Connect to your database mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("cannot select DB"); //Create new pdf file $pdf=new FPDF(); //Open file $pdf->Open(); //Disable automatic page break //Add first page $pdf->AddPage(); //set initial y axis position per page $y_axis_initial = 25; $pdf->SetX(25); $pdf->Cell(30, 6, 'id', 1, …

Member Avatar for ryantroop
0
180
Member Avatar for salohcin

i kind of need to extract data from a code.txt which continues 0100000000001000000000000000000001100010011001 0100000000001000000000000000000001000000000000 0100000000001000000000000000000000000010001001 0100000000001000000000000000000000000001001001 0100000000001000000000000000000100100011001001 0100000000001000000000000000000000000000001001 0100000000001000000000000000000010100010101001 0100000000001000000000000000000010100001101001 0100000000001000000000000000000110100011101001 0100000000001000000000000000000011000000110010 0100000000001000000000000000000011110010111101 my main idea is to extract the number of ones in from each row ,each row = pulses converted from interrupt so as to compare with the …

Member Avatar for salohcin
0
177

The End.