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



Comments:

<0> TML: Gosh, you have a limitless patience.
<1> tws: Hardly
<2> TML: thanks.. i just started 4 days ago..
<3> pimpwell: if you want to avoid the additional check with strpos, you can use strstr
<2> tws: and you smell :P
<1> likewhoa: There's no call for that.
<2> TML: but it's a joke.. i can't smell him really..
<1> likewhoa: It's not a very funny joke, and some people might get offended.
<0> likewhoa: ... good.
<1> If you'd said that to me, I'd have removed you from the channel.
<2> tws: lol
<0> likewhoa: It's true. No need to laugh that out loud.
<2> TML: ma bad
<2> TML: thanks for the info with php
<4> Is the path to the php binary stored in some server var in any kind ? (not listed in result in phpinfo)
<2> tws: patience people are cool people, nothing wrong with that



<2> ollie: which php
<5> I need to check if input "name" has valid value. Walid value are utf-8 letters. How do i check it? \w in preg_ allows only latin alphabet, i want all letters. Can you advise me?
<0> likewhoa: It's true. Which part of my message indicate me thinking of it as a wrong thing?
<4> like /usr/lib/php5/bin/php
<2> tws: oh none, just wanted you to be more patience yourself :D
<2> ollie: in linux?
<4> indeed, want to run some php code in background procces so doing a exec directly on binary
<2> ollie: type "which php"
<2> ollie: as stated above
<2> ollie: to run in background use exec foobar &
<4> I know, but now I have to define the path hard coded, not nice
<2> heh
<2> find the path with 'which' command
<4> will not work
<6> ?
<4> multiply installs of php
<4> php4 and 5
<6> which php4
<6> which php5
<6> :-P
<2> heh
<4> need to get it from with php code itself
<4> exec('.$this->phpbin.' '.$this->file.' '.$params.'> /dev/null '.$background.'echo $!
<4> $this->phpbin is now set hardcoded, $this->phpbin = '/usr/lib/php5/bin/php'; crossplatform died there
<7> php-bot guidelines
<7> woops
<8> hi guys, is there a parameter for configure to make sure that only the apache module will be installed and not the stand-alone interpreter?
<9> bcc: you could try deleting the php executable
<8> deadroot: i don't care if it exists, i'm just not going to use it so i thought there might be an option
<10> morning
<9> bcc: i don't know. you could wait around for the more senior people
<11> hi
<10> anyone here managed to run ming 0.3 beta under linux/freebsd x86 with php5?it does sefault ...
<8> deadroot: nah, it's cool. thanks.
<10> if a php extension does segfault, how may I debug it properly to guess where it does die ?
<12> guys, i'm no php guy, and i'm going through some php code written by someone else.. can somebody tell me what this line does? $url = @fsockopen("big.oscar.aol.com", 80, &$errno, &$errstr, 3);
<13> is tehre any function which would strip all other stringsd but only numbers would leave ? like -4001aa3 I yould like to get 40013
<14> cavallo: preg_replace()
<14> preg_replace('/[^0-9]/', '', $s);
<13> sjors: nop. I have -500 and num is still -500 not 500
<15> How do I search in a $variabel if a: http://-link exist?
<14> cavallo: it must be, I tested it
<10> with preg_match
<15> OK
<1> strstr would be better
<14> videx: with strpos() !== false
<10> strstr faster than preg_match?
<1> Javi: Yes
<10> good to know
<13> works
<13> 10x
<10> TML do you know how to debug a segfaulting extension?
<1> Javi: http://bugs.php.net/bugs-generating-backtrace.php
<10> ohh
<10> nic
<10> nice
<15> How would a strstr syntax look for: $variabel and searching for content: http://us.imdb.com/title/ttXXXXXXX
<10> if (strstr($variable1, "http://us.imdb.com/title/ttXXXXXXX";))
<10> VideX that's basic php, consider to read a book
<16> I have a problem with converting php4 code to php5, I hava a config.inc.php which just contains a var $DB_HOST with a require_once('db.inc.php') in another file I can't get access to this var within a clas...does anyone know how this come?
<15> OK thanks Javi... I'm learning PHP



<15> Javi, when I run: if (strstr($variable1, "http://us.imdb.com/title/ttXXXXXXX";)) the script prints out the whole file
<17> hello
<18> Fw:TML, i see that the AC macro PHP_SELECT_SAPI() can accept cpp files, the problem is that the CXX define doesn't exist, something like AC_CHECK_PROG([CXX], [g++], [g++]) whould be good
<17> I have a script on my website that uses a script on another website
<18> yes ?
<17> the thing is that sometimes the other website does not answer and so my page won't open
<17> is there a way to do an include with some kind of timeout ?
<18> how do you get the remote file ?
<17> well I have a php page called get_photo that just returns the html text to include
<17> that's on the server I get the photos from
<17> and I just do a include("http://.../getphotos.php) on my other server
<18> in this case you can not control the timeout
<18> because the timeout is managed by the user browser
<18> You may have a look at this URL : http://www.php.net/manual/en/function.fopen.php
<17> ok
<17> cheers
<18> $handle = fopen("http://www.example.com/yourphoto.php";, "r");
<19> Hi, has php something similar to the seq command on the cli that creates a sequence of numbers "seq 1 3" -> 1 2 3?
<20> morning all.
<21> hi
<20> i'm currently trying to get a mailing list for the company i work for working
<21> mkl1525: array_fill()
<20> however theirs some issues of the dynamic content were trying to put into the e-shot
<20> its for a legitimate mailing list.
<20> need some means of including dynamic content in the email that goes to customers... iframes wont work
<20> due to a security issue in most email readers.
<19> dools, thanks
<18> hmm
<20> i've currently got phplist installed which is a good little app
<18> Mark_H, you may know that iframe isn't compatible with all browser
<21> Mark_H: phplist.org
<20> but no support for dynamic additions
<17> cdqs ; then what do I do with $handle ?
<0> Mark_H: Explain in detail. That will help.
<20> ok basically....
<18> you can fread() the handle
<18> Bourrib, to get the content file
<20> theirs a template for the email which we're sending out... and their is a part of the email which i want to include dynamic content
<20> it is for 9 products which we want to promote on the e-shot... to simply the addition of the products i have an asp page which calls the items from the database
<20> essentially the page is this
<20> http://www.cocc.co.uk/cocceye.asp?FSCat=130&iFromFeatured=1
<18> if($handle == FALSE) than connection error.
<17> all right
<17> and can I set up a delay ?
<18> i think so :L
<18> wait
<22> where is the difference between: $name = "john"; and var $name = "john"; ? I was unable to find a good explanation in google...
<17> thanks
<18> http://fr.php.net/manual/en/function.stream-set-timeout.php
<10> kraftwerk both of them are public variables
<10> afaik there is no difference
<22> Javi: so there isn't really a difference?
<22> okay...
<18> hmm this timeout isn't applicable while connect() wait...
<20> tws, any ideas ?
<20> even a script to take that page: http://www.cocc.co.uk/cocceye.asp?FSCat=130&iFromFeatured=1
<20> and save it to the server as an html file
<20> then i can link that file as the template
<18> Bourrib, take a look at http://fr.php.net/manual/en/ref.stream.php
<20> but doing it dynamically.
<22> Javi: so the formula is: public var $blah == var $blah == $blah ? :-)
<10> public $var == var $blah == $blah, at least afaik yes
<17> cdqs: the page does not speak about connection timeout does it ?
<22> Javi: okay... and if I want to make these private I should use private $var and not private var $var?
<18> that what I said to you after sending you the URL.
<18> i don't know if you can manage the timeout
<23> there is a way to alter a image resolution ?
<18> yes you can
<18> http://fr.php.net/manual/en/function.fsockopen.php
<18> sorry
<10> kraftwerk correct
<18> kaydara, yes with GD.
<23> wich gunction should i use ?
<23> i can only set text and that kind of things


Name:

Comments:

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






Return to #php
or
Go to some related logs:

ubuntu live cd modify grub hd
family guy crazy crackas
downgrade apt-get ubuntu mesa
skiidoo
install vmserver on ubuntu
gkrellsun plugin compiled
consolefonts bold gentoo
fCKeditor get value javascript
#gentoo
#php



Home  |  disclaimer  |  contact  |  submit quotes