@# 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



Comments:

<0> Remowylliams, I don't use php as a cli language.. I use python instead.
<0> or bash..
<0> or in a pinch, perl :)
<1> jonez: Oddly I chose to use php because it was best suited to the application I wanted to use it for. Python could be used but the development time would be greatly increased.
<2> jonez, don't be so ignorant. php is the best tool for every job. you should cease using those other inferior tools at once ;)
<0> Lucidix, ;)
<0> Remowylliams, well, to be honest, no, I have less clue about php as a cli language as others might
<0> but what is the problem and I'll take a stab at helping.
<3> cheers for the help -> i am off to read now!
<3> cyas
<1> jonez: It's sokay. 438 people in channel someone probably knows but is away or asleep etc. According to the manual and config info php can even be used as a full shell. But it seems 5.1.2 doesn't do that.
<0> Remowylliams, I ***ure you that at least 400 of the people here have been idle for at least a week :)
<0> but you are right, patience sometimes pays off.
<2> hard work pays off, too. -- later. laziness pays off right *now*.
<2> im gonna incorporate as Procrastinators, Inc. well, one day, anyway.
<4> i think it'll be taken by the time you get to it :P



<2> heh
<4> some started sooner than you on that idea
<2> probably
<4> lol
<2> but the idea was to read between the lines :)
<4> i dont read between the lines :P
<2> errm, hmm or something like that. considering it was only one line
<4> my imagination takes off and i never come back
<4> some might argue that it's not a bad thing i disappear though
<2> Procrastinators, Inc. would make an interesting company though. Nobody would ever expect a product to be released on schedule
<2> It would be *the* company to take over development on Duke Nukem Forever, Whenever, If ever.
<4> i was going to do "Nothing Original" as a business :P
<2> a friend of mine used "Oh, Hello". Kinda dropped the ball on it, though.
<4> prolly found it hard to say "bye" :p
<2> geez. must be late. infomercials are starting already. cash flow generator. lol, some of these scams don't even advertise a product or service anymore, they just tell you to "generate cash".
<5> Lucidix for $49.95 you can get "How to get rid of infomercials"
<2> That probably consists of an e-delivered pdf "booklet" that tells me to change the channel, or to turn off the tv once the clock hits 3 am.
<5> Lucidix But wait, there's more...
<6> "call now and we'll tell you how to take the next step"
<2> "slowly move your right foot forward..."
<0> "once you have mastered the RFF (right-foot-forward)(tm) technique, apply to receive the LFF for half off!"
<5> And we'll triple your order absolutely free! Three three left feet, three right feet, our easy stow and go storage container for absolutelue free! Just pay a small $14,0000 shipping and processing.
<0> "and if you can't learn, we'll make you pay us to take the stuff off your hands!"
<7> guys
<7> what does this mean: if( !isset($HTTP_SERVER_VARS['PHP_SELF']) )
<7> cause its always returning true
<0> it checks to see if a key called "PHP_SELF" exists in the array $HTTP_SERVER_VARS
<0> and reminds me of some code written for php3 .. heh
<7> i know
<7> but where does this HTTP_SERVER_VARS comes from ?
<0> php fills that in for you
<7> so you're saying this is in the php.conf file ?
<0> it comes from the same place that $_SERVER and $_REQUEST come from :)
<0> NotHere, when the script runs, php makes a "special" variable called HTTP_SERVER_VARS and puts stuff in it.
<0> it's "magic". happens every time, and no, it's not in the php.ini file
<7> so then how come that if statement is always true
<0> because that array always has that key
<0> where did that code come from?
<7> thats no good
<7> cause like, jpgraph generates an error because of that
<8> hi, I'm using Linux/Mandriva-2006 and while looking over my "php.ini"I found a comment "On Mandrake, we don't add the extensions in php.ini anymore, we put them in /etc/php.d/<number>_<name>.ini, for example 10_recode.ini.
<8> Although those ini extensions are there php does not load them in. I'm basing this on the fact that my mambo cms install is stating that XML support is unavailable. Is there a way to probe of which php extensions are loaded in?
<0> oh.. wait.. there's a ! in front of that meaning "not".. so the above means "if there is *not* a key in that array with the name PHP_SELF then..."
<5> !+gv
<9> Global Variables - this will show you everything that php sees: <pre><?php print_r($GLOBALS); ?><hr size=5 noshade><?php var_dump($GLOBALS); ?></pre>
<7> then what you just told me is incorrect
<0> isn't that $_GLOBALS?
<5> HTTP_SERVER_VARS is depreciated. but you would have known that if you RTFM
<0> I made a mistake and misread your paste. I apologize
<0> it happens
<7> jymmm, what do you mean depreciated, what if i want to still use it
<7> jonez, i meant the part where you said "when the script runs, php makes a "special" variable called HTTP_SERVER_VARS and puts stuff in it."
<2> hacked`` not depreciated, deprecated
<7> same
<7> if( !isset($HTTP_SERVER_VARS['PHP_SELF']) ) { JpGraphError::Raise(" Can't access PHP_SELF, PHP global variable. You can't run PHP from command line if you want to use the 'auto' naming of cache or image files."); }
<7> see what i mean guys
<7> i need $HTTP_SERVER_VARS
<2> hacked``, it means that its not recommended to use it. and future version of PHP may not support it. its in your best interest to use $_SERVER instead
<10> $HTTP_SERVER_VARS = $_SERVER, except as Lucidix says, one of them won't be in future versions
<7> why do they always keep changing things around
<7> i hate this



