@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33



Comments:

<0> "window.location(\"{$_SERVER['PHP_SELF']}?n={$n}");
<0> Like this?
<1> terribleCabbage, nothing to do with mod_rewrite
<2> Why the heck would it be set up to p*** foobar.php/myextrabit URLs to foobar.php? :S
<2> Misconfiguration much?
<3> i've got mod rewrites that do things like /events/2006 means /events.php?year=2006
<4> gangster`s: $number['two'] = "2"; echo("1".$number['two']."3"); or $number['two'] = "2"; echo("1{$number['two']}3");
<5> multiviews i think
<4> gangster`s: each of those prints out 123... if you dont use the . (concatenation operator) or the {}, it will give the error you had
<2> NBrepresent: Yes, because you set them up to do that. Colder's talking about the server doing that by default.
<1> terribleCabbage, no, there are lot of scripts that use such urls instead of mod rewrite, for indexation purposes.
<6> or, to solve the problem .... use header ("location")
<6> :D
<0> gangster's: I would use '?n=' instead of the full url
<2> colder: But how does the server actually give the request to the script, then? How does it tell that when you say foo.php/123, you really mean foo.php, without some sort of addon like mod_rewrite?
<0> Like <a href="?a=b"> instead of <a href="test.php?a=b">



<1> terribleCabbage, from the php point of view: http://php.net/reserved.variables , let me 2 mins to find what apache's param handle such behavior
<7> is there such thing as mutidiemntional array search?
<7> multidimentional*
<8> hey peeps, how do i compare dates stored in my database
<3> compare how?
<3> also, this is probably a #mysql question
<8> like to see which one is more recent
<8> for example in my db, i have a field like monday 16th january 2005
<9> hello :)
<8> and i need to add 1 year to it
<8> and compare it with today's date
<3> monday 16th january 2005 < is that a date datatype?
<8> yep
<6> DtTvB: or like do you say
<3> deufo: http://www.ilovejackdaniels.com/php/php-datediff-function/
<9> isn't there a function called "php_colors" or something like that to print out a php file with colors?
<9> =/
<8> NBrepresent, ah ty so much
<9> got it => highlight_string
<9> :)
<9> thx, bye
<1> terribleCabbage, ok, its called AcceptPathInfo
<2> Ah, ok. Thanks. Well, there you go, something new every day.
<2> I'm still not entirely sure how it'd be an, umm, exploit, though.
<1> well, because lot of ppl use it for form's actions, redirections, etc..
<10> Hello
<3> hi, Laban
<10> I'm placing a chart with local times on a site, but I always have to manually correct it when daylight savings time and so occurs. Are there any functions that fixes this for each zone automaticly?
<10> Noticing there are some new date functions in 5.1, reading about them.
<3> i don't know
<5> mmm yeah
<5> some damn nice new date functions
<5> i particularly like date-default-timezone-set
<10> This I will play with that.
<10> Set a zone, print the time, set another zone, print that date, etc.
<5> or let your user's on a member based site pick localized times
<5> without worrying about all that number offset crap anymore
<5> even though i've nearly perfected a function to do that :P
<11> hello all
<10> That always happen! :p
<10> Make a function the way you want it, next day it's a bundled function.
<11> i'm trying to unset a variable in an object ... unset($object->myVar); << doesnt work.. any ideas?
<1> jasz, define "doesn't work"
<11> well... i have unset($object->myVar); print_r($object); I still the myVar in the output...
<1> jasz, pastebin please, and what is your version ?
<11> http://pastebin.com/543189 << php 4.x (it was working on php5 but the machines we will use are php4 :( )
<1> jasz, foreach makes copies.
<12> jasz: With PHP 4 you need to work with references... by default, all objects are copies.
<11> hmm
<11> that's gotta be the problem...
<11> what would the syntax be in the foreach() ?
<1> foreach($array as &$var)
<11> hm... i had that and Zend highlighted it as error :P lemme try..
<11> Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' :(
<1> jasz, well, you said it wqas for php4 ? then forget about that
<13> i really hate this webhost...
<3> could anyone offer some suggestions for this 'events' script? http://perry.pastebin.com/543129 i especially need help with lines 96-109
<13> their php session session support is totally mangled
<11> now it works.. i'm using a for() loop instead..
<13> it's even making dupe words!
<1> jasz, thats the simpliest way. Using a foreach would require a temporary variable.



<14> hi
<14> in xtemplate how do i insert PHP code in the template, that should be interpreted?
<3> right now you can navigate forward and backward through months, but when it gets to the end of a year, it loops to the beginning of the same year rather than going into the next year. . could someone make some suggestions where to start to make it do that?
<1> jasz, well, foreach ($array as $key => $value) { unset($array[$key]->var); } would have worked. Your choice.
<11> that's a good one too... thanks cold
<11> colder..
<11> Mr. Cold..
<11> ehem..
<15> Whats a major OSS app written in php?
<15> besides phpbb
<2> Umm. Drupal.
<15> thx
<5> what the hell is oss
<2> phpNuke (*Shivers*)
<2> Open Source Software.
<5> oh
<5> of course
<2> Overly Saucy Subject?
<15> Its actually the object source server
<5> e107, joomla, phpnuke, simple machines forum, etc :P
<5> object source server?
<5> never heard of it
<3> myconid: zencart
<2> myconid: ... ... What?
<15> was a joke.
<15> cmon. :)
<15> its not that early
<5> is for me i been up all night
<2> Ok, I haven't seen you before, and you didn't know about Drupal. What am I to think? :P
<5> i'm about as sharp as a piece of cardboard
<3> it's 9.20 am here
<2> 1:30am here. :P
<16> ive got a papercut on cardboard before
<5> 4:20 here baby! YEAH
<5> no kidding, 7:20
<3> YEAH
<1> jasz, wh... what ? "Mr.Cold" ? That was one of my old nickname ;)
<3> heh.
<16> 9:20 here
<3> EST represent!
<16> too early :S
<16> lol, yeah
<2> AU EST represent, yo shiggity. :D
<3> shiggity?
<2> (Stop stealing our timezone name, damnit, it gets so very annoying.
<2> )
<2> ... Umm. Shizzle mah nizzle?
<5> MDT up in here ya'll, west-ish coast representin
<2> Wes'-side DOWN yeah.
<2> Ok, I'll stop.
<5> likewise :P
<16> good, cuase i was gonna leave soon, lol
<3> yeah, you'll have to boot yourselves for aolbonics
<17> Playa hater!
<2> aolebonics?
<16> eeewwww, gayol
<5> either i'm so offensive i put myself out, or i'm offensive enough to make other people leave
<16> jiggster, nothin wrong with that
<16> unless you're in court
<5> never have been
<2> Well. I suppose that's a slightly different situation.
<3> !tell jiggster aolbonics
<5> i skip my court dates
<16> well you're ok then
<5> and thanks i ****ing know about aolbonix.
<5> ics*
<2> NBrepresent: Meany. :)
<16> i dont
<5> teh l337 sp3ak
<3> hehe
<2> !tell Mordof aolbonics
<16> i dont see anything...


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

masked portage banshee unmask
dumbuntu
suse nvidia fan constantly on
x11-common kubuntu
dmraid base-config ubuntu
lx-viewer install apt-get
#ai
use nautilus in xubuntu
AjaxNotes demo
linux hybrid sleep -vista



Home  |  disclaimer  |  contact  |  submit quotes