| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Comments:
<0> Yup. But since I can't edit php.ini.. let alone compile... <1> It'll let you use Perl code/CPAN modules by means of an embedded Perl interpreter <0> Right. That's what I was looking at. It's not installed and I don't think I can do much about it since it's not my server. <1> DeltaF: There's the fairly inefficient method of run-time loading with dl() :P <2> DeltaF: If you don't have access to those, you can't run PERL thingies from PHP <1> Or you could use the shell execution functions and actually use the perl binary on the system <3> wow that sounds awful <2> qbert: what part? <3> the perl part <1> Heh <2> why? <3> im not a perl fan <2> so? <4> done <3> Stormchaser, everytime im in here you ****ing trolling about <4> done
<3> how about you dont talk to me anymore <4> oeps <4> sorry <4> wrong channel <4> ;) <5> can you use the latest gnu aspell with php4? or am I stuck with the (very) old one on my red hat server? <2> It's a deal, qbert <0> The dl() method might be the best option if it's not locked out. <6> it should be locked out <6> dl()'ing your extensions would screw whole server security <0> Shell execution could work.. it'll be ugly because I have to capture a bunch of output. <2> domas: Well... dl() would gain you nothing, actually, since the extension requested needs to be in proper extension dir. <7> DeltaF, hummm couldn't you place your perls in the cgi-bin folder and call them from there using http? <0> Hmm. safe_mode is off <0> bugzElMagnifico: It's one of my last resorts. :) <0> Besides, I don't want these scripts to be accessible.. <8> CURL doods, where can i find docs for curl predefined constants? http://us3.php.net/curl == DA <0> I'm trying to hack together my own admin interface in PHP that uses the WHM Perl integration. <8> perl? <8> did he say perl? <8> noooooooooooooooooooo <8> :) <2> eighty: We know you're a dumb***, but don't push it <6> Stormchaser: thats already locking out :) <9> I usually use include(), but I have seen some scripts use require, and require_once. Could someone point out the advantages of using require_once over include? <0> If you were paying attention, you'd see I'm trying to avoid perl by accessing it through php. :P <2> domas: I know <1> DeltaF: php.net/curl_setopt <0> OK. Thanks for the input. shell exection is probably the best route... fall back to http next. <10> Stormchaser, it doesn't, it can be located in any directory, it doesn't check for ".." <1> eighty: Er, ^^^ <1> DeltaF: Sorry, meant for eighty <0> I was wondering. :) <8> deltaf... soryy, when i see perl i can creeped out <8> you're off the hook <8> although really you should be using python <8> ;) <2> syf: Er... PHP will complain if the extension is not in the lace it should be <2> *place <10> yeah, if open_basedir is set <11> when a user inputs text via an html text input box, is it encoded in whatever encoding the browser decoded the page from? <0> It looks like it needs to be in the extensions path.. I think. <11> a utf8 page for example will return text from html input encoded in utf8? or is it some other format <1> HTML can be in UTF-8. <0> It also looks like it's depracated in PHP 5 <11> yes, i'm wondering what does browser send it to me as <1> UTF-8 is just an encoding format for Unicode. <9> can someone explain the advantage of require_once over include() ? <6> none!!!!! <1> RZA-Razor: Well, require is usually better than include in general because you'll get a fatal error instead of a warning and continuing execution <9> oh <1> RZA-Razor: And the _once part depends on whether you want to include the file again if you've already done so in this script execution. <9> ok <9> another thing <2> syf: "PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20041030/curl.so' - /usr/lib/php5/20041030/curl.so: cannot open shared object file: No such file or directory in Unknown on line 0" <-- PHP says you're badly wrong. <9> what do you call the "_once" ? <9> include() and require() are both functions, no? <1> Actually, neither is :P <1> They are language constructs <2> no, they're language structures. <9> oh
<2> yeah, constructs <1> So you don't have to have the parentheses, even... require_once 'foo.php'; works fine. <8> plasticfork: excellent, that worked <12> Thats good news. <8> thanks for digging that out <13> what's the php mod function? is it %? <13> number % number? <8> well, y(es) <13> cheers! it's still early days in my php career <2> !tell Welly about operators <2> o.O <2> Welly: php.net/operators <13> cheers! <0> How do I create a new db in mysql through php? <0> The mysql administrator tool doesn't seem to have the feature... :P <2> it does, if you have sufficient access... <8> script it? <0> It's my local test server. Running on this machine. <2> you're still missing the correct rights... <0> Odd that it doesn't have that feature in the gui.... <0> I may have the rights. Just can't find the button. :) <8> mysql_create_db ("my_db") <2> DeltaF: If you're using PHPMyAdmin, then that should be on the first page, and 2) you still don't have sufficient access... <0> How do you know this? <2> People say I'm smart <14> a weird error, whenever the file is called user.php no pages in that site will work, but once i changed the filename to users.php everything was fine, any explaining this? <8> stormchaser = SA <8> :D <0> Without knowing my config, how can you tell? <0> Is root locked out by default?? <2> DeltaF: Because I know how phpmyadmin and mysql work. <2> deltab: No. <0> K. I'm not using phpmyadmin <15> does rasmus come here? <2> I ment DeltaF <2> jono: Nope./.. He's on EFNET <0> I'm using "MySQL Administrator" binary GUI <2> ew. <15> cheers <0> Just to get me started... You don't even want to know what my web service is... :) <14> is user.php a forbidden name or something? <2> no <0> Which may be why mysql_connect isn't working. <2> DeltaF: why aren't you using mysqlclient via shell? <8> exactly <0> I'm using that too.... <8> does shell not work? <0> Still learning commands for it. <0> help doesn't help as much as I'd like. :P <2> DeltaF: What does the mysql_connect say? <8> mysqladmin -u root -p create mydbname <0> Client does not support authentication protocol requested by server; consider upgrading MySQL client... <8> windows or unix? <0> I'm working on that too. Found a reference to the error <0> Windows <8> version? <8> (of mysql) <0> 5 <0> PHP 4.3 <2> DeltaF: Using MySQL 4.1 or later on PHP4? <2> DeltaF: Google old_p***word. GO! <0> I'm on the page already. :) <0> Tackling two problems at once. <0> Wouldn't ya know.. from the cli it works <0> The darn admin interface ****s. <2> urmngh... <0> and so does the setup process, for that matter. <2> DeltaF: there might be a reason, why the proper client runs under proper MySQL? <0> everything connected properly except for PHP until the old_p***word fix. <2> DeltaF: <insert DUH here> <0> Who'da thunk it.. <6> http://dev.mysql.com/doc/refman/5.0/en/old-client.html <2> hi, lig! Loved your email to php-users on friday :)
Return to
#php or Go to some related
logs:
fschk rebuild asound.state gentoo suse broadcom 4311 pptpconfig ubuntu python file exist #css zhivago + irc + lisp #perl saxiyn #suse
|
|