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



Comments:

<0> lol
<1> ........
<1> .......
<1> ......
<1> .....
<1> ....
<1> ...
<1> ..
<1> .
<2> ***hat.
<3> So how do I got about accomplishing this? You are on my webpage. I have a text box for you to input what ever you want to search for, then use a button to send request. It will then use say google.com to search and then displays those results back on my webpage just *** if you were at google.com directly/
<4> S_Hunter: I think google has a published API for that.
<3> well I don't want to use google.com, just using that as an example
<5> read google's tos
<5> they don't like automated queries
<4> then it depends on what you want to do.



<5> unless you use the api
<6> S_Hunter: if the website accepts GET search url's you can use fopen to parse the contents of a url i think
<7> S_Hunter: If the website you're using provides an API for it, you should use that.
<3> I am a n00b in training, so I am probably below you guys. I know basic HTML, and Hello World coding.
<7> S_Hunter: Have you been through the first 4 sections of the PHP manual? Because that should be the first step of any user trying to learn the language.
<3> Well lets start with something even easier. Can I just have my webpage display someone eleses?
<8> Hello World! Ship, why don't you just code your own Googld then?
<8> *Google
<8> S_Hunter: http://jp.php.net/file_get_contents
<8> It will accept URIs as well as local file names.
<8> But really I think you need to learn a whole lot more about PHP first.
<8> Follow TML's advice
<9> reading the first 4 sections of the PHP manual is helpful.
<3> http://www.php.net/manual/en/ ?
<7> S_Hunter: If you want it in English, yes
<3> alright, I am going to read the first 4 sections.
<8> /me goes and reads the first four sections.
<8> =D
<3> but if I want to just have my webpage display someone else? I shouldn't have to code at all?
<7> S_Hunter: Sections 5 and 6 are also useful, but they're more "task oriented"
<8> S_Hunter: Maybe you would be better off with frames.
<3> thats what I thought
<8> heh
<3> have a frame to display a different page
<8> well then.... #html
<3> wanted to make sure if that was going to be my foundation. Cause I don't want to hardcode the search results. So eventually I am going to need to code.
<7> frames are evil
<8> indeed
<10> not necessarily
<10> look at phpmyadmin
<10> it uses frames in a tactful manner
<8> But less evil than stealing somebody's content via PHP
<11> phpmyadmin is old
<8> Yeah the phpMyAdmin interface needs a major update
<11> 100+ KB download just for 30 simple rows of data
<12> hey.. i have a short php script that someone wrote for me to get user input (basically a form).. when I put the php in a webpage with my header/footer, it outputs an error about "session_start(): Cannot send session cache limiter - headers already sent", is "session start" needed?
<9> ftp3: probably.
<9> ftp3: move session_start() to the beginning of the script
<9> it has to be called on before anything is printed to the screen
<13> how do I register a nick on freenode?
<8> and session cache limiter to above that
<11> ftp3: or you could use output buffering
<11> AustLaw`: /nickserv help register
<10> AustLaw`: /msg NickServ help register
<9> AustLaw`: #freenode :-p
<12> bashusr: see,my webpage is basically an html document that I renamed from .html to .php and I put the <?php about 1/2 the way down the html page
<9> ftp3: where is session_start()?
<14> im having a little trouble with this script http://hashphp.org/pastebin.php?pid=6551
<14> if I echo 'http://videomods.com/movies/images/thumbs/' . $row_file_display['file_id'] . '.jpg' the image displays
<14> but for whatever I do its saying No Thumbnail
<8> Jezek: the problem is that it's not indented
<11> ftp3: a simple solution would be to place a <?php ob_start(); ?> at the beginning of the file
<14> what..
<6> Jezek: you are using is_file on a url, you sure you can do that?
<8> Bad indenting means I don't help
<8> =P
<14> heh
<14> ok i guess ill try the other thing
<15> in my php.ini I have "sendmail_path = sendmail -t -i" (without quotes).. is that good enough?



<7> is_file() can't be used over HTTP
<4> Gerry: what do you mean, bad indenting? it's all on one line, nothing to indent.
<14> oh ok
<7> Jmax: I disagree. In fact, its use of frames is one of the reasons I don't use phpmyadmin.
<8> CryWolf: exactly the problem
<7> Jezek: It's right on the docs, BTW: "Tip: As of PHP 5.0.0 this function can also be used with some URL wrappers. Refer to Appendix M for a listing of which wrappers support stat() family of functionality."
<14> ok
<12> deadroot: is ob_start the same as session_start?
<7> ftp3: No.
<7> !tell ftp3 about headers
<12> bashusr: in an include file that is right after <?php
<7> ftp3: php-bot just sent you a private message that will lead you to resources explaining why you get the error.
<15> in my php.ini I have "sendmail_path = sendmail -t -i" (without quotes).. is that good enough?
<12> tml, just read it.
<16> what function can i use to tell if an object is a string or an array
<17> http://us3.php.net/is_string <
<18> gettype()
<17> or that. im lazy :)
<18> is_string would be faster
<18> or is_array()
<16> fo sho is_string be thy choice
<9> you're weird sethuhdiah ;-)
<18> q
<18> oops
<6> or if(($string)$string == $string)
<16> yeah im gonna try it that was just for fun
<6> sorry that should have been (string)$string
<16> ah so php lets you cast variables
<6> sethuhdiah: yep
<19> hello
<19> hi
<19> ... i think my chat program may not be working....
<8> :)
<19> i am not seeing anyone else write any text
<19> hi!
<6> php-bot: tell qp384uqr3o4rpq38 about g1
<19> g1?
<8> php-bot: tell Gerry about g1
<19> lol
<19> thx
<8> ahhh, heh
<19> gotta go, bye
<20> I've been trying to track down an issue with php and setlocale that doesn't seem to recognise any locales being set by it. I'm wondering what could cause php not to pick up the installed locales?
<20> this is on a FreeBSD 6.1 running PHP 5.1.2
<9> FreeBSD is at 6 already?
<9> interesting :-P
<20> well, what makes it more interesting is that I've installed freebsd n another server and it works fine
<20> setlocale() that is
<10> any different compile flags?
<10> between the two?
<10> and what is the locale set to, on both?
<10> (env)
<20> default compile flags on both
<20> checking
<20> en_US.ISO8859-1 on the problem server and en_GB.ISO8859-1 on mine
<20> mine being the one that works of course
<10> heh
<10> dunno what to say
<10> read the comments on php.net/setlocale
<10> and google around
<20> yea, nothing at all
<10> any specific errors?
<10> or it's just not working?
<20> don;t get any errors, it just returns false
<10> try raising error_reporting to E_ALL ?
<20> even setting it to en_US
<20> well en_US.ISO8859-1
<20> it always seems to default to US-ASCII as it happens
<20> jsut trying with error_reporting raised up to E_ALL now
<10> did you raise the error_reporting ?
<10> ij
<10> ok
<21> is the locale really there?
<21> locale -a | grep en_US.whatever


Name:

Comments:

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






Return to #php
or
Go to some related logs:

/opt/e17/bin/enlightenment not found for e17
sendmail + spamassassin + sender = Service unavailable
Perl_Glockhook_ptr
whichone com1
could not init font path element vectorlinux
kubuntu 720c
proxy checker for linux
#perl
#python
#oe



Home  |  disclaimer  |  contact  |  submit quotes