Posts
 
Reputation
Joined
Last Seen
Ranked #99
Strength to Increase Rep
+14
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
~494.03K 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
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
203
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
391
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
758
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
338
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
258
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
777
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
238
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
837
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
116
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
160
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
849
Member Avatar for cwarn23
Member Avatar for diafol
0
734
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
124