| |
| |
| |
|
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
Comments:
<0> i'm not sure if imagick docs are upto date <1> zircu you need something with IM ? <2> mazzanet: o.O <0> Jymmm: ? <3> machines A and B running same php, same web server they are both pointing at machine C machine C has a page of html that both machine A and B are pulling down and running preg_match on. Extracting data from the same page. Machine b for some reason misses one variable <2> mazzanet: um.. we *know* Sal o.O <1> zircu are you trying todo something in IM? <4> I find that ImageMagick is better than GD for picture management. <5> Stormchaser: i still submit that unbanning most of italy is a good idea =/ <4> Faster with better optimized files sizes and proper proportions. <3> preg_match('(Author<\/td><td cl***="bodytext" align="left" valign="top"><.*>(.*)<\/a><\/td><\/tr>)s', $contents, $author); <1> JetBlackT IM is better for a LOT of things. <4> Jymmm What is IM ? <1> IM == ImageMagick <4> oh, sorry, too many screens. <0> JetBlackT: true but considering the documentation on gd vs i/gmagick gd is easier to use
<2> mazzanet: Better put: We know Sal <2> 's stupidity <6> JetBlackT: I am sure Imagemagick is much better than the GD library for some tasks. The easiest way to use it is to invoke the imagemagick binaries directly as external processes. <0> i have a sharpen image patch for gd i wish could be added <2> zircu: Post it to internals or bugs.php.net <6> The imagick extension is an experimental PECL thing <5> Stormchaser: even if there's a problem with Sal, taking it out on all of italy on ##php 's main support channel? <7> now i'm scared <7> the irc time in xchat is different to my system time <1> tempest1 enough already. <5> "irc time" ? mazzanet, i don't think the IRC protocol sends time <5> Jymmm: it's still a valid point <7> it doesn't <2> mazzanet: Means the internet thinks of time differently as your system does o.O <7> i mean, the timestamps <5> yea, that's weird <7> Stormchaser: yeah i'm trying to find a patch <7> we're currently in daylight savings which would normally end today <4> I just ripped out IM and will attemped install using up2date <7> but it's been extended for a week or two because of the commonwealth games <2> mazzanet: Hm... Try #xchat... <4> I just ripped out IM and will attemped install using up2date <7> oh dear... <7> the clocks on all my pcs on my lan have a total of 4 different times <1> mazzanet: Spring, Summer, Fall , Winter ? <6> grendal_prime: Well, it sounds entirely possible that that could happen, particularly with larger web sites which may deliver content based on location of the requester. <8> Hi all! I cannot create XML files with ", can someone please help? Either it contains " or &quot; <6> grendal_prime: Moreover, are you sure that you've got *exactly* the same PHP version and options on the two servers? <6> grendal_prime: Have you saved out the HTML and diff'd it? <8> here you can see my test code in a forum, none of them works: http://weblabor.hu/forumok/temak/12569 <3> MarkR, working on getting that now... <3> the server checks referer and then redirects so its kinda a bitch but i think ive got it <7> Stormchaser: http://www.linuxsa.org.au/pipermail/linuxsa/2006-February/082329.html <7> see what pain we've been put into <2> $entry->nodeValue = "&quot;"; <-- *blink* <6> LionKMP: Because " and " are equivalent, in an XML text node. The XML implementation simply chooses to use " instead <2> mazzanet: wtf?!? o.O <7> Stormchaser: commonwealth games. <2> mazzanet: Stab them. Tell them I told you so :) <9> how can I get the URL of the current page without parameters? <2> __FILE__? <2> Er. No. scratch that. <9> something like REQUEST_URL or whatever without ?xx=yy&... <0> $_REQUEST['SCRIPT_URL'] <4> Ok, found in my php.ini file that I have extension=/usr/lib/libMagick.so.6 <8> MarkR: I made a very big program which processes files, uses data in database, then exports the files back. And I am unable to export the same file content due to those changes. <9> zircu: thanks <4> Causing error : PHP Warning: Unknown(): Unable to load dynamic library '/usr/lib/php4//usr/lib/libMagick.so.6' - /usr/lib/php4//usr/lib/libMagick.so.6: cannot open shared object file: No such file or directory in Unknown on line 0 <0> JetBlackT: that looks like a wrong extension= setting <2> o.O <4> file is located /usr/lib/libMagick.so.6 <8> MarkR: isn't there a way to force it? At least until I can run my "diff" tests to see that the output is correct in other regards (thousands of xml files). <2> no <2> JetBlackT: You should compile PHP imagemagick extension. <0> JetBlackT: did you compile ... see Stormchaser's comment ^ <4> That is actually a symbolic link libMagick.so.6 -> libMagick.so.6.0.7 <8> Stormchaser: $entry->nodeValue = "&quot;"; that results in &quot; in the output file too. <4> No, havnen't compiled with it. <0> JetBlackT: still wrong <6> LionKMP: This is one of the problems with XML, several different files can represent the same XML document. You should consider transforming your XML files into canonical form before the diff. This is nontrivial, by the way. <4> I am not really at that level of recompiling PHP. I don't want to screw anything up on this box.
<1> JetBlackT: Then just use `` <0> JetBlackT: you can do compile it without rebuilding php all together <4> Before I used to use Cpanel I had an auto config thing, but now I am pure command line. <4> zircu: How so? <8> MarkR: ok, thank you. I'll try to examine the resulting ~80-100 files manually then. :-) <8> I mean the different ones. <8> gvim -d is not that bad tool ;-) <0> JetBlackT: http://php.net/install.pecl.phpize <0> be sure to read http://php.net/indtall.pecl.php as well <10> wondering if someone can help me with something - i have two cl***es, one for auth and one for db. i create a db object in the header for every page and need to p*** a reference of it to the auth cl*** so it can use it. how can i ***ign the db object to a global in the auth cl***? <10> does that make any sense? <0> err.. http://php.net/install.pecl <6> LionKMP: The only thing I can suggest is that you read in and output the documents, with no changes, before and after, however, it's still not good. I've discussed this with other people before, the issue is basically that XML is non-canonical, i.e. you can have two dissimilar files containing the same XML document <6> There is something called XML "Canonical form" which defines various things - like encoding, and entities <10> oh im using php 4.4 as well <6> SO that there is hopefully exactly one canonical form per possible XML document, or at least, that's the idea. <3> aaaha <3> something to do with magic quotes i think <3> the data that the other server is getting has all the quotes escaped <0> steveb: well you will either have to set the db to a auth cl*** so it knows about it <8> MarkR: I hoped that I can provide the same format as I received for the process, so unless there is no way to export " in PHP-DOM, I'll need to manually check everything and the convience the receiver :-) <8> 160 different files. replace " to " and then compare again. <10> zircu: i tried p***ing the db object to a function and setting it to a global var <10> it didnt like it <11> hmm, why does $qz['file'][0] = explode('|', $qz['file'][0]); throw error: Notice Error: (Array to string conversion) in file main.php on line 69 <11> ? <12> Hey guys..its me again <12> I still can't seem to get sockets working <12> All I want is to be able to read...but my code doesn't seem to work <12> http://straterra.info/nick/email2.phps <13> Questutis, it CREATES an array not 1 entry to an array <3> MarkR, ya...that looks like the problem..two differnt pages compleatly..and now that i think about it, the only text that is located in all that is being harvested that contains..." is that particular field because it has a link aound the author. <3> so the other server has magic quotes enabled on it.. the page that it sees(because its thinking of the included file as input) needs to have the " escaped <7> Stormchaser: great... now i have all these apps that ignore the system clock <2> LionKMP: Why don't you the current one? If the parser has no problem with that, you're okay. <2> mazzanet: o.O The best solution: Move somewhere where DST doesn't exist. <7> :( <8> Stormchaser: do what? use the current one? I looks fine, but I work on files provided and must deliver back, and I am unable to reproduce the original format, so it may not be okay over there who knows... <0> I could make up a name for D in the DST <7> as could i <0> this is the 'Down Under' Stantard time right? <6> LionKMP: The whole idea of using XML, is that if your documents are well-formed, you don't need to worry about whether the other party can understand the format. A valid XML implementation should be able to accept any well-formed document which conforms to the schema <11> hey, how do I eliminate this error ? "Warning Error: (mysql_query(): Your query requires a full tablescan (table quatrux, 23 rows affected). Use EXPLAIN to optimize your query.) in file functions.php on line 121" <6> And the difference between " and " for this purpose is none <8> MarkR: Ok, I'll keep this format, thank you. It's fine! Just makes trouble finding if there is any real error (import - no change - export results in 160 different files due to that :-/ ) <0> Questutis: turn off mysql.trace_mode <11> thanks <8> MarkR: hmm... ok, doesn't matter, I'll compare that way. Just wanted to know if I could switich the XML module to produce " to make test-comparing easier... <6> LionKMP: You may be able to, however, that won't solve the problem, because there may be other cases too, where the same XML is written differently. For instance, encodings, or other entities. <4> when I try to run phpize I get command not found <2> JetBlackT: Do you have php-dev package installed? <12> So, can anyone help me with my socket problem? <4> StormChaser: Checking that rignt now <2> It's Stormchaser. It's a name not status <6> straterr1: You probably don't have the socket module compiled into PHP. It's deprecated in favour of fsockopen, which gives you higher level functions and lets you use the stream functions with it <6> straterr1: Moreover, if you want to send mail, you should use mail() ! <12> I can't use mail() <6> In which case, you should change whatever you need to, until you can use mail() <12> Why? <6> Because it is the Right way to do things. <12> Why is it the right way? <6> Because PHP provides the mail() function so you don't have to write your own SMTP implementation; moreover, this takes advantage of the OS's mail queuing facilities, and is far more likely to have a correct SMTP implementation, and error handling etc <14> how do i insert a php file into an html document. I have a counter.php file that i would like to put in my html file??? <4> Stormchaser: It wasn't installed so installed it and the PECL build worked but I have to add a extension line to the php.ini file. <12> So, you think I should use fsocketopen instead of the functions I am using? <6> straterr1: You *could*, but no, you should not. You should use mail() <4> Do I need to add the locatation of the extension ? /usr/lib/php4/imagemagick.so ? <12> I am going to use sockets anyway <4> or just extension=imagemagick.so ? <12> I just don't understand why I should spend so much time getting mail working on a server that won't have sendmail and that I can't add sendmail when I can do it so easily in telnet <6> straterr1: That is simply the Wrong way of doing it. You're not going to get any gold stars for efficiency (I mean, code-wise, not runtime performance) <6> straterr1: That's not the point- mail() should work, if it doesn't, something is wrong, and you should fix it <4> Is there a commandline commmand to run that shows me what is complied into php?
Return to
#php or Go to some related
logs:
linksysmon portage gnome-volume-manager accessible to all glxgears iknow #perl kde seemonkey openal gentoo conflict #perl LDAP + getting only 1000
malyjarda Debian Sarge repository jailshell ls recursive
|
|