@# 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



Comments:

<0> Which would suggest that it won't work.
<1> require[_once]()/include[_once]() would work on any file containing php, however- if you want php to independently process .html files, you need to use somethling like apache2's AddType or something, to have php pre-process the html source
<1> and, that depends on if you're using php as a loadable apache2 DSO object(apxs2, see #apache) to do your processing for you.
<2> Your right. I just went through the source code. The template is being read through the file() function
<2> no wonder my code didnt work
<1> DUH
<3> anyone here run PHP on a windows NT box?
<1> I used to run an XP box, why/
<3> for the life of me, i can not get the box to allow shell_exec to execute files
<3> i can do echo shell_exec("dir");
<3> but now shell_exec("c:\a.bat");
<3> bot'
<3> dam, not'
<3> like, the command doesn't error or anything, i just know it does not run because what is sapposed to happen when a.bat runs, does not
<1> open_basedir restriction?
<3> nope



<3> safe_mode = off
<4> ChillAxen- i've wasted the night trying to get exec() working on my winxp pro
<1> file ownership issue?
<4> with apache 1 and 2
<3> ***uming you mean that
<1> heh, yeah
<3> olinuXP any success?
<4> no
<3> yes olinux, i think its an apache problem
<4> one thing that may work is start > control panel > admin tools > services
<3> because if i run it right through php_cgi it works fine
<4> check apache properties and enable "access to desktop" orsomething
<4> and restart apache
<3> robert: idk, i think its more of an appache issue
<3> due to the fact that if i run it right through php_cgi it works
<3> 1 sec olinux
<4> i can get dir to work
<2> ChillAxen: I too am facing a similar problem. I cant even do shell_exec("dir"). I am running PHP on top of IIS
<4> but cant run my bat file
<3> exactly olinux: i think its a files issue
<3> more than commands
<3> i tried every exec variation ;[
<1> it could be due to an apache chroot* operation, that restricts the application to a specific path. (*winapi equivalent)
<3> is there a way to fix that?
<1> edit the apache .conf
<1> and see if something resembling chroot/open_basedir is in effect on apache
<1> which version are you running? 2?
<4> i tried 1 and 2
<1> not you
<1> ChillAxen
<1> and, for you
<1> what's your setup?
<1> apxs1/2 dso? or cgi module?
<3> dam now apache wont even start
<3> rob: 2
<1> okay, apxs2 dso, I presume
<3> idk...
<3> 1 sec
<1> what's it saying? - pm me
<1> ok
<3> can u allow me to
<4> lemme know if you figure it out ChillAxen, i give up
<3> this nick isnt registered
<1> hm
<3> casuse i rarely use IRC
<3> lol will do olinuXP
<1> in that case, got aim?
<3> yup
<3> twosthelimit
<1> ah
<4> ChillAxen got it
<4> had to set apache to login as a local user
<4> since my .bat opens openoffice
<1> wtf
<4> like i said int he services menu
<1> why do you open openoffice with a batch file?
<4> dont think thats a standing solution, but
<4> thats why
<4> robert_- convert .DOC to .PDF
<1> ah
<5> @preg_replace



<6> (PHP 3 >= 3.0.9, PHP 4, PHP 5)
<6> mixed preg_replace ( mixed pattern, mixed replacement, mixed subject [, int limit [, int &count]] )
<6> Perform a regular expression search and replace
<6> http://www.php.net/preg-replace
<3> olinux: inside the Apache error log is [Tue Feb 21 04:15:44 2006] [error] [client 127.0.0.1] The filename, directory name, or volume label syntax is incorrect.\r, referer: http://localhost/admin/ver_images.php
<3> for that command
<4> at least you got an error :)
<1> heh
<3> olinux: make a file called "c:\a.bat"
<3> that just launches a rnadom thing
<3> such as notpad
<3> make sure it works (click it and see if notpad launches)
<3> then type shell_exec("c:\a.bat");
<3> see if it works
<3> it does for me
<3> the problem was my commands need addon strings (such as blah.exe -k "c:\inputfile.php")
<3> which it wont let the addon strings
<3> so i just create a tmp batch file to process it then process that batch
<3> and works great
<7> \\ not \
<7> and if by addon strings you mean command line arguments, it should allow them just fine
<3> two it allows -k
<3> but not "blah"
<3> after it
<3> and its fricken 5am
<3> im sick of f'king with it lol
<3> so this workaround with a bat works for me ;]
<7> you sure?
<7> seems to work just fine for me
<3> on NT?
<7> sure
<3> wierd, dont here
<7> sure it does
<3> shell_exec('identify c:\a.jpg'); works but shell_exec('identify "c:\this dir\a.jpg"'); dont
<7> what is identify?
<3> a command that comes with imagemagic
<3> returns info on an image
<3> none the less im fricken tired
<3> so im off to bed
<3> lata all~
<7> as i said before, use \\ not \
<7> !php echo 'identify "c:\this dir\a.jpg"';
<8> identify "c:\this dir\a.jpg"
<7> hrm
<7> should still work
<3> two, \'s dont get replaced inside ' s
<3> only inside "s
<7> !php echo 'identify "c:\\this dir\\a.jpg"';
<8> identify "c:\this dir\a.jpg"
<3> wierd ;/
<7> \" 's dont
<3> u got me good i guess lol
<7> !php echo ' foo \" bar';
<8> foo \" bar
<3> well 1 sec, ill try it
<7> \ always has to escape itself in case you literally want something like \' in the string
<3> two-bits: echo shell_exec('"C:\\Program Files (x86)\\ImageMagick-6.2.6-Q16\\convert.EXE" -size 38x29">" "C:\\XP CD\\a.jpg" -resize 38x29">" +profile ""*"" "C:\\XP CD\\b.jpg"');
<3> that does not execute
<3> though when i do echo ('"C:\\Program Files (x86)\\ImageMagick-6.2.6-Q16\\convert.EXE" -size 38x29">" "C:\\XP CD\\a.jpg" -resize 38x29">" +profile ""*"" "C:\\XP CD\\b.jpg"');
<3> and paste the output to a batch file, execute that batch
<3> it works
<3> none the less im out ;/
<3> im sure we will chat later
<3> cyas~
<1> heh
<1> !php echo ('"C:\\Program Files (x86)\\ImageMagick-6.2.6-Q16\\convert.EXE" -size 38x29">" "C:\\XP CD\\a.jpg" -resize 38x29">" +profile ""*"" "C:\\XP CD\\b.jpg"');
<1> !php echo '"C:\\Program Files (x86)\\ImageMagick-6.2.6-Q16\\convert.EXE" -size 38x29">" "C:\\XP CD\\a.jpg" -resize 38x29">" +profile ""*"" "C:\\XP CD\\b.jpg"';
<1> !php echo 'hi!';
<1> ...
<9> where is poutine these days?
<1> how can I quickly determine how many items are inside an array?


Name:

Comments:

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






Return to #php
or
Go to some related logs:

nako re baba
farkındamısın aşkım
#chat-world
#worldchat
#worldchat
#kl
#worldchat
geetha + thr + malaysia
#chat-world
#kl



Home  |  disclaimer  |  contact  |  submit quotes