6,015 Topics
![]() | |
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? … | |
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 = … ![]() | |
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, … | |
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 … | |
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 … | |
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: ** … | |
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 … | |
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 … | |
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> … | |
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) … | |
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 … | |
hello friends......... pls infrom me what is directory submision | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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. … ![]() | |
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, … | |
[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 … | |
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 = … | |
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 … | |
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? | |
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) … | |
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 … | |
File program which gives output induntation code when we call that file actualy it was uninduntationed before | |
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 … | |
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 … | |
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, … | |
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 … | |
i hav problem in uploading(put) data on ftp server plz help | |
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/ … | |
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 … | |
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 … | |
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); } … | |
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 … | |
#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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
how to use file operations using C like fopen,fclose,fread,fwrite,fseek,delete,modifying. | |
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 … | |
<?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, … | |
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 … |
The End.