#php
15 November 2007
Total 14 pages. You are browsing page 1/14.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
--- Log opened Thu Nov 15 00:00:01 2007
--- Day changed Thu Nov 15 2007
00:00 <****> secureT $_REQUEST
00:00 <****> ups
00:00 <****> yeah sax is nice for that
00:00 <****> secureT $_SERVER
00:00 <****> but simplexml is simpler
00:00 <****> sorry but brb got a meeting :\
00:00 <****> MUCH more simpler than dom or sax
00:00 <****> TheDeathArt: tank ya
00:00 <****> How can I string interpolate the content of a file? I think this is trivial, but maybe I'm tired :)
00:01 <****> and feeds don't get THAT big to where you would really have to worry about performance
00:01 <****> i think of a big feed as over 100 entries, than maybe
00:01 <****> (the file is something like "body { color: {$something} }" )
00:02 <****> Is there an alternative to suphp? My sysadmin cannot get suphp working.
00:02 <****> He says it kills every php program on the server.
00:04 <****> gnuzoo, suexec
00:05 <****> gnuzoo, probably because he isn't setting it up right
00:05 <****> gnuzoo, are the other scripts using mod_php?
00:06 <****> he says "because other CGI soltuions are fork and exec solutions and php is embedded in the apache process"
00:07 <****> found it
00:07 <****> how can I include files from the root of the server ?
00:08 <****> hi. i installed mysql after php. now i can't see mysql in phpinfo(). do i need to reinstall php and/or mysql?
00:08 <****> "../" referes to the parent directory
00:08 <****> try using it a few times..
00:09 <****> but are you sure that you have the necessary premissions to access the root directory?
00:09 <****> gnuzoo, well php can be run as a fastcgi too
00:09 <****> and that's how suphp works
00:10 <****> you have to map a different extension to mod_php and another to cgi php if one is going to run both
00:10 <****> "Ynsybwl is a big village and should be listed as soon as possible"
00:10 <****> what a classic bug report
00:10 <****> basically you can't have *.php run both on fastcgi and mod_php in the same server instance
00:11 <****> arpad, link :p
00:12 <****> cyth: some crap facebook app, cba to look for it ;)
00:13 <****> k
00:16 <****> cyth once i uninstall the php packages that mediatemple had previously isntalled and then conifugred, compiled,e tc thigns should be fine?
00:17 <****> basically nothing catasrophic can really happen right?
00:18 <****> slb_, of course catastrophic things can happen
00:18 <****> but I can't predict that
00:18 <****> yea
00:18 <****> the worst that cna happen is i get it reprovisioned
00:18 <****> I AM NOT LIABLE FOR ANY DAMAGE PHP MIGHT CAUSE
00:19 <****> so should i just uninstall the packages and give this a sho
00:19 <****> t
00:20 <****> is it theorically possible to implement Digest authentication for PHP4?
00:20 <****> slb_ - seriously nothing can ever go wrong
00:20 <****> things just go less right
00:21 <****> anyone has implemented xapian search engine?
00:22 <****> eix: Yes.
00:22 <****> mattmcc: how?
00:22 <****> im just working with this dv with a botched php package of 4 and 5 so i want to uninstall and just recompile php but i feel liek things will not work proper after the fact
00:22 <****> eix: http://php.net/features.http-auth
00:22 <****> Oh, you said PHP4. Nevermind.
00:22 <****> Upgrade, PHP4 is due for EOL soon.
00:22 <****> cynth, my admin said "maybe I just need to switch completely to CGI based PHP. But performance will likely suck."
00:23 <****> mattmcc: ok..
00:24 <****> Hi is there any function in php which resolves an address like "www.mysite.net" to "http://mysite.net" ?
00:24 <****> this class seems to have Digest support for PHP4: http://www.siege.org/projects/phpMyID/
00:24 <****> but I can't understand how
00:24 <****> Trerer1 you can use this code:
00:25 <****> how do php and mysql actually interact? Paths, Sockets, Ports, PIDs?
00:25 <****> hi there ..
00:25 <****> why doesnt rpm -e | grep ^php work
00:25 <****> kombi: libmysqlclient
00:25 <****> $string = str_replce("http://", "www.", $string);
00:25 <****> $string is your address
00:25 <****> one question: why can't abstract functions be private?
00:25 <****> thanks mattmcc
00:25 <****> slb_: Er, because rpm -e requires an argument?
00:28 <****> someone has an idea?
00:28 <****> equinox0r - look for abstract functions definition..
00:29 <****> when php is compiled with mysql and still you get undefined function mysql_connect, what might be wrong?
00:30 <****> PHP hasn't loaded the mysql extension.
00:30 <****> mattmcc: is that in php.ini?
00:30 <****> That's one place it can be loaded from, yes.
00:30 <****> or you have changed something in php.ini
00:30 <****> I'm running a mysql query that retrieves a date. I want to format how this date looks using the php date()..
00:30 <****> how may one do this
00:31 <****> sw0rdz: use mysql to do it. see mysql date and time functions
00:31 <****> but my query uses *
00:31 <****> sw0rdz: so?
00:31 <****> anyone know if i just uncomment extension=php_soap.dll on a windows box should i be able to do $soap = new SoapClient() ? because i get an error Fatal error: Class 'SoapClient' not found in C:\wamp\www\beta2\application\controllers\test\soap_test.php on line 13
00:31 <****> can i use the date format using the asteririx
00:31 <****> asterix*
00:31 <****> schnoowork have you checked php.ini?
00:31 <****> hmm, things is, I've got to use this remote box running sarge/php4/apache1, I usually put my custom php.ini on first thing, strangely mysql functions won't work..
00:32 <****> sw0rdz: select *, DATE_FORMAT(stuff in here) as formatted_date from mytable
00:32 <****> schnoowork try it, and then restart php
00:32 <****> I'll dig into it..
00:32 <****> How can I have two of the same methods in a class but with different parameters?
00:32 <****> thanks, caffinated
00:32 <****> juanbond: Use default argument values.
00:33 <****> NiSo, yes i have tested it, thats where i uncommented it then restarted apache
00:33 <****> juanbond just write them down as they were diffrent functions, but the same name
00:33 <****> I do: myFunction($options) and myFunction($formats, $options). I get a cannot redeclare myFunction
00:34 <****> juanbond you can, php supports polymorphizem
00:34 <****> (if i wrote it right =S)
00:34 <****> hehe
00:34 <****> Close enough
00:34 <****> polymorphism XD
Total 14 pages. You are browsing page 1/14.
First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last
