php-windows Digest 10 Mar 2008 10:39:37 -0000 Issue 3440

Topics (messages 28823 through 28824):

Re: Seeking a function, class or other means to save the current PHP page as an 
HTML file on the server.
        28823 by: TG

PHP + Apache + IIS/SMTP
        28824 by: Alain Roger

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 ---
So you're getting things like this in your HTML output?


<h2>Hello <?php echo $firstname; ?>!



Just raw without the PHP code being interpretted?

Sounds odd..   you could try the output buffering as someone else 
recommended.   Or store all your HTML in a variable so it all gets 
processed before you output.  Or worst case scenario, try saving it all to 
a temporary file, but then you have to worry about cleaning up old files.  
You probably don't have to do that.

Still, if you are getting raw PHP in your output, then I think almost any of 
these are going to end up with at least a raw "echo $output" type thing.  
I'm guessing something else is wrong.

Let us know if you find a solution.

-TG

----- Original Message -----
From: "Greg Cocks" <[EMAIL PROTECTED]>
To: "TG" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
Date: Fri, 7 Mar 2008 11:52:58 -0700
Subject: RE: [PHP-WIN] Seeking a function, class or other means to save the 
current PHP page as an HTML file on the server.

> Cheers TG,
> 
> The query page is a form that gather the user selections, queries a
> PostgreSQL database using them, and returns some analytical data as an
> array which I serialise into a text file.
> 
> The results page, the one I want to let the user save as an HTML 'file'
> is a PHP page that unserialises the data out of the array from the text
> file, and displays it in some formatted tables, one sub-table per data
> row (1 row to many hundreds) - as well as some SESSION variables, etc of
> the SQL string used to get the data (as a user reference) and the logged
> on user name & date, a list of some reference data (what the qualifers,
> etc mean) pulled directly out of the database, etc, etc.
> 
> Using the File... Save Page As... method in the browser works well
> enough to save the HTML as a file/directory pair (although if you open
> separately, it looses track of the CSS file of course...)
> 
> The 'breakage' is that because the results page file needs to be a PHP
> to unserialise the array, get the reference data from the database, etc,
> etc if you save it as an HTML page using the header / disposition method
> it displays all the pure HTML just fine of course - but gags on the PHP,
> thinking it is HTML...
> 
> I know I have explained this simplistic and have a lot to learn about
> all this... the newbie toe-dipping phenomena!   :-)
> 
> Regards,
> GREG COCKS
> Gcocks | at | stoller.com
>  
> -----Original Message-----
> From: TG [mailto:[EMAIL PROTECTED] 
> Sent: Thursday, March 06, 2008 9:59 PM
> To: Greg Cocks; [EMAIL PROTECTED]
> Subject: RE: [PHP-WIN] Seeking a function, class or other means to save
> the current PHP page as an HTML file on the server.
> 
> 
> If by 'breaks' you mean that it's not saving as a .HTML file, you should
> be 
> able to set the filename in the header when you force the download.
> 
> If that's not it, if you care to elaborate, maybe we can give a better 
> suggestion.
> 
> -TG
> 
> ----- Original Message -----
> From: "Greg Cocks" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Date: Thu, 6 Mar 2008 20:40:36 -0700
> Subject: RE: [PHP-WIN] Seeking a function, class or other means to save
> the 
> current PHP page as an HTML file on the server.
> 
> > Thanks so much to all for the replies...
> >  
> > 
> > Michael's method works work for a static page... but as the (*.php)
> page
> > gets data from a PostgreSQL database to display it "breaks", not
> > unreasonably, when it is saved using this method as a *.html.
> >  
> > 
> > Fun to learn new stuff... I am off to try and learn how I can make
> this
> > work, with the leads provided...    :-)
> >  
> > 
> > In the *meantime*, under the "Save As HTML" icon I have put some text
> > letting the user know about File... Save Page As... (or ... Save
> As...)
> >  
> > 
> > I am going to look at maybe using this method with a PDF generation
> > method to 'make' the page as a PDF for them to download...
> >  
> > 
> > Thanks again... what a resource...
> > 
> > Regards,
> > 
> > GREG COCKS
> > 
> > gcocks | at | stoller.com <mailto:[EMAIL PROTECTED]> 
> 
> 

--- End Message ---
--- Begin Message ---
Hi,

i know that this is not necessary the best forum for that, but i need to get
a real feedback and i guess you already faced the same issue as mine.
basically, i develop php web application on windows XP platform.
So i have apache 2.24 installed and PHP 5.2.4.

now i would like to test if my application send emails, so i've checked my
php.ini file and it seems ok.
i tried to use IIS from windows to define a default SMTP server, but as my
emails are not sent, i guess something is wrong with IIS.

so does it exist a free SMTP server (similar that linux daemon) but running
on windows XP ?
if yes, where can i find it and what steps should i perform to be sure my
emails are sent ?

i do not want to transfer all my web application each time i want to test
email sending...
i would like to test it locally.

How do you know where to find settings about ISS/SMTP to send emails ?

thanks for your feedback.

-- 
Alain
------------------------------------
Windows XP SP2
PostgreSQL 8.2.4 / MS SQL server 2005
Apache 2.2.4
PHP 5.2.4
C# 2005-2008

--- End Message ---

Reply via email to