- Strength to Increase Rep
- +15
- 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…
1,038 Posted Topics
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 … | |
Re: 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] | |
Re: [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] | |
Re: onmouseover='this.height += 100;this.width += 100' That's the most basic version. | |
Re: 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. | |
Re: Your problem is just as the exception describes, the file doesn't exist. Try giving an absolute path to the image. | |
Re: 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 … | |
Re: 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. | |
Re: 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] | |
Re: Why can't you use cron? | |
Re: 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 | |
Re: 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 … | |
Re: Did you echo out [icode]"fileName: $fileID"[/icode] to see what the actual value being passed was? | |
Re: 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] | |
Re: the onclick doesn't work because your onclick attribute and your confirm() function are both usiing '', the they have to uses different delimiters | |
Re: 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 … | |
Re: 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] | |
Re: 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. | |
Re: 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. | |
Re: 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? |
The End.