7,373 Topics

Member Avatar for
Member Avatar for chris_j_haines

Hi, I have found this forum very useful so far so I was hoping someone could offer me some help again as I have run out of ideas. Basically here is my code: addcontact.php [CODE] </head> <body> <div id="container"> <div id="header"> <table width="980px"> <tr> <td align="left"><img src="images/lcaclogo.gif" width="100px" height="100px"></td> <td><h1>LCAC …

Member Avatar for ddymacek
0
190
Member Avatar for ninelg

I have a csv file that needs to be imported into sql server using vb.net. I got it working with the following code with one exception: [code] Private Function ImportLeadFile(ByVal projectfile As String, ByVal sLeadFile As String, ByVal DATABASE As String) As Boolean Dim objConn As nsSqlClient.SqlConnection Dim ds As …

Member Avatar for t_karthik
-1
5K
Member Avatar for lainey_nix

I apologise if i have placed this query in the wrong forum - I'm new here. When i try to access the index or default pages of my website i get this error... [QUOTE] Server Error in '/' Application. -------------------------------------------------------------------------------- Could not load file or assembly 'FredCK.FCKeditorV2' or one of …

Member Avatar for stbuchok
0
408
Member Avatar for JoshuaBurleson

So I've finally fixed up the functionality of an address book I've been writing (not on to utilizing a GUI yet of course though.)However to save or reclaim the data from the last use of the address book I, obviously, need to write and reclaim it from a .txt file, …

Member Avatar for JoshuaBurleson
0
252
Member Avatar for dreadiscool

Hi everyone! For a 'learning' experience, I'm looking to write my own webserver in C#. I know most people would just write me down and say "Why are you wasting your time, just use a premade webserver!". But that's not the point - the point is to learn. I want …

Member Avatar for dreadiscool
0
2K
Member Avatar for sirin_adam

Hello! I need to read from a txt file ip:port (or in some lines ip:portDdateCinteger). But i can not do it because there is no nextChar method on Scanner class. The txt file is like this: 332.234.32.11.11.222:8080 123.32.45.43.32.11:8976D12.01.2010C5 44.44.111.114.44.43:220 222.333.44.55.66.77:8089 111.11.11.11.22.33:8080D01.01.2009C1 ... There are million line on txt file. I …

Member Avatar for sirin_adam
0
843
Member Avatar for megachip04

