199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for martinkorner

I am currently reading and displaying the entire contents of a text file using the following code: [ICODE]$html_get = file('content.txt'); foreach ($html_get as $html_num => $html_text) { echo $html_text; }[/ICODE] I would like, however, to have the code read the contents of the text file up to a certain line …

Member Avatar for mario.stoica
0
173
Member Avatar for Cyb3rAssasin
Member Avatar for Duoas
0
93
Member Avatar for BrianNY

Hello, I'm a newbie to this, but I am determined. I wanted to test perl-based functionality on my PC (XPpro) "server." I have installed apache, php, mysql, cgi. All components and connections work [U]except perl to mysql[/U]. It is amazing after reading hundreds of posts on many sites, that apparently …

Member Avatar for BrianNY
0
275
Member Avatar for KingTheoden

Hey guys, sorry to bother you with some rather elementary woes. I am using the book Beginnings PHP5 and MySQL E-Commerce and am stuck at Chapter 2. My default folder for Apache is C:/htdocs. I created a folder C:/tshirtshop, created a simple php info page in this folder, and have …

Member Avatar for KingTheoden
0
90
Member Avatar for ned69

Hi Guys I have two tables I'm trying to pull information from. In the end I want to be able to display a username and a school name which are contained in 2 separate tables but linked by the school id number. The problem is that the 'members' table which …

Member Avatar for ned69
0
110
Member Avatar for push

how to get output for this code. class a { public static void main(String args[]) { for (int i=0;i<args.Length();i++) System.out.println(args[i]); } } how can i give input for this code at netbean5.0

Member Avatar for Acidburn
0
90
Member Avatar for np2100

I am trying to write a program that goes system("dir"); the copies the results onto a text file. However I dont know how to get the results of system("dir"); to the text file. I am very new to c++ so any help would be appreciated.

Member Avatar for np2100
0
78
Member Avatar for guitarrick

Hello everyone. Happy New Year. I've been going over last semester's book and have found that I've already allowed the basics to run away! We ended with classes, so I've gone back to just doing exercises with basic functions and I keep getting a linker on this one.: Takes input …

Member Avatar for guitarrick
0
82
Member Avatar for Acidburn

whats wrong with the following code?? [code] int j[100] = {0}; int i = 0; for ( ; i < 10; i++ ) { puts( j[i]); } [/code] it keeps giving the warning [quote] warning: passing argument 1 of ‘puts’ makes pointer from integer without a cast [/quote] And when …

Member Avatar for Narue
0
76
Member Avatar for Phaelax

Any direction someone could point me in for auto-sizing only the last (right-most) column in a jtable? I want the user to be able to set the size of columns and be allowed to set them beyond the scrollable viewing area, but if the viewing area is wider than the …

Member Avatar for Phaelax
0
1K
Member Avatar for Nightbound

Im creating a Lan messenger in java but seem to have some problems; first the elements of the GUI do not load when the window pops up (i have to strech the window for them to appear(frame size is not the problem)). moreover the program just hangs wen i try …

Member Avatar for Phaelax
0
101
Member Avatar for Fest3er

I've created a fairly simple method for obfuscating email addresses as an anti-spam measure. It should work for any browser that supports JavaScript and a fairly modern Document Object Model (DOM). A composer window in the user's default email application will be opened. First up is the javascript function that …

Member Avatar for Fest3er
0
166
Member Avatar for Torner

I wrote a beginner AJAX tutorial, you can view it here: <snipped> I hope it helps someone. Thanks!

Member Avatar for fwassenaar
0
85
Member Avatar for g_loughnan

Hi all, I've been trying to paint an image to a JPanel with no success. Could someone help me figure this out? [code=java] mport javax.swing.*; import java.awt.*; import java.awt.event.*; import java.io.File; import java.util.Vector; import java.awt.image.*; public class PhoneInterface1 extends JFrame implements ActionListener { private JPanel imagePan = new JPanel(); private …

Member Avatar for Ezzaral
0
474
Member Avatar for dks1383

Hi all How can I write a javascript code to change the alignment of a textarea so that the user can select a part of of a textarea and change the alignment of this part by clicking a button? thanks

Member Avatar for Fungus1487
0
114
Member Avatar for obscured47

Hi again, Is it possible when throwing a custom exception to pause the program instead of just exiting? I have a throw customexception("error msg") in my main and I want to print the error msg and then press return to exit or something like that. Thanks

Member Avatar for obscured47
0
155
Member Avatar for frank_hugo_1100
Member Avatar for GreenDay2001
0
92
Member Avatar for palcham

Hi I am searched about uses of InnerHtml through net but i didn't satisfy that information so if you known means please send me about uses of inner html Advance Thanks

Member Avatar for temp304
0
142
Member Avatar for arasten

Hi there, i want to make a program that has a label and i want that label to move from right to left and do it again and again by using timer if its possible, for example: i want it like an electric commercials in some shops or posters...the text …

Member Avatar for AndreRet
0
1K
Member Avatar for jntuceh

