Posts
 
Reputation
Joined
Last Seen
Ranked #99
Strength to Increase Rep
+15
Strength to Decrease Rep
-3
95% Quality Score
Upvotes Received
136
Posts with Upvotes
111
Upvoting Members
85
Downvotes Received
7
Posts with Downvotes
6
Downvoting Members
7
65 Commented Posts
~501.40K People Reached
About Me

PHP programmer, I do C++ Dev on the side along with a little C from working on MUD codebases. I repaired computers before I programmed them and got my A+ a while back then worked as the assistant sysadmin for the school I graduated from.

Interests
Programming, Sleep, Fixing things
PC Specs
DesktopHP Whitebox (Athlon Phenom II, 6GB RAM, 1TB HDD/500GB HDD) (Lucid Lynx)Frankenstein Box (Kubuntu)LaptopDell…
Favorite Tags

1,038 Posted Topics

Member Avatar for samaru
Member Avatar for sam023

[code] // add spaces after every 4 digits (make sure there's no trailing whitespace) somestring.replace(/(\d{4})/g, '$1 ').replace(/(^\s+|\s+$)/,'') [/code]

Member Avatar for Dani
1
33K
Member Avatar for piyush gandhi

It should be int main(void) and lines 12 and 15 will cause errors due to a missing " at the beginning of the string.

Member Avatar for KarmaHunter
-2
11K
Member Avatar for cwarn23
Member Avatar for Muhammad_137
0
1K
Member Avatar for shankmuchlove

[QUOTE=shankmuchlove;931318]I am using xampp and windows.... I need to call java classes from php. How to use php java bridge... I am using php 5.2.6[/QUOTE] Check [url]http://php.net/manual/[/url] before asking your questions here.

Member Avatar for Abid_4
0
204
Member Avatar for hail2dthief

