| |
| |
| |
|
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
Comments:
<0> no luck with simplexml, I'm stuck with php4 <1> who would to do if($id=="success" && $name="any posible string") <2> mickly: that statement makes no sense <0> I'm making a soap request using curl and need to parse the response <1> how would you do ........... <1> my bad typeing :P <2> emp292: time to play with expat <2> mickly: $name="blah" will always evaluate to true <2> mickly: do you mean $name=="blah"? <0> ideally I would use the soap extension but it's an old solaris box and they won't let me recompile php <3> anyone dare to explain why imagecreatefromxpm doesn't works? <4> Is secure save a p***word in $_SESSION ? <0> JAJMaster: do you think I'm better trying to write an xml parser? <0> it's only about 4 values I'm concerned about <5> Fushuing, are you using PHP on Windows, or do you have version 3.x? <3> PHP on windows, indeedy
<2> emp292: if the response will always look the same, except for the value, you could always hack it...not pretty, but could work <5> Fushuing, is it a remote file? <0> JAJMaster: i think I can get away with it ... the application will be rewritten in .net in a bout a year ... shudders <2> josebravo: that depends on the security of the system that the session info/file is stored on. <6> personally I use DOM in php 4 <3> Elviso: it's on the local harddisk :S <5> hrmm <3> the problem is, it doesn't even recognizes the function <6> if you really can't get an xml parser, regexes can work, they're just painful to maintain <3> imagecreatefromxpm('encrypted.xpm'); <-- doesn't works <0> Xyphoid: don't you have to compile php with dom enabled ... if so I'm sol <4> Is secure save p***word in php sessions? <5> Fushuing, is your PHP compiled with the bundled version of the GD library? <6> I could have sworn php4 had it by defalt <0> let me check <3> Elviso: i guess so, i've been creating an image with PHP's gd functions... <1> but I don't know what blah is going to be so it has to except anything <3> of course! I'm using the pre-compiled binary for win32! <2> emp292: sample code for parsing MAME -listxml output: http://pastebin.com/718028 <7> hi, i'm trying to p*** multiple .ini parameters to php via -d on command line <7> is this possible at all, do they need to be p***ed in a single -d or does it work with multiple -d ? <7> actually, i tried with multiple -d, but this only seems to apply the first one <3> Elviso: does it works on your system? <5> not sure, I'm using the linux version though <5> I was just going by php.net/imagecreatefromxpm <3> try it <0> Xyphoid: it seems that you need to compile dom into php <3> do you need an xpm to play with? <0> JAJMaster: thanks ... most of the stuff I've seen takes the input from a file but I have a string as the soap response <7> thanks for supporting tor here btw <6> oh, dang <5> Fushuing, yes <0> JAJMaster: that's why I was thinking regex <3> Elviso: accept <5> I did <3> -_- <5> my firewall blocks file xmits <0> plus I'm a perl guy so I naturally lean that way <3> http://pastebin.com/718037 <-- xpm file <0> you guys are right though ... it's going to be a nightmare to maintain as soon as they add more elements <5> ok, sec <3> oops, didn't pasted it all :S <3> http://pastebin.com/718038 <-- has it all <5> ok <5> Fushuing: no error for me <0> so any hints on getting the values out of "'urn:xmethods-CurrencyExchange'><Result xsi:type='xsd:float'>208.4569</Result>" <5> Fushuing: imagecreatefromxpm('encrypted.xpm'); <2> emp292: you could get really ugly and parse the string until you found "<Result", find the next ">" and then pull the value bytes until you get to the next "<" <3> Elviso: i get undefined function <8> is there a function to delete a value from an array? <5> you looked at php.net/imagecreatefromxpm and you satisfy all those requirements? <3> yep <5> odd <9> anyone know a good web-based php editor? <3> could you pm me the code you used? <5> Fushuing: I just used imagecreatefromxpm('encrypted.xpm') <9> I am on the go a lot and a lot of places only have port 80 access so it would be nice if i could install a backend that let me edit any files on a server with a textarea or something... surely something nice has already been written to do this.. <3> and what did you get to see? <5> Fushuing: http://kenman.net/t/xpm/ and http://kenman.net/t/xpm/index.phps <6> emp: preg_match('([.0-9]+)',$str,$regs); echo $regs[0];
<6> it's going to die if there are other numbers in the string, though <3> could you show me the outcome? <3> ...a blank page? <5> its just a resource handle <5> I'm not sure what to do from there, print just prints the resource ID <0> and the values aren't always to be integers <3> let's see.....how do i move files to my linux box... <1> what is the best way to p*** varibles from one page to the next <6> emp: $regex = "#urn:xmethods-CurrencyExchange'><Result xsi:type='xsd:float'>([.0-9]+)<#"; preg_match($regex,$str,$regs); echo $regs[1] <6> oh <10> POST, GET or SESSION vars <11> caps <6> $regex = "#urn:xmethods-CurrencyExchange'><Result xsi:type='xsd:float'>([^<]+)<#"; preg_match($regex,$str,$regs); echo $regs[1]; <0> I tried this to no avail: preg_match("/(<Result).?>(.)(<\/Result)/",$string, $matches) <6> oh, it can be something other than float? <0> yeah, basically anyting between >fooo< <8> is there a function to delete a value from an array? <8> pardon <3> eeh, Elviso... <8> to find _and_ delete a value from an array <3> i just ran it on my FreeBSD machine....and i get the same error :S <6> but it's always xsd:float? or you have to allow other things in there? <4> When I start a session, where is saved this information? <5> Fushuing, with code similiar to mine? <0> i have to allow other things <3> EXACT same code -_- <3> ....did i compile GD with PHP? :S <10> majd: use unset <6> $regex = "#urn:xmethods-CurrencyExchange'><Result xsi:type='xsd:[^']*'>([^<]+)<#"; <8> bacula, k <10> JoseBravo: on the server, with a session ID cookie saved on your machine <3> i didn't ;s <10> ...or p***ed via the URL <5> heh <8> _hp_, i like it <12> majd: glad to hear <12> majd: except wrong channel <8> yeah sorry wrong channel <8> lmao <4> bacula, in what dir? <13> I can login to my imap server no probs using telnet, but my php imap keeps telling me it can't connect. I'm using the same connection strings and I've checked that I have imap support for my php ... <10> JoseBravo: check in your php.ini <13> what do do ? <13> http://pastebin.com/718048 <4> session.save_path, ok <3> eeeh, where do i get that fancy console menu for building PHP with extensions? <10> babo: can you view your firewall logs on your imap box? <10> JoseBravo: yep <13> bacula: yes ... <3> under freebsd <5> Fushuing: http://kenman.net/t/xpm/index.php <10> babo: is your imap's firewall blocking a port? <3> cooool... <10> babo: remove the @ in from of imap_open so you can see any errors... <4> bacula, Can I save data in my session encrypted or something? <13> bacula: it doesn't spit out any errors unforutnately. I've checked imap'd logs and they don't register a connection attempt. I guess it must be a firewall thing ... but I'm connecting on localhost ? <4> If I save a p***word, user nobody can view my p***word. <13> bacula: i have these lines near the top of my firewall script ... <13> -A RH-Firewall-1-INPUT -i lo -j ACCEPT <13> -A RH-Firewall-1-INPUT -i eth0 -j ACCEPT <0> Xyphoid: you're awesome ... that gives me the value I want in matches[1] <4> I need to save a p***word for c suid, and I don't want to type ir every time that I need execute the suid. <13> I'm also connecting to dovecot on localhost ... <0> Xyphoid: what about ignoring everything after Result until the > <3> COOLIOS <3> Elviso: mind handing me that phps? <6> i prefer keeping as much static as possible when regexing <14> JoseBravo: that leads to pwning so dont <4> Menacer I dont understand.. <15> trying to find a good cl***ified ads script with auto date remover, but I wanted to intergrate it into my website design i have now. Plus I want to set the characters to 33 char. with only 3 lines, but have a charing method to charge them. <14> JoseBravo: what, that you dont have to do it ? <10> babo: if you are connecting on localhost and telnet works it's not the firewall <15> any one got any ideal
Return to
#php or Go to some related
logs:
named.conf dlz installer draconi failed to access torrent temporary
#perl Disk error 80 AX 4280 drive 9F y4mscaler deb #linux #fedora sesamia street flash animation
#lisp
|
|