- Strength to Increase Rep
- +14
- Strength to Decrease Rep
- -3
- Upvotes Received
- 136
- Posts with Upvotes
- 111
- Upvoting Members
- 85
- Downvotes Received
- 7
- Posts with Downvotes
- 6
- Downvoting Members
- 7
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…
Re: [code] // add spaces after every 4 digits (make sure there's no trailing whitespace) somestring.replace(/(\d{4})/g, '$1 ').replace(/(^\s+|\s+$)/,'') [/code] | |
Re: It should be int main(void) and lines 12 and 15 will cause errors due to a missing " at the beginning of the string. | |
Re: Did you call php_info() to see if your extension was loaded or not? | |
Re: [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. | |
Re: 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, … | |
Re: This should answer pretty much everything. [url]http://us3.php.net/mysql[/url] | |
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 … | |
Re: 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) | |
Re: 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. | |
Re: [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? … | |
Re: 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 … | |
Re: [QUOTE=a-geek;853114]An example of how to write a simple rewriting rule: [URL snipped][/QUOTE] 4 year bump! Drink! | |
Re: Hi, he is my post, i would like you to : try it yourself first thank you very much | |
Re: 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 | |
Re: 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. … | |
Re: 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. | |
Re: [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 … | |
| |
Re: Vectors use the empty method [code=c++] vector <int> test; if(test.empty()) ...[/code] | |
Re: 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. | |
Re: 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. | |
Re: [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. | |
Re: Parkway Drive - It's Hard to Speak Without a Tongue [url]http://songza.com/~7jwltz[/url] | |
Re: [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 | |
Re: ... ... [url=http://php.net/parse_url]php.net/parse_url[/url] | |
Re: [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 … | |
Re: You can just use CSS. [code=css] height: auto; min-height: 400px; [/code] | |
Re: 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 … |