| |
| |
| |
|
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 34 35
Comments:
<0> seeing as how i eat cashews from africa and my chair was made in malaysia <1> women are better at giving birth than men... is that ***ist??? i think not <1> and given my recent dealing with female owned cars... they are aweful car owners <1> ill make sure my daughter can change her own oil <2> lol <1> my wife just merely topped off the honda and that cost $2g <2> is that a *** joke? <1> no <1> jesus <2> sure it isn't <2> you sicko <1> trolling? <2> not really. <2> just a pervert :) <1> i did get a lap dance from a mother daughter combo at the bachelor party <3> winmutt: What?! Grandma wasn't invited?
<2> anyone hear about that actress that got stabbed? <2> hrm.. her name was.. uh... <2> reese.. <2> reese something.. <3> dela reese? <2> no no <2> reese... something <2> began with a w i think <3> reese witherspoon <2> NAH, WITH A KNIFE <2> it's better when you just say the last name :\ <3> I knew a bad joke was coming.... <4> DUMB*** -----> blind <----- DUMB*** <1> ? <1> good to see we are keeping to the channel topic <2> You put way too much work into that <1> no kiddign <5> How would I use php to email a form? <1> kai_wp: php.net/mail <2> the mail() <2> function <5> is it really just 'mail($to, $subject, $body)'? <1> something like that <1> rtfm <2> lol <6> can anyone help me with a sorting problem? my code used to work fine but the server switched from php4 to php5 and now my data doesn't get sorted anymore at all <5> whoah, its alot simpler than I thought. cool. Thanks! :D <2> there's a whole manual on it?!?!#< <7> kai_wp, Yes, but you have to have support on your server too. Read php.net/mail which was pasted earlier. <5> ok <6> I'm using array_multisort() and it's not giving me any error messages, so I have no idea what is going on <1> ijwyn: error_reporting(E_ALL); <8> I am trying to pull a user/p*** protected image from another server. the linux command [wget --http-user=user --http-p***wd=p***word "http://server/image.jpg"] works. How would I implement this in php? <1> Quentusrex: cURL <9> What is the format so that i can have an if statement across code breaks w/out using curly brackets? Like, <?PHP if (1): ?> hey <?PHP endif; ?> <1> why not use curly brackets? <1> i dont think u can in php <1> this isnt perl you know <9> winmutt, ive seen it used before <1> slide: ternary <9> huh? <1> slide: php.net/ternary <9> k <8> anybody know how to <?php include"http://server/image.jpg" ?> when the server requires a user/p*** to access the image? <2> if <10> anyone know a way to output a pages html source inside of itself somewhere? <11> Quentusrex: http://user:p***@server/image.jpg/ <8> richardlynch I'll give that a try. thanks <6> winmutt: wow... nice one... it reports way too many errors to be useful though, hrmm <11> [sellout]: echo "<pre>"; readfile($_SERVER['PHP_SELF']; echo "</pre>"; <10> in other words perhaps have the contents of view-source:http://myurl.com outputted somewhere inside another page? <10> <looks> <11> [sellout]: echo "<pre>"; echo file_get_contents('http://myurl.com'); echo "</pre>"; <12> [sellout]: http://php.net/highlight_file <10> richardlynch that should suit my needs well, however can i have that outputted to yet another varible so i cna include it in an eof <8> richardlynch, when I execute that command I get what looks to be the character version of the image. <11> [sellout]: Yes. <10> what im trying to do is the insane, have a pages html source code as a semi visible background of a page <10> i can do it in css just fine, i just need to pipe the source into my html eof <11> Quentusrex: header("Content-type: image/jpg"); http://php.net/header
<10> $source = file_get_contents('http://myurl.com'); <10> ? <10> then just have <pre> $source </pre> inside my eof <10> right? <11> [sellout]: Yes. You will probably maybe want to use http://php.net/htmlentities as well... <11> [sellout]: eof === EOF === End Of File? What the heck are you talking about? Never mind. I don't care. You can put $source wherever you want it to go. <12> of course, you wouldn't need to if you use the internal function for source highlighting. it's there for the purpose of displaying source code. <8> so the commands: header("Content-type: image/jpg"); include"http://server/image.jpg" <8> should work? <10> thanks richardlynch :-) <12> Quentusrex: don't use include unless you're including something that has php source in it which you need interpreted by the parser. <8> ok <12> Quentusrex: if you just want to dump a file, use readfile() <8> I want to pull a p***word protected image off of a different server, <8> and display it on a page that visitors are allowed to see <11> Quentusrex: file_get_contents() is good for that. include() is bad for that. <12> richardlynch: not if you're just dumping it, and have no need to store it in a string. <8> that would give me the file in a string, <8> I need to be able to output the jpg <11> Quentusrex: A JPEG *is* just a big long string, really... <12> technicly you could output the string after, but it's a waste of memory. <8> then how to I take the string and turn it back into a jpg? <12> Quentusrex: write it to a file? output it? just because it's a string does not mean it isn't image data. <11> Quentusrex: The header() forces the browser to interpret it as a JPEG. And caffinated is right, readfile() would be even better. include() is just really really bad. <8> so, <8> header(...) readfile(http://user:p***word@server/image.jpg); should work? <12> Quentusrex: ***uming you quoted the URL, sure. <8> yeah, I'll have the url quoted <8> brb, I'll test it out <8> it says cannot modify headers, already sent out <13> !+headers <14> If you are getting error like "Warning: Cannot modify header information - headers already sent by (output started at /path/file.php:1)" it means you've got some output before your header() call or starting a session. *No* output can be sent. that includes whitespace (outside of <?php and ?>) and any (X)HTML. You can also use output buffering <8> ok, <8> I think I have something wrong <13> No! Really? <8> ha... ha.. stormchaser... <8> I moved the header part to the beginning of the page that is suppose to display the image to the use <8> user* <8> that doesn't seem to be the write thing <8> how to I get php to display the jpeg from the address "http://user:p***word@server/image.jpg" without giving away the user and p***word and the server address? <15> SoapClient.cl***.php -- what package does that belong too? google turns up hundreds of results of different OSS projects, but i need to know what the master cl*** is <11> Quentusrex: The browser should not see the p***word if you've done things correctly... <13> Quentusrex: With sessions. <16> Quentusrex: use header() and libCurl <16> or readfile or whatever.... <8> readfile seems to give me the string version of the image <16> you are not altering header then <8> how to I convert the string back to an image I can output? <8> which header do I alter? <16> its not in string format you need to send a header to say its a image. <8> ok, <8> how do I alter the sent header? <16> Quentusrex: header('Content-type: image/gif'); for example <16> Quentusrex: http://uk2.php.net/header <17> anyone recommend a good host for PHP5 sites? <8> ok, when I put that before the command readfile("...."); it states that it is not able to change the header <16> Quentusrex: please pastbin it, I bet you are outputting stuff before sending the header.... <13> Quentusrex: php-bot told you, WHY. <8> where is the pastebin? <13> !+pastebin <14> Submit your code to http://hashphp.org/pastebin or http://cpp.sourceforge.net or http://php.pastebin.com then tell us the URL and a summary of the problem. Don't flood by pasting in the channel. <18> !+pastebin <11> Quentusrex: You MUST put the header as the very very very first line of code, with NO spaces in front. <16> richardlynch.... wtf spaces don't matter inside the php tags.... <8> i did that, but I have the readfile("..."); later in the page <11> row: NO spaces in FRONT of the <?php tag. <16> just ****ing pastebin the code..... <13> richardlynch: I think he is doing something *badly* wrong <11> Quentusrex: We don't care WHERE the readfile() is. <16> thats why he should just pastebin it <8> it'll take me a second to pastebin <8> I have to get access to copy the file <8> and transfer it to this computer over usb stick <16> should take all of 1sec.... its not rocket sci copy+paste+enter copy+paste+enter is all it takes
Return to
#php or Go to some related
logs:
gtf etch debian ELECTRICSTATIC DECAY #ldap flexisign wine wmv vlc fedora win32codecs Margaret JubJub
arm926 skyeye debian grub hp dl360 xchat e-penis openbsd upgrade-perl
|
|