199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for extjac

Hello, what would be the best way to prvent people to run a php script/file that is on ajax.post(URL) $.ajax({ type: 'POST', url: 'http://www.mydomain.com/ajax/somefile.php?action=insert', data: data, success: success, dataType: dataType }); if you see code above...let's say that an advanced user or hacker go to: http://www.mydomain.com/ajax/somefile.php?action=insert i would like to …

Member Avatar for extjac
1
289
Member Avatar for raj26061990

Eg.407 4*4*4=64 0*0*0=0 7*7*7=343 now 64+0+343=407. Any number which satisfies the above condition is called as Armstrong

Member Avatar for vinnitro
1
512
Member Avatar for karthik_ppts

Dear Frendz, Alone with PHP, can we do a "CCTV security and surveillance System" like zoneminder.com? , Please give me an advice on this if any experts having experienced on this application. Regards, Karthik.R

Member Avatar for cereal
1
767
Member Avatar for abdulkadir.s.mainassara

Pls design a site but am still a dummie so I cant connect my site with a table in my db am using phpmyadmin. Please I need a tutor to guide me on how to begin connection to db using php.

Member Avatar for PhilEaton
1
54
Member Avatar for eXceed69

Hello I installed XAMMP for learning php on my local drive when it was completed. I run a simple programming but I receive error 404 what would be my issue with XAMMP, the installation is successful Any recommendation, I want to switch

Member Avatar for ziyad ahmad
1
294
Member Avatar for Twist43

Hi I am trying to get a tkinter UI to allow me to do two things. * When I right click in a Treeview widget and my mouse pointer is over an item I would like the item to be selected as if the user clicked on it * When …

Member Avatar for Twist43
1
4K
Member Avatar for bugstalker

Being an experience programmer (fortran and assembly), I decided to modernize my resume and tackle c. In the process, I learned that like other programming languages, there were many 'versions' of c. Several course books I read use the conio.h header file. I was looking for a substitute for conio.h …

Member Avatar for Ancient Dragon
1
1K
Member Avatar for misi

I do have a function in C to give me a unsigned short random number from 0 to 65535. How can I make it to give me a greater number without much calculating? (r * 65536 + r) I've made a function in C to do that for me: static …

Member Avatar for misi
1
241
Member Avatar for vckicks

Use regular expressions, regex, to create an efficient textbox that only takes in digits as input.

Member Avatar for Chatthanz
1
847
Member Avatar for schielrn

Here is the code that can be copied into sql server to better assist with what I am trying to accomplish. Hope it makes sense and post back with any questions you may have: create table #temp(period int, location int, custnum varchar(10), driver varchar(25), dollar decimal(10,2)) insert into #temp values(201201,221,'ABC123','dwcustcomm',52.37) …

Member Avatar for schielrn
1
158
Member Avatar for JTate89

Hi, over the past couple of years I've been learning C++ but now I am looking for another programming language to learn. I want to learn something that is widely used. I was thinking about either java or python. Does anyone have any experience with either of those? Or suggestions …

Member Avatar for lous39
1
279
Member Avatar for prakash89.gitam

Hi I have a task to do. I will just brief it in a sentence, I have a file of 20000 lines. Now task is to recognize number of similar lines. ex1 : "The quick brown fox jumps on a lazy dog" ex2 : "The quick brown dog jumps on …

Member Avatar for Taywin
1
181
Member Avatar for TrustyTony

There was discussion thread http://www.daniweb.com/software-development/python/threads/424953/polynomial-division for class based implementation for polynomials, and I developed a version utilizing the magic methods to enable operation with normal arithmetic operation. I only inherited sequence structure from list type. Interoperability with scalar types is not implemented to avoid too complicated type checks of the …

Member Avatar for TrustyTony
1
1K
Member Avatar for azilana

Hi! Anybody know how to interface a transmitter of RC helicopter with the parallel port? The transmitter has joysticks. I have to control it with my GUI in visual basic. I'm not good at it. Please help. Thanks!

Member Avatar for AndreRet
1
95
Member Avatar for tricket_7

I want the btnLogin_Click event to verify the username/password from the ms access database, if it matches it will take them to a certain page, if not it will give a message that user/password is incorrect try again. I really don't know where to start, can you please help first …

Member Avatar for notconfirmed
1
249
Member Avatar for CarterLangley

Hi all, I am retrieving information from a database and need to have that information put onto a new line (<br>) depending on the location of the comma which seperates the different areas of the information. Here is what is being retrieved *2.25 L 75 hp (56 kW) I4 petrol …

Member Avatar for CarterLangley
1
189
Member Avatar for slim.helu.92

hi.. am quite new to sound applications in java. I want a audio control panel as output. i.e. if i click play button audio should play, if i click stop audio should stop and if i click pause audio should pause/hold until the play or resume button is clicked. i …

