Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#php

02 January 2008


Total 44 pages. You are browsing page 1/44.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Wed Jan 02 00:00:06 2008
00:00 <****> Wolfpaws: the solution was constant(). THX again.
00:00 <****> the charset in the HTML is correct (UTF-8), mysql db is set to UTF-8 and the UTF-8 character is in the $trans array, still it doesn't convert "ü" to "ue"
00:00 <****> ahhh just read not all program's output are captured with exec
00:00 <****> cizzi: You just have to make sure, that exec() can execute whatever you're execing via the www user
00:02 <****> Tim, that's quite odd. I'm not sure, but perhaps there's a bug within the function.
00:02 <****> wolf - can i make it execute as anotehr user? cause I cant login as the www user.. i dont know the password
00:02 <****> by function I'm referring to the official php apis you're using
00:02 <****> i dont want to reset it, then apache might not work?
00:02 <****> Does anyone see a reason why theses 3 lines of code arent saving anything?
00:02 <****> http://pastebin.com/m6c3ad04b
00:03 <****> clamiax: Heh.
00:03 <****> orion1: php.net/mysql-error
00:04 <****> TML: i am not getting an error
00:04 <****> cizzi: Erm? That shouldn't matter...
00:04 <****> orion1, that function gives you the error
00:05 <****> orion1: How on earth could you possibly know that without asking mysql?
00:05 <****> Tim: Are you on windows?
00:05 <****> Wolfpaws - i can 'passwd www-data' ?
00:05 <****> conner_bw: OSX 10.5
00:05 <****> Tim: ... weird ...
00:05 <****> hmm or su www-data
00:05 <****> and run it like that
00:05 <****> if it works then it should display in exec
00:06 <****> im using the function inside a CMS right now, im gonna isolate it into a seperate file and test around there
00:06 <****> i got a feeling the CMS screws it up
00:06 <****> ahhhh permission denied
00:06 * orion1 I should of added or die mysql_error() that told me what was wrong sorry
00:06 <****> wonder why
00:06 <****> it works when i use it in a file without charset
00:08 <****> can i have the exec() command run as antoher user other than www-data?
00:08 <****> hi
00:13 <****> Tim: Try this version: http://pastebin.com/df514959
00:18 <****> cizzi: You want exec to run as a user other than www-data? or you want to run it as a user that is different than what the server is running on?
00:19 <****> How can I interactively execute a command from CLI php script? e.g. - I want to execute a command that requires input from the user
00:20 <****> grncdr: not possible, far as I know. I looked into it a couple years ago
00:21 <****> MonkeyMan: I was hoping I could pull it off with proc_open
00:21 <****> damn
00:22 <****> you can
00:22 <****> WhiteWolf: ?
00:22 <****> @tim: Last one from me: http://pastebin.com/d2037176d
00:22 <****> That procedure says pretty much exactly what you wanted :)
00:22 <****> hi
00:23 <****> you can interact with simplistic applications with php using proc_open
00:23 <****> i've a little problem with a little script
00:23 <****> conner_bw: thanks again
00:23 <****> As your file is UTF-8, i think it's best to fix any text that isn't, leave any text that is. But... just guessing here.
00:23 <****> sounds good though :)
00:23 <****> anyone can help me?? http://rafb.net/p/zUNLDg69.html
00:23 <****> Argh... i'm wrong. 1 sec
00:23 <****> the script say's: Parse error: syntax error, unexpected T_VARIABLE in /var/www/template/netti/gestore_cms/login.php on line 5
00:23 <****> WhiteWolf: that's what I thought, but I can't seem to figure out how to 'connect' the console standard in/out/err to the process
00:24 <****> grncdr: STDIN is a file descriptor describing STDIN
00:24 <****> @tim: http://pastebin.com/d636487cf
00:24 <****> Good luck
00:25 <****> function read_input() { return str_replace(array("\r", "\n"), '', fgets(STDIN)); }
00:25 <****> thanks a lot, im gonna sleep over it now and try more tomorrow
00:25 <****> hope im not dreaming of encoding...
00:26 <****> Tim, i tested it (saving my file as ISO-8895-1) and it seems to work now
00:26 <****> WhiteWolf: I'll try that. I was trying to fwrite to the pipe with STDIN, and fwrite(STDOUT, stream_get_contents($pipes[1]) but it didn't seem to do much...
00:27 <****> grncdr: well, that should work, but make sure you're not blocking
00:27 <****> hey. Newbie question: All pages that have php stuff in it have to be .php, and not .html right? So if I wanted to add some functionality to some existing html pages, they all have to become .php pages right? Of is there a way to trick that?
00:27 <****> hendrixski: well, by default most people configure only .php to be run through the engine
00:28 <****> hendrixski: but you can assign any arbitrary extension to be parsed as php code
00:28 <****> WhiteWolf: blocking?
00:28 <****> grncdr: some I/O operation waiting for something to complete
00:28 <****> for example, fgets will block waiting for EOL
00:29 <****> WhiteWolf, oh, but that's a per-browser thing? so if others viewing my site don't have .html configured as running php then it wouldn't work... did I catch that right?
00:29 <****> hendrixski: keep in mind php is server side
00:29 <****> hendrixski: no it's a per-server thing
00:29 <****> so the *server* has to be configured to run the code
00:29 <****> ah
00:30 <****> and is that fairly uniform between servers? like if I learned how to set .html to run php on apache, would that work on IIS?
00:31 <****> you can do the same thing on almost any webserver
00:31 <****> be it lighty, apache, iis, ... whatever
00:31 <****> cool
00:32 <****> Is there a built-in function to validate the syntax of an XML string? (PHP5, of course!)
00:32 <****> trying to parse it with dom or simplexml is a somewhat simplistic way of checking
00:33 <****> WhiteWolf: yeah, but would be cool if DOMDocument had a static method to check or something.
00:33 <****> Tim: http://pastebin.com/d7d0bf5e1 (sorry, typo in the last one, dunno why i'm so into this, good times)
00:33 <****> orion1: XMLReader::XML
00:34 <****> If it returns true, the document is well-formed
00:34 <****> which is probably what you meant instead of 'valid'
00:35 <****> If you *ACTUALLY MEANT* 'valid', then use DOM::validate
00:35 <****> DOMDocument::validate, that is
00:35 <****> TML: if you are talking to me, then yes, I mean well-formed.
00:35 <****> Oh, that's a Q
00:35 * TML gets a better font
00:36 <****>schemaValidate($schema)) return true;
00:37 <****> hehe. Ok, it doesn't look like there is a portable way of doing this, so it's not a big deal. It would be nice to throw an exception instead of a warning, but whatever.
00:38 <****> try { } catch (Exception $e) { }
00:38 <****> why do you say there's "not a portable way"? What kind of "portability" are you looking for?
00:39 <****>load() doesn't throw exceptions.
00:40 <****> TML: How many kinds of portability are there? Portable is portable: works on quite a bit of webservers without much extra
00:40 <****> WhiteWolf: sorry to keep bugging you on this, but I can't figure out why this function doesn't work right: http://pastebin.org/13778
00:42 <****> Qarl: Well, there's "portable between PHP4 and PHP5", "portable between PHP4 and Ruby", "portable between PHP5 and Ruby", "portable between PHP4 and Python"....
00:42 <****> The list goes on nearly ad infinitum
00:43 <****> TML: We can be ridiculous if we want. ;) I think you know what I mean.
00:43 <****> I honestly did not know what you meant, which is why I asked
00:44 <****> bbl


Total 44 pages. You are browsing page 1/44.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo