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



Comments:

<0> Kog: curl isnt designed for downloading things?
<0> ho ho i disagree
<0> otherwise FTP wouldnt be one of the main protocols
<1> It's not designed "only for..."
<2> TML++
<1> wget is pretty much oriented to a single task
<0> this is true
<1> As is pavuk, as another example
<0> but it will also login :)
<3> Thats like saying php is designed for high volume enterprise level security.
<0> pavuk?
<0> lol evan
<0> lmfao
<1> It's like wget on steriod
<4> lol



<1> s/$/s/
<5> hola
<0> come es tas?
<6> english
<3> french.
<4> swedish :P
<0> german
<0> german/american
<4> just got to mexicali subarea
<3> black.
<4> you get a free lesson
<4> lol
<3> I mean african.
<1> EvanCarroll: o.O
<5> I'm trying to grab a url, take the contents and dump it into an array (each line a new element in that array). I thought that curl_* functions would be the way to go but it's dumping the results to stdout (not what I need). Am I going about this the wrong way? thanks.
<1> roue: $f = file($url);
<5> no kidding. :)
<3> roue: Yes you are.
<7> roue: there's CURLOPT_RETURNTRANSFER to return it, but file() is much simpler if you don't need the advanced stuff in curl
<7> ..and if you have allow_url_fopen on
<3> You should use LWP and HTML::TreeBuilder
<5> thanks for the help.
<8> unless you need https, I believe
<9> Anyone here know a way that you can cause any .php that loads within a specific directory, to output its contents *within* a pre-set html template?
<8> CarlH: Yes, you can use auto_prepend_file/auto_append_file for that.
<9> Ok for example, I go download a forum script --- that has no capability to change templates etc, and it has its own template. Now, I have a template for my site (specific header, footer, sides, etc) -- and I want to cause the forum to load *within* that look and feel. I could use an iframe, but then I get two scroll bars, so I am trying something a bit more complex --- mainly to cause the .PHP echo'd contents to somehow get stored t
<9> HolyGoat: Is there a way to cause that to ONLY apply to the files in a certain dir ? that may be a it
<9> may be it :)
<8> CarlH: And you can set them from e.g. a .htaccess as such, php_value auto_prepend_file "myfile.php"
<9> ah...
<8> So, that answers your next question.
<9> good mind reading :)
<8> well you said "within a specific directory"
<8> So I was just being accurate.
<9> HolyGoat: Seems there is one problem with that, if the php script in question does cookies/headers/etc -- then it wont work since the prepend-file will effectively negate that. Any way to say inside the prepend file something along the lines of "Wait for headers to be sent" ?
<8> CarlH: You could a) use output buffering b) set variables holding the content, which you spit out after other HTTP headers (such as cookie headers)
<9> b sounds great
<10> ok how do i unset the $_SERVER['PHP_AUTH_USER']
<10> is it empty $_SERVER['PHP_AUTH_USER']
<8> unset($_SERVER['PHP_AUTH_USER']);
<10> no ****
<10> ?
<8> no ****.
<11> NO ****!
<11> hoy ****, no ****?
<4> ****, no?
<8> **** no
<4> :P
<12> there's no issues with compiling in libxml2 into the 4.4.x series, right?
<8> I have never tried that.
<4> don't think so enygma aslong it finds it
<10> HolyGoat, didnt work
<10> hmm
<8> I stopped compiling 4 after 4.3.*, it was 5 from then on :) And now I don't get to compile PHP on our production machines.
<13> hey. how do i specify where to put an uploaded file from a form thing
<2> HolyGoat: I listened to a nice argument in #apache yesterday about that
<8> grendal_prime: It should set it to nothing.
<8> Kog: About what?
<10> this is php4 that make a diff?
<8> grendal_prime: do var_dump($_SERVER['PHP_AUTH_USER']); after unsetting it, and see what it says.