<2> $_SERVER does the same thing as $HTTP_SERVER_VARS, only naming conventions have changed
<0> hacked``, perl and python do the same thing.
<0> heck, even html has changed many times since it was first written. that's part of the game.
<5> hacked`` you can use it, but it might not be available/supported in future php versions.
<7> i cant use it, i just told you that im getting empty arrays
<7> k, just replaced it to $_SERVER and everything works now
<5> hacked`` ya need to check yourself.
<5> hacked`` you're confusing two different things.
<2> hacked``, using php5?
<10> ahh, yeh, in PHP5 you can set an option in php.ini to set $HTTP_SERVER_VARS and similar to their expected values
<2> yep, register_long_arrays
<7> yes, php5
<7> i already had to change php.ini to accept <? ?> tags
<7> i dont know why they change things around like that
<7> makes no sense
<10> that's not a good idea, hacked``
<7> why not, its shorter
<2> ka-ching!
<2> there's your answer why it's now called $_SERVER
<10> yes, but if your code ever gets moved to a different server it might all stop working
<10> (and that's not the answer) :P
<2> most servers i've dealt with have short tags turned on. is that turned off by default?
<10> I didn't think so
<7> it is turned off by default
<7> i didnt know why my php scripts werent working, then i realized it
<10> the reason for the $_SERVER name change is so that reserved variables all start with an underscore. This means you won't accidentally name a variable and overwrite a system variable
<7> GarethAdams, point is, they should have thought of that in version 1, not version 5
<10> well PHP isn't a mature language
<7> version 5 is mature
<10> every established language made changes depending on how it was used
<10> not by a long way, hacked`` - but it's more mature than it was
<8> php5 info indicates that lib xml is active why can't mambo see it? not much about it on google either. Is it me, mambo or php? hehe
<11> when using php-cgi I should be able to set memory_limit from the web-space, right? or is it just from the main config file?
<11> I mean.. it's set PHP_INI_ALL but it either doesn't work or breaks php
<12> i'm running postfix, and when i use the mail() function... what exactly does that function do?
<13> m1chael: You are aware of this wonderful new invention called a 'manual', right?
<12> ah yes
<14> haha
<14> hmm i dunno what could mail() POSSIBLY do!?
<15> RTFM!
<15> i mean why even have a room on php when theres a manual right?
<14> i think it reboots a server somewhere in japan
<12> haha
<12> i meant, does mail use postfix or does it use some kind of integrated magic
<14> no itegrated magic i know that
<13> That's covered in the manual page.
<14> but yeah ;P
<14> i'd need to look in the manual too
<14> which i'm not cause you need to :P
<12> no problem ;)
<14> and
<14> like the nick says
<14> i'm not here
<12> this conversation never happend
<15> anybody know a good css channel? i swear valve create Counter Strike Source just so i couldnt find one
<13> #web
<14> i think i'm asleep right now
<14> i sleep walked over to the keyboard
<15> tanks
<14> god knows why i chose to participate in this notoriously "fun" channel haha
<16> anyone using CakePHP?
<5> !+g10
<9> Guideline #10) We don't support xyz script. We help you *write* PHP, not download and install/hack/use pre-written scripts
<14> thats was quick :p
<15> seriously whats the point of having a channel called php if your going to turn everybody down?
<15> call it php development if your not looking for that kind of traffic
<13> !tell sporkit about ##php
<15> o_O
<13> Shhh. ;)
<10> !tell GarethAdams about ##php
<13> !tell GarethAdams about msg the bot
<13> Ugh, the old factoid for msg was better.
<5> sporkit ##php is for learn the language, not tech support for xyz script.
<15> ehh yea true sorry


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#linux
inkscape add fonts
quakenet resolve hostname
ls perl pipe hax
#gimp
Xorg 7.2 could not find default font
mod rewrite breaks get variables
oisceo
kthinkbat howto
javascript eval associative array



Home  |  disclaimer  |  contact  |  submit quotes