1,038 Posted Topics
Re: See: [url]http://quirksmode.org/css/selector_attribute.html[/url] [url]http://quirksmode.org/css/selector_attributeAdvanced.html[/url] For usage of CSS attribute selectors. | |
Re: [QUOTE=OmniX;886205]Im not sure but I think you cant send mail from a home made server like apache, etc. I guess if you wanted to you might have to hand out some cash and make your localhost a full fledge server, which you may or may not be inclined on doing.[/QUOTE] … | |
Re: You shouldn't be using session_register or session_is_registered anyway, take a look at the PHP documentation. [url]http://php.net/session_is_registered[/url] | |
Re: Writing Extensions: [url]http://devzone.zend.com/article/1021[/url] If you're changing the actually internal PHP code you will have to compile every time. That's how compiled languages work :P | |
Re: It's really up to you and which you like working with more. Django's closest PHP analogue would probably be Symfony since they share a lot of the same methodologies (helper functions, plugins, MVC model, ORM usage, etc.) | |
Re: JS has absolutely no clue that PHP is even being called since the PHP code is evaluated before the page gets to the user and the Javascript isn't evaluated until _after_ the page gets to the user so there is a different issue | |
Re: If you have that code on a php page then it will try to call the function and insert the output directly into that string. You have to understand the difference between a server-side language and a client-side language. PHP will get executed before the javascript even hits the browser. … | |
Re: You forgot the grouping parens [code=javascript]somestring.replace(/(^\s*|\s*$)/g, "")[/code] | |
Re: a [icode]header()[/icode] call does not end the script. Always place [icode]exit;[/icode] after a [icode]header()[/icode] call if you don't want anything else to execute after it. [code=php] // do some stuff header('Location: blah.php'); // this stuff gets executed too header('Location: blah2.php'); // user is now redirected to blah2.php exit; // this … | |
Re: I use (g)Vim 7.2, no "IDE" comes close to how powerful it is :) jQuery for small JS projects(Extremely well built, huge community, excellent documentation), Ext for large JS projects (same reasons). I don't tend to use many pre-built PHP libraries save Doctrine. When I used a framework I used … | |
Re: Just go to the page in the browser, the same way you would locally except replace localhost with the domain name. | |
![]() | Re: Post the code that handles the response from the servlet. ![]() |
Re: You haven't shown any code so the best I can do is give a short example: [code=php] class someClassA { public function someMethodA() { throw new Exception("Error"); } } class someClassB { public function someMethodB() { $someInstA = new someClassA(); try { $someInstA->someMethodA(); } catch (Exception $e) { echo $e->getMessage(); … | |
Re: You forgot the echo [code=php]vart pt = <?php echo json_encode($prt); ?>[/code] | |
Re: use [print_r](http://php.net/print_r) or [var_dump](http://php.net/var_dump). | |
Re: I think I understand what you were trying to say: [code=javascript] var ids = []; $('#rightList > li').each(function(el) { ids.push(el.id); });[/code] | |
Re: Just double click any empty gray space on the task manager and it will toggle the display. | |
Re: Just remove the surrounding click event ie., [code=javascript] $(".run").click(function(){ ... });[/code] | |
Re: in Firefox you can use the built-in document.querySelector and document.querySelectorAll which use CSS selectors to find DOM elements. Similarly using the jQuery library you can do things like [code=javascript] $('#somediv > p') // returns all p tags that are children of a div with the ID of somediv[/code] | |
Re: [code=javascript] var bd = new Date(); if ((bd.getDay() > 0 && bd.getDay() < 6) && (bd.getHours() >= 8 && bd.getHours() <= 17)) { //show } else { // hide }[/code] | |
Re: Try [code=php]"WHERE ho_uniqueid='".$_SESSION['uid']."'";[/code] | |
Re: Your image is being cached because it's the same URL. Add a random URL parameter to prevent it from being cached. [code=javascript] document.getElementById('captchaImage').src="captcha.php?_rnd=" + Math.random();[/code] | |
Re: You could give [url]http://labjs.com/[/url] a shot. [quote] LABjs (Loading And Blocking JavaScript) is an open-source (MIT license) project supported by Getify Solutions. The core purpose of LABjs is to be an all-purpose, on-demand JavaScript loader, capable of loading any JavaScript resource, from any location, into any page, at any time. … | |
Re: You can do something like this [code=html] <form action="delete.php or whatever" onsubmit="return confirm('Are you sure?');">[/code] That will pop open a box that says "Are you sure?" with yes and no buttons, if the user clicks no then the form won't submit and nothing will happen, if they click yes the … | |
Re: Show us the code you have and we'll help you from there. | |
Re: [url]http://us.php.net/manual/en/class.datetime.php[/url], coupled with [url]http://us.php.net/manual/en/class.datetimezone.php[/url] | |
Re: [url]http://php.net/curl[/url] Google is your friend. | |
Re: [QUOTE=n0m4d;1052712]If I have a css code like this: [CODE]body { color:#000; font-family:Arial; font-size:62.5%; padding:0; margin:0; } ul { margin-left:24px; } li { color:#ffffff; } #divID { height:50px; } #divID li { padding-right:10px; }[/CODE] Will the text in [I]#divID li[/I] borrow properties from [I]li[/I] and make the text white?[/QUOTE] Short answer: … | |
Re: [url=http://www.daniweb.com/forums/announcement8-2.html]I'm gonna go head and say no.[/url] | |
![]() | Re: Remove [icode][][/icode] from the name of the field, PHP sees that and tries to turn it into an array. ![]() |
Re: If you want to place it dynamically inside another page you would have one PHP file generate the image and then point to that in an <img> tag. But to set the content-type just use: [code=php]header('Content-Type: image/png');[/code] | |
Re: You could use a <span> tag or (this may not be cross-browser compatible) you can use the first-line pseudo-selector on the div like so [code=css] div#someID { font-size: 1.8em; } div#someID:first-line { font-size: 3.5em; }[/code] | |
Re: [icode]time BETWEEN '$endDateTime' AND '$startDateTime'[/icode] Put quotes around the dates | |
Re: [icode]!==[/icode] The [icode]===[/icode] and [icode]!==[/icode] operators check type along with value. 0 is an integer, NULL is NULL. so [icode]$somevar = 0; if ($somevar == NULL) { /* true */ }[/icode] but [icode]if ($somevar === NULL) { /*false*/ }[/icode] | |
Re: [url]http://php.net/mysql[/url] - Language documentation is your friend | |
Re: Use position:fixed which will keep the element in the same place on the screen even if the user scrolls the page. Also, Java != Javascript | |
Re: Your first place you should go for any question related to PHP is the PHP documentation: [url]http://php.net/for[/url] | |
Re: Don't use ereg ([url]http://php.net/preg[/url]), and read the giant READ ME FAQ at the top of the PHP forums then come back here and ask your question again | |
Re: [QUOTE=ardav;1042972]$HTTP_COOKIE_VARS["users_resolution"] See [url]http://www.wallpaperama.com/forums/php-tutorial-guide-how-to-show-screen-resolution-find-display-script-t517.html[/url]. I don't think this can deal with resize events - javascript/ajax would probably be required for this.[/QUOTE] Don't use HTTP_COOKIE_VARS, use _COOKIE [url]http://php.net/$_COOKIE[/url] ![]() | |
Re: [QUOTE=ardav;1006376]How about an intro to OOP - preferably without the 'everyday examples', perhaps something linked to login/members/profiles? I realize that's a biggie. The thing that always gets me is regex. I $/.~ing hate it 'coz I can't get my head around it.[/QUOTE] There's really no better tutorial for regular expressions … | |
Re: [QUOTE=compengg;1039050][B][COLOR="Green"]What do you find wrong in my way of communication and typing??Could you please tell me ??:?:[/COLOR][/B][/QUOTE] There's nothing in that one, but this [quote]Hi frnds... I am doing ma collg 1st yr and i am of CSE department(comp sci engg) and i want to do some additionals course on[/quote] … | |
Re: Your } for your changePassword function is a {. Also, you don't need to specify public for all of those variables, scope defaults to public. | |
Re: Inside the function basicAjaxSwitch you are defining a variable basicAjaxSwitch so it's being overwritten. Just use a different variable name inside the function. | |
Re: [QUOTE=psyb0rg;1024571]I have Ghostscript and IMagemagick installed on my local machine. I can access the IM functions from the command line. The environment variables are also set. The problem is that when I try to execute the IM function using PHP's exec() method, I get no result. The same script works … | |
Re: Yes, "newnewnew" explains exactly what your problem is. And not using code tags helps us out even more. What exactly is your question? | |
Re: You forgot the underscore between get_option on line 9, and please, please use code tags next time. | |
Re: What do you mean by calling the table? Also, why're you using PDO for the connection then just completely ignoring it and using mysql_query anyway? [url]http://php.net/pdo[/url] |
The End.