<8> grendal_prime: No not really.
<2> HolyGoat: "proper" compilation of PHP
<8> Kog: Ah, what were the arguments?
<2> HolyGoat: and the nice banter between the AF and ##php about whose fault 2.2 not working with PHP is
<14> Dereck_away: your PHP config determines where the uploaded file will go and you use the move_uploaded_file function to move it to wherever you want
<2> HolyGoat: I told the guy I compile PHP all the time - he asked if I had the "proper" way
<2> HolyGoat: I told him it seems to work on 2.0.58 for me
<2> HolyGoat: he said the latest 5 doesn't
<8> Kog: We/I still use apache 1.3.*, I'm not very familiar with the issues with 2.*
<2> HolyGoat: I run php4 and php5 on apache httpd 2.0.5x just fine
<4> 2.2 working good here
<2> HolyGoat: although, 2.2 isn't... well, there you go
<2> xpowerstudios: what OS and loadout?
<10> well i dont need to vardump it becasue the page that gets loaded next echos it to the top..sooo it still shows the user auth
<8> Kog: Security department at work are way too conservative to run apache 2 :)
<15> I am using getimagesize() to get the size and type of an image. I have an array atthe top of my script that defines the valid image types and gives them extensions. How would I check that the type returned by getimagesize() is in the array? Is it just as simple as if ($image_type in $valid_types) { ?
<10> <?
<10> session_start();
<10> unset($_SERVER['PHP_AUTH_USER']);
<10> header('location:index.php');
<10> ?>
<2> HolyGoat: what's wrong with 2 over 1.3?
<2> HolyGoat: OpenBSD users?
<8> grendal_prime: Do _not_ paste more than 3 lines or I'll have to kick you.
<4> debian linux, php 5.x asfc
<2> xpowerstudios: wow, a debian user building something new? I'm bout to die of surprise ;)
<8> Kog: Nothing I guess. No, they're all running debian. But they run a heavily patched apache 1.
<4> :P
<10> oops
<8> grendal_prime: And you're expecting $_SERVER['PHP_AUTH_USER'] to be unset on index.php?
<2> HolyGoat: usually it's the OpenBSD guys
<10> sorry
<2> HolyGoat: or people who are convinced 2 lacks a proper module
<10> well if i unset it...its a global type varriale isnt it?
<10> i mean...
<8> Kog: We have our own package server in the network, the security guys patch software all the time, we hardly ever run "original" debian packages.
<2> HolyGoat: I was talking to xpowerstudios
<10> what i want to do is clear the varriable out so it then promts the user to log back into the site
<8> ah
<4> HolyGoat: its getting outdated too often though so i don't blame them
<10> sorry about the past thing
<16> hi all.. quick question.. if i have a client that wants a chat software installed .. does it need to connect to an irc server per se?
<17> piera, no
<16> Jy: thank you :)
<8> grendal_prime: If you do HTTP authentication like that, the browser will keep sending those headers untill you close the browser.
<8> piera: Not really. There are some cool php/ajax chat thingies out there nowadays, too, although you'll have to google for those
<8> grendal_prime: If you want logout functionality, it's much easier to just use PHP's session mechanism.
<16> HolyGoat: the site is done in flash.. and this particular retard of a client wants chat on his site.
<8> piera: Well you could use Flash's sockets perhaps.
<10> ok got a quick on on how to do that?
<8> grendal_prime: Google for php session tutorial.
<8> It's pretty simple once you're into it.
<10> kewl thanks
<16> HolyGoat: beyond my capabilities.. i'd just install phpopenchat and be done with it
<2> grendal_prime: just make sure that session_start is always the first header sending thing in the document
<8> There you go. Is phpopenchat xmlhttprequest based?
<2> grendal_prime: I usually put it as the very first line in anything... if there's a line before <?php session_start() ?> it'll start rendering HTML and give a header error
<10> ya Kog that is in there..
<18> gahhh i will evil fpdf
<8> Hehe. My first blog post in 5 months. That's very bad.
<1> What?
<1> evil is a verb now?
<16> HolyGoat: bope i don't know what your talkikng about hahaha cause Im not php mind oriented.
<18> didn't bush introduce that one? ;)
<8> TML: Yes it's apparently like "to hex" (Beavis & Butthead)
<8> "I will hex you"
<18> it's not possible to make pages with different sizes >;/
<8> piera: xmlhttprequest is the object usually used for ajax applications
<8> piera: Make sure that you're not running a high performance website if you're using a "polling chat system" (like phpopenchat is, apparently)
<8> (or, well, don't use such a chat system in a high performance situation ;))
<19> HolyGoat: pfft, xmlhttprequest ... KNOW how hot that refreshing iframe is! :D
<16> HolyGoat: im just confused
<8> caffinated: Hehe refreshing iframe
<18> it's seriously about time you start using flash


Name:

Comments:

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






Return to #php
or
Go to some related logs:

yum.conf repro
#suse
siocsifaddress
ps3 walmart distribution
klineak ubuntu
#linux
equivalent debug.exe linux
loading modules one-by-one gentoo
#css
udev coldplug cycle gentoo



Home  |  disclaimer  |  contact  |  submit quotes