php-windows Digest 1 Apr 2002 00:23:10 -0000 Issue 1071
Topics (messages 12852 through 12857):
retry
12852 by: blulagoon
Newbie config probs with php + apache under Win ME
12853 by: blulagoon
Re: Cookies not working right on Win 2000 and IIS 5
12854 by: barry
Re: generating imagemaps?
12855 by: Hugh Bothwell
Re: ASP vs PHP
12856 by: John Lim
Re: Nead Help With A Php Script
12857 by: martinahingis
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 ---
I tried to send a message to this group, but it never appeared. It was
quite long, so forgive me if I make sure I can post before sending
again.
Blu
--- End Message ---
--- Begin Message ---
I set up Apache for Win32 many months ago, and it works extremely well
delivering not only HTML pages but Java Applets and Javascript. I am
fairly confident that it is working OK. Its version 1.3.12
I've downloaded and installed the zip file version of PHP into D:\php4\
Apache is D:\program files\apache group\apache\
I've editied the httpd.conf file to set ScriptAlias /php/
"D:/php4/" and added the two AddType application/x-httpd-php .php and
.php4 respectively. Also added the Action application/x-httpd-php
D:/php4/php.exe
I've renamed the ini file to php.ini and popped it across to C:\windows
- I'm not sure if the paths and directories section is correct though.
There is something about includes, but none of the directories I've seen
cited in examples are directories I have under my php4 directory (i.e.
/includes and /lib)
I've run php -i from the command prompt and I get the screen fulls of
html, which makes me think this is a config issue.
I've created a file in my htdocs directory called phpinfo.php as
follows:
<? phpinfo(); ?>
accessing this from localhost comes up with error "page not found" (it
is there honest)
Also wrote an html page as follows:
<html>
<body>
<? phpinfo(); ?>
</body>
</html>
This gives me a blank screen
The other html files in my htdocs directory are displayed as I would
expect.
I've also tried <?php as the tag with above but to no avail.
All helpful comments and pointers will be gratefully received
Blu
--- End Message ---
--- Begin Message ---
Hi,
I have similar problems. I am using w2k server IIS5, php 4.1.2, and one of
the php programs that requires cookie is not working. I've checked the
cookies directory but didn't find any cookie being created. I've turned on
every parameters which seems to be cookie related in php.ini, but still
doesn't work.
If anyone know the trick, please help.
Thanks
Barry
"Arijit Chaudhuri" <[EMAIL PROTECTED]> ¼¶¼g©ó¶l¥ó
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hi,
>
> Apart from RedHat Linux, I have also started using PHP on Windows 2000
> Professional with MySQL database. Eveything is working perfectly except
> cookies. As an example, if I use the following code:
>
> <?php
> setcookie("name", "test") ;
> print("$name") ;
> ?>
>
> "test" is not printed at first. If I do a browser refresh, it does get
> printed. This is true even if I set all relevent parameters for setcookie.
>
> The cookies work fine in Linux and also on all my clients Linux server.
>
> I am using the php.exe file from the InstallShield version of Windows PHP
> from php.net. Would greatly appreciate any help on where I am going wrong
or
> what needs to be done. The php.ini file has a session save path but
nothing
> for cookies.
>
> Regards,
> Arijit Chaudhuri
>
>
--- End Message ---
--- Begin Message ---
> I want to write a php script wich shows the user a large picture showing a
> lattice. every field of this lattice should be "clickable" & every field
> should have his own link. is this possible (generating an imagemap e.g.?)
(shrug) sure... I don't understand the need to do
it dynamically, but it can be done.
client-side image map syntax:
<img src='myimage.gif' usemap='#mapname'>
<map name='mapname'>
<area [shape='shapename'] COORDS='x,y,...' [href='linkURL' | nohref]>
...
</map>
shape can be rect, circle, or poly; default is rect.
for rect, coords are left,top,right,bottom
for circle coords are x,y,radius
for poly, coords are x1,y1,x2,y2,....
href is the link to go to; nohref means do nothing (this
can be useful for putting 'cutout' areas in the image map).
any number of areas can be defined, with earlier ones
taking precedence in case of overlap.
So you have to figure out the corner coordinates of
each section of the lattice and generate <area ...>
tags as needed.
Note: it's probably a good plan to include text links
or link to a text-based alternate page while you're
at it.
--- End Message ---
--- Begin Message ---
Hello Ciro,
For database access and automatic generation of forms, see
http://phplens.com/
You can create search/edit/new record forms automatically through the web
user
interface with little coding. It also has a low level PHP interface for
deep coding. This is a commercial product, developed by our company.
Regards, John
Ciro Martins <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> Hi!
>
>
> I've been programming in PHP for long. But one question that always is
> coming to my mind is to know if there exists some kind of tools (like
> for SP. It exists a tool called ASPWebTools for wich it is possible to
> develop applications written in ASP and connecting with DB like SQL
> Server in an automatic way) that can help in the development of
> applications using PHP and databases. For instance, that could allow to
> develop automatically forms to connect to databases using PHP.
>
> Does anyone know any related application or tools.
> Because in ASP with that tool is more easy to develop code.
>
> Thanks in advance
>
> Ciro Martins
>
--- End Message ---
--- Begin Message ---
"Alain Kumschick FrançOis Robert" <[EMAIL PROTECTED]> wrote in
message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hello,
>
> I need a php script that checks if the there is a cookie set with the
users
> username
> and if not
> it brings you to an other page and telling you that you are not loged in!
>
> thanks for any help
>
>
> alain kumschick
> [EMAIL PROTECTED]
> http://www.kumschicknw.com
>
>
//simply chech the username as a cookie
if(!isset($HTTP_COOKIE_VARS["username"])
{
header("Location: loginerror.php"); //no cookie forward to the
loginerror.php
}
else
{
//cookie exists. you should check whether the username is valid. besides
your code is going here
}
-----------------------------
martina.
--- End Message ---