I used this one to save me some time This is not Visual C++ dependant, I use this with DEv-C++ as well, you just need the windows header [code=c++] enum Colors { blue=1, green, cyan, red, purple, yellow, grey, dgrey, hblue, hgreen, hred, hpurple, hyellow, hwhite }; void coutc(int color, …

Member Avatar for Ancient Dragon
0
23K
Member Avatar for duttydea
Member Avatar for diafol
0
2K
Member Avatar for ShawnCplus

This is just a little something for those of you used to using the Eclipse IDE, it's syntax highlighting almost identical to Eclipse save a bit of enhancement. Eclipse doesn't highlight ints, octal and hex individually but DevC++ can, there are a few other things in there that promote very …

Member Avatar for Tech_1
3
405
Member Avatar for nileshjaiswal

C++ is a superset of C so any C program can be compiled and run as a C++ program(doesn't change the fact that it is really C)

Member Avatar for frta
0
761
Member Avatar for anuj_sharma

Well to clarify a bit, both of those languages have the capability of being used as web development languages but neither were made specifically for that purpose. .NET itself is a framework, ASP.NET is the web language in the framework.

Member Avatar for rumisa
0
343
Member Avatar for owen99

[code=c++] #include <iostream> #include <cstdlib> #include <ctime> #include <string> using namespace std; int main() { srand ((unsigned) time(0) ); //<----Only seed once //A string is not necessary, you aren't using any the facilities of the class char* RandNum; //What is this supposed to do? There's no input from the user? …

Member Avatar for Anilorap
0
1K
Member Avatar for twhite

well a simple way is boot in safe mode by holding F8 and choosing safemode WITH networking from the selection screen, once in windows, Start->Run->msconfig, move over to the startup tab and look for any suspicious programs and if you believe you have found one before fiddling with it google …

Member Avatar for proex
0
261
Member Avatar for zippee

[QUOTE=a-geek;853114]An example of how to write a simple rewriting rule: [URL snipped][/QUOTE] 4 year bump! Drink!

Member Avatar for mikerock
0
798
Member Avatar for ero100@live.com

Hi, he is my post, i would like you to : try it yourself first thank you very much

Member Avatar for diafol
0
244
Member Avatar for Avasulthiris

Take a look at the FAQ that is stickied, follow those instructions and then if it still doesn't work repost your code along with the new errors

Member Avatar for Dr. Raven
0
10K
Member Avatar for Woobag

Well the [inlinecode]\n[/inlinecode] isn't parsed for single quotes but it is for double quotes. Also, I'm not sure where you're trying to use it but if you are just outputting to an HTML page then it wont display the newline because whitespace characters(unless preempted with a <pre>) tag are ignored. …

Member Avatar for EvolutionFallen
0
2K
Member Avatar for codedome

Well I can tell you right now that it won't be able to directly interact with the device because that involves having access to the user's computer which is not possible with PHP unless it is running on the same machine.

Member Avatar for diafol
1
840
Member Avatar for janzaldo

[QUOTE=luqyan;868311]y need some help pls Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\xxxxxxxxx\index.php on line 7 No Template Selected require("dbconfig.php"); $con =mysql_connect ($db_host,$db_user,$db_pass) or die("Error connecting"); mysql_select_db($db_name,$con); $tem="select dir from template where active='1'"; $temr=mysql_query($tem,$con); $temn=mysql_num_rows($temr); line 7 if($temn==0)[/QUOTE] Excuse me. Did you not see the …

Member Avatar for sudhir1234
0
2K
Member Avatar for servis
Member Avatar for ItecKid

Vectors use the empty method [code=c++] vector <int> test; if(test.empty()) ...[/code]

Member Avatar for Lucaci Andrew
0
5K
Member Avatar for rm_daniweb

That's not actually running the PHP function onchange. It's running a Javascript function onchange. The PHP function only runs once when the page is loaded.

Member Avatar for talad
0
3K
Member Avatar for xeption12

To put it in extremely simple terms and in more detail than I could [URL="http://www.redmelon.net/tstme/box_model/"]http://www.redmelon.net/tstme/box_model/[/URL] Move the perspective slider all the way to the right to make it a bit more clear.

Member Avatar for hudonkotel
0
119
Member Avatar for laetitia--
Member Avatar for mbabaali

[quote]<tr><th></th><th>$stat3[pID] </th><td></td><td></td><td></td><td></td><td>$stat3[pName] </td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>$stat3[pfName] </td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>$stat3[village]</td><td></td><td></td><td></td><td>$stat3[dept] </td><td><td></td><td></td><td></td><td></td><td></td><td></td><td></td></td><td></td><td>$stat3[age] </td><td><td></td><td></td><td></td><td></td></td><td></td><td>$stat3[sex] </td><td></th><td></td><td></td><td></td><td></td><td>$stat3[tribe]</td><td></td><td></td><td></td><td></td><td></td><td>$stat3[symptoms]</td><td></td><td></td><td></td><td></td><td></td><td></td><td>$stat3[day]</td><td>$stat3[month]</td><td>$stat3[year]</td><td></td><td></td><td></td><td></td><td>$stat3[wgt]</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>$stat3[hgt]</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>$stat3[temp]</td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td>$stat3[bldp]</td></tr>[/quote] What the heck are you doing?! Why, why, [B]WWWWHHHHHHHHYYYYYYYY?[/B]. I'm not helping you until you explain this madness.

Member Avatar for gopinathan
0
163
Member Avatar for sillyboy

Parkway Drive - It's Hard to Speak Without a Tongue [url]http://songza.com/~7jwltz[/url]

Member Avatar for Helianthus
0
5K
Member Avatar for raine

[QUOTE=biscovaldo;899319]Good answer. I solved my problem too.[/QUOTE] I'm sure he heard you. By the way, can I borrow your necronomicon so I can resurrect the dead as well? Come on, this thread is over 5 years old

Member Avatar for get-innocuous
0
862
Member Avatar for cwarn23
Member Avatar for diafol
0
744
Member Avatar for pete harby

[QUOTE=bugmenot;762744]I had this problem in Joomla! with my php code that I was including in an article through the plugin sourcerer. Well, needless to say, my web hosting changed to php 4 without me knowing why, I changed it to php 5 as the compiling engine and it worked like …

Member Avatar for hoffmen99
0
4K
Member Avatar for stangn99
Member Avatar for aditya19897
0
2K
Member Avatar for vijaysoft1

If you want to do it correctly its not going to be one class. It's probably going to be upwards of 4 or 5 classes. The database connection, the database interaction, the request handler, the authentication, the user, and probably a user class extending the base user for every level …

Member Avatar for jonhy22
0
126
Member Avatar for veledrom

Use PDO/mysqli and prepared statements, that's the easiest way to prevent it. Forget about all the magic_quotes BS. [url=http://us2.php.net/manual/en/mysqli.prepare.php]mysql::prepare[/url]

Member Avatar for phplover
0
165
Member Avatar for iThaos

[quote]Other than notepad++ and Netbeans I haven't heard of many other popular programs or none that I can think of.[/quote] *cough* vim/gvim/macvim > all *cough* unfortunately : [img]http://www.terminally-incoherent.com/blog/wp-content/uploads/2006/08/curves.jpg[/img]

Member Avatar for cloder
0
241
Member Avatar for scorpionz
Member Avatar for eidshow1
-1
2K
Member Avatar for khess

I'm going to have to go ahead and disagree with all of the code. Never use short tags in production. You can never know if the server you're going to move code to has short_tags enabled or not. It also makes it easier to separate code from HTML in templates.

Member Avatar for cwarn23
-8
1K
Member Avatar for architact

Your problem is just as the exception describes, the file doesn't exist. Try giving an absolute path to the image.

Member Avatar for Bibhas Biswas
0
283
Member Avatar for OmniX

Careful about misleading people. A hash is [b]not[/b] encryption. There is no way to decrypt a hash. There is also no such thing as a "dehasher", the only way to "reverse" a hash is to create huge libraries (called rainbow tables) of pre-created hashes and check against them. MD5, SHA1/256/etc …

Member Avatar for Stefano Mtangoo
2
2K
Member Avatar for disc

Can't do that, has to be a local file. If you do an include() on a remote file it'll pretty much just gets the file like you would hit it in the browser. Remote file includes are just a bad idea all around.

Member Avatar for ohmagoleh
0
81
Member Avatar for Harora

OSCommerce is an open source e-commerce platform. While I support open source in almost every aspect, dealing with clients' credit cards I do not, since open source is just that [B]open source[/B] which means anyone can find holes in the system. [URL="http://www.oscommerce.com"]http://www.oscommerce.com[/URL]

Member Avatar for mark santa
0
229
Member Avatar for abs0lut01
Member Avatar for prashanth18

There are really only two ways until the CSS3 [icode]@fontface[/icode] proposal makes it's way through. One is to pass it through a server-side language which will make an image to replace the text, the other is [url=http://en.wikipedia.org/wiki/Scalable_Inman_Flash_Replacement]sIFR[/url] which uses Javascript and Flash to replace text

Member Avatar for leakbali
0
271
Member Avatar for lcfr1012

A) Use code tags B) This is a PHP problem not Javascript C) [code=php] <?xml version="1.0" encoding="UTF-8"?> // <---- this is your problem because of the <?[/code] If you're in PHP you have to echo the <?xml otherwise PHP will think you're trying to open PHP tags and parse whatever …

