1,038 Posted Topics

Member Avatar for jino

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.

Member Avatar for ShawnCplus
0
154
Member Avatar for littlebear330

[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] …

Member Avatar for Aamit
0
179
Member Avatar for dmorrison2

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]

Member Avatar for SKANK!!!!!
0
159
Member Avatar for TheWhite

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

Member Avatar for ShawnCplus
0
78
Member Avatar for Kruptein

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.)

Member Avatar for ShawnCplus
0
61
Member Avatar for JRM

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

Member Avatar for ShawnCplus
0
187
Member Avatar for itisnot_me
Member Avatar for itisnot_me

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. …

Member Avatar for itisnot_me
0
73
Member Avatar for veledrom

You forgot the grouping parens [code=javascript]somestring.replace(/(^\s*|\s*$)/g, "")[/code]

Member Avatar for veledrom
0
76
Member Avatar for xylude

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 …

Member Avatar for ShawnCplus
0
85
Member Avatar for Stefano Mtangoo

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 …

Member Avatar for FlashCreations
0
140
Member Avatar for kripssmart

Just go to the page in the browser, the same way you would locally except replace localhost with the domain name.

Member Avatar for kripssmart
0
114
Member Avatar for feoperro
Member Avatar for feoperro
0
134
Member Avatar for veledrom

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(); …

Member Avatar for veledrom
0
146
Member Avatar for JRM
Member Avatar for JRM
0
363
Member Avatar for bigjoke

use [print_r](http://php.net/print_r) or [var_dump](http://php.net/var_dump).

Member Avatar for bigjoke
0
74
Member Avatar for peter_budo

I think I understand what you were trying to say: [code=javascript] var ids = []; $('#rightList > li').each(function(el) { ids.push(el.id); });[/code]

Member Avatar for peter_budo
0
130
Member Avatar for daniwebjp
Member Avatar for allksta
0
510
Member Avatar for chrishea

Just remove the surrounding click event ie., [code=javascript] $(".run").click(function(){ ... });[/code]

Member Avatar for phpbeginners
1
222
Member Avatar for SKANK!!!!!

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]

Member Avatar for SKANK!!!!!
0
109
Member Avatar for haiconsoba
Member Avatar for JRBZ

[code=javascript] var bd = new Date(); if ((bd.getDay() > 0 && bd.getDay() < 6) && (bd.getHours() >= 8 && bd.getHours() <= 17)) { //show } else { // hide }[/code]

Member Avatar for ShawnCplus
0
38
Member Avatar for 68thorby68
Member Avatar for rajeesh_rsn

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]

Member Avatar for ShawnCplus
0
66
Member Avatar for codemaker

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. …

Member Avatar for ShawnCplus
0
88
Member Avatar for Roebuc

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 …

Member Avatar for Roebuc
0
108
Member Avatar for daryll1
Member Avatar for SKANK!!!!!

[url]http://us.php.net/manual/en/class.datetime.php[/url], coupled with [url]http://us.php.net/manual/en/class.datetimezone.php[/url]

Member Avatar for ShawnCplus
0
49
Member Avatar for findyaseek
Member Avatar for n0m4d

[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: …

Member Avatar for ShawnCplus
0
68
Member Avatar for jck6288

[url=http://www.daniweb.com/forums/announcement8-2.html]I'm gonna go head and say no.[/url]

Member Avatar for nav33n
-2
98
Member Avatar for feddie1984

Remove [icode][][/icode] from the name of the field, PHP sees that and tries to turn it into an array.

Member Avatar for feddie1984
0
153
Member Avatar for EvolutionFallen

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]

Member Avatar for EvolutionFallen
0
101
Member Avatar for n0m4d

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]

Member Avatar for n0m4d
0
574
Member Avatar for benkyma

[icode]time BETWEEN '$endDateTime' AND '$startDateTime'[/icode] Put quotes around the dates

Member Avatar for benkyma
0
94
Member Avatar for zeusofolus

[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]

Member Avatar for Atli
0
6K
Member Avatar for niche1

[url]http://php.net/mysql[/url] - Language documentation is your friend

Member Avatar for Stefano Mtangoo
0
62
Member Avatar for PDB1982

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

Member Avatar for PDB1982
0
122
Member Avatar for wayz1229

Your first place you should go for any question related to PHP is the PHP documentation: [url]http://php.net/for[/url]

Member Avatar for wayz1229
0
102
Member Avatar for JackSkylar

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

Member Avatar for ShawnCplus
0
314
Member Avatar for web3

[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]

Member Avatar for diafol
0
109
Member Avatar for cwarn23

[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 …

Member Avatar for cwarn23
4
648
Member Avatar for compengg

[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] …

Member Avatar for Rashakil Fol
-2
138
Member Avatar for abrocketman

Your } for your changePassword function is a {. Also, you don't need to specify public for all of those variables, scope defaults to public.

Member Avatar for ShawnCplus
0
104
Member Avatar for samarudge

Inside the function basicAjaxSwitch you are defining a variable basicAjaxSwitch so it's being overwritten. Just use a different variable name inside the function.

Member Avatar for ShawnCplus
0
114
Member Avatar for psyb0rg

[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 …

Member Avatar for ShawnCplus
0
139
Member Avatar for ykjadeja2020

Yes, "newnewnew" explains exactly what your problem is. And not using code tags helps us out even more. What exactly is your question?

Member Avatar for ShawnCplus
-1
97
Member Avatar for portfood

You forgot the underscore between get_option on line 9, and please, please use code tags next time.

Member Avatar for portfood
0
112
Member Avatar for hajjo
Member Avatar for Luckychap
0
91
Member Avatar for whiteyoh

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]

Member Avatar for whiteyoh
0
122

The End.