1. RE: PHP fun

Hi Mr Trick,

I use PHP as a HTML pre-processor for my web site.  (not dynamic just
to create static pages that I upload).
PHP is very easy to learn.  Based very much on C syntax.

Web Servers are a widely available and mostly free. Most can be 
installed and setup to use PHP in a very small amount of time.
I'd suggest if your using PHP for dynamic web page creation that you
install a web server on your development PC.  Probably best to choose
whatever the live web server is.  If that's not possible there are
many to choose from and very easy to use.

How are you running the bacth file? From the console or from Windows
by double clicking on it?
What window is staying open the DOS command prompt or a web browser?

good luck,

Ray Smith
http://rays-web.com


mistertrik at hotmail.com wrote:
> Has anyone written a euphoria to php generator/utility?
> 
> I have to write a php frontend for work, and I don't know php very well 
> (read: all).
> 
> I also have made a simple batch file to run my php files, seeing as I 
> don't 
> have access to a web server. Only problem with it is that it doesnt 
> close 
> after executing, so I have to close it manually.
> Any ideas on how to do that?
> 
> Batch file contents:
> 
> c:\php\php\php-cli.exe %1 > c:\temp\phptmp.htm
> "c:\program files\internet explorer\iexplore.exe" c:\temp\phptmp.htm
> 
> Thanks
> =====================================================
> .______<-------------------\__
> / _____<--------------------__|===
> ||_    <-------------------/
> \__| Mr Trick

new topic     » topic index » view message » categorize

2. RE: PHP fun

>Web Servers are a widely available and mostly free. Most can be
>installed and setup to use PHP in a very small amount of time.
>I'd suggest if your using PHP for dynamic web page creation that you
>install a web server on your development PC.  Probably best to choose
>whatever the live web server is.  If that's not possible there are
>many to choose from and very easy to use.

Ok, I have no idea.
The finished script will be running on our intranet, and interfacing with an 
Oracle (or something similar) backend.
Right now I'm still at RTFM level, so I have very little idea about how to 
configure everything. The batch file lets me view my php files, so atm that 
is fine, cause I'm only learning. However, I may need something like what 
you have described in the near future.

>How are you running the bacth file? From the console or from Windows
>by double clicking on it?
>What window is staying open the DOS command prompt or a web browser?

When I run the batch file the IE window opens. The batch window doesn't 
close until the IE window closes, or I do it manually.

So, the batch file is dependent on IE... I need to change this line in the 
batch file:
#
"c:\program files\internet explorer\iexplore.exe" c:\temp\phptmp.htm
#
into something that opens IE *independently*, and allows the batch file to 
finish.

No idea...
=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick

new topic     » goto parent     » topic index » view message » categorize

3. RE: PHP fun

mistertrik at hotmail.com wrote:
[snip]
>... I need to change this line in the 
> batch file:
> #
> "c:\program files\internet explorer\iexplore.exe" c:\temp\phptmp.htm
> #
> into something that opens IE *independently*, and allows the batch file 
> to 
> finish.

One thing to try in your batch file is:

"start c:\temp\phptmp.htm"

start "any_known_file_type.ext" will start the default 
application based on the extension type.

Regards,

Ray Smith
http://rays-web.com

new topic     » goto parent     » topic index » view message » categorize

4. RE: PHP fun

That takes a little longer for some reason, but it works, thank you.

A new problem has arisen now... that although I can view php files properly 
by double-clicking on them, I can't open them through IE.

This is a problem because most html forms use php for processing. With the 
current solution, it doesn't use the batch file for processing, but tries to 
open it as html... which doesn't work!


=-=======
MrTrick
>From: Ray Smith <smithr at ix.net.au>
>Subject: RE: PHP fun
>
>
>mistertrik at hotmail.com wrote:
>[snip]
> >... I need to change this line in the
> > batch file:
> > #
> > "c:\program files\internet explorer\iexplore.exe" c:\temp\phptmp.htm
> > #
> > into something that opens IE *independently*, and allows the batch file
> > to
> > finish.
>
>One thing to try in your batch file is:
>
>"start c:\temp\phptmp.htm"
>
>start "any_known_file_type.ext" will start the default
>application based on the extension type.
>
>Regards,
>
>Ray Smith
>http://rays-web.com
>
>
>
>




=====================================================
.______<-------------------\__
/ _____<--------------------__|===
||_    <-------------------/
\__| Mr Trick

new topic     » goto parent     » topic index » view message » categorize

5. RE: PHP fun

mistertrik at hotmail.com wrote:

[snip]

> A new problem has arisen now... that although I can view php files 
> properly 
> by double-clicking on them, I can't open them through IE.

PHP is a server side scripting language.  When you open HTML files
by double clicking on them on they loaded straight into IE 
(ie. there is no server processing).

As far as I know you need a web server installed to see the results 
of php scripts in a web browser.  
There might be ways around this but I don't know.  Maybe some PHP 
IDE's allow the processing of PHP scripts inside html files??  

You should probably also do some reading about PHP and web 
development, I'm sure they are heaps of resources available on the net.
You should probably also ask your questions on a PHP list ... 
I'm happy to answer your questions ... but this isn't a PHP list!).

Ray Smith
http://rays-web.com

> 
> This is a problem because most html forms use php for processing. With 
> the 
> current solution, it doesn't use the batch file for processing, but 
> tries to 
> open it as html... which doesn't work!
> 
> 
> =-=======
> MrTrick
> >From: Ray Smith <smithr at ix.net.au>
> >Reply-To: EUforum at topica.com
> >To: EUforum <EUforum at topica.com>
> >Subject: RE: PHP fun
> >Date: Wed, 31 Jul 2002 06:23:50 +0000
> >
> >
> >mistertrik at hotmail.com wrote:
> >[snip]
> > >... I need to change this line in the
> > > batch file:
> > > #
> > > "c:\program files\internet explorer\iexplore.exe" c:\temp\phptmp.htm
> > > #
> > > into something that opens IE *independently*, and allows the batch file
> > > to
> > > finish.
> >
> >One thing to try in your batch file is:
> >
> >"start c:\temp\phptmp.htm"
> >
> >start "any_known_file_type.ext" will start the default
> >application based on the extension type.
> >
> >Regards,
> >
> >Ray Smith
> >http://rays-web.com

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu