| |
| |
| |
|
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
Comments:
<0> berkes_: Are you saying that drupal is resetting the value of some $_SERVER vars? <1> m3ltd0wn123: yah or there are a few pay services out there.. <2> Jonnay: it seems so, but I am not sure. <0> mrapples: regex. <2> In fact; I ***umed that they were not set :) <3> help please here http://pastebin.com/554853 <2> Jonnay: I ***ume that if I set them, inside any ol function, they are set everywhere? <4> Is there a list of which providers let you email SMS them? <2> Jonnay: because they are superglobals, I ***ume I need not define em with global? <0> berkes_: yes. <5> has anyone ever used PHP to interact with TAPI? <0> but you will want to set them at the VERY beginning of your script.. <6> ? <7> chasep_work: god why? <6> sounds like an intriguing project, chasep_work <5> myconid: My app is done in php. I want to be able to click a link in the app to place a call (we have a phone server which integrates with TAPI)
<8> chasep_work: Windows or unix? <5> windows <8> chasep_work: Read on COM... php.net/com <5> yea, been there <8> chasep_work: well... then PHP might not be the right answer to your question... You might want to write an app with appropriate language and then build-in a webserver and interact with that... <9> what's going on? <10> is there a way to find out what programs are currently using your soundcard? My soundcard is being used my something, and I cant get any sound... <8> mybadluck: Ninjas attacking <9> oh no! <11> FatalRemedy: That would be a question for your OS's channel. <5> Stormchaser: no, either via TAPI or directly with the telephone server, I can interact via COM. Problem is, given a COM script, I am not quite sure how to make it work in PHP. I was just wondering if maybe someone had done that already and could point me int he right direction beyond the php.net/COM to something that might make a bit more sense <10> mattmcc, ok. thanks <12> Hello <9> hi <12> Is it possible to determine new lines/blank lines within the contents of a TEXTAREA as a POST variable? <8> chasep_work: Never worked with PHP->TAPI, but I know that TAPI itself is a PITA. <9> search for \n <11> Spum: Sure, they appear as newline characters. <8> chasep_work: I'd look for another solution myself. <12> so, as \n, right? <12> cheers fellas :-) <9> if(strpos($postyvarthing, "\n")!==FALSE){ echo "It's there!"; } <5> Stormchaser: do you know of any tutorials on taking a com script and making it work in php? <8> chasep_work: Google would know <5> Yea, its hard to search for anything on php and com in google., since it returns every page with a .php extension :-( <8> Let's try... <0> Yea.. "php com" is not a good query.. ;) <0> chasep_work: http://www.wynia.org/wordpress/2006/02/06/creating-outlook-tasks-with-php/ ... that might be something..? <13> chasep_work, I ***ume you've already checked out php.net/com ? <5> definitely, at least a starting point <12> heh :-D <12> Just getting used to PHP <12> Working on an advanced grammar checker for openoffice <12> making a prototype in PHP <12> :-) <9> cool <5> mfonda: yea <9> how do you have a grammar checker? <9> do you cl***ify words as like, noun, adj, adv etc? <9> or what <14> is there a way to upload a zip file and unzip it on the server with php? <12> mybadluck: Well.. an algorythm to check for bad word patterns <12> like <12> something and something and something and <8> mmiikkee12: Um... You can upload zip like everything else? <12> taking me a while to iron out the bugs ;-) <9> cool <9> mmiikkee12, you could exec a shellscript on the serverside to unzip it <14> yeah, i mean upload, say, a phpbb zip file and have a php script that can unzip it on the server <14> without me needing to unzip it myself <9> er, not a shellscript, but like a shell command <0> eeeeee.... <9> if you're allowed <14> no <9> why not <14> php, perl, and cgi are the only things i can do <14> hmm, can you do that from perl? (i don't know perl) <15> mmiikkee12: http://php.net/zip-read <9> you can exec a shell command with php <14> yay :)
<0> offhand it sounds like a bad idea ... <12> heh <14> theoretically you could have shell access through repeated posts and/or gets to a php page ;) <12> Well, you can dissalow shell access to accounts ;-) <9> yeah, i know <9> but if you do it right, you can be fairly ok <14> yeah, but i just got this host and i'd rather not lose it, so i'm asking first :) <9> heh <0> letting the webserver write php scripts isn't the smartest thing in the world... <0> I mean, with a properly secured webserver it isn't fatal... but... <14> Jonnay, that's not what i'm doing, i'm unzipping scripts other people wrote ;) <9> how are we doing that though <9> so what about this zip-open or something <14> i figured i'd be nice this time and upload something myself <14> i'm reading that too <8> zip-open is PECL thing <16> I'm using php command line for a batch conversion script run via a cron job, but I can't find how to see if the system commands are returning a error, so my script sometime runs for hours, generating a huge log, see http://pastebin.com/554916 <9> what is pecl <8> pecl.php.net <14> nm, i guess i can be non lazy for a day <0> mmikkee12: if this is a one-off kind of script that you use, and then delete, no problem. <14> Jonnay, i was actually going to leave it there for future use :P <9> retroneo, you can geet stderr by putting a thing on the end of your command <9> if you don't need the result of your command <9> it's like 2>&1 or something, i have to check <17> mybadluck: that's correct <16> mybadluck , i do get the outpu this way : cd /home/blog/conv/ ; /usr/local/bin/php flv_batch.php >> /home/blog/conv/log.txt 2>&1 <0> retroneo: if you use exec() you can get the numeric error code as well, but you'll ahve to p*** it 2 parameters... <16> but I need the output of php's shell_exec to get analysed in real time <14> http://freeostalk.awardspace.com/ - can i use zip_open with that config? <14> (i just uploaded a phpinfo <16> because ffmpeg sometimes can run for hours, outputting rows and rows of errors <16> but not stopping! <9> yeah, you need to tell it the 2>&1 in your exec() thing <9> your script can look for the errors, and stop itself <14> ZLib Support enabled, is that what zip_open uses? <0> retroneo: oh, I think you want proc_open <18> AcidReign! <17> HolyGoat! <9> i don't think zlib is about zipping <18> AcidReign: we released our new demo last sunday :) <17> HolyGoat: I'm watching Lamentation the Opeth DVD :-D <14> well, can i unzip zipfiles on that config? <17> HolyGoat: cool, is there a link? <18> cool, nice dvd :) <9> dunno <18> AcidReign: yes all can be downloaded at www.aggromusic.com <9> what's the command to unzip a file <17> HolyGoat: its so much like the concert I when to, on the Ghost Reveries tour <17> except there is a lot more soft stuff on the DVD <18> yeah, from their damnation album <17> there was almost no soft songs at the concert <18> it's the only soft album they ever made <17> they played from at least 4 *other* albums <17> 2+ hours set <17> it was sweet <9> there we go <9> when the file uploads <9> you unzip it with <9> unzip /path/to/file -d /directory/to/unzip/to <9> exec("unzip /path/to/file -d /directory/to/unzip/to") <9> mmiikkee12, get that? <16> Jonnay: I'm not figuring it out. what I need is a way to test DURING the execution of the command, if the output contains for instance "error", to stop executing that command and move on to the next <14> mybadluck, ok thanks <19> I'm trying to figure out how to properly 'sanitize' user-input text (from a web form) that I wish to use in a FULLTEXT search. In particular, I can't wrap my head around how to properly handle single- and double-quoting and escaping such that when the user enters an 'exact match' phrase in double quotes - "chicks and apples" - my attempt to sanitize it before handing it off to mysql_query doesn't screw it up until the MySQL MATCH parsing no longer recog <20> anyone use mysql admin? <8> #phpmyadmin <21> Yo Stormchaser <8> jo, julian <20> how do you add rows to tables in mysql admin? <21> socrates2, that has nothing to do with this channel. <21> socrates2, try #mysql
Return to
#php or Go to some related
logs:
#math You have an error in your SQL syntax. Check the manual that corresponds to your comparing string vars javascript trim debian owner iptables: No chain/target/match by that name #css #perl 865perl xorg dapper theme + firefox mobile radeon 9100 +driver how to mount fat32 partition on kububtu
|
|