#php
04 October 2007
Total 38 pages. You are browsing page 1/38.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Thu Oct 04 00:00:49 2007
00:00 <****> zeitsofa: And /etc/php5/apache2/php.ini has extension=mysql.so in it? And /usr/lib/php5/20060613+lfs/mysql.so exists ok?
00:01 <****> but that doesn't work!
00:02 <****> the form submits to another script, andf that script is supposed to have this header information in it. I have no idea how that header info gets set
00:02 <****> Poundo: I told you to install GD module for PHP
00:02 <****> the header() command at the top of the form script only sets the headers for the form page
00:02 <****> extension=mysql.so is into php.ini right - but the lib is not into /usr/lib/php5/20060613+lfs - i will install it now and try it again ;)
00:02 <****> the RESPONSE for the GET for the form page
00:03 <****> phpn00b: paste your code
00:03 <****> but I think that you want to do imposible thing
00:03 <****> but the connection between the form submit action and the script that serves as the forms action is a mystery
00:03 <****> let to do this for that guy
00:03 <****> ok I'll simplify
00:03 <****> MarkL thx for help it works :)
00:04 <****> zeitsofa: apt-get install php5-mysql? ;)
00:04 <****> if I had:
00:04 <****> marca_na that it is :)
00:04 <****> how can i output many images on a page via imagejpeg ??
00:04 <****>
00:04 <****> i can only output 1 :s
00:04 <****> tags
00:05 <****> and action.php needs to read the headers from that GET or RESPONSE or whatever from the form
00:05 <****> 1.) how does the form send headers?
00:05 <****> 2.) how does action.php read the headers?
00:05 <****> form doesn't send headers
00:05 <****> Naktibalda, have you red me ?? "via imagejpeg"
00:05 <****> kaydara: yes
00:05 <****> k thanks!
00:06 <****> you asking stupid question :)
00:06 <****> you can't output an image directly to page
00:06 <****> ywith imagejpeg
00:06 <****> i am outputing, but only one, i need various
00:06 <****>
00:06 <****> ah
00:07 <****> put this to html of page
00:07 <****> when you make a variable within a function global, is it only global for that page?
00:07 <****> ok Naktibalda understood
00:07 <****> swimrr: you don't make it global
00:07 <****> I'm trying to deal with parsing some HTML in CDATA within an XML doc and running into a problem preserving the HTML inside nodes:
00:07 <****> http://www.pastebin.ca/724816
00:07 <****> you make a variable from main scope visible in that function
00:08 <****> Can someone please take a look at tell me what needs to be done?
00:08 <****> Naktibalda: errr....that's what I meant I guess
00:10 <****> can someone tell me why this: return preg_replace('/[^a-zA-Z0-9]+/ ', '', $str); also filters spaces
00:10 <****> mmm
00:10 <****> i want it to allow spaces
00:10 <****> but it replaces spaces with ''
00:10 <****> anyone able to make sanjer use unicode instead of UTF-8?
00:11 <****> todd-: than add a space between []
00:11 <****> oh so what is the space after +/ for then?
00:11 <****> for nothing :)
00:12 <****> thanks that worked
00:13 <****> i'm modifying php from source and i've got a mysql-configuration here that does not allow connections to the local socket, because it's being redirected to another ip. so a mysql-connect to username@localhost will fail, but username@127.0.0.1 works since mysql connects to the local socket if "localhost" is supplied as server. now i'd like to modify that part in php which connects to the mysql-server; i'd like to let php check if "localh
00:13 <****> ost" was supplied as server, and if yes, then it should be replaced with "127.0.0.1"
00:13 <****> i spent the last hour to figure out where to modify that, but i was not successful
00:14 <****> so all i need to know where exactly the connection to mysql is being made, because it *seems* to me that php_mysql.c is not the right file
00:15 <****> o_O
00:15 <****> isn't it easier to fix a server configuration?
00:15 <****> no, it's not possible to teach mysql to use 127.0.0.1 when localhost was supplied
00:16 <****> i'm pretty sure, many mysql-devs also agree: supplying "localhost" will ALWAYS connect to the local socket instead of the tcp-ip-connection which is equal o 127.0.0.1
00:16 <****> I have never seen a computer where localhost != 127.0.0.1
00:16 <****> for mysql localhost != 127.0.0.1
00:16 <****> for mysql 127.0.0.1 really means the ip, but localhost means the local socket
00:17 <****> now i'm asking myself where to modify that in the php-source since my efforts within the last hours were not successful
00:18 <****> myUser@localhost != myUser@127.0.0.1
00:18 <****> true..
00:19 <****> I know ... :D LOL
00:20 <****> I'm trying to deal with parsing some HTML in CDATA within an XML doc and running into a problem preserving the HTML inside nodes:
00:20 <****> http://www.pastebin.ca/724816
00:20 <****> Wolfy: thanks for the repeat I found this, http://ubuntuforums.org/showthread.php?t=252842 re ubuntu builds that kida explains what the state of gd is out of the box so to speak. thanks again!
00:20 <****> any ideas? :/
00:20 <****> i'd also need that modification for PDO_mysql
00:21 <****> majmun, you can connect with user@127.0.0.1 but not with user@localhost ?
00:21 <****> yes true
00:21 <****> nah, also for mysqli
00:22 <****> maybe you don't unterstand why, i'll explain it:
00:22 <****> all requests on the local computer at port 3306 are being redirected to another computer - the database-computer
00:22 <****> so 127.0.0.1:3306 connects to that database-computer
00:23 <****> but mysql doesn't care that localhost means 127.0.0.1 since "localhost" _always_ means to connect to the local socket
00:23 <****> majmun: I took a look at php_mysql.c
00:23 <****> instead of the ip 127.0.0.1
00:23 <****> did you analyzed static void php_mysql_do_connect(INTERNAL_FUNCTION_PARAMETERS, int persistent) ?
00:23 <****> that's the reason why i'd like to change that behaviouir
00:23 <****> majmun: Maybe you can fool it by connection to http://localhost :o
00:23 <****> *connecting
00:23 <****> is there a way to have information in a form field from a database when a page is called ?
00:24 <****> in my html, it's never getting to the function. If I remove the include file, it lets me know. But if I put an echo in the called function at the beginning, or in the calling page...
00:24 <****> ...after the call, it's never displayed...never gets there. If I remove that call, the next one, same type, to a different file, does the same thing. What can cause this?
00:24 <****> the problem is: there are many (also unexperienced) users who should not bother with that problem; their script's default setting "localhost" shall connect without further problems to the dbv
00:24 <****> Naktibalda: yes i did
00:24 <****>
00:24 <****> but 1. i'm not sure what to change, 2. everything i changed did not help
00:24 <****> majmun, did you try with disable local lookup for localhost ?
00:25 <****> :)
00:25 <****> how?
00:25 <****> you should ask this question in some #php-dev or #c++ channel
00:26 <****> uh, i did not know about that #php-dev
00:26 <****> Poundo: I told you specifically to install GD module for PHP. I can't be held responsible, if you can't use your package management.
00:26 <****>
00:26 <****> :)
Total 38 pages. You are browsing page 1/38.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