Member Avatar for tian3348685
0
373
Member Avatar for psyb0rg

Did you echo out [icode]"fileName: $fileID"[/icode] to see what the actual value being passed was?

Member Avatar for gieseni
0
1K
Member Avatar for tux4life

Actually there is a standard method to do this using C++ string streams [code=c++] int some_int = 10; stringstream some_stream; some_stream << some_int; string some_string = some_stream.str(); [/code]

Member Avatar for ztdep
0
1K
Member Avatar for Sanit

the onclick doesn't work because your onclick attribute and your confirm() function are both usiing '', the they have to uses different delimiters

Member Avatar for leo_gatmaytan
0
2K
Member Avatar for shobhit25
Member Avatar for ms_lildreamer

They are correct about installing a 350 watt power supply, if you are replacing a power supply never install a lower wattage. But the fact that they told you that it would not work with the recovery disk is somewhat suspicious since the power supply doesnt really communicate with the …

Member Avatar for Rik_
0
347
Member Avatar for marufsiddiqui

There is a snippet in the cplusplus section that I wrote to solve a matrix using Cramer's rule that might help you a bit. [URL="http://www.daniweb.com/forums/../code/snippet643.html"]http://www.daniweb.com/code/snippet643.html[/URL]

Member Avatar for idriz12
0
2K
Member Avatar for kings

Will you people PLEASE read the date on the last post before you bump year old threads, this is getting really, really annoying and it's been happening a lot lately.

Member Avatar for pandikamal
0
144
Member Avatar for realnsleo

So let me get this straight. You want to steal someone else's application so the same wont happen to you? There are alternatives, like licensing. If someone violates your license sue them, although I don't promote being a litigious fanatic since no one needs more of them.

Member Avatar for Moderns
0
106
Member Avatar for novicegeek

OK, like I always do I'll ask a few basic questions, other than the hard drive did you add any new hardware or install any new programs? Have you tried to boot it in safe-mode?

Member Avatar for caperjack
0
378

The End.