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
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
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?
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
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
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
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
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 =
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,
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
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
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
12 matches
Mail list logo