Member Avatar for slim.helu.92
1
191
Member Avatar for sandorlev

Hey guys! I've started writing a 2d platformer game some days ago, and I'm really enthusiastic about it, but I already failed to live up to my own expectations: I just cannot possibly think of a way I could make my character jump. I used the MVC desing is why, …

Member Avatar for 3e0jUn
1
342
Member Avatar for bembem20

can someone tell me how to get the values of the dynamic texbox created..on my first code, i munaully put textboxes..but resulted to non efficient code according to my prof..so i found a code that dynamically create texboxes, but my problem now is how to get the values of them. …

Member Avatar for Reverend Jim
1
563
Member Avatar for sarelnet

Hi, I'm very new in Python and I have to write an file interpretor (first ex from university). The file looks like: joker NAME_OF_BLOCK bla bla { block_field abv : bit : R ; block_field acd : byte : RW ; block_field zza : bit : R ; block_field aw …

Member Avatar for sarelnet
1
151
Member Avatar for Reverend Jim

Sometimes sorting data can be easy and sometimes it can be difficult. If you have data in a listview you can spend a great deal of time writing ICompare functions. This is appropriate for non-trivial applications but can be a little intimidating for inexperienced programmers. Also, it is a problem …

Member Avatar for Reverend Jim
1
892
Member Avatar for HTMLperson5

