1,038 Posted Topics
Re: There are many MVCs around so first off I'd suggest you take a look at those since they've had years of development and large teams behind them (Zend Framework, Code Igniter, Symfony, Cake, etc.) Though, obviously, the large, more feature-rich the framework the slower it will be (ie., Code Igniter … | |
Re: Where is the code for your loop that is actually printing out the links? It's not in any of the code you've posted. | |
Re: The black stripe is magnetic, as far as I know PHP can't charge magnets. There are however quite a few libraries to create barcodes. Google for a "PHP Barcode class" | |
Re: No but you can do it the other way around. [url]www.php.net/Java[/url] | |
Re: There seems to be an interesting and undocumented precedence taking place with the concatenation operator. It seems [code=php]echo $num . ++$num;[/code] prints out 66. Whereas [code=php]echo $num , ++$num;[/code] prints out 56 | |
Re: I'm pretty sure [icode]emsg[/icode] is not a standard attribute for input tags, if emsg is from a Javascript library you might want to look into that as the culprit. The input field itself has no properties other than that [icode]emsg[/icode] field that could cause anything to "reset" | |
Re: Just in case you hadn't fixed it yet, [icode](\d{2}\-){2}\d{4}[/icode] is the correct regular expression. for 12-34-5678 format. To correctly write a regular expression you have to know exactly what your input must look like. If you post what you want in your fields it would be easier. | |
Re: Symfony redirects are done with [icode]$action->forward('module', 'action');[/icode] OR [icode]$action->redirect('<route>');[/icode]. I'm not exactly sure what you're trying to accomplish. | |
Re: What do you want the variable [icode]$value[/icode] to be because right now its nothing, all you would get would be [code=html]<a href="=1">Data: 1</a> ...[/code] | |
Re: [code=php] $_SESSION['cart'][] = array('team'=> $teamID,'tournament'=>$tournyID,'gatefee'=>$gatefee,'cost' => $cost); [/code] Note the code tags! | |
Re: printf is your best bet for a cout alternative. It is from the cstdlib library (for C++, stdlib.h for C) | |
Re: I am not sure which solutions you tried but if this was not one of them it usually is the fix. There should be a fn key on your keyboard, hold that and repeatedly press the up arrow. Hope that helps, sorry if it doesn't. | |
Re: Quick solution, use [url=http://recaptcha.net/]reCAPTCHA[/url] | |
Re: There aren't any Javascript animation studios because there are so many quirks between the different browsers they'd be doing N times more work, where N is the number of current browsers. Believe it or not people still use IE5.5 and if you're going to do business you have to support … | |
Re: The GIMP can do this pretty well. Though I usually just make my own in GIMP, I've never tried to convert jpg over. You could try to just open it with GIMP then do a save as... then use .ico, it should bring up a dialog asking which type of … | |
Re: If you have no programming experience why does your final project, most likely the purpose of which is to show off accumulated knowledge, involve programming? | |
Re: My biggest recommendation would be to use a prebuilt syntax highlighter and just add a syntax extension. [url=http://qbnz.com/highlighter/]GeSHi[/url] is one my my favorites. | |
Re: You don't have the close brace [icode]}[/icode] on the function | |
Re: well for one thing that is javascript and you have it wrapped in PHP tags | |
Re: Why are you creating the query with $q but then using $campaign? A doctrine update should look like [code=php] Doctrine_Query::create()->update('Table')->set('field','bound_value')->where('id = ?',$bound_id)->execute()[/code] | |
Re: Well in the database you would store the page name/page ID as well as the actual page in a largetext or memo field. When the page is requested by name/ID you would simply pull it from the database and display it, ie., [inlinecode]<a href="page?id=25018">Read more...</a>[/inlinecode] | |
| |
Re: It's most likely from google toolbar showing them fields they can autocomplete. It's not your site, go yell at your client. | |
Re: That's extremely vague. Would you like to elaborate a bit? | |
Re: You can follow janines advice which would be the sure bet or if your cheap do what "Thong_inspector" said and buy a new desktop keyboard if your notebook has a ps/2 port. | |
Re: [LIST=1] [*]Step 1: Use Code tags [*]Step 2: Read the rules [*]Step 3: Show effort [/LIST] I don't believe you've done any of those things. | |
Re: People are throwing around the word AJAX as if it is synonymous with DHTML. [code=javascript] var container = document.getElementById('the_form_container'); var newfield = document.createElement('input'); newfield.type = 'text'; newfield.id = someCounter+'_suffix'; container.appendChild(newfield);[/code] ^ Not AJAX ![]() | |
Re: ... [code=php]$parsed_string = preg_replace(array('#\[\[#', '#\]\]#'),'',$whatever_string);[/code] | |
Re: [QUOTE=nzaman;660247]Create a script that usesa while statement that increments through and prints every even number between 1 and 49. Can any one do that for me?!?[/QUOTE] No, in case you missed the signs, rules, signatures and giant bold text everywhere, we don't do your homework for you. | |
Re: [url]http://us3.php.net/manual/en/language.oop5.decon.php[/url] Unless you have created a constructor that overrides the parent constructor it will use the inherited method | |
As many of you that have worked with VB.NET know, and have been irritated by, you can't use a nonconstant variable to size an array. A simple workaround, reply if this is a problem, is to take input on the size of the array (Yes, I know you can't do … | |
Re: Well, the short answer is No, the long answer is to force them to enable javascript for your page. | |
Re: You do realize that even if you did find out a way to do this that users could just disable javascript then take a screenshot(or do anything else that javascript is 'protecting') then re-enable javascript, right? | |
Re: Refer to [url]http://www.daniweb.com/forums/post637921.html#post637921[/url] | |
Re: Its possible but I wouldn't recommend it. If, down the line, you want to add an actually .js file you'd have to either A) change the file extension or B) add another handler. The quickest way to do this is have all your Javascript in a PHP file then at … | |
Re: [QUOTE=AceofSpades19;637227]I think what you are loooking for is something like Ruby on Rails[/QUOTE] Ruby on Rails isn't exactly Enterprise level, it has horrible scalability. PHP has been argued to be enterprise level, and Java is supposedly an enterprise level language ( JSP ). Really, its all up to you, there's … | |
Re: The function is called [icode]nl2br[/icode] That will turn all newlines into HTML linebreaks. Example: [code=php] $Input = "Testing This is on a new line"; echo nl2br($Input);[/code] Output [code]Testing<br /> This is on a new line[/code] | |
Re: It doesn't work because script tags can never be short-tags i.e., <tagname />, they must be explicitly closed i.e., <tagname></tagname> | |
Re: Chances are if you know about the exploit then the developers of TikiWiki know about it and have already patched it in a newer version. Just update. | |
Re: Apache 2.2.6 over IIS any day in my book but I also prefer Linux. If you're currently running IIS I'm assuming you are more familiar with windows. Also remember that Apache is free | |
Re: You could just use a cookie rather than a session variable, that would allow it to be accessible no matter what language you're using. | |
Re: Well the error is generated when you try to get an element that doesn't exist so the simple question is, does the element with the ID "content" exist on the page before you make that call? | |
Re: Its done with hidden iframes. [url]http://www.adapa.si/products/lib/javascript/upload-with-iframe.aspx[/url] Thats just one example but Googling 'iframe upload' will find umpteen examples. | |
Re: Firstly, remember that those are absolutely links meaning if that page goes anywhere besides your machine those images are broken. Secondly, to maintain cross-browser compatibility [icode]onClick[/icode] should be [icode]onclick[/icode]. Finally, you don't actually have any Javascript there for us to debug ( When you post the code please use code … | |
Re: Actually that's accomplished quite easily with a little Apache voodoo known as ModRewrite. Lets say you are using the fake directory [icode]app[/icode] [code=htaccess] RewriteEngine On RewriteRule ^app/(.*)/?$ /index.php?app=$1 [/code] Place that in the .htaccess file and it will be completely transparent to the user. | |
Re: I'm not quite sure what you want to accomplish, and I'm also note sure what the word intiame means, Google doesn't either. You can send as many request parameters as you like given the HTML protocol | |
| |
Re: Any additional arguments you pass the Java() call will be interpreted as arguments. [code=php]$obj = new Java("someObject", "arg1");[/code] | |
Re: You can use something called a variable variable(yeah, I know it's weird) [code=php] $variable="name"; $$variable = "Shawn"; echo $name; // prints Shawn [/code] |
The End.