#php
30 December 2007
Total 34 pages. You are browsing page 1/34.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Sun Dec 30 00:00:06 2007
--- Day changed Sun Dec 30 2007
00:00 <****> well I've already implemented it this way
00:00 <****> np
00:00 <****> Wolfpaws, would it have something to do with suEXEC?
00:00 <****> I'll remove it now and see what happens.
00:00 <****> thanks anyway Qube :)
00:01 <****> Milos: just google for 500 error
00:01 <****> it has a big list of possible reasons :)
00:01 <****> Naktibalda: did
00:01 <****> :/
00:03 <****> Milos: It's quite possible... But SUExec is #apache thingy
00:03 <****> Wolfpaws, I'll see what happens :)
00:04 <****> Wolfpaws, but what does it mean by "is$"?
00:04 <****> :/
00:04 <****> hey all
00:05 <****> Milos: Um... You tell me?
00:05 <****> is it considered good practice to add some custom functions to /usr/share/php/local or /usr/share/php5/local
00:06 <****> or should i pick a different place...
00:06 <****> and add that to my php config
00:10 <****> is there any simpe scripts that allows me to send mail through my website using senmail -t command, using linux?
00:11 <****> dvnayande, why don't you use the mail() function?
00:11 <****> i dont know what that is
00:11 <****> im kinda a beginner
00:11 <****> looked at it in php website but cant figure it out
00:12 <****> php.net/manual/function.mail.php
00:13 <****> ill take a look at it
00:13 <****> first of all you need a web server where your php scripts would be executed
00:13 <****> because php is a server-side language, it's executed on the server but not on the client side, like javascript for example
00:14 <****> if there is no ob_end_flush() in a script that called ob_start(), is the buffer output or discarded when the script completes?
00:14 <****> i do have
00:14 <****> everything installed besides mailserver
00:14 <****> $foo = true ?
00:14 <****> (sorry, wrong channel)
00:15 <****> bbs
00:15 <****> well numist, take a look at this page then: http://www.buildwebsite4u.com/advanced/php.shtml
00:15 <****> |Nyte|sleepz: what does that page have too with output buffering?
00:16 <****> oops, my mistake, it was for dvnayande
00:16 <****> dvnayande: http://www.buildwebsite4u.com/advanced/php.shtml
00:16 <****> anyone know if there is a channel for regular expressions and in that case what it is called (I need to find white space characters with preg_replace...)
00:16 <****> thanks
00:16 <****> :)
00:17 <****> ravn: \s
00:18 <****> \s Match a whitespace character
00:18 <****> \S Match a non-whitespace character
00:18 <****> ravn; http://php.net/manual/en/reference.pcre.pattern.syntax.php read that
00:19 <****> im making a flatfile forum but the way ive coded it is in .php pags i have the title and stuff inside that file in variables, how can i make it so posting will work
00:19 <****> replying i mean
00:19 <****> ah hah: "ob_end_flush() isn't needed in MOST cases because it is called automatically at the end of script execution by PHP itself when output buffering is turned on either in the php.ini or by calling ob_start()."
00:20 <****> erm, two questions
00:21 <****> how can I avoid such a cross-site scripting, where a form is submited targeting my website, which changes the already logged in user's password?
00:21 <****> I cannot simply attach a hidden verification code to each of my form, becouse such code could also be mined out using iframe, and javascript
00:21 <****> check HTTP_REFERER :)
00:22 <****> I also cannot check HTTP_REFERER, becouse a clever attacker would use an iframe, fill out the form automatically using JS, and do a form.post within the iframe
00:23 <****> :)
00:23 <****> How can I cast an object (with a class) ? I want to cast a PDOStatement obj, but when I try it (with the serialize method) I get that : Fatal error: Uncaught exception 'PDOException' with message 'You cannot serialize or unserialize PDOStatement instances'
00:23 <****> Is it possible to protect from such thing?
00:23 <****> I don't know, that's why I'm asking
00:24 <****> Right. I have a directory FULL of .php that I want users to be able to see the source of
00:24 <****> a friend says I can do some .htaccess stuff
00:25 <****> how can I stop PHP executing those files and just let apache send them?
00:25 <****> I think that you should use AddType
00:25 <****> I think you should not use addtype :p
00:26 <****> AddType application/x-httpd-php-source .php
00:26 <****> just opposite
00:26 <****> Good to hear ##php has consensus
00:26 <****> hi there
00:26 <****> can someone help me here?
00:26 <****> http://pastecode.net/?action=viewpost&tag=2500
00:26 <****> diafic: anyway it is #apache question
00:27 <****> angr4r0x: what is the problem?
00:27 <****> diafic yeah, you should REMOVE that addtype because now it's running .php around php
00:27 <****> angr4r0x: it does not insert anything
00:27 <****> and you need to disable apache to using php
00:27 <****> i'm not a php person, but i'm using some php code which lets you markup text with symbols surronded by {} . is that a specific library or just something they handcoded?
00:28 <****> angr4r0x: that is wrong in multiple levels
00:28 <****> entie smarty?
00:28 <****> thanks, lemme check it out
00:28 <****> entie anyway it's somekind extension what you are looking for
00:28 <****> not php extension itself but from some ugly nerd
00:29 <****> so the facebook people use php. and they have api reqests which they want in the form of (:title ="{actor} does jumpingjacks"
00:29 <****> err
00:29 <****> hang on, not done
00:30 <****> how about you just rename the files to .txt or something
00:30 <****> "paul"} and the substitution is easy enough, just figured i would see if therea was something out there for it
00:31 <****> entie good to hear but did you read guidelines? :p
00:31 <****> rza: yes
00:32 <****> php-bot guildliens?
00:32 <****> there's no value associated to the variables
00:32 <****> yes
00:32 <****> did i post too much code or something?
00:32 <****> why?
00:32 <****> $id = mysql_query("SELECT id FROM employees order by id desc limit 1", $db);
00:32 <****> im trying to use curl and CURLOPT_POSTFIELDS. I am using http_build_query to make the postfields string. Is there anything I should be aware of when it comes to stuff in that string, that can be dangerous to send?
00:32 <****> mysql_query returns a mysql result set
00:32 <****> statix, I could, but thats hacky
00:32 <****> see php.net/mysql_result php.net/mysql_fetch_assoc
00:32 <****> should I preg_match or filter it or something?
00:32 <****> the postdata comes from a user form
00:32 <****> entie read that 10
Total 34 pages. You are browsing page 1/34.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
