php-windows Digest 10 Jul 2001 16:52:41 -0000 Issue 645
Topics (messages 8214 through 8231):
Re: php and Dreamweaver (How To)
8214 by: Jason Gan
8215 by: John Meyer
8227 by: Carlos Andre Marques Moreira
about wml and session
8216 by: gary
8219 by: Ruslan Ohitin
8221 by: gary
Using PHP in Web Pages
8217 by: David Cox
8223 by: Michel Laine
8225 by: Asendorf, John
8228 by: Ben Bleything
Re: php > XML output in IE: no display
8218 by: Patrick Sibenaler
8224 by: Michel Laine
PHP and IIS and Win2k and Access Violation problems...
8220 by: elias
8231 by: Frank M. Kromann
Loading PHP3 page
8222 by: ABC
8226 by: Hoth
8229 by: Ben Bleything
TE INFORMAMOS
8230 by: COFOR
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]
----------------------------------------------------------------------
Michael
Actually what you're after is Dreamweaver 4 Ultradev... The one that
actually
doesn't wreck the code...
If you want to code PHP, you should go for either these two editors:
(1) HomeSite 4.5.2 --- The PHP Editor on steroids.
(2) UltraEdit --- I'm currently using this at work because it's shareware.
You can customize the wordfile which does syntax highlighting in UltraEdit.
It can't colour the # comment. It is still OK for work.
Another product which deserves mention is the Komodo IDE by ActiveState. Go
to http://www.activestate.com and download it.
It features PHP integration and debugger, which makes it a whole lot better
than Zend's IDE offering. However, I can't get it to work! :D
Another upcoming IDE worthy of mention is PHP Evolve.
http://www.phpevolve.com shows some impressive screenshots.
PHP Evolve is due for release on October 29th 2001
The interface looks a lot like HomeSite, but with a real focus on PHP and
MySQL database for real PHP developers...
Connecting to Access database...
Use the ADODB database abstraction library to do all your code against. It
helps to separate DB-specific functions from code.
-----Original Message-----
From: Michael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 10 July 2001 2:26 PM
To: [EMAIL PROTECTED]
Subject: php and Dreamweaver (How To)
Hi
I have dreamweaver 3 installed and would like to know how I can integrate
php code into it and then get to see it running in my browser.
If possible I would also like to be able to connect to an already
established Microsoft Access database, is this possible.
I am very new to php and would be grateful for any pointers that you can
give me.
Kind Regards
Krysia
At 05:25 AM 7/10/01 +0100, Michael wrote:
>Hi
>
>I have dreamweaver 3 installed and would like to know how I can integrate
>php code into it and then get to see it running in my browser.
>
>If possible I would also like to be able to connect to an already
>established Microsoft Access database, is this possible.
>
>I am very new to php and would be grateful for any pointers that you can
>give me.
>
>Kind Regards
>
>Krysia
First off, you're looking at PHP from the point of a client-side designer
(a very common mistake).
PHP runs off of a server, not off of your browser. You need a web server
program in order to "see" the PHP files, or more accurately stated, the
output of the PHP files (which renders as normal HTML). Fortunately, many
free servers out there exist, such as Microsoft Personal Web Server and/or
Apache. You also have to configure these servers to run PHP (not a
completely easy task, but not difficult either).
I'd suggest looking at http://www.php.net/manual/en/installation.php to
learn how to install PHP.
As far as the Access goes, yes you can, but you need to configure it
through ODBC. Check out http://www.php.net/FAQ.php#4.2.
John Meyer
[EMAIL PROTECTED]
Programmer
If we didn't have Microsoft, we'd have to blame ourselves for all of our
programs crashing
Hi,
You can put php code using the HTML Editor of dreamweaver. It is just a
simple text editor (like notepad). Just put your code there, and dreamweaver
won't mess it.
Build your page with dreamweaver and then add your code using the HTML
editor.
Dreamweaver makes it easy to build a HTML page, it also have some javascript
code, that it call behaviors, you can add to your page, but it don't have
server side programming facilities (php, asp, ...). I've heard that
dreamweaver ultradev is the macromedia solution for programming, but i never
worked with it. I use dreamweaver 3.
To see it running you'll have to have a web server running, anyone will do,
apache, iis, pws, ...
Yes, it is possible to connect to a MS Access database using ODBC, you'll
have to create a System DSN. Check the php mannual for odbc functions. You
can download the mannual on the php site (www.php.net)
Carlos Andr� Marques Moreira
[EMAIL PROTECTED]
Bolsista CNPq / RHAE
SENAI-CE/CETAE
2001 Ano Internacional do Volunt�rio
-----Original Message-----
From: Michael [mailto:[EMAIL PROTECTED]]
Sent: ter�a-feira, 10 de julho de 2001 01:26
To: [EMAIL PROTECTED]
Subject: php and Dreamweaver (How To)
Hi
I have dreamweaver 3 installed and would like to know how I can integrate
php code into it and then get to see it running in my browser.
If possible I would also like to be able to connect to an already
established Microsoft Access database, is this possible.
I am very new to php and would be grateful for any pointers that you can
give me.
Kind Regards
Krysia
Hi all,
I am trying to use session in my wml. So, I add the following
statement in my php.
header("Content-type: text/vnd.wap.wml");
echo ("<?xml version=\"1.0\" ?>\n");
echo ("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">");
session_start();
session_register("temp");
But it's not sucessful and I get the following error message. Should I
set some parameter to use session in wml format? Can anyone help me?
Thanks!
<b>Warning</b>: Cannot send session cookie - headers already sent by
(output started at c:\inetpub\wwwroot\dinol\index.php:3) in
<b>c:\inetpub\wwwroot\dinol\index.php</b> on line <b>6</b><br>
<br>
<b>Warning</b>: Cannot send session cache limiter - headers already
sent (output started at c:\inetpub\wwwroot\dinol\index.php:3) in
<b>c:\inetpub\wwwroot\dinol\index.php</b> on line <b>6</b><br>
Gary
Hello gary,
Try to put session_* functions before any output (echo, etc):
session_start();
session_register("temp");
header("Content-type: text/vnd.wap.wml");
echo ("<?xml version=\"1.0\" ?>\n");
echo ("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
\"http://www.wapforum.org/DTD/wml_1.1.xml\">");
g> Hi all,
g> I am trying to use session in my wml. So, I add the following
g> statement in my php.
g> header("Content-type: text/vnd.wap.wml");
g> echo ("<?xml version=\"1.0\" ?>\n");
g> echo ("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
g> \"http://www.wapforum.org/DTD/wml_1.1.xml\">");
g> session_start();
g> session_register("temp");
g> But it's not sucessful and I get the following error message. Should I
g> set some parameter to use session in wml format? Can anyone help me?
g> Thanks!
g> <b>Warning</b>: Cannot send session cookie - headers already sent by
g> (output started at c:\inetpub\wwwroot\dinol\index.php:3) in
g> <b>c:\inetpub\wwwroot\dinol\index.php</b> on line <b>6</b><br>
g> <br>
g> <b>Warning</b>: Cannot send session cache limiter - headers already
g> sent (output started at c:\inetpub\wwwroot\dinol\index.php:3) in
g> <b>c:\inetpub\wwwroot\dinol\index.php</b> on line <b>6</b><br>
session_start() wants to send a cookie with session id, but it can't.
g> Gary
--
Best regards,
Ruslan Ohitin
mailto:[EMAIL PROTECTED]
Hi Ruslan,
I have tried to test it, but it does not work. When I put session_*
before the header, it will add html header in front of my php automatically.
So, my wml browser cannot access it. I have tried to replace default_mimetype
= "text/html" to default_mimetype = "text/wap.vnd.wml" and I cut the header
function. Finally, I get the same error message.Can you help me to solve it?
Thanks!
Gary
Ruslan Ohitin wrote:
> Hello gary,
>
> Try to put session_* functions before any output (echo, etc):
>
> session_start();
> session_register("temp");
>
> header("Content-type: text/vnd.wap.wml");
> echo ("<?xml version=\"1.0\" ?>\n");
> echo ("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
> \"http://www.wapforum.org/DTD/wml_1.1.xml\">");
>
> g> Hi all,
> g> I am trying to use session in my wml. So, I add the following
> g> statement in my php.
> g> header("Content-type: text/vnd.wap.wml");
> g> echo ("<?xml version=\"1.0\" ?>\n");
> g> echo ("<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"
> g> \"http://www.wapforum.org/DTD/wml_1.1.xml\">");
> g> session_start();
> g> session_register("temp");
> g> But it's not sucessful and I get the following error message. Should I
> g> set some parameter to use session in wml format? Can anyone help me?
> g> Thanks!
>
> g> <b>Warning</b>: Cannot send session cookie - headers already sent by
> g> (output started at c:\inetpub\wwwroot\dinol\index.php:3) in
> g> <b>c:\inetpub\wwwroot\dinol\index.php</b> on line <b>6</b><br>
> g> <br>
> g> <b>Warning</b>: Cannot send session cache limiter - headers already
> g> sent (output started at c:\inetpub\wwwroot\dinol\index.php:3) in
> g> <b>c:\inetpub\wwwroot\dinol\index.php</b> on line <b>6</b><br>
> session_start() wants to send a cookie with session id, but it can't.
>
> g> Gary
>
> --
> Best regards,
> Ruslan Ohitin
> mailto:[EMAIL PROTECTED]
can someone here steer me in the correct direction?
heres what i want to do. (im sure its possible)??
i dont want to have to edit every web page when i change something. can i
make multiple pages, (say a header, footer, links, maintext, and then use
PHP to call those pages up and put them in certain places in a web page?
Without have to set up html frames? Maybe just add a line of code to place
it dynamicaly or something....
thanks, dave
David Cox wrote:
> can someone here steer me in the correct direction?
>
> heres what i want to do. (im sure its possible)??
>
> i dont want to have to edit every web page when i change something. can i
> make multiple pages, (say a header, footer, links, maintext, and then use
> PHP to call those pages up and put them in certain places in a web page?
> Without have to set up html frames? Maybe just add a line of code to place
> it dynamicaly or something....
>
> thanks, dave
I think that you should take a closer look at Templates.
Templates do just about what you have described there.
Templates can be done with PHPlib or with an extension called Fasttemplate.
There is even one called "cached fattemplate" out there.
I use PHPlib myself.
To help you on the way i suggest you look at these:
http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/
http://www.phpbuilder.com/columns/david20000512.php3
http://www.phpbuilder.com/columns/sascha19990316.php3
http://www.phpbuilder.com/columns/kendall20001122.php3
--
Michel Laine
This is how my entire website is built...
I'm fairly certain you can find all of the header, sidebar and footer code
that I use on Zend.com or phpbuilder.com
If you'd like to have the files sent directly to you, just mail me directly
and I'll send them to you.
John
---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Aliquando et insanire iucundum est
> -----Original Message-----
> From: David Cox [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 10, 2001 4:19 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] Using PHP in Web Pages
>
>
> can someone here steer me in the correct direction?
>
> heres what i want to do. (im sure its possible)??
>
> i dont want to have to edit every web page when i change
> something. can i
> make multiple pages, (say a header, footer, links, maintext,
> and then use
> PHP to call those pages up and put them in certain places in
> a web page?
> Without have to set up html frames? Maybe just add a line of
> code to place
> it dynamicaly or something....
>
> thanks, dave
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>
If this is too 'big' of a solution (ie, you don't need all that
functionality) you could just 'include header.inc', 'include
footer.inc', etc. Check the manual for details..
Although, templates will probably be a bit more flexible, I would
guess...
Ben
-----Original Message-----
From: Michel Laine [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 5:00 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Using PHP in Web Pages
David Cox wrote:
> can someone here steer me in the correct direction?
>
> heres what i want to do. (im sure its possible)??
>
> i dont want to have to edit every web page when i change something.
can i
> make multiple pages, (say a header, footer, links, maintext, and then
use
> PHP to call those pages up and put them in certain places in a web
page?
> Without have to set up html frames? Maybe just add a line of code to
place
> it dynamicaly or something....
>
> thanks, dave
I think that you should take a closer look at Templates.
Templates do just about what you have described there.
Templates can be done with PHPlib or with an extension called
Fasttemplate.
There is even one called "cached fattemplate" out there.
I use PHPlib myself.
To help you on the way i suggest you look at these:
http://www.devshed.com/Server_Side/PHP/PHPFastTemplate/
http://www.phpbuilder.com/columns/david20000512.php3
http://www.phpbuilder.com/columns/sascha19990316.php3
http://www.phpbuilder.com/columns/kendall20001122.php3
--
Michel Laine
Don't ask me what I did, but same code, same server, same client
and today it works. Yes, I know there's something called a cache
that could have caused the problem, and I had also checked that.
Nevertheless, it must have been some data stuck somewhere or IE
beeing stubborn, since content changed but data the mime got
ignored completely. My hint: shut down everything. And restart
the server/client. It will work as expected...
So again: To display XML, use:
header ("Content-type: text/xml");
at the top of your script (standard mime)
If you prefer to save it, add content disposition:
header ("Content-type: text/xml");
header ("Content-disposition: attachment; filename=\"table.xml\"");
Since netscape cannot handle XML, it will save it under either
scriptname.xml or when content disposition added, table.xml and
then call IE to display it.
thanx for the quick responses people...
greets,
patrick./
Patrick Sibenaler wrote:
>
> Has anyone figured out how to trick IE into displaying an XML file
> that is produced by a PHP script (script.php) properly?
>
> What happens usually is that you send the mime 'text/xml', but IE
> still sees content as php because the script is called php. Also
> adding <Content-disposition: filename="some.xml"> to the header
> does not help and is boldly ignored by IE.
>
> Nice detail: if the url is called using Netscape, Netscape will
> save the file out to the disk, give it the suffix .xml and call
> IE which then will display content perfectly.
>
> Any hints are greatly appreciated.
>
> greets,
> patrick./
Patrick Sibenaler wrote:
> Don't ask me what I did, but same code, same server, same client
> and today it works. Yes, I know there's something called a cache
> that could have caused the problem, and I had also checked that.
> Nevertheless, it must have been some data stuck somewhere or IE
> beeing stubborn, since content changed but data the mime got
> ignored completely. My hint: shut down everything. And restart
> the server/client. It will work as expected...
Don't you have *any* experience with windows? ;-)
Any windows platform should be rebooted as a first resource in a normal
fault-finding arsenal.
I remember that i saw a sign in a Engineers workshop (many years from
now) where it said something like this:
Rule #1: Halt and reboot! if this doesn't fix it - Try again.
Rule #2: That's not a bug, that's a feature.
Rule #3: That is fixed in the next revision.
Rule #4: That is not supported.
...
...
--
Michel Laine
Hi!
I've recently setup PHP on my Win2000 with IIS5,
Sometimes PHP works and other time it doesn't...
When it doesn't it just prints out:
PHP has encountered an Access Violation at 00EC24B6
Can't someone shed some lights please?
Could you tell us some more about yor configuration ?
Do you use CGI or ISAPI, what extensions do you use ?
- Frank
P.S. CGI is the most stable version at the moment.
> Hi!
>
> I've recently setup PHP on my Win2000 with IIS5,
>
> Sometimes PHP works and other time it doesn't...
>
> When it doesn't it just prints out:
> PHP has encountered an Access Violation at 00EC24B6
>
> Can't someone shed some lights please?
>
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
>
>
How can I make my Apache 1.3.20 / php 4.05 to work with php3 pages?? I
am using php asa a module in Apache.
Thanks.
Add the following line to your httpd.conf. After the line where you have
loaded the modul.
AddType application/x-httpd-php .php3
cu
Hoth
------------------------
Hoth Gebhardt
[EMAIL PROTECTED]
Germany
------------------------
"Abc" <[EMAIL PROTECTED]> schrieb im Newsbeitrag [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> How can I make my Apache 1.3.20 / php 4.05 to work with php3 pages?? I
> am using php asa a module in Apache.
>
> Thanks.
>
In your httpd.conf file (/etc/httpd/conf/httpd.conf, typically, on unix
anyway) find the lines that looks something like
AddType application/x-httpd-php .php .phtml
AddType application/x-httpd-php-source .phps
And just add .php3 to the first list (so it would read .php .phtml
.php3) If you have index.php3 files that you want served up by default,
also look into the DirectoryIndex line.
Good luck,
-----Original Message-----
From: ABC [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 3:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Loading PHP3 page
How can I make my Apache 1.3.20 / php 4.05 to work with php3 pages?? I
am using php asa a module in Apache.
Thanks.
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
Jacarilla 8.7.2001.Publicidad/Ense�anza a Distancia
Hola que tal:
El motivo de la presente carta es informarte de la posibilidad de poder
realizar alg�n curso a distancia de tu inter�s, cursos relacionados con tu
trabajo inquietudes y ocio.ect.El conocimiento es el mayor patrimonio de
que podemos disponer.
Nos dedicamos desde 1996.a impartir cursos a distancia disponemos
de una amplia variedad de cursos sencillos para poder seguirlos
comodamente desde cualquier parte del mundo y a unos precios muy
competitivos.
NET
------------
Comercio Electr�nico
Redes y Sistemas
Sistemas Servers
Dise�o Web
Direccion Empresa Net
Management Business
BUSSINES
------------
Gestor Comercial y Marketing
Marketing Mix
Relaciones Publicas
Direcci�n Planificaci�n de Empresa
Recursos Humanos
Comercio Exterior
Direccion Comercial
Gesti�n Medio Ambiental
Control de Calidad
Management Bussines
Direcci�n de Restaurantes
----------------------------------
SALUD SUPERACION PERSONAL
-------------------------------------
Superaci�n de Estr�s
Psicoterapia
Diet�tica y Nutrici�n
Dieta Mediterr�nea
Nutr� terapia y Salud
Nutrici�n y Deporte
Cocina Sana
Monitor Aer�bic-Fittnes
Monitor Yoga Tai-Chi
Hipnoterapia
Quiromasaje y Reflexoterapia
Aromaterapia
Cosm�tica Natural
Hierbas Medicinales
Balnoterapia y Salud
--------------------------------------
Los cursos son de 200.horas lectivas el precio standar por curso es de
35.000.pts.Espa�a a plazos.Iberoamerica 150.usa dolar aplazados.
El Diploma:
"T�cnico Especialista"
El tiempo aproximado por curso dependiendo de los conocimientos en
areas similares de que se disponga,es entre 2-6.meses.aprox.
Si desean que les ampliemos informaci�n pueden enviar un e-mail les
contestaremos con la mayor brevedad y les indicaremos nuestro espacio
web que se encuentra en reformas.
Envie e-mail:
[EMAIL PROTECTED]
[EMAIL PROTECTED]
Sin otra que rogarte me envies un e-mail si estas interesado/a
Te enviamos un saludo.
Merce Sanchez
Gesti�n Integral 1.S.L
C/ Virgen de Bel�n, 30
03310 Jacarilla (Alicante)ESPA�A
Si desea no recibir mas e-mail. [EMAIL PROTECTED]