6,015 Topics

Member Avatar for
Member Avatar for ivan3510

Hi! I want to check if some file on some other server exists. I have this code (but something is wrong with it): [CODE]<?php $notworking=array(); $false=0; $link="http://uploads.mp3songurls.com/"; $files=glob("genre/*.xml"); foreach($files as $file){ $xml=new SimpleXMLElement($file,null,true); foreach($xml as $info){ if(fopen($link.$info->link.".mp3","r")==false){ $false++; $notworking[$false]=$info->name." => ".$info->author; } } } if($false>0){ $file=fopen("notworking.txt","w"); for($i=1;$i<=$false;$i++){ fwrite($file,$notworking[$i]."\r\n"); } fclose($file); …

Member Avatar for ivan3510
0
212
Member Avatar for sathya88

hi, am try to create a simple jar file... i got some error to run that jar file error =" Failed to load Main-Class manifest attribute from bala.jar" my code: [CODE]import javax.swing.JOptionPane; public class hello{ public static void main(String args[]){ String s= JOptionPane.showInputDialog("enter name plz...."); JOptionPane.showMessageDialog(null,"hello "+s); } }[/CODE] here …

Member Avatar for sathya88
0
159
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 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 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 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 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 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 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 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 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 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 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
Member Avatar for ba.accounts

Hi, I am fairly new to Java and am about to begin a programming course in the next week. I am preparing by completing exercises and am stuck on this particular one. Basically, i need to read a file in a certain format and calculate some figures and writing the …

Member Avatar for JeffGrigg
0
294
Member Avatar for DesignGhosts

Hi Guys, Basically I have an application that reads in a .hex file and I want to be able to then sort the hex values out line by line into a 2D Array ready for further processes. Example of a .hex file [CODE]:10010000214601360121470136007EFE09D2190140 :100110002146017EB7C20001FF5F16002148011988 :10012000194E79234623965778239EDA3F01B2CAA7 :100130003F0156702B5E712B722B732146013421C7 :00000001FF[/CODE] Below code is …

Member Avatar for DesignGhosts
0
239
Member Avatar for rooneey10

Hi I'm trying to read a text file by use a array for an interactive map. In the text file I stored shop names such as: Label2.Tag = "test" Label3.Tag = "House" When I hover over a label it will display the name in another label such as "lblShowName". So …

Member Avatar for codeorder
0
105
Member Avatar for get connected

Hi, I'm in the process of nailing together a small program, the purpose of which is very simple: Monitor a number of various network locations for the existence of some files. when they spring into existence, check to see if someone is using the file and when it accessible, light …

Member Avatar for Reverend Jim
0
2K
Member Avatar for abhinavM

I have to read an Excel file and transfer the contents to the database using Java swing.The excel file contains questions for the surveys with options for answers or responses.The database should have a table say Question with columns "Question No., Question, Option 1, Option 2 and so on".I have …

Member Avatar for stultuske
0
1K
Member Avatar for sadsdw

Hi friends, I'm having a problem to write a file and read the same file in sequence. The file size is 4 GB. I tried fstream for both and as second option ofstream and ifstream. I'm reading just the first 2 lines of the file. If I read those in …

Member Avatar for sadsdw
0
258
Member Avatar for jobs

I have a file pointer which was assigned in main. In the main, I just open a file to write stuff to it. I want to pass the file pointer to several functions so that they can write to the file. In the fucntion declaration I just add: somefunc(FILE *file) …

Member Avatar for Narue
0
1K
Member Avatar for flagstar

Hi, it's weird coming from me seeking help with this but I've a little problem at my hand... I have a 320GB External HDD which has been working fine for almost a year now if I remembered but recently I try to copy some files from my external with error …

Member Avatar for flagstar
0
407
Member Avatar for abc88

I have a windows service on a server which accesses a folder and database which is on different server. i was told to create an .ini file and add the settings here. so i have to add the path to the folder and database in .ini file, correct? is there …

Member Avatar for Huntondoom
0
88
Member Avatar for Pravinrasal

I have problem with creating jar file want to create jar file with mysql connector i include the mysql connector in manifest file but still it five me error like: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268) at java.lang.ClassLoader.loadClass(ClassLoader.java:251) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319) at java.lang.Class.forName0(Native Method) …

Member Avatar for NormR1
0
155

The End.