Hi, i am trying to copy raw data from one volume to some destination. for that i used CreateFile() Win32API,ReadFile and WriteFile() API's. But it might be inconsistent.I want to copy consistent data.So i wanted to use Volume shadow copy service.With that i created a [B]Snapshot[/B] and exposed it as …

Member Avatar for Narue
0
105
Member Avatar for <1337>Me</1337>

I know I probably shouldn't be posting this here...but it's one of the most populated boards. Anyways, I was wondering if Qbasic can be used for anything other than a basic input/output program.:?:

Member Avatar for technogeek_42
0
310
Member Avatar for shakeelaktar

Can Anybody help me by suggesting, How to change TCP/IP setting by an VB (6 or Dot Net) application. I need this because our users log on to 2 domains and my SysAdmin configures manually every time. I want to built an application. If it can be fired remotely It …

Member Avatar for shakeelaktar
0
99
Member Avatar for Karkaroff

in the following code, getch() is executed before the file is displayed.! whats wrong? how can i correct this? [CODE='c++'] void ReadFile() { char fname[13],ch; cout<<"Enter filename : "; cin>>fname; strcat(fname,".mth"); temp.open(fname,ios::in|ios::nocreate); if(!temp) { cout<<"File does not exist!!!"; getch(); return; } temp.get(ch); while(!temp.eof()) { cout.put(ch); temp.get(ch); } temp.close(); getch(); } …

Member Avatar for Karkaroff
0
311
Member Avatar for Njekwa

Can someone help me develop a simple program, in Access or Visual basic. That can display numbers between “01 – 90”. in the 4x4 celk format I would like the program to be able to display all possible combinations of four numbers Between 01-90. either horizontally, vertically or diagonally. It …

Member Avatar for debasisdas
0
87
Member Avatar for sweetangel_aiza

how can i solve this 2 problems?!can you please help me?! Another matrix algebra operation is determining the matrix which is the product of two matrices. This is more challenging extension of the previous problem. The rule governing matrix multiplication is that two can matrices can be multiplied if the …

Member Avatar for Ancient Dragon
0
125
Member Avatar for snitch321

