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



Comments:

<0> that one relies on the usage of double quotes for the delimiters
<1> That might change too though :/
<0> and doesn't check for the end of the link
<1> hrmm
<0> <a.*?href=(\S*)
<0> that one also captures any quotes
<2> upper and lower case a, href also
<0> @<a.*?href=(\S*)@mi
<0> php's PCRE
<2> I knew this wasa ##php
<0> oh, this is ##php ^^;
<2> MadSekkai: so anyway, what deadroot typed should sort you out, along with closing tags
<3> how can i point to an arrays key? I have $phparray, I want to get the value of key "ResultSet" which is another array
<1> preg_match("@<a.*?href=(\S*)@mi", $tehurl, $foo); doesn't seem to be working, I'm sure I'm doing it wrong



<0> try with single quotes
<0> preg_match('@<a.*?href=(\S*)@mi', $tehurl, $foo);
<4> sethuhdiah: like compare the elements in 2 arrays?
<3> no i just want to point to a value in the array. $newarray = $array->"resultset" or something similar
<0> :| the double quotes work fine
<1> Hmm
<1> must be my string
<0> except that mine is capturing a bit too much
<5> mm, i need a good website for my real estate agency, im thinking to use php and mysql, mmm multimedia is good but on linux im ****ed, does somebody know a vaiant of macromedia flash on linux? similar.
<6> I got a mysql query that returns a few lines, how do I only display the first line?
<0> preg_match("@<a.*?href=(?:\"|')(\S*?)(?:\"|')@mi", $tehurl, $foo); for $tehurl = '<a href="asdfwer">asd</a>';
<5> how about multimedia in linux?
<5> for websites
<6> flash works here....
<5> really?, mmm crossover?
<5> http://www.codeweavers.com/site/store/ads/flash?ad=11?????
<5> im gonna try it
<6> you could try wine
<6> but anybody that can help me?
<5> i tried wine, but it doesnt run on , i think but very old version, mmm i will try with crossover, mmm
<5> or probably with VmWare
<5> because i need to use AutoCad
<6> $first_line = substr($row[News_content],0,strpos($row[News_content], chr(10) ) );
<5> and there is not autocad on linux, there are many cads but they are not as good as autocad yet.
<0> or as ancient ;)
<7> could someone tell me how you are supposed to make php do stuff with mysql after you have defined everything you want it to do as a varible
<0> mrtechguy: can you rephrase?
<6> anyone here got a way to only display the first line from an input?
<8> hello
<8> is there a way to set a maximum time- or downloadlimit for libcurl in php5? i need something like cur_setopt (MAX_DOWNLOD_SIZE, 1Mb)
<1> How could I make $foo[1] into just $foo. $foo[1]' is created in a function, which is in a cl***. I want to use just $foo which equals $foo[1] outside of the cl***.
<0> GieltjE: you could use regex or str_split
<0> MadSekkai: $foo = $foo[1] ?
<1> Then what?
<0> then just use $foo
<1> I can use it outside of that function?
<1> That function is in a cl***.
<1> I want to use it outside that function, AND cl***.
<0> oh. then provide a getter for that cl***. then just put $foo $object->getVar();
<0> or just make that variable public access
<1> deadroot: To make it public access I do...?
<0> cl*** example {var $variable;} <-- is sufficient
<0> you can then access with: $instanceOfExample->variable
<1> deadroot: Er, I have to put var infront of it? Like var $foo = $foo[1];?
<9> for error reporting, there are two lines need. I know the first one "error_reporting(E_ALL);", what's the second one again?
<0> MadSekkai: no. var is only for use to declare cl*** variables
<0> $foo = $instanceOfExample->variable
<1> hehe
<7> Does anyone know how to execute MySQL comments once you have set them as varibles
<1> You confused me
<0> MadSekkai: you mean you understand it now?
<1> noo
<1> lol
<1> hehe
<1> hold on
<0> okay
<0> mrtechguy: $sql = 'SELECT * FROM something'; $result = mysql_query($sql); <- is sufficient
<7> ok but will that connect with a username and p***word?
<0> mrtechguy: rtfm :) www.php.net/mysql_query and www.php.net/mysql_connect
<10> is there any way to cleanly tidy up XML? I've got a file which has got only one line and 3000 chars. of data. I want to add newlines etc. how would i proceed correctly?



