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



Comments:

<0> yeah, I should
<0> aha! "Developer Token: If you signed up to use Amazon Web Services prior to August 2004, you have a Developer Token. As Developer Tokens are no longer supported and will not work with newer services, we encourage anyone who has a Developer Token to create a new account."
<0> buried in the FAQs
<1> is there a global PHP variable that holds the path to php or anything?
<2> nope
<0> which is a bummer because all of the example code I have uses a dev token :/
<2> Mindtzar: `which php` should give you that...
<1> thanks
<3> $array[][][] = $var; would be a 3 dimensional array, correct?
<2> Capso: mhm
<4> I have a question, i'm new to PHP POO, i usually work with databases through PEAR::DB cl***,. Ok here is my doubt, i'm writing a method inside a cl*** that query the database but using methods from DB cl*** of pear.. how could i call PEAR::DB methods from my cl***?
<3> Stormchaser: If I'm setting it within a foreach () loop... does the "meta" array (on which the foreach () loop is being conducted) need to also be 3-dimensional?
<0> Stormchaser, moonbats attacking? :)
<2> JoelR: Do you maybe know, if there is something about repeating yourself in guidelines?
<2> twidget: Worse. Stupidity.



<3> Stormchaser: Nevermind -- it doesn't. :D
<1> anyone know how PHP deals with includes()
<1> does it load the file into memory
<1> or does it just read the data from it and evaulate it without keeping uncessary data
<5> what's the easiest way to take the data from an emailed attached jpg file and create an actual jpg? I already grab the information from the email using sockets.. now i just need to know how to turn that attached file into an actual file?
<6> otiuk: fopen and fwrite
<7> otiuk , pear::mime
<5> ok.. cuz my understanding is that what is in the email is 8byte text?
<8> ever since i added a `execute_some_cmd` to a function in my php script, the web-page doesn't load anything (view source is empty)... i don't think the page should have loaded at all at this point... how can i debug this?
<6> otuik: base64 encoded I'd guess, in which case use base64_decode
<6> otuik: Although I would agree with leonid_p_, pear::mime would be a lot simpler
<9> cmatheson, header problem most likely or your function don't work :)
<2> cmatheson: Check the error logs
<8> Stormchaser: T_ENCAPSED_AND_WHITESPACE
<8> Stormchaser: can, i not have `cmd args`?
<2> sure you can, but you're not showing everything, are you?
<8> Stormchaser: here let me show you the exact line: `/usr/local/sbin/callboardify_image.sh $_FILES['new_ad']['tmp_name']`
<2> um... THAT you can't do...
<5> bubblenut, does imap functions do anything like pear::mime or no?
<8> Stormchaser: ok.. were you going to elaborate?
<2> cmatheson: $var = $_FILES['new_ad']['tmp_name']; `/usr/local/sbin/callboardify_image.sh $var`
<8> Stormchaser: ooh, how come i have to put the $_FILES part in a different variable?
<2> cmatheson: I believe everything should be in php.net/exec
<6> otiuk: Check out pear.php.net and search for mime it's just a package for building and extracting mime messages
<6> otiuk: I've not used the imap functions before but I'm sure you would be able to
<5> see i've already built a function to grab the data that is technically the image
<5> i just have to figure out how to make all this text into an image
<5> convert it some how
<10> there any one to have information about movies like MPG and AVI
<10> on php
<2> dsadsads: php-ffmpeg
<10> Stormchaser: tks man x)
<8> Stormchaser: hmm, there wasn't anything about not being able to use $_FILE there.. i had read it a few minutes ago also.. anyway, i changed my line to $file = $_FILE[..]; $ret = `/my/command $file` and now it says parse error, unexpected T_VARIABLE (parse error)
<5> bubblenut, see what i'm sayin?
<8> Stormchaser: scratch that...forgot a ';'
<8> Stormchaser: ok, it's working now, thanks for the help. still don't get why FILES doesn't work in there though
<2> It's not because of the $_FILES... It's because of the string abuse...
<11> Hi
<12> hey
<11> I'm looking at coding a News portal thing, basically a main page, and then sub links, hopefully using php and mysql. I don't have much php or sql knoweldge so I'm looking for some guides to help me meet my goals
<12> mezoko: your in luck, there are many tutorials on the net on that very subject, try searching google for "php mysql news tutorials" or something
<13> how do I remove the \' and \" (I mean replace \' with ', and \" with ") from a submited form field?
<12> Judge--: http://au.php.net/stripslashes
<13> thanks very much
<11> maskd, ok cool, thanks, do you know of certian guide/tutorial that might be good for me get the basics of php. I have a good idea, but I want ot make sure I know all the exact stuff
<12> mezoko: well i personally learnt by looking at others code and playing around with it to see what it does, the manual is also a great place to look for information
<11> maskd, ok, good I'mg ood at learning by seeing othe rppls code
<12> mezoko: yeah, just look at a few news scripts that are available and you'll be able to pick up on how they work
<14> hi, i've got a problem. http://pastebin.com/716250 this script should insert a record with the username, notes (like a diary), and updated by. the thing is, if the username already exists it should update where username = $_SESSION[username] and for some reason it doesnt do that
<14> medoko: Sams Teach Yourself PHP in 24 hours is quite good
<14> mezoko*
<11> nebmo88, is it free?
<14> no :( i bought the book
<12> nebmo88: why are you updating the username if it is already inserting the username?
<11> nebmo88, better yet how much does it cost?
<14> erm, .99 GBP
<11> I have to find out how much it cost in the states
<12> should be on amazon
<2> oh, no! Another "teach yourself <blah blah here> in 24 hours :/
<14> maskd: what i want it to do, is to see if the username already exists... if it doesnt then insert, if it does then update



<14> stormchaser: whats wrong with them?, i found it good...so far
<2> not even *one* teaches you what it says in 24 hours
<11> amazon has it for $15
<15> nebmo88: ah ok just read up on ON DUPLICATE KEY UPDATE, i see what your trying to do
<14> maskd_: i am (http://dev.mysql.com/doc/refman/5.0/en/insert-on-duplicate.html)
<11> I wonder if the sam teach your self php and mysql in 24 hours is any good
<14> i think i might know what is wrong need to say ...UPDATE username = X, notes = X, etc
<16> mezoko probably not ; )
<15> yeah but the thing is, your trying to tell it to UPDATEnotes SET username=$_SESSION[username] WHERE username=$_SESSION[username];
<11> nanotec, lol, but is it worht it buy and book from 2003?
<15> or at least thats what it looks like to me
<15> why buy books when there are plenty of guides on the net for free :)
<17> Say you have a time-sensitive piece of code that needs to be executed, every 20 RL seconds or so.
<17> How would you make sure it got done then?
<15> freeone3000: you could use javascript
<11> How does php change?
<1> while (true) { sleep(20); <code>; }
<17> With other stuff that needs to get executed... pthread would rock.
<15> mezoko: there's pretty big changes between the versions of php
<11> maskd_, so a book from 2003 would render pointless?
<11> maskd_, b/c that when that sam's teach yourself php was copyrighed
<2> close to thjat
<2> mezoko: That book was written in days of PHP4.0, where short_open_tahs and register_globals were popular...
<11> is there anything recent around?
<15> well i wouldnt recommend a book at all, i believe in things being free, hence using php
<14> eww so im learning from a #!%?$ book
<14> time to get the credit card out
<17> Or the google search out.
<18> www.php.net <== free and up to date
<2> :)
<19> got a couple questions really quick. Going about creating a simple poll for my website, and was wondering how I could restrict voting to one per person?
<2> require login.
<20> or set a cookie
<20> or maybe ip restriction
<18> most ones that charge you are are preset scripts do it by ip
<18> *or are preset
<19> do you just store the ip address of the voter in the media you are storing the votes in, and check eat time a vote is made ?
<2> [Ex0r]: With voodoo.
<19> eat = each*
<19> maybe do like voter_ip, and voter_vote, than when another vote is submitted, do an if (voter_ip) { dont count vote };
<2> Damn shadows :/
<21> is there a function which will take a DATETIME field from a mysql query and just return the date
<22> Menthol_616: use DATE_FORMAT() in the query
<23> hi. is there any two-way encryption for php?
<2> php.net/mcrypt
<24> hi
<25> hi
<2> woof
<24> nice, lol
<23> is there any simple way/function to 'obfuscate' a cleartext and retrieve the original text with another function?
<26> marcster: theres an easy module to use for that in perl, but youll have to ask in that channel probably
<27> Does anyone know if you can use SELECT * ... prepared statements?
<27> because there is not way to know the exact amount of columns I'll be returning for binding the results
<28> hey
<28> can someone shed light on how to stop hotlinking on phproxy?
<2> !+g10
<29> Guideline #10) We don't support script(s). We help you *write* PHP, not recommend or download and install/hack/modify/adapt/use pre-written scripts
<27> SkramX: Grab the http referrer and see if your domain is in it
<28> right
<28> I know that
<28> but where in the code?
<27> SkramX: We don't support the script
<28> i know
<27> you just need to make sure it's always called
<27> probably something like a common.php or something like that
<24> heh, that was crap
<28> right
<27> $_SERVER['HTTP_REFERER'] contains the data you need to check
<28> but when i do thati get header errors
<28> right, I know how to do the if statement, etc.
<27> You shouldn't get header errors from an if statement...
<28> i did
<28> ill try to recreate them


Name:

Comments:

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






Return to #php
or
Go to some related logs:

#bash
gentoo wxgtk frontend without unicode
Rsocket udp
shred /dev/hda1 operation not permitted
ivtv-tune segmentation fault
stdarg.h amd64 klibc gentoo
fedora kleopatra crypto plugin
how to run dpkg --configure -a in mepis linux
ssh-add kubuntu .xsession
#physics



Home  |  disclaimer  |  contact  |  submit quotes