I am trying to let users upload .flv files that will be played through flow player. While I am not getting an error, the file is not copying to the ftp folder. The upload script I have is [CODE] if ($_FILES["file1"]["type"] == "video/flv") { $path1 = "uploads/".time().'.'.$HTTP_POST_FILES['file1']['name']; $path1 = str_replace …

Member Avatar for cereal
0
150
Member Avatar for mrjimoy_05

I am a newbie in Visual Studio (C#). I want to store a text read from a text file and display it on a TextBlock control, but just for a specified row. How can I do that? I've try to search on the internet, and most of them just show …

Member Avatar for nick.crane
0
1K
Member Avatar for manugm_1987

Hi Is it possible to obtain complete path name using mouse click i.e when i click on a file say file.txt on c:\ i shld get the result as c:\file.txt. Or say if i have opened the file and the file is my active window how to get the path …

Member Avatar for Ancient Dragon
0
152
Member Avatar for klemme

Hi, After uploading a pdf from a form, i am trying to read the file. It is saved in DB, and i try to get the chosen PDF via a link that holds a unique value from the DB, so the chosen PDF can be identified, and displayed. BUT, I …

0
98
Member Avatar for G_Waddell

Hi All, I have a section of my site that allows users to upload and download files. For security issues, We use a com object to take the file as a binary stream and store it on our network off of the web server (under a different randomly generated file …

Member Avatar for G_Waddell
0
318
Member Avatar for klemme

I have a uload script that saves PDFs to the DB, and i have another page, where I want to read the PDF file, but the latter is not really happening.. AM I DEFINING MY PDF_DIR CORRECT: [CODE] define('PDFS_DIR', $_SERVER['DOCUMENT_ROOT'] .'includes/pdfs'); [/CODE] This is the read_pdf.php file: [CODE] <?php require_once("includes/config.php"); …

Member Avatar for ddymacek
0
189
Member Avatar for 4789787

This is code for an internal forum, it works on my local server, but not the godaddy one i just purchased! phpinfo()s posted below: [CODE]<?php // forum.php :: Foro interno del juego.Version 1.0 define('INSIDE' , true); define('INSTALL' , false); require_once dirname(__FILE__) .'/common.php'; /* Este foro esta basado en el PHPBBs …

Member Avatar for chrishea
0
4K
Member Avatar for bunteezone

Please help me!! I am new to C++ Here is a program helped me little bit. -------------------------------------------------------------------------- [code=cplusplus] #include <iostream> #include <fstream> using namespace std; main () { int filename; cout << "Enter file name"; cin >> filename; ofstream myfile; myfile.open ("filename.txt"); myfile << "Writing this to a file.\n"; myfile …

Member Avatar for santanu@code
0
30K
Member Avatar for Lebowski

Edit: The title could have been more descriptive, I am sorry for that! Hello! First time poster, frequent reader. I am very green to both programming and python, trying my best and this board has been helpful just by reading. Now, I have a problem of my own that I …

Member Avatar for TrustyTony
0
411
Member Avatar for klemme

Hey! I have this script for Uploading PDF's to the DB. I tjecks if the document ends on .pdf - and excludes everything that doesnt - which is fine. [B]BUT I have set a size limit on 1 MB for uploading, and it seems to be working. BUT if I …

0
94
Member Avatar for clems31

Hi, My problem is that I'm recovering data (which depend on what the user selected on a first page) from a SQL database for several language checked (also on that 1st page). I would like to create files for each one of the language selected. For now, I tried to …

Member Avatar for clems31
0
120
Member Avatar for harikrishna439

HI........... I'm new to this MYSQL.... I studied that DBMS can be used for data sharing..... Can I share files thro' MYSQL ?????? Can anyone please explain how if it is?

Member Avatar for urtrivedi
0
68
Member Avatar for grazinggoat

Hello - This is my first perl scripting try. I am trying to read a file into a hash so i can track it by id the file looks like this: ID FILNAME SIZE 1 logfilename 346202741018308 2 logfilename 0261512802421464 3 logfilename 612262297692848 4 logfilename 3268022049187 5 logfilename 888755246426701 6 …

Member Avatar for d5e5
0
1K
Member Avatar for bangla

Hi, i am trying to open a file in php but its not. 1. i saved a txt file, called welcome.txt welcome.txt content "welcome to PHP file" 2. then i wrote another file, "file.php". content is: [CODE]<html> <body> <?php $file=fopen("welcome.txt","r"); ?> </body> </html> [/CODE] 3. "file.php" and "welcome.txt" on the …

Member Avatar for ddymacek
0
165
Member Avatar for msowards

I'm trying to allow members to upload a picture to the my website. I In my php code I test the uploaded files for type. For some files it works fine, but I've discovered there are .jpg files that don't seem to have the internal type headers and the php …

Member Avatar for ddymacek
0
904
Member Avatar for rahulvramesh
Member Avatar for IIM
0
106
Member Avatar for Jaydenn

Using the basic principle in this code: [CODE] try { GraphicsEnvironment ge = GraphicsEnvironment .getLocalGraphicsEnvironment(); GraphicsDevice[] gs = ge.getScreenDevices(); BufferedImage[] screenshots = new BufferedImage[gs.length]; ImageWriter writer = null; Iterator<ImageWriter> iter = ImageIO.getImageWritersByFormatName("jpeg"); if (iter.hasNext()) writer = iter.next(); ImageWriteParam iwp = writer.getDefaultWriteParam(); iwp.setCompressionMode(ImageWriteParam.MODE_EXPLICIT); iwp.setCompressionQuality(0.1F); DisplayMode mode; Rectangle bounds; for (int i …

Member Avatar for JamesCherrill
0
219
Member Avatar for gman1991

ive been looking up, and their seems to be many way to read from a file. my question is, how do you read from a file. the file setup is like this.... the first line is a number(830) representing number of words, next lines are words.. the file looks like …

Member Avatar for Aviras
0
226
Member Avatar for 54uydf

here's the deal. I want to import data from xls file.at the moment I'm using phpMyAdmin's Import option to do it, but I'm wondering if there's another way to import the file to a new table in my db because- -the first rows and cols in the file are empty, …

Member Avatar for linuxaomi
0
189
Member Avatar for uselessninja

hi i have a code that uploads an image...but it gives me an error when i upload a photo: Warning: move_uploaded_file(test/ssss.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory in C:\xampp\htdocs\test\add.php on line 21 Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move 'C:\xampp\tmp\php163.tmp' to 'test/ssss.jpg' in C:\xampp\htdocs\test\add.php on line 21 …

Member Avatar for uselessninja
0
117
Member Avatar for duke_swh

Hi, I'm trying to send an email using a lotus notes account and c# which is working fine. It is a two part mail which consistes of an HTML formatted message and attachment/s. The problem i'm encountering is when I have multiple attachments in different file formats. For example when …

0
297
Member Avatar for MarounMaroun

Hello, I'm trying to read lines from a file and strtok it into a double array to work with the numbers. The numbers are separated by ',' and I'm trying to fill array (line[]) with these numbers. This is part of the code. [code=c] while(1) { //we will scan all …

Member Avatar for Ancient Dragon
0
128
Member Avatar for D3X

Hi guys, what im trying to do is have a transfer function so that say for example i can transfer $100 from Johns account to Jacks account. Below is the code for the AtmDataFile Class and the ATMTransfer class.I would greatly appreciate some help on this project =). [CODE]import java.io.*; …

Member Avatar for D3X
0
4K
Member Avatar for cocoll

hello. i write comments(documentation) with the code behind in asp.net or web application using visual studio 2010,so i need now to generate the xsd file of these comments. for clarifying what i mean with comments or documentation this is what i mean: [CODE]/// <summary> /// Daniweb /// /// </summary> /// …

0
41
Member Avatar for beginnerJavaer

Hi, I am trying to create a Client/Server application...when client is initialized it reads a file line by line and sends each line to the server which does some sort of action to the line (in my code it capitalizes the line) and writes it to a file. I have …

Member Avatar for Aviras
0
257
Member Avatar for mariegomez84

Hi, everyone! I'm kind of in a hurry. I need to know for tomorrow how can I open a file and get the file name. I was using the Common Dialog and with ".Filename" I could be able to get the name. It was easy and it worked!! The point …

Member Avatar for WaltP
0
637
Member Avatar for dayghost

I don't exactly know how to explain this, but I'm trying to get 6 sentences from a webpage, to my java control panel thing. I've tried to use a snippet I found for twitter updates, and it works, except for the fact that I can't seperate them into new lines. …

Member Avatar for peter_budo
0
167
Member Avatar for SETHU S

please inform, I want to connect one CPP data file with excel data file. How to connect (link) one excel file with cpp data file. Which is the header file for the same.

Member Avatar for Tomtommitom
0
124
Member Avatar for surjeetk27

hi friends.... I'm getting this type of error n running my program... Warning: include(include_fns.php) [function.include]: failed to open stream: No such file or directory in C:\wamp\www\index.php on line 7 Warning: include() [function.include]: Failed opening 'include_fns.php' for inclusion (include_path='.;C:\php\pear') in C:\wamp\www\index.php on line 7 Can Anyone plzz Tell me what this …

Member Avatar for vibhaJ
0
125
Member Avatar for bhagawatshinde

Hi, I have an problem while copying database file to another folder. In Brief i have develop an windows application in that one form is Data Backup and restore. Suppose i have run form separately then i will copy these file from one place to another but if i have …

Member Avatar for bhagawatshinde
0
387
Member Avatar for RenanLazarotto

Hello guys! Its been a very long time since I don't show up here. Now I am back with a small project for internal use, but I need a little help. I want to make a program that allows me to change file attributes, like 'hidden', 'read-only' and 'system'. It …

Member Avatar for RenanLazarotto
0
120
Member Avatar for sirlink99

I am trying to save an image with this line [CODE]ImageIO.write(image, "JPG", new File(fileDestination.getText()));[/CODE] but it is giving me an error. [CODE] java.io.FileNotFoundException: C:\Users\Adam (Access is denied) at java.io.RandomAccessFile.open(Native Method) at java.io.RandomAccessFile.<init>(Unknown Source) at javax.imageio.stream.FileImageOutputStream.<init>(Unknown Source) at com.sun.imageio.spi.FileImageOutputStreamSpi.createOutputStreamInstance(Unknown Source) at javax.imageio.ImageIO.createImageOutputStream(Unknown Source) at javax.imageio.ImageIO.write(Unknown Source) at screenCapture.CaptureScreen.actionPerformed(CaptureScreen.java:111) at javax.swing.AbstractButton.fireActionPerformed(Unknown Source) …

Member Avatar for NormR1
0
319
Member Avatar for iparanjpe

Tell me what u think I want to create an application that takes a stream of stock price data from many stocks. It then checks for resistance levels. If the stock has hit a level consistently and then bounced back down twice, it is saved to a jtable file or …

Member Avatar for peter_budo
0
109
Member Avatar for owdirectory

Hi guys, Here is a popular online web directory: [URL="http://www.onlinewebdirectory.com/"][B]onlinewebdirectory.com[/B][/URL] which is categorized as: 1. [URL="http://www.onlinewebdirectory.com/web-design/"]Web Design[/URL] Directory 2. [URL="http://www.onlinewebdirectory.com/graphic-design/"]Graphic Design[/URL] Directory 3. [URL="http://www.onlinewebdirectory.com/web-hosting/"]Web Hosting[/URL] Directory 4. [URL="http://www.onlinewebdirectory.com/web-development/"]Web Development[/URL] Directory 5. [URL="http://www.onlinewebdirectory.com/flash-animation/"]Flash Animation[/URL] Directory 6. [URL="http://www.onlinewebdirectory.com/software/"]Software[/URL] Directory [B]Onlinewebdirectory.com[/B] is also categories for [URL="http://www.onlinewebdirectory.com/"][B]Web Design Company[/B][/URL] according to: 1. [URL="http://www.onlinewebdirectory.com/city/"]City[/URL] 2. …

Member Avatar for peexter
0
399
Member Avatar for Nicko_FaTe_

Hi i have a task to stores marks for students, a struct is used to store this. the thing giving me trouble at the moment is how to read and store a floating point number within a struct, the data specifically for the mark is on 1 line of a …

Member Avatar for Nicko_FaTe_
0
163
Member Avatar for six_sic6

Hellow. I have installed IIS7 in windows 7. I have a ASP.NET project. Now i want to run it through IIS7. But whne i try it from by web browser by [B][url]http://localhost/Myweb/Default.aspx[/url][/B], it shows the following error on my browser.. [CODE] Server Error in '/' Application. -------------------------------------------------------------------------------- Configuration Error Description: …

Member Avatar for steave123
0
298
Member Avatar for divyakrishnan

Hi... I want to find out whether a file is existing or not The file is stored on another machine in the same network . I tried the following code.But always showing "The file is not existing". [CODE] <?php $filename = 'file://192.168.0.15/E:/PDF/p.pdf'; if (file_exists($filename)) { echo "The file $filename exists"; …

Member Avatar for sDJh
0
102
Member Avatar for rpv_sen

Hi I am trying to connect my server through PHP script as below. But i am unable to reach my server and getting error. If i connect my server through ftp software with [B]FTPES[/B] protocol my server is getting connect I am getting an Error as [B]"Warning: ftp_connect() [function.ftp-connect]: php_network_getaddresses: …

Member Avatar for rpv_sen
0
2K
Member Avatar for missil9

Hello. I have been kicking myself for a while now and I was wondering if anyone could please help me. My code is: [CODE]char fname[FNAME_LEN] = "blah" FILE * fp = fopen(fname, "r"); char line[BUF_LEN]; while( fscanf(fp, "%s", line) != EOF ) { double x = atof(strtok(line, "|") ); unsigned …

Member Avatar for missil9
0
304
Member Avatar for kaizokupuffball

Hi! Im pretty new to this whole thing with PHP and have looked at some examples to learn it. I currently made a site that for now, runs on WAMP localy. The thing is, i was wondering if this would be a good code to use on the upload.php site. …

Member Avatar for kaizokupuffball
0
272
Member Avatar for Awah Mohamed

hi guys.. how are you all?? ok, i need you help to make this happen... i want to create a system that allow people to upload big files and you all know that php time limit is 5 minutes and size limit is 5 mb max.. in case we increased …

Member Avatar for G&G Designing
0
226
Member Avatar for n8thatsme

Ok, my problem is that I'm reading from a file 3 values, a last name, first name and salary, for example: Key Bobby 43000 I have an array of objects for each person, so I neeed to read this file and assign the last name, first name, and salary to …

Member Avatar for mike_2000_17
1
4K
Member Avatar for Viruthagiri

This is my normal file upload code. [B] HTML[/B] [CODE]<form action="" method="post" enctype="multipart/form-data" name="form1" id="form1"> <input name="theFile" type="file" /> <input name="Submit" type="submit" value="Upload"> </form>[/CODE] [B]PHP Variables to receive file[/B] [CODE] $fileName = $_FILES['theFile']['name']; $fileTempName = $_FILES['theFile']['tmp_name']; [/CODE] Now i would like to use remote upload. So i created a form …

Member Avatar for cereal
0
407
Member Avatar for de1337ed

Just two questions that are completely unrelated: 1. (Tough to Explain), But how do I create relational drop down menus? Let's use careers as an example. If someone were a computer engineer. I want them to chose engineer in the first drop down. Then then the second drop down will …

0
54

The End.