PHP output buffering

2009-02-19 Thread Double
I'm trying to execute an asp page from php and get the executed web page (html) to parse. When I run fopen, it just returns the actual script. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP

Re: PHP output buffering

2009-02-19 Thread John Andersen
On Feb 19, 11:06 am, Double donovan.dso...@gmail.com wrote: I'm trying to execute an asp page from php and get the executed web page (html) to parse. When I run fopen, it just returns the actual script. Any ideas? Please specify how you are opening the asp page! (Code!) Enjoy, John

Re: PHP output buffering

2009-02-19 Thread Marcelius
And what does this have to do with cakephp? :-) On 19 feb, 10:06, Double donovan.dso...@gmail.com wrote: I'm trying to execute an asp page from php and get the executed web page (html) to parse. When I run fopen, it just returns the actual script. Any ideas?

Re: PHP output buffering

2009-02-19 Thread Double
code: $file = fopen(http://www.sample.com/index.asp?Page=1;, r); while (!feof($file)) { // file go through file one line at a time $line_wp = fgets($file_handle_wp); } it just gives me the asp file as code rather than interpreted by the server. Is there a way to get a process asp

Re: PHP output buffering

2009-02-19 Thread AD7six
Please ask your none-cakephp questions in an appropriate forum (i.e. a general php group/forum/etc.). On Feb 19, 12:37 pm, Double donovan.dso...@gmail.com wrote: code: $file = fopen(http://www.sample.com/index.asp?Page=1;, r); while (!feof($file))  { // file go through file one line at a

Re: output buffering

2009-02-15 Thread mscdex
On Feb 15, 12:41 am, brian bally.z...@gmail.com wrote:                 ob_start();                 system('/usr/bin/file -i -b ' . realpath($filepath));                 //$type = ob_get_clean();                 $type = ob_get_flush(); Have you tried using exec() and passing in a variable for

Re: output buffering

2009-02-15 Thread Martin Westin
I have also had varying success using output buffering so I would also sugger using a shell command that returns the output instead of printing it. Just to save you any further headache. But ob stuff should work and I too would be a little interested in knowing of any dos and don'ts within Cake's

Re: output buffering

2009-02-15 Thread brian
I might see if shell_exec() works, actually. On Sun, Feb 15, 2009 at 4:04 AM, mscdex msc...@gmail.com wrote: On Feb 15, 12:41 am, brian bally.z...@gmail.com wrote: ob_start(); system('/usr/bin/file -i -b ' . realpath($filepath)); //$type =

Re: output buffering

2009-02-15 Thread brian
It works now using shell_exec(), so no buffering necessary. $type = shell_exec('/usr/bin/file -i -b ' . escapeshellarg(realpath($filepath))); On Sun, Feb 15, 2009 at 12:55 PM, brian bally.z...@gmail.com wrote: I might see if shell_exec() works, actually. On Sun, Feb 15, 2009 at 4:04 AM,

Re: output buffering

2009-02-15 Thread brian
On Sun, Feb 15, 2009 at 9:39 AM, Martin Westin martin.westin...@gmail.com wrote: I have also had varying success using output buffering so I would also sugger using a shell command that returns the output instead of printing it. Just to save you any further headache. But ob stuff should work

output buffering

2009-02-14 Thread brian
1.2.1.8004 I've just discovered that upgrading has introduced a problem with my app related to output buffering. I remember, a little while back after a previous upgrade, that I found a another problem, in my email component, because of the way buffering is handled in the controller. I'm posting

loss of output, because of output buffering?

2006-09-24 Thread [EMAIL PROTECTED]
I've been struggling with this piece of element code: http://cakephp.org/pastes/show/02819fdeb95764a19c0d5e008c638f22 as you can see, when i put a die() inside the if branch, everything is normal, but when i replace die() with echo(), i don't see the output of the echo function, i don't see any