No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
80 Posted Topics
Re: [QUOTE=SeeTheLite;931257]Alternatively you can run it on a seperate thread.[/QUOTE] That would be my first suggestion. You could also think about using pipe()/fork() and have one process listen for messages while the rest of your program executes. | |
Hey everyone. I've been trying to install my own webserver on my computer along with PHP and MySQL. I thought I installed everything correctly but I just uploaded my first script and NONE of the PHP seems to be working. I'm running apache v2.0.x, the latest version of MySQL and … | |
Hey guys. Im new to PHP but I know the basics and I know C++ pretty well. Im trying to develop a marketplace module for the Joomla CMS. I was wondering if any of you could help or had experience with Joomla. Any suggestions? Thanks. | |
Hey everyone, I'm attempting to write a directory monitor in java but I'm stuck. I'm trying to find something in Java that is like FileSystemWatcher in .NET but I don't think java does. From what I read is that you have to continually poll the directory for changes. What I … | |
Hey everyone. I just got my server up and running and I programed my database, or so I thought. I tried uploading it and running it but my index.php gives me "syntax error, unexpected $end in [B]index.php[/B] on line [B]127". [/B]My code is below. Can anyone help?? Thanks! [code]<? /** … | |
Re: If you understand the concepts and have written the insert function, then this should not be all that difficult to understand. Just for reference: [quote]In an AVL tree, the heights of the two child subtrees of any node differ by at most one [/quote] So one solution would be to … | |
Re: It would probably be easier to generate a small 'V' by hand and figure out what coordinates that the '#' lands on. Then you can decipher the pattern and come up with what you would need to be put inside the for loops. Sometimes it's easier to do things by … | |
Hi all, I have a php/mysql based site set up. I want to keep my database layer updated via a python script that will query some other systems, parse data and make the appropriate CRUD calls to my database. My question is might be a simple one but I'm wondering … | |
Hi all. I'm attempting to output all of the possible combination from "a" to "zzzz" and I'm wondering if theres an easy way of doing that. As an example output would be ... a b c .... z aa ab ac .... az ba bb ... and so on.. Is … | |
Hey everyone. I just recently set up(or tried to) a userdatabase where people can log in and see a user edit page. For some reason when you try to register, instead of redirecting to the successfull register page, it just goes to a page, "process.php" which process the login when … | |
Hi all. I want to set up a small array of linux servers on a couple computers I have.. I'd like to use virtualization software and set up 2-3 VM's on each computer. I was wondering if anyone had any suggestions as to what software and OS to use i.e. … | |
Hi all. I recently moved and in my new place my wireless router is way far away from the rest of my equipment that needs to be on the network i.e. desktop computer, xbox, NAS drive, etc... I'd like to run just one Ethernet cord into my room and set … | |
Hi all. I have a current PHP script which checks a number of GET, POST, and REQUEST variables. These are currently in a top-down PHP file and these variables control the flow of the application. I want to convert file to a PHP class, create an object and then access … | |
Hi all.. .I'm trying to use preg_split but I'm having trouble getting the regular expression I want. What I have now is a long character string, upwards of 200 characters depending on user input. I'm trying to do is break up my string an array, each element in that array … | |
Hi. I'm just being curious here and wondering if anyone would know what type of technology could re-create the web based audio editor used on myxer.com i.e. [url]http://support.myxer.com/2007/06/01/create-ringtones-and-wallpapers-with-our-online-tools/[/url] I'd be interested in attempting to re-create these tools just for kicks and to see how it works. Thanks. | |
Hi all, I plan on desining a PHP driven site. I was wondering what people used in terms of a framework (or none at all). I've looked into ones such as Cake PHP but I'm just not sure whats out there and am looking for suggestions/comments. Any feedback/input would be … | |
Re: Good start but there are numerous problems with your code. I added comments and highlighted them in red for you to see where you went wrong. Also, one thing i would suggest is review how to properly format code. it is very hard to understand what your code is doing … | |
HI, I'm trying to write an application in C++ that has two things - a TCP server (listen server) as well as a TCP client where it can send to other TCP servers. I currently have both parts set up simultaneously. I did this by calling fork() and having the … | |
Re: This should take care of it for you as long as you have a head pointer which I'm assuming you do otherwise how would you access your list? [CODE] ~CList() { // Create a tmp node CNode node; while(node->next != NULL) { node = head->next; delete head; head = node; … | |
Hi, I'm trying to code a program that involves a double linked list. I have the linked list working but the information in the link list need to be shared between 2 different classes. Is it possible to pass a linked list as reference and manipulate it within the different … | |
I'm writing a simple networking application. I'm using berkley sockets and was wondering if there was a way to enable the UDP w/ ACK option when setting up a udp socket. I know the UDP protocol has an field (in the options area) to enable it but I'm unsure on … | |
Hey all, I'm trying to use a 3 element array and keep it sorted. So when i get a new value that should be put at the start of the array, I shift values down in the array like this: [CODE]array[2] = array[1]; array[3] = array[2]; array[1] = result;[/CODE] However, … | |
Hey all, I'm trying to create a directory monitor that will watch a certain directory and print changes made to that directory. I was wondering if there were any C/C++ libraries that provide an abstract class to access the file system on any OS. I would like the program to … | |
Hey all, I'm trying to make a small menu popup via CSS. On rollover, the link should display another set of links below the link that the mouse is hovering on. The code Below works in FF but not in IE. Could someone help out? Thanks. [CODE]style.css .navigation { margin: … | |
Hi everyone, I'm in the process of designing a C# program and I needed some help with what I wanted to accomplish. Heres where I stand. There are 2 parts, a client and a server. The client has a database and within this database contains the filepath(s) of all the … | |
Hey everyone, I plan on buying a domain name/hosting from a web host but I wanted to see if anyone had some suggestions. I previously used godaddy.com and had a good experience but I have been checking out oneandone.com and it seems to look better. Does anyone have any other … | |
Hey everyone, I'm attempting to write a program that will pipe and fork to have a parent and child process. Then the parent writes numbers to the pipe and the child either multiplies or divides the two numbers. For some reason my file I/O isn't working. It's supposed to keep … | |
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 … | |
Hey everyone, I'm trying to store file path's within a database. The problem I'm having is that the file path contains a backslash and when put into the database, it causes a problem. So I need to add an escape character into the string. I was wondering if anyone could … | |
Re: Yea, if you started using IIS and then subsequently started WAMP, your wamp web server probably didnt start, only the mysql server started most likely. If you would like to run both, you can easly change the port for the apache server in the httpd.conf file. It should be around … | |
Re: Edit: well looks like you fixed it. No need for my reply :) | |
Hey everyone, I'm attempting to write a header file, example.h that will contain function declarations that will be defined in example.c. For some reason Its giving me an error when i do this [CODE]extern void mainMenu(node*);[/CODE] Now node is a struct defined in another header file, should I include that … | |
Hey everyone, I'm attempting to monitor a directory, including subdirectories, for changes and update a database. The database part I can do, I just cant figure out how to monitor the directory for changes.. any suggestions? Is there an easy way to do it like function.getChanges(directory)?? Microsoft seems to make … | |
Hey everyone, I was wondering if someone could explain to me the following bit of code. I understand != in logic but i dont know how to read it like this: [CODE] float y = 0.01, x = 0.005, z; z = 2 * x + (y != 0.001); [/CODE] … | |
I have a doubly linked list and I know it gets created with the proper values. For some reason when I run through my print function it, only prints 1/2 of the list and then gives me this: the instruction at "0x7c93426d" referenced memory at "0x00000000". the memory could not … | |
Hey everyone, I'm attempting to write a program that will contain multiple C-DLLs. I currently have 2 structs: [CODE] struct CDLL_Node { char value[30]; struct CDLL_Node *next; struct CDLL_Node *prev; }; typedef struct CDLL_Node node; struct listHolderRecord { char label[30]; struct listHolderRecord *next; node *headAddr; }; typedef struct listHolderRecord listHolder; … | |
Hey everyone, I'm working on function that will take in a char array, prompt the user to input a string, and then return that string to the function. Below is what I've been working on and yes, I know it is not the right syntax, but I'm hoping someone could … | |
Hey everyone, I'm working on some javascript code. What i have now is a list box that contains certain elements and another list box, blank at the moment, next to it. I want, when someone clicks an element within the first list box, that in the background, a MySQL statement … | |
Hey evyerone, I'm currently working on a small project that would basically be a self hosted music server. Below is my code which, at a high level, goes through every music file in a specified directory and populates a multidimensional array with the ID3 tags and the file name. I … | |
Hey everyone, I was wondering if you could help me with something. I am attempting to set up VS C# EE on my comp but I would like to use it to make ASP/.NET web pages. I have VS C# EE installed but there is no selection for ASP web … | |
Hey everyone, I'm using Dev-C++ to compile the following program. It's simple but for some reason its not working. [CODE] #include <stdio.h> #include <unistd.h> int main() { int n, fd[2], pid; const int MAXLINE = 4096; char line[MAXLINE]; if(pipe(fd) < 0) { printf("Pipe error"); } if((pid = port()) < 0) … | |
Hey everyone, I was hoping you could help me out in choosing or not choosing java for an upcoming project I would like to do. I would like to have my media library streaming from my home computer. So basically you would input a directory and it would gather all … | |
Re: PHP isnt usually installed on an IIS server. IIS servers usually run ASP/.NET. Like matale said, make sure php is acutally installed on your server before you try anything. | |
Re: What do you mean "an enrollment" system? What would this entail/accomplish? Also, what functionality would you be looking for? Thanks. | |
Re: This might help. You shouldnt have to check if its null because if its not equal to Fair or Poor it wont matter. Also, as long as you have a column within the dataview named RepVisits and you know it will be there ever single time, you dont need the … | |
Re: At a very high level, it allows you to write one function and use it over and over and over again making your program easier to code, more compact and more efficent. Again, at a very high level, in OOP you write a "class" which is basically a group of … | |
Re: Hey, You need to include the connection as a paramater within the mysql_query method. For example, [code] $connection = mysql_connect(DB_SERVER, DB_USER, DB_PASS) or die(mysql_error()); mysql_select_db(DB_NAME, $this->connection) or die(mysql_error()); $q = "SELECT password FROM ".TBL_USERS." WHERE username = '$username'"; $result = mysql_query($q, $connection); [/code] Now just apply what i described above … | |
Hey everyone, I'm workin on a little side project and I was looking for some help. Currently I have code that will check a given directory and populate two list boxes based on id3 tag information. The first select box will be populated with artist info and the second, with … | |
Hey everyone, I'm trying to populate an array with file information from certain directories. Currently I have an array with all the file names in it. I was wondering if anyone knew a way to get the embedded information within a file. For example, an audio file( mp3 for example) … | |
Hey everyone, I'm attempting to set up my own web server with apache2 and php5. I set up apache fine and it works. My problem is that when i install php5 my apache wont start. I just get an error message saying "The requested operation has failed." I attached both … |
The End.