<0> it's mentioned in them
<10> mrtechguy :))
<0> Drakas: you could try Tidy
<1> deadroot: http://pastebin.com/650955
<10> deadroot: how do i use tidy without specifying like doctype etc.??
<0> Drakas: or you could try loading them with PHP's DOM and saving it
<10> i just really want to tidy <code><ccc>...
<10> ok. does it actually use lto of resource sor not?
<10> i want to make it quick..
<10> i've got tinymce javascript wysiwyg and it gives one long line :( then it's put in the databse. when i want to edit something through databse, it's all messed up
<0> DOM does use resources. and XML process isn't cheap on resources
<0> s/process/processing/
<1> deadroot: Is that right?
<0> MadSekkai: eh, not quite. a moment
<10> i need to tidy so things like <pre> wouldn't get plit etc. :/
<10> * split
<0> MadSekkai: hopefully this is it. http://pastebin.com/650960
<0> Drakas: so that is supposed to be reused over and over by your scripts? not a one time processing?
<10> yes
<10> i had done a javascript dom parser :) it works nicely but i don't know what to do next :/
<1> deadroot: Well, the function the var is in, is already returning a different value.
<0> Drakas: try looking into php's DOM functions. you're using php5?
<0> MadSekkai: ic
<10> yep
<11> just hi! :D
<0> MadSekkai: http://pastebin.com/650966
<0> it's funny, i've never done stuff like that before and yet i'm answering it :D
<12> hi all. I' using printf("(%s/%s)",$string1,$string2). but I need if $string2=='' printf("(%s)",$string1,$string2); is it possible?
<1> Ah ok
<1> that works
<1> Now onto the second problem
<1> :)
<1> deadroot: See anything wrong with http://pastebin.com/650968?
<0> MadSekkai: did you understand what i did in that example?
<13> instruction Google Adsense--> http://planet.nana.co.il/hartk2003/en.htm Download free Firefox --> http://planet.nana.co.il/hartk2003/Firefox.htm
<0> bitch
<1> ****er
<14> Can someone please help... I'm trying to enable MS SQL support on PHP. I have uncommented "extension=php_mssql.dll" in the PHP.ini file and rebooted
<14> but nothing
<0> MadSekkai: did you understand how i solved your first problem?
<14> Could it be that the file php_mssql.dll is in the ext folder? or does it need to be in the php root?
<1> deadroot: Yeah
<0> MadSekkai: the second one isn't efficient
<15> Aubs: Does the php_mssql.dll file exist, and is it in the directory defined in extension_dir
<1> deadroot: How would you make it better?
<0> what is the str_replace for anyway?
<1> hrmm... extra code?
<0> it removes new lines
<14> wobbles: extension_dir = "./" but the extension files are in the "ext" folder. I'm guessing the "./" is the root of the PHP folder?
<0> anyway, for the regex, '/(<title>[^>]+<\/title>)/'
<0> i would place the '(' and ')' directly at the target
<0> '/<title>([^>]+)<\/title>/' and use $result[1]
<15> Aubs: ./ is usually the current working directory - which could be anywhere.
<15> Aubs: extension_dir needs to be a filesystem path, not a web path
<14> wobbles: It is set as default. I haven't changed it, so I ***ume PHP wanted it like that
<15> Aubs: Never ***ume :-)
<1> and since I have $foo good
<1> I would use it like grab_title($foo)
<1> right?
<14> wobbles: lol :o)
<14> hmm, ok! right, I've copied the php_mssql.dll to the /php/ folder. Worth a try... Do I need to just restart the apache server or reboot the PC?
<0> MadSekkai: considering i don't have access to the source, i would have to guess :P
<1> deadroot: This is all for a WordPress plugin
<0> MadSekkai: i haven't used any third party scripts yet
<15> Aubs: I'd redefine the ext dir to be wherever the extension dlls are stored; then to re-read the ini file, you just need to restart apache.
<0> except for that phpmailer at that one time :)
<15> Aubs: I haven't used php/windows for years, so I'm running from memory here.
<14> Well there are dll files in the root of the PHP folder, which is why I thought not a good idea to redefine the extensions folder...?
<14> heh, np ;)
<14> Thanks for your help, much appreicated!
<1> hehe
<1> deadroot: Beware of my fugly code! Weee! http://pastebin.com/650984


Name:

Comments:

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






Return to #php
or
Go to some related logs:

ETHTOOL_OPTS+auto
#perl
#mysql
#physics
#sdl
xolphin.net
#sql
C compiler cannot create executables in Xubuntu
#linux
fglrx-kernel-build.sh Build of kernel module failed



Home  |  disclaimer  |  contact  |  submit quotes