php-windows Digest 15 Mar 2005 04:43:46 -0000 Issue 2607
Topics (messages 25740 through 25745):
dynamic -> static html
25740 by: Aidal
25742 by: Aidal
PHP ugly bug
25741 by: Raul IONESCU
25744 by: Raul IONESCU
page output to file
25743 by: Aidal
[suspicious - maybe spam] Re: [suspicious - maybe spam] [PHP-WIN] Re: dynamic
-> static html
25745 by: Irvin Piraman
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hi NG.
I'm trying to re-make a script I once had to make static html out of some
dynamic sites.
I'm having trouble though, I can't recall how I got the script output to a
file instead of to the screen/browser.
I use a local apache server to run the script from and it's supposed to
fetch the output from a remote script.
What I'm trying to do is this:
----------------------------
[local apache]: fetch.php requests http://www.domain.com/index5.php from
[remote apache]
[local apache]: fetch.php saves the output (from index5.php above) to
index.html on the local server.
This is fairly simple I know, but I've forgotten how I did it last time.
Any help would be much appreciated.
PS. I have access to the remote server as well if running fetch.php from
there would make any difference.
/Aidal
--- End Message ---
--- Begin Message ---
Nevermind... I found out now.
file_get_contents(http://www.blabla.com/index.php); does the job it seems.
"Aidal" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi NG.
>
> I'm trying to re-make a script I once had to make static html out of some
> dynamic sites.
> I'm having trouble though, I can't recall how I got the script output to a
> file instead of to the screen/browser.
>
> I use a local apache server to run the script from and it's supposed to
> fetch the output from a remote script.
>
> What I'm trying to do is this:
> ----------------------------
>
> [local apache]: fetch.php requests http://www.domain.com/index5.php from
> [remote apache]
> [local apache]: fetch.php saves the output (from index5.php above) to
> index.html on the local server.
>
> This is fairly simple I know, but I've forgotten how I did it last time.
>
> Any help would be much appreciated.
>
> PS. I have access to the remote server as well if running fetch.php from
> there would make any difference.
>
> /Aidal
--- End Message ---
--- Begin Message ---
I have created a stored procedure wich is accessing an remote linked MSSQL
2000 server and works perfectly from Querry Analyzer. The problem occurs
when I try to execute the stored procedure from php 5.0.3 (by using mssql_bind
or mssql_query); I've got no error but no result either. It seems that php
doesn't allows to access remote linked servers!
--
Raul IONESCU
--- End Message ---
--- Begin Message ---
I have created a stored procedure wich is accessing an remote linked MSSQL
2000 server and works perfectly from Querry Analyzer. The problem occurs
when I try to execute the stored procedure from php 5.0.3 (by using mssql_bind
or mssql_query); I've got no error but no result either. It seems that php
doesn't allows to access remote linked servers!
-----------------------
Raul IONESCU
--- End Message ---
--- Begin Message ---
Hi NG.
I'm having trouble making a local php script open a remote php script and
save the output of the remote script in a local file.
I have FTP access to the remote server, so if placing the "local" script at
the same server as the "remote" script, makes this easier this would also be
an option for me.
What I want to do is like this:
A local script like: http://localhost/fetch_remote_contents.php
fetch_remote_contents.php should open the remote script
http://www.blablabla.com/index5.php?id=23554
and save it's output in a local file instead of displaying it in a browser.
If this can't be done, running fetch_remote_contents.php from the same
remote server as index5.php and saving the output in a file on the remote
server is also an option as I have access to it.
Can anyone help me out here, I'm pretty sure it's possible because I think
I've done it before I just forgot how :o(
Thanks, Aidal
--- End Message ---
--- Begin Message ---
Just to add...
> file_get_contents(http://www.blabla.com/index.php); does the job it seems.
This doesn't work through proxy with NTLM authentication.
--- End Message ---