| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Comments:
<0> Sproutworks: It's in Perl and creates an HTML page. <1> can you use system to capture the perl output? <0> Ah, maybe. <2> Capso: if you run the perl script from shell_exec then you should get the html back so long as it prints to stdout SIMUAAR <1> or maybe if you use curl with the full url that would run it through the webserver also <0> Dools: "SIMUAAR"? <2> Capso: it's my new irc acronym: Such is My Understanding At Any Rate <2> Capso: i'm trying to get it into common irc parlance <0> Sproutworks: It prints the HTML in the shell using 'perl' too, but what's my best option? <1> i dont know what would be right for your situation <1> is this your perl script? <2> Capso: go to the command line, and run the script <2> Capso: does the html blat out onto the screen? <0> Dools: Yes, I just said that. <2> you did? <0> Yeah, anyways, you know it does.
<2> Capso: well, why not do shell_exec('NAME_OF_SCRIPT > /tmp/myfile'); <2> Capso: i don't know **** about perl :-) <0> simplexml needs to read it from a file? <1> you can use simplexml_load_string <3> what's the BEST way to find out if a set of letters is in a string? <1> strstr? <2> Capso: i'm just not sure if shell_exec() will return everything that is printed to stdout by the script, or only what is returned to the operating system by the script <2> Capso: i have a feeling it's the latter <3> i need an array though <3> of possibilit <1> the docs say shell_exec returns all output <3> got it <2> sproutworks: so it does :-) <4> I have a error related to http://bugs.php.net/bug.php?id=35029 , but i have PHP 4.4.2 and Apache 1.3.34 ( segmentation faults with multiple include virtual requests ), i tried upgrade, remove, re install, and nothing solve the problem, i hot too this: signal Segmentation fault (11). Thanks in advance. <2> Capso: echo(shell_exec('echo "hello world"')); prints hello world, so i guess anything going to stdout is returned <5> bet0x: The person who might be able to help you is probably not around (TML). <4> thanks tws <4> i debug the problem too, looks like a apache2 error with php 4.3.11 and anothers old php versions <4> but its on my 1.3.34 apache too with 4.4.2 <4> so the problem still <4> :) <4> and i have my websites down :S <6> hi guys <6> i have a question about unix timestamp <6> if a have a timestamp and i add 3600 will it add 1 hour to the time stamp? <7> yes <8> hello there <6> Thanks just making sure <8> i have a more exotic question... <8> i`m not really good with licences, but can PHP be modified to include gsl (gnu scientific library) <8> ? <9> hi what is happening if i run pear and i get : <9> Failed opening required 'PEAR.php' (include_path='.:') in <b>/usr/bin/pear</b> on line <b>44</b><br /> <9> i use debian woody <9> and cant figure out where to configure stuf <4> ovis you have PEAR installed? <9> apt-get install php4-pear <9> Version: 4:4.1.2-7.woody5 <10> Im idiot to OOP, perhaps there is 'magic' way to this easier; cl*** BenchMark extends someOtherCl*** { /* on each someOtherCl*** Function Called, record StartTime and EndTime when its Finish */ } <11> how create array with defined keys but with n o values? <10> null ? <11> jep <10> yep what? $array['keys']=null; <12> Anyone know what could be causing these errors: Only variable references should be returned by reference in <file.php> line xxx <12> on this line: $HTTP_GET_VARS =& Misc::dispelMagicQuotes($HTTP_GET_VARS); <7> does dispelMagicQuotes() return a variable reference? <13> hi. can someone recommend an IDE (that suits php dev as well). i'm tired of bluefish/anjuta. <14> Pir8: there's better ways to do that, see PHP_Compat::loadEnviroment('magic_quotes_gpc', 'off'); <14> Pir8: also $_GET and not $HTTP_GET_VARS <12> ok <12> where do I put the PHP_Compat ? <14> Pir8: your function is obviously returning something other than a variable, probably null because HTTP_GET_VARS does not exist <14> you put PHP_Compat in your include path. If you installed php with pear, it's already there <14> win or pc? <12> on a webshot <12> webhost rather <14> http://cvs.php.net/viewcvs.cgi/pear/PHP_Compat/Compat/Environment/magic_quotes_gpc_off.php?view=markup&rev=1.2&pathrev=MAIN <14> download that file, put it in your include path somewhere <12> the app has: set_magic_quotes_runtime(0); <14> that does nothing <12> k
<14> then: require 'PHP/Compat/Enviroment/magic_quotes_off.php'; <15> "To connect to a MySQL server, PHP needs a set of MySQL functions called "MySQL extension". This extension may be part of the PHP distribution (compiled-in), otherwise it needs to be loaded dynamically. Its name is probably mysql.so or php_mysql.dll. phpMyAdmin tried to load the extension but failed." ....can someone help me with loading that? :o <14> ^Montana^: php.net/mysql has install instructions <14> ' <15> I just need to load that file <15> :s <16> i'm running php 5.1.1, and apparently the function "ctype_alnum()" doesn't exist... but according to the manual i should have it. any ideas why i don't? <12> seems like Notice: Only variable references should be returned by reference in /hsphere/local/home/pir8/include/pear/DB/common.php on line 1555 <12> that function in there has a & return <17> hy, how do I cast data type to long in php ? not int. I have java on the other side of soap, and it want's to see long <5> btl: Run php_info() and check if that function is enabled. <12> common.php 1555: function &get***oc($query, $force_array = false, $params = array(), <18> yure: There is no long. <18> yure: If the number gets too big, it's converted to a float. <16> tws, thanks man :) <17> uh, i have a large problem then, i guess :) <18> Maybe <17> is there any way to make java think it's long <17> i've tried float,int... <17> none of it gets by <15> aidan, I found this "MySQL is not enabled by default, nor is the MySQL library bundled with PHP. Read this FAQ for details on why. Use the --with-mysql[=DIR] configure option to include MySQL support. You can download headers and libraries from MySQL." ...but does that mean that I have to reinstall php? <14> ^Montana^: what OS? <15> linux <15> fedora <14> ask #fedora how to include mysql support <15> heh ok <19> hi.. <19> i have diffrente langauge files, eg. one for german users.. with some .. now if i echo a $mytext, that contains it will be shown as ? <19> is this a php setting or httpd setting? <19> from mysql sb are ok <20> try setting another content-type charset, dunno if it help tho <20> s <19> in php.ini? <21> Hi, i am wondering if someone can help me with reference to the sessionID ? <21> is it posible to manually renew the sessionID ? <14> session_id_regenerate or something <14> php.net/sessions <21> so when i have session.abandon i can then renew the sessionID aswell? <10> noaXess, no... at your <meta ContentType> <22> Ox41464b: Why use the <meta> when you can use header()? <21> aidan, thanks i will have a look at that <10> GarethAdams, header can do that ? <22> meta http-equiv="..." is the same as header("...") <10> the charset things <10> oh really ? <22> the point of http-equiv is that it's equivalent (equal) to the appropriate header <12> man this is whacked ! <10> Good Tips then, thanks <19> Ox41464b: in the php files? <22> there are other advantages, such as proxy servers can access headers, whereas <meta>s aren't usually looked at <19> but why can that happen? <23> okay, here comes my question again... Anyone ever programmed a singleton in PHP5?? <24> what is the latest version of php that eclipse's debugging facilities support? <25> Does anyone here, by chance, know how to get Apache2 to run .php scripts as CGI's that work under userdir suexec, without having to shebang every .php file with #!/usr/bin/php5-cgi, etc.. I've tried using the AddType/Action method, but they don't get suexec'd, annoyingly. <26> what ide debugger tools do you guys use <12> ok so I have all the above setup: http://eventum.mysql.org/wiki/index.php/Prerequisites <27> debugger tools? <27> like... my brain <28> I use "hey, that doesn't produce a big black bold error! let's go with that!". <19> you.. /etc/php.ini default_charset = "iso-8859-1" need to be enabled.. the works fine for me.. <26> and you're brain is an ide obviously <22> s/you're/your/ <26> s/you're/your/ <27> it's a closed source one. sorry. <23> Anyone ever programmed a singleton in PHP5?? <27> I don't like the "php ide's" out there. Haven't seen one that wasn't clutzy yet. <27> I use editplus or textpas <27> textpad, too <28> Quanta+'s pretty nice... So's Dreamweaver... and vim... <26> Rewt`: i don't like them either; prefer vim but just forcing myself to try some and use them <23> vim isn't <29> is vim an ide? <26> heh <23> i don't see it as a ide
Return to
#php or Go to some related
logs:
stairstepping HP 4000 #python silverpower irc libegg ebuild css cutlines #debian #physics perl process read fifo #php how to block p2p nat iptables
|
|