| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Comments:
<0> The same with the closing tag <1> i'm trying to avoid tables, but can't figure out how to nest two floating divs <2> Having difficulty with scope workarounds.... <0> Azhi_Dahaka: Formatting web pages is really a #web question. If you get the format figured out, but don't know how to emit it from PHP, we can probably help there. <2> I have a function which performs an include after screening some user inputs, but I want the include to exist in the global scope, is there any way to do this? <1> that's it <3> Azhi_Dahaka: I would use CSS - left: 50%; to throw them into the middle, then perhaps using a margin-left with a negative value to push them over to the left or margin-left with a positive value to push them to the right, even though this isn't really PHP related :) <1> i need to nest them right into the loop <0> Azhi_Dahaka: glish.com has some examples on how to layout divs <1> i need to close one div and open the other as soon as i reach the middle of the list <0> But it's really a #web question <1> no <1> i know how to layout with divs <0> Azhi_Dahaka: Then what's the question? <1> i'm not sure at how can i output the closing div and open div inside the loop <1> let me explain you:
<1> i have an array, i create a list of checkboxes using foreach <1> now, i would like to split that list in two columns using one container div and two flotaing divs <0> Azhi_Dahaka: loop(...) { if ($loop_index > $half_of_loop) { echo '</div><div>'; } <loop body...> } <0> The test for seeing if you need to start a new div depends entirely on how you're doing your looping <1> foreach <0> That's just a rough example. <3> I think TML's outline seems proper <1> but i get it <2> Is there a way to set global scope for an include? <2> IE, if I include a script inside a function, is there any way to make the included file operate in the global scope <4> it says unexpected ; for this line <?php extract($HTTP_GET_VARS); if($color=="red"){ echo ?> What is wrong with that code <3> Mickly: where are you getting $color from? <3> Mickly: also, your brackets remain open and your echo is echoing nothing <5> Mickly: uhh, is that all your code or di dyou cut it off? pastebin it. <2> the lack of a ; may be what the parser is trying to tell you Mickly <4> $color comes from function color() { global $_GET; if ($_GET[color] == 'red' || $_GET[color] == 'green' || $_GET[color] == 'pink' || $_GET[color] == 'yellow' ) { echo '?color='.$_GET['color']; }} <2> Is there an argv? <2> in php <5> $_SERVER['argv'] <0> ^^angusta: look in your php.ini for "argv" to see configuration options related to it <4> <?php extract($HTTP_GET_VARS); if($color=="red"){ echo ?> some code about the color <?php } ?> <6> Mickly: to echo something, you need to encase it in quotes. forget about closing the php bracket and just echo "something like this"; <2> Mickly, the echo function is for echoing from php. Escaping from php will be byp***ed by the php processor, so your processor can't see anything to echo <2> The php processor is seeing this: ....="red"){ echo } and that doesn't parse well at all <4> Ok, lets see how it gose <4> it dose not like <style type="text/css"> in the "" <2> you need to escape the " inside the echoed text <2> with a backslash: \" <2> eg echo "blah blah \"Hello\""; <1> can i use nested ()?():() ? <1> i cant recall the name of that operator <5> ternary, and yes. <5> but its not advised. <5> make your code clear. <2> makes for very confusing code <1> ok <1> so, i should stick to if:else:endif; <4> Thanks, now it is doing the same in my php included menu just have to fix that. <0> Mickly: You desperately need to read php.net/manual <0> It's quite clear you're just taking wild stabs in the dark <4> <0> It's quite clear you're just taking wild stabs in the dard Good Guess :P <7> damn, who typoes a quote <4> How many pages long would that be <8> how do I create a root mysql account using grant? <9> PseudoPlacebo, #mysql <10> hello. <10> rixth, where are you from? <9> New Zealand, why? <10> ah.. I need some ping test.. <10> can you help me? <9> PING 211.247.248.42 (211.247.248.42) 56(84) bytes of data. <9> --- 211.247.248.42 ping statistics --- <9> 3 packets transmitted, 0 received, 100% packet loss, time 1999ms <10> thanks.. rixth <11> Anyone here know of CC# validation scripts in PHP? <11> The company we are working with doesn't do validation services ;[ <12> =) <13> what ? validating c# ? <13> lol <12> I remember 10 years ago there were scripts for that <12> so what you had to do, just to generate CC#
<12> and use it! :) <13> 10 years ago ? are you sure ? <12> yes, why? :) <12> there were no credit cards 10 years ago? <12> or internet didn't exist? <13> becaus I thought c# was first time open to public on 2000 <11> what's odd is that this API doesn't require a CVS# <13> so couldn't be 10 years if that is the true <12> DaRamirez: CC# <12> not C# <11> CC = CreditCard not C Sharp ;) <13> ow my bad than sorry <11> no problem <13> owwww lol I was already getting confused :P <13> for that you can go to script base there couple of scripts there <13> but still I would recommand not to use such scripts since they kinde have the tendency to implement couple of backdoors :S <0> Indeed. Additionally, if you're doing credit card processing, and your vendor doesn't supply a feature that basic, you need a new vendor. <14> HAHAHAHAHAHA! http://www.bash.org/?639709 <15> you'd think that return (bool)($a = $b); would be a great shorthand way to return true from a function and do your ***ignment all in one shorthand way <16> i am reading from the binary file and if at that momemt the file wuld be truncated, would the file position change or not?? <11> ok they do verification but there's nothing in the API regarding CVV#'s even though the error code listing clearly shows that it's there <16> can anybody help me? <17> is there any function to get current date in php ? <18> apt-abhi: http://id.php.net/date <19> hello <19> I'm having a problem with PHP, and can't find a google answer for it : <19> how may I authenticate to an HTTP server with PHP ? sending automatically the login and p***word I mean <0> Jojosan_: Most web servers allow you to perform basic HTTP authentication via the URL: http://username:p***word@host/ <17> is there any function wich takes date as argument & validates it in php ? <18> apt-abhi: http://id.php.net/checkdate <12> TML: web clients, not servers <20> hey what is a really easy way to add a weather icon and weather info to your site using just a user's zip <20> is there like a great opensource script <20> that i should know about <19> TML: I'll check that but that's not secure for my USE <19> no, won't work for my use <19> (I'm touching a page by file_get_contents("http://www.example.com/protected_folder/") <20> ? <2> Is there a way to make an included script be parsed in the global scope <2> when it is included into a different scope? <21> Hi, guys. <21> I have a question about unserialize. <21> when I serial a array by use the serialize(), <21> it will return one string: like this: a:2:{s:2:\"id\";i:1;s:4:\"name\";s:6:\"ghw\";} <21> and when I use unserialize function, but it can't unserial this string to a array. <21> why? <21> and anybody can give me some suggestion? <22> '/^(recent)$/i' doesn't match 'recent'. I am using preg_match. What's wrong here? :? <23> hey guys <23> how can i purge the p***words of phpmyadmin? <23> i can't change it, edit it, nothin... <22> TuxMeister: have you read the rules? <22> !tell TuxMeister about g10 <23> oh sorry, i just hoped i could have some help about logging in phpmyadmin <22> nobody knows <22> #phpmyadmin , maybe? <24> do output buffers stack? <25> yes <25> as www.php.net/ob_start explains <26> hm is there some problem with $_SESSION over https ? <27> is there any php function that takes 2 strings and returns the largest common prefix string? <28> Xore: not that I know of but it's like 3 lines of code <27> i agree, it's simple. i'm just checking to make sure it's not already built in <27> it wasn't anywhere on php.net, i thought i'd check by here to make sure <28> you should be checking in the strings function section of the manual <28> if it's not there it doesn't exist <27> i *always* check on php.net before coming in here :P <29> Is there a function which reads the current DIR of the page? <4> The function color() is not working in <?php if ($thisPage=="map") {echo "" ;} else {echo "<a href=\"map.php<?php color(); ?>\">Site Map</a>" ;} ?> it out puts map.php%3C?php%20color();%20?%3E <29> Mickly: WHy are you using <??> in the middle of a echo tag? <4> to call the function color() <29> take out the <? ?> <29> paste bin the code
Return to
#php or Go to some related
logs:
radmin wine ubuntu you just don't get you keep it copasetic hal failed to hibernate ubuntu #perl etch nfsv4 wifi0: invalid skb->cb magic (0x00000000, expected 0xf08a36a2) noxmms, suse 10.0 #perl foxhacker fxp PRET ubuntu
|
|