This is a program intended to write text to any file specified var_file = (raw_input('nof$ ') #nof, number of files. try: text = str(raw_input('ttwtf$ ') #ttwtf, text to write to files. print text >>> var_file except ValueError: print "Error: Not a string" main() When the program starts the "`try`" part …

Member Avatar for HiHe
1
176
Member Avatar for titusnainggolan

Dear All, I have searched pdf viewer in the internet. I have found some library and I have tried the code, but it still occured error. Some library is work but it must be on the internet connection. I want to make the pdf viewer on my web in the …

Member Avatar for titusnainggolan
1
856
Member Avatar for newbie14

Dear All, My problem is that exactly every second I need to call a particular function to do some sql querying. So after reading I found that the latest api is timer_create. Below is a skeleton. Is this skeleton a right one to move forward? Thank you. [CODE]#include <stdio.h> #include …

Member Avatar for newbie14
1
2K
Member Avatar for MastAvalons

Hi all! I need to intercept GDI function to save painted screen to hard drive. I have tried Microsoft Detours. Everything is good, but I need 64-bit version (Detours Professional do support but it costs much). Is there any 64-bit alternatives to Detours Professional?

Member Avatar for pipaman
1
330
Member Avatar for nahsik

I am learning about networking and programming. I am trying to be a simple IM application. What i am trying to achieve having a server application route messages between computers over the internet creating a simple instant messenger. However i can't find any sort of tutorial for that. I want …

Member Avatar for extr3mex
1
325
Member Avatar for rahulroshan

i want key code for b+n combined, so that function works only when first b key is pressed and then n is pressed happens. if only n is pressed another function should happen. Plz help thanks

Member Avatar for Taywin
1
150
Member Avatar for Sanchixx
Member Avatar for kutchbhi

I am trying to connect and fetch messages of my hosting's email address using imap_open(), but its throwing errors. $server = '{mail.booksnearby.in:143/imap/ssl/novalidate-cert}INBOX'; $imap_connection = imap_open($server, $login, $password); $mailboxinfo = imap_mailboxmsginfo($imap_connection); $messageCount = $mailboxinfo->Nmsgs; The above throws this error: Array ( [0] => Retrying PLAIN authentication after [AUTHENTICATIONFAILED] Authentication failed. If …

Member Avatar for blocblue
1
849
Member Avatar for np complete

I use this function quite a lot. Recently one of my friend told me it is not good to use fflush(). I googled it, and found that it gives some kind of unexpected behaviour. My question is when does this function works improperly and why? Nowadays I use scanf("[^\n]") to …

Member Avatar for ravenous
1
156
Member Avatar for allomeen

Hi, I having this error and i don't know how to fix it, can anybody help please: "declaration of `c' as multidimensional array must have bounds for all dimensions except the first", i'm getting this error because of : [code]void lcs::LCS_Length(int X[], int Y[], [COLOR=Red]int c[][], char b[][], [/COLOR] int …

Member Avatar for deceptikon
1
852
Member Avatar for Sabyre

OMG Optimization.... One of those things that is widely discussed but with no real specifics because everyones setup and situation is different. So I spent all day trying to find ways to accomplish this as our SQL server was maxed out. Let me do a bit of setup explination.... We …

Member Avatar for smantscheff
1
244
Member Avatar for sam1

hi, I want to pass textbox text from one form to another using Property get and set. I have done it successfully on click event and then when popup window opens (or form2 opens) i get the value after initialization... But i want to learn how to do it with …

Member Avatar for roemerito
1
2K
Member Avatar for eggsandbacon

Hey everyone, I'm working on an assignment and I'm having some trouble figuring out how to implement two operators. The program creates and implements a class to represent the Stack ADT using a singly-linked list. There is a driver program to test my implementation. I have everything implemented (except the …

Member Avatar for aranayd
1
1K
Member Avatar for wiliams.kikert

hi.. im new here, and this will be my very first post ever in this website.. i am using Dev C++.. so can you help me out a little here?? i have this code.. yes, some of these codes are found all over the internet.. but most of the code …

Member Avatar for Ancient Dragon
1
157
Member Avatar for eburlea

Hi all! I am trying to insert multiple arrays values into a MySQL table. All I can manage is to echo in the browser. I have the following arrays: $array1 [0] = "Arsenal"; $array1 [1] = "Barcelona"; $array1 [2] = "Bayern"; $array2 [0] = "England Premier League"; $array2 [1] = …

Member Avatar for Swayam.tejwani
1
7K
Member Avatar for kuchi

I've an web page which reads the data from (server side) database and write into csv file, but as per requirement I need to write the file in client side and asked user to save the file in their local machine with popup window to save the location (client side), …

Member Avatar for kuchi
1
763
Member Avatar for Ene Uran

Does anybody have experience with Python on the iPad? Is it easy to get and use Python?

Member Avatar for chriswelborn
1
148
Member Avatar for shouvik.d

Hi, I have a Win32 Console Application which is throwing the Debug Assertion Failed! .. _CrtIsValidHeapPointer( pUserData ) and followed by a Debug Assertion Failed! .. _BLOCK_TYPE_IS_VALID(pHead->nBlockUse). After I did a Step by Step Debug strangely what I saw was it is throwing error once it is exittin the main …

Member Avatar for atoutsweb
1
1K
Member Avatar for Topiary
Member Avatar for Topiary
1
93
Member Avatar for cse.avinash

I am doing following code to get the output upto 5 decimal characters of any number inputted by user when divided by 1, I have to use typecast it with (float) , can any one tell me how this can be done without typecasting or using float constant.. int main() …

Member Avatar for cse.avinash
1
180
Member Avatar for Israelsimba

i developed a payroll running in VB6 and using SQL 2000 Database, and when i install it on my laptop with windows 7, it gives me an error message 'You dont have permission to perform this operation'. Im logged in as administrator.

Member Avatar for AndreRet
1
216
Member Avatar for fatimah batool

PLease help me in adding files to this code is it very simple for #include<iostream> #include<windows.h> #include<conio.h> using namespace std; struct flight_date { int day; int month; int year; }; struct flight_time { int hours; int minutes; }; struct BookingInfo { flight_date date; flight_time time; char location[20]; char destination[20]; char …

Member Avatar for Schol-R-LEA
1
202
Member Avatar for thilipdilip

**Hi**, #need to generate a report like Table Format(Excel Sheet) # this is an example view of the report which I need of it is for maintaining branch wise details In that product name contin in one table and stock of each branch will contain in another table -------------------------------------------------------------------- | …

Member Avatar for diafol
1
435
Member Avatar for Synestic

Hello First of all, I'm new to PHP, and also to Daniweb. I've been looking everywhere for some PHP code to skip to the next line every time my string ($description) has a period in it. So here's an example of what I want to achieve: Text: The car is …

Member Avatar for Dani
1
166
Member Avatar for JakeA

Hi, How do you disable the minimize button in a JFrame. I only want to disable the minimize button, not the close and maximize button. Please help me with this one. Thanks.

Member Avatar for DavidKroukamp
1
2K
Member Avatar for DeeperShade

Ok, first post. Ive tried to avoid asking for help when i've had problems before and usually managed to solve things on my own but on this, i'm just going round in circles. I'm trying to teach myself basic directx9 and so far I made a program that takes a …

Member Avatar for DeeperShade
1
272
Member Avatar for FALL3N

hey, so I know if I use the drawLine() method, then I could change the line stroke/thickness with setStroke, but how do I change the thickness of a Line2D?

Member Avatar for FALL3N
1
659
Member Avatar for gacheson

Hey All, Context: I am creating a feed for work, similar to facebooks, that hits the database every 5 seconds to see if an update is made and if so returns the results to the feed. The problem I have is that we have over 35,000 users and if they …

Member Avatar for cutepinkbunnies
1
148
Member Avatar for DyO1

Hello. I'm going to show you how to make a pop-up (right-click) menu that you can edit 1.Select the application you want to edit,or create a new one 2.add ContextMenuString 3,You are going to see a menu on the top of the form,juat add the stuff you want to be …

1
109

The End.