| |
| |
| |
|
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> is sending unicode emails that support multi byte character same as sending normal email with mail() ? <1> ironman1234: php should preserve whatever input you provide, but you'll definatly need to add the smtp content-encoding headers <2> Leo18: % which perl <0> thanks <1> ironman1234: if you need to do anything with the content, you might need php.net/mbstring <3> cw : yes . Even p***thru("/usr/bin/perl /home/httpd/vhosts/clicboutic.com/httpdocs/facture/gen.pl"); <3> does'nt work <4> $displayHectares = ($test_Lotsize >= 1) ? true : false; <4> is that correct form for inline if? <2> Leo18: Are you positive the paths are correct? <3> yes <2> Leo18: You can run the same command from a shell and it works? <3> yes <1> Leo18: something in your script that calls system commands without a full path? <1> or that depends on env vars? <2> Leo18: And how do you know that it "doesn't work?"
<3> it should creat file <2> Sure permissions on the destination directory are correct? <3> yes (chmod 777 ) <2> So it creates the file successfully when you run it from the shell, but not when you run it from within PHP? <5> *scrolls back a bit* <1> are you running from the httpd or www-data or whatever user <5> IRC is like daytime soap. You suspect people are more intelligent in real life. <6> Is there a way to use abstract cl***es/interfaces to limit the implementing cl*** to only the interface public methods, and/or make the implementing cl*** only be allowed to have the same parameters for its methods as the abstract/interface <6> Does that make sense at all? <2> Xen0n: Why would you have non-public methods in an abstract cl***/interface that you don't want subcl***es to implement? <3> cw : i dont know <6> Elazar, i'm not worried about the non-public methods... only the public methods matter for the interface... private/protected can be whatever <6> Elazar, what i mean is i want the subcl*** to need to have matching public methods for each one in the interface <7> what is CVS integration please <2> Xen0n: Um... isn't that kind of the point of having abstract cl***es/interfaces to begin with? <6> yeah <2> ace_me: Do you know what CVS is? <2> Xen0n: Either you just answered your own question or I don't understand what you're asking. <6> Elazar, but does it force it? will it error if the subcl*** doesnt implement all of the abstract public methods <2> Xen0n: Should, yes. Like I said, that's kind of the point. <1> if the docs aren't clear, you could try it <6> ah, right <6> Well, thats good :d <2> Xen0n: Sounds like you need a brush-up. :P http://us3.php.net/manual/en/language.oop5.php <6> Elazar, what about forcing parameters to be the same? can you specify parameters in the interface/abstract ? <2> Xen0n: OK, you seriously need to re-read the section on Cl***es/Objects for PHP 5. <8> Xenon: Of course, you could repent your sin of object oriented programming and return to the purity that is proceeduralism. But that's just my view. :P <6> Elazar, heh, i'm moving from php4 to php5 here, i dont know how all the new object model works <1> ace_me: "CVS integration" sounds like a buzzword that means a developemtn tool has a built in menu with canned cvs commands, to easy using a cvs server <6> Ahroun, no chance :P <6> Elazar, thanks, ill read that - i was reading some migration guide, but it wasnt very specific <2> Xen0n: Cl***es that extend an abstract cl*** or implement an interface must have methods with identical prototypes. That's the whole point of using them. <2> Xen0n: Find a Java tutorial on the subject of abstract cl***es and interfaces and it should explain the underlying concepts. <9> hi everybody <8> HI DR NICK! <10> hello =] <9> is there an option to switch on the output of a complete stack for warnings and errors? <6> Elazar, i thought as much, i didnt know how PHP implemented it though - i guess i am too used to the half-an-object-model of PHP4 .... <11> Im trying to take an html file and do a preg_match for certain values but I get the following error <11> reg_match() [function.preg-match]: Unknown modifier '<' <12> is there a function to dump a binary file to the output? <12> (other than include who try to interprets data) <9> hartym: fp***thru? <13> hartym: readfile, file_get_contents, fp***thru.. <12> faber2, thanks, should be the one seeing its name <14> I need to write to a file, but I only have access "w" to the file trrought a FTP session. What are my possibilities? <8> beatdown: Temporarylocal file, edit that, reupload? <14> mmm... I think I can write to /tmp t create the temp file <14> I'm checking <2> workRelated: Pastebin your code. <8> Why can't you do it locally? <14> because the PHP configuration doesn't allow me to write <14> probably I could write to /tmp <6> Damn, this database abstraction layer is going to be so much better in php5 <2> mattmcc: The ability to have cl***-level variables? <14> do you understand, Ahroun?
<6> mattmcc, abstract cl***es for the actual database cl***... <6> mattmcc, force all drivers to conform to the interface... <13> Xen0n: Wouldn't make it work any better. <8> beatdown: No, not really. What are you trying to do? <14> can I create a file "in memory", not in disk, and then put it through the ftp? <6> I want to make things more rigid <13> Abstract cl***es aren't all that important, really. They just make some people feel better. <13> The same can be accomplished with decent documentation and discipline. <15> Hello: I'm trying to get php5 working with SSI includes under apache 2.2.0. I can load a index.php page correctly, but using an <!-- include file=foo.php --> won't work Any ideas on what to check? <16> Xen0n, interfaces are better for making things conform to APIs.... <14> Ahroun, there is a PHP server in a remote machine. It doesn't allow to write (perhaps only in /tmp), but I need to write to a file. I can write if I start a ftp session. <6> Davey|Work, well, i am trying to create a common API for my database abstraction layer, while making it impossible for an addon database driver to break that API (as such) <6> Well, actually using interface here, not abstract cl*** (for this one) <6> because it doesnt actually implement anything itself <14> because the login on the ftp give me access for writing,do you understand now, Ahroun? <6> its just a template <8> beatdown: *nods* That makes sense, even if it's stuid. I'd be finding a different server in such a situation. However, your immediate problem is this -- you need to generate some output and save it to a file via FTP. <6> hmmm, using abstract cl***es as a namespace, should i be declaring everything static? <14> right, Ahroun. can I save some output via ftp without creating a file "in disk"? <6> Meh, i know... I'll run with error_reporting(E_ALL|E_STRICT) and find out <6> :D <8> beatdown: I don't know. But I think now things are clear enough that there is a solution, someone might know it. <2> beatdown: At the least, you need a file pointer, if not a file name, so if you're using the FTP functions from PHP, I don't believe there's a way to do what you're asking. You'd have to open up a stream and manually send FTP commands through it to be able to accomplish that. <14> thanks, Ahroun. <14> thanks Elazar <2> Narada: Who's Yo? :P <17> Elazar: lol <17> Elazar: #mysql <13> Yo Yo Ma! <13> But why wouldn't you want to help Yo Yo Ma? <2> "You ****, man, but Yo Mama sweeeeeeeet." :P <18> hi <15> Is there a way to debug failing include statements such as <!--#include file="foo.php"> <19> hi <13> Dforge: Well, it's an SSI directive. So, check your web server log? <19> hi, I have a php script that executes quite a few commands <19> is it possible to use mysql to figure out the commands that were executed ? <13> Log queries? <20> hello. is it possible that preg_match_all() converts certain characters? <20> e.g. <15> mattmcc: Perhaps I need to add more detail, the file is named index.html . If I make a test .shmtl it works. <15> How do I enable ssi for html? <21> how do I find out what button was pressed to submit the form? <21> I have 2 buttoms in same form, and I want them to have different functions with same form variables. <13> FatalRemedy: Either give them the same name, and check the value, or give them different names, and check for presence. <8> FatalRemedy: Name them two different things then check to see which exists in the submission. <13> The best solution would be to use <button>, but IE's support for that ****s too much. <15> Fixed. <15> Apparently 1.3 was much more loose about how mod_include worked. <15> If I added AddOutputFilter INCLUDES .html, it fixed my page problem. <21> Ahroun, but how do I see what button was pressed? <21> like I dont know the variable. <22> hi all <21> I want to case for it at the top of program. <22> in the command mail it goes mail(to,subject,body,from); right? <21> if ($_GET[button] == "preview) <21> but I dont know what the submission variable is. <23> If I try to fopen("amazon.php?asin=B0009YA386","r") I get an error: Warning: fopen("amazon.php?asin=B0009YA386","r"): failed to open stream: No such file or directory. If I do fopen("amazon.php","r"), its fine. How can I send variables? <13> Fango: Erm. You're not 'sending variables' by doing that. <24> Fango; You should use fopen ('http://site.com/amazon.php?asin..'( <23> ok, thanks <13> Well, amazon.php is a local file, right? <23> yeah <13> Why aren't you using include? <25> How do I set PHP to use character_set_results=utf8? PHP is using latin1 when connecting to Mysql through PDO. <23> mattmcc: the php outputs a load of XML <23> which I am then parsing into PHP <23> sorry, I think I am adding about 3 unneccessary steps <13> Okay.. But fopen isn't going to parse amazon.php. <23> mmm... but it is a step in parsing the xml output of amazon.php <23> but I really dont need to do it... I am being an idiot <23> sorry
Return to
#php or Go to some related
logs:
xorg debian mga_hal #osdev mmmmeow rtlinux 2.6 local version #lisp ERROR 1033 (HY000): Incorrect information in file ironuckles #linux fakeraid centos #kde
|
|