ok i have created a method to movea number of objects, but i want to move all of them at the same time(balloons flying is what im aimining for,lol)but they move seperatly? /** * Create method for balloons to fly */ public void slowMoveVertical() { top.slowMoveVertical(-50); top2.slowMoveVertical(-50); top3.slowMoveVertical(-50); middle.slowMoveVertical(-50); middle2.slowMoveVertical(-50); …

Member Avatar for snitch321
0
527
Member Avatar for carko

Help please I am a newbie trying to learn. I have the time and attitude but I do need direction for what I am trying to do. I have a photo site that I am trying to redo. I am trying to create a page where on the bottom or …

Member Avatar for kevinly
0
97
Member Avatar for mrpeterc

Can someone point me in the right direction, what I am trying to do is use the result set that I have from a php query to a mysql table. I would like to be able to individually select a record from a query result that returns multiple records. I …

Member Avatar for nav33n
0
95
Member Avatar for javaAddict

Does anyone know where can I find how to calculate how many days February has for a given year?

Member Avatar for javaAddict
0
294
Member Avatar for kartik07

Hi friends, I need to transform data from XML & store in a ACCESS Table, I have a code which displays the msgs as msgbox,but I need to insert in a table.I used XML4 here.I am relatively new to VB6 XML.Can someone tel me how to do it or provide …

Member Avatar for choudhuryshouvi
0
139
Member Avatar for Sukhbir

[code=c] void main() { fork(); fork(); printf("main"); } [/code] pls explain me what is the output. how it comes.

Member Avatar for replytoshshir
0
199
Member Avatar for Srynx

Hi I'm making a menu in C++ for a sudoku puzzle solver program I've already wrote using switch setence. I've wrote that code: [CODE] #include<stdio.h> #include<stdlib.h> #include<conio.h> #include<iostream.h> int opcio1(); int opcio2(); int opcio3(); void main(){ char sel; cout <<"Sudoku\n\n\n"<<endl; cout <<"1. How to\n\n"<<endl; cout <<"2. Sudoku generator\n\n"<<endl; cout <<"3. …

Member Avatar for CPLUSCPLUS
0
672
Member Avatar for thetechguy

I am somewhat new to the c++, so you've been warned. Yesterday I decided I wanted to create a program that displayed a Go board and allowed you make moves. Fairly simple task, didn't take me that long but, I feel that the code could be a lot shorter and …

Member Avatar for thetechguy
0
734
Member Avatar for palcham

Hi I cann't unable to get count the selected list box items using javascript so you please help me. if you know means please send to me Advance thanks

Member Avatar for palcham
0
219
Member Avatar for Duki

Hey everyone, I've been the IT at my workplace for about 2 years now. We use a piece of software that was developed in house by one of the previous ITs (about 6 years ago), and I think it was developed in VB6. We need to modify a couple of …

Member Avatar for AndreRet
0
216
Member Avatar for StrikerX11

Hi, I've been trying to code a simple file sharing system in python by using Discovery server -indexer- model Server: [CODE]#!bin/python import socket import sys import os import threading from utils import serialize, deserialize, PeerInfo class NotSupportedCommand(Exception): pass class DiscoveryServer(object): '''Indexer...''' def __init__(self, port, maxPeers=5): self.port=port addr=('', self.port) self.maxPeers=maxPeers self.supportedCommands=["/register", …

Member Avatar for StrikerX11
0
124
Member Avatar for manish_gajjar

Hi guys...Good morning...I have following code. <?php $pid=$_GET['pid']; $conn=mysql_connect('localhost','root','') or die("Cannot connect to server"); mysql_select_db('developer',$conn) or die("Cannot connect to database"); $sql="select cnode,item,pnode from listviews where cnode='$pid'"; $res=mysql_query($sql) or die("Cannot execute query"); while($ar=mysql_fetch_array($res)) { $itm=$ar[1]; $pid=$ar[0]; } $sql="select cnode,item,pnode from listviews where pnode='$pid'"; $res=mysql_query($sql) or die("Cannot execute query"); echo "<table border='1'>"; …

Member Avatar for nav33n
0
99
Member Avatar for Samudricka

help me that i am working in a sax parser project. it moves inside start and end document but not into start and end element.

Member Avatar for Samudricka
0
191
Member Avatar for Barefootsanders

Hey everyone, I'm attempting to delete records within my database but I'm having problems writing the query. What I need to do is delete records from my database that, within a field in this record, have a substring that I will pass to the mysql command. So for example, A …

Member Avatar for trudge
0
72
Member Avatar for blackbabydoll

I am having a problem sorting my numbers after my binary search. Can you tell me what is wrong with my code? [code] #include <iostream> #include <cstdlib> using namespace std; void pick_three(int p3arr[]); void pick_four(int p4arr[]); void lotto(int lottoarr[]); void selection_sort(int a[], int size); int lottobsearch(int a[], int size); int …

Member Avatar for AlephOne
0
181
Member Avatar for tariq04

hi i am new in PHP ,i am doing my job in a company and there are some existing project they tell to me plz check and remove errors ,i m trying more and more to remove this error but i m failure....plz help me. <?php require("header.inc.php"); session_start(); if(($useradmin)=='') { …

Member Avatar for vssp
0
160
Member Avatar for stevendmar

Someone please help!! I am use to working with MS Access. So, for me, working with SQL is a downgrade at this point. But, I have to do it. I am working with Microsoft Visual Web Developer which apparently is supposed to be easy!!! The help feature is pretty extensive …

Member Avatar for ericstenson
0
100
Member Avatar for rogelioz

Hi, I'm having a having a hard time trying to insert some data into a mysql DB, so I'd like to know if there is some kind of error log that could help me. I've already looked into the binary log but it didn't help me. I also started mysql …

Member Avatar for nav33n
0
101
Member Avatar for jigoro

hi everyone i need a little help, im trying to create a program which ask a user a password and when it reached a max password retry it goes to windows login. when he enters the right windows login my app will try to ask again. until the correct password …

Member Avatar for Kerjo
0
92
Member Avatar for Cyb3rAssasin

[code=c++] { char op; cout << "enter test "; cin >> op; if(op == 'test') cout << "test sucessful\n"; else cout << "w00t\n"; system("pause"); } [/code] Right now i can type toggle and the program will display test succesful because toggle starts with t i need it so like if …

Member Avatar for Cyb3rAssasin
0
64
Member Avatar for eranga262154

Hi all, This question partially related to one of my old question. Reading the time zone information. Now I'm try to do it in this way. User enter the time offset. Using that value search the registry and find the time zone name. Where I'm stuck is how to search …

Member Avatar for eranga262154
0
174
Member Avatar for tootypegs

My query is as follows. I have a file that is 16384 bytes in size. However i would like to break this down into 512 chunks of 32 bytes each. I am familaiar with straight forward loops but is there a way to initialise a loop to run for the …

Member Avatar for Ancient Dragon
0
93
Member Avatar for sadaka

Hello everyone. I just started incorporating directx into my programming and I am still unfamiliar with this territory. I installed directx version 9 into my computer after I had removed all previous versions. From my project settings I linked all the necessary file such as: d3d9.lib, d3dx9.lib and winmm.lib. From …

Member Avatar for sadaka
0
101
Member Avatar for Max_Payne

[B][COLOR="red"]Question: [/COLOR][/B] Can i initialize char arrays using preamble initialization ? [B][COLOR="red"]Code:[/COLOR][/B] [code=c++] #prag... #pragma once class Pizza { public: Pizza (const char top[] = "cheese", const int size = 12, const double pr = 8.99) : strcpy_s (_topping ,top), _diameter (size), _price (pr) {} ~Pizza () {} void setValues …

Member Avatar for Narue
0
274
Member Avatar for sivaslieko++

I have such an loop: [code=c] int i = 1230; while(i<1300){ int k = 0; Flight removedItem = RemoveQ(&Item); if(removedItem.C_TIME <= 1230){ k = k + 1; printf("%d", removedItem.C_TIME); } i = i + 5; printf("%d", removedItem.C_TIME); [COLOR="Red"]// it prints correct values here[/COLOR] } [/code] Why the if statement does …

Member Avatar for dubeyprateek
0
204

The End.