7,373 Topics
![]() | |
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 … | |
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 … | |
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 … ![]() | |
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, … | |
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 … | |
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 … | |
![]() | 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 … |
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 … | |
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 … | |
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 … | |
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 … | |
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"); … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 … | |
hi friends i want php script that uploads image without refreshing the page thanks | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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 … | |
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.*; … | |
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> /// … | |
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 … | |
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 … | |
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. … | |
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. | |
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 … | |
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 … | |
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 … | |
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) … | |
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 … | |
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. … | |
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 … | |
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: … | |
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"; … | |
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: … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … |
The End.