@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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> RoySmeding: parsed data?
<1> for example when one has a file that contains <?php echo "Hello World"; ?>
<2> think he means like you'd get when you $burp = fopen('http://fart.com/belch.php');
<3> I'd like to compile my script into an .exe so this one exe can be executed on a windows box. Is there a way?
<1> i would need a function that would return Hello World in this case
<0> ciga: file_get_contents() ?
<0> RoySmeding: eval() ?
<1> so yes, what choongii said might work, but it is on a local server and i might not know the server name
<1> fumanchi: possibly, let me rtfm :)
<2> I dont know of any function for it
<0> or... try it with output-buffering...
<0> just flush your buffer...
<0> include your file..
<3> fumanchi: I think you missunderstand me.
<0> save the buffers content into your variable..
<1> well, eval() will do



<0> and clean your buffer
<0> ciga: possibly?
<3> fumanchi: I have a little cli php script. I would like to copy an exe file from this script to a freshly installed windows box. So I need to 'compile' this script into an exe file.
<4> be careful with eval() though, make sure all the input to it is secure
<0> ciga: oops... i meaned choongii
<3> and I don't know how I should do this.
<0> -e
<0> ciga: this isnt that simple... because php is an interpreter-language...
<4> ciga: Hmm, I guess you'd have to compile it using a command line... so shell_exec("compiling code here"); ?
<0> ciga: ask google :)
<3> fumanchi: yeah, I know.
<4> ciga: That would work on *nix boxes
<3> yes, but I need to run it on a windows box.
<0> ciga: ok.. you can use the embed-sapi
<3> hm
<3> fumanchi: is that free?
<0> ciga: you can compile your source into your c-application and call the embeded php-interpreter
<0> ciga: it is.. and bundled with php by default
<3> wow.
<0> ciga: just get php's source tree
<5> is it possible for a script to spit out a video format forcing the user to dl it?
<0> lra_: jep... by adding a http-header
<5> yeah - what header would i need?
<5> if it was video, it'd try to stream it right
<0> lra_: something not referenced to video-apps by default
<0> lra_: any mim-type not used yet for example..
<5> oh - just a general binary data header?
<6> hi all! Please recommend me best ajax framework for php4+
<5> javascript
<4> Tulga: o.O why would you need an AJAX framework for PHP?
<5> haha
<6> Stormx2: I need develope AJAX CMS
<6> but I haven't good knowledge AJAX
<4> Tulga: Code it yourself. It'll just be like a regular CMS. All PHP has to do with AJAX is querying the database and returning the text. Which is almost the same as a regular CMS
<3> fumanchi: do you have a link for that please?
<6> Stormx2: why code yourself is better than use framework?
<4> Tulga: it depends heavily on the CMS structure
<4> Tulga: But really, AJAX is quite simple server-side. Its the JS you want to worry about
<6> Stormx2: ok. tnx
<5> fumanchi - i've looked down a list of mime types but i'm lost!
<4> I hate MIME types >_>
<5> could i just make one up
<5> and the browser will ask to save it no?
<4> lra_: What file?
<5> an avi
<4> hmm
<7> if you send the right header, the browser will ask you to download it anyway
<4> yeah
<4> thats what I was thinking
<7> i cant remember what the header to do that is
<5> yeah,
<5> that's what i kinda need to know :)
<8> the examples are in the user comments in http://php.net/readfile
<5> so i was thinking if it sees a header it doesn't understand, it may just ask to dl it anyway
<8> lra_: ^ was for you :)
<5> omg - that's fugly
<5> it doesn't seem to be like one header
<5> but a whole dozen :(
<9> hey dudes..
<9> Im having troubles understanding http://uk.php.net/configuration.changes
<9> I would like to use a php_value in a .htaccess



<9> and the error log says not allowed here
<10> what you mind?
<9> sorry?
<10> you want use variables in .htaccess file?
<9> well.. yes
<9> php_value short_open_tag "Off"
<11> hi,im rounding floats with round($foo,2); but want to keep the zero if $foo=10.1003 i.e.
<9> php_value auto_append_file "file.php"
<9> I would like to use both of those in a .htaccess
<12> What is the best way to manage SQL strings in a cl***?
<10> in apache conf file you must asign what files must be executed as php scripts
<9> what do you mean?
<8> mesut: try printf()
<9> can't I say that in .htaccess?
<10> I mean that extension of file what must be executed as php script must be registered in apache conf file
<10> for example I can change extension to *.shtml for php scripts
<9> yes precisely htats set in the .htaccess file too
<9> look
<10> but I dont know if it is operation will work for .htaccess file
<9> http://rafb.net/paste/results/3kUWhV20.html
<9> wer it does
<9> Im just not allowed to use that in that .htaccess file as it is in /home/*/public_html
<9> if it was in server-root-docs I could
<9> :/
<10> I cant help you in this moment:(
<9> :(
<10> You saw worked example for your problem?
<11> fyrestrt1, i did it,itworked,but iquite didnt understand that "%01.2f"
<9> I didn't understand
<11> fyrestrt1, .2f means 2 digits after . right ?
<10> I mind: if you saw example when in .htaccess file use php variables?
<10> Or I not correct understand you.
<10> question:How I can print to display variables from the script
<10> for example I have cl*** A;
<10> $a = new A();
<10> How I can print with method of cl*** A to print $a?
<5> mhh
<5> what is filename={$new_name} shorthand for?
<13> stupidity?
<13> :D
<5> is it: filename='.$new_name.'.......
<14> Is there a function which checks if a variable is an integer?
<15> OrbX: php.net/is-int
<14> GwaiLo: Thanks
<16> hi
<16> can someone help me please? (problem with zip)
<17> what's a good nopaste site
<18> hello !
<18> i have a question
<17> yes, hello !
<17> then, ask it :)
<19> pastebin.com
<20> what is the best practise to use to return string from php and to be parsed with javascript in AJAX requests ? JSON, XML ?
<2> I personally dont use any of that
<20> choongii, what did you use ? some kind of delimiter of the data returned from PHP and then prase it in your js scripts ?
<21> md5 isn't affected by the filename, right?
<2> I havent had the need to parse it so far, but its probably what I would do, yeah
<2> my little apps are so simple, that wrapping the data in xmlish things would just add overhead and not help at all
<18> has somebody been able to be connected by means of php to a database sql anywhere?
<22> lol
<2> uhm yeah, many somebodies have accomplished that over the course of time
<8> ymir: echo
<18> choongii: do you know somebody that has made it?
<2> I think most people in here have. its probably the number one thing php is used most for
<23> Question on choosing a platform for my new application: are deployment / hosting charges for LAMP installations significantly cheaper than the windows server/microsoft .net approach?
<23> anyone got any experience with this scenario?
<24> a linux server will be cheaper than .net
<25> Ummmmm_: Gnenerally speaking, hosting charges will be lower, yes. However, in each case, it will be insigificant compared to development costs.
<25> When considering cost, hosting is usually the least of your concerns
<24> ...
<23> MarkR: right. that is exactly what I was asking. Thanks
<24> i'd trust a nix server over a nt server so if i had to go for enterprise web apps i'd look at jsp if i only needed a small site i'd look at php
<25> Ummmmm_: There are a lot of other costs to consider, like developers salary and cost of tools


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #php
or
Go to some related logs:

#css
debian tightvncserver howto
#lisp
unicode ch14 pdf
#math
#math
1210sa suse 10.1
nvtv unknown chip
simplexml_load_file() attributes construct error
explode an array php



Home  |  disclaimer  |  contact  |  submit quotes