php-windows Digest 18 Nov 2003 21:51:13 -0000 Issue 2006
Topics (messages 22128 through 22136):
help with header on UNIX server
22128 by: Lawrence
22129 by: Eric COLINET
22130 by: Svensson, B.A.T. (HKG)
caching headers
22131 by: Donatas
Permission PHP IIS5.0
22132 by: Luiz Miguel Axcar
22133 by: Frank M. Kromann
mkdir with PHP 4.3.4 and IIS 5.0 on Windows 2000
22134 by: Dang Nguyen
22135 by: Cesar Cordovez
PHP and MySQL problem
22136 by: Alex
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 have two page header.htm and header.php
This is header.htm
<body>
<p><a href="header.php?xp=1">Link Google</a></p>
<p><a href="header.php?xp=2">Link Yahoo</a></p>
<p><a href="header.php?xp=3">Link Hotmail </a></p>
<p><a href="header.php?xp=4">Link Php.net</a></p>
</body>
This is header.php
<?
if ($xp==1)
header("location : www.google.com") ;
elseif ($xp==2)
header("location : www.yahoo.com") ;
elseif ($xp==3)
header("location : www.hotmail.com") ;
elseif ($xp==4)
header("location : www.php.net") ;
?>
<html>
<body></body>
</html>
When I run on my computer , IIS and windows xp , they run well , but when I
upload them on UNIX server , they run nothing , they don't redirect , I ask
admin why he anwsers he doesn't know , anyone can help me , thank you .
--- End Message ---
--- Begin Message ---
You miss the http:// before the url it could be part of the problem.
Eric
At 14:48 18/11/2003, Lawrence wrote:
I have two page header.htm and header.php
This is header.htm
<body>
<p><a href="header.php?xp=1">Link Google</a></p>
<p><a href="header.php?xp=2">Link Yahoo</a></p>
<p><a href="header.php?xp=3">Link Hotmail </a></p>
<p><a href="header.php?xp=4">Link Php.net</a></p>
</body>
This is header.php
<?
if ($xp==1)
header("location : www.google.com") ;
elseif ($xp==2)
header("location : www.yahoo.com") ;
elseif ($xp==3)
header("location : www.hotmail.com") ;
elseif ($xp==4)
header("location : www.php.net") ;
?>
When I run on my computer , IIS and windows xp , they run well , but when I
upload them on UNIX server , they run nothing , they don't redirect , I ask
admin why he anwsers he doesn't know , anyone can help me , thank you .
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
The unix box webserver is probaly set to not to allow
implict fetch with the GET method. Try use this:
$<your_local_variable> = $_GET[<GET_varibable_name>];
-----Original Message-----
From: Lawrence
To: [EMAIL PROTECTED]
Sent: 2003-11-18 14:48
Subject: [PHP-WIN] help with header on UNIX server
I have two page header.htm and header.php
This is header.htm
<body>
<p><a href="header.php?xp=1">Link Google</a></p>
<p><a href="header.php?xp=2">Link Yahoo</a></p>
<p><a href="header.php?xp=3">Link Hotmail </a></p>
<p><a href="header.php?xp=4">Link Php.net</a></p>
</body>
This is header.php
<?
if ($xp==1)
header("location : www.google.com") ;
elseif ($xp==2)
header("location : www.yahoo.com") ;
elseif ($xp==3)
header("location : www.hotmail.com") ;
elseif ($xp==4)
header("location : www.php.net") ;
?>
<html>
<body></body>
</html>
When I run on my computer , IIS and windows xp , they run well , but
when I
upload them on UNIX server , they run nothing , they don't redirect , I
ask
admin why he anwsers he doesn't know , anyone can help me , thank you .
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
I am writing caching class with GZIP support and such and I wonder if
there is a way to cache headers (== get headers set by header ();)
Donny
--- End Message ---
--- Begin Message ---
hello,
I'm having a problem with permissions to PHP in IIS 5.0. I'll be thankful if someone
help me.
PHP (or user) doesn't have permission to write in a file with fopen($arquivo,"w"),
delete file with unlink() or move_uploaded_file().
Errors:
Warning: fopen(D:\krakatoa\webroot\Corpsite\cms\admin\editor\novo.htm): failed to open
stream: Permission denied in
D:\krakatoa\webroot\Corpsite\cms\admin\EditorContentTransfer.php on line 33
============
Warning: move_uploaded_file(tux_puro_wallpaper.jpg): failed to open stream: Permission
denied in D:\krakatoa\webroot\Corpsite\cms\admin\RandomPicture.php on line 20
==================
Warning:
unlink(D:\krakatoa\webroot\Corpsite\cms\images\main_images\random_home\bd02.jpg):
Permission denied in D:\krakatoa\webroot\Corpsite\cms\admin\RandomPicture.php on line
41
php.exe or user needs permissions?
Some idea?
Thank you very mutch.
Best regards,
Luiz Miguel Axcar
Campinas, SP, Brasil
+55 (19) 9749-6970
[EMAIL PROTECTED]
http://www.geocities.com/lmaxcar
The penguin never sleeps.
--- End Message ---
--- Begin Message ---
Hi,
IIS runs all anonymous requests (php or static files) as a user called
IUSR_<maschine name>, unless you changed that. You can either change the
user or you can grant this user the privileges you need.
- Frank
> hello,
>
> I'm having a problem with permissions to PHP in IIS 5.0. I'll be
thankful if someone help me.
>
> PHP (or user) doesn't have permission to write in a file with
fopen($arquivo,"w"), delete file with unlink() or move_uploaded_file().
>
> Errors:
> Warning: fopen(D:\krakatoa\webroot\Corpsite\cms\admin\editor\novo.htm):
failed to open stream: Permission denied in
D:\krakatoa\webroot\Corpsite\cms\admin\EditorContentTransfer.php on line
33
> ============
> Warning: move_uploaded_file(tux_puro_wallpaper.jpg): failed to open
stream: Permission denied in
D:\krakatoa\webroot\Corpsite\cms\admin\RandomPicture.php on line 20
> ==================
> Warning:
unlink(D:\krakatoa\webroot\Corpsite\cms\images\main_images\random_home\bd02.jpg):
Permission denied in
D:\krakatoa\webroot\Corpsite\cms\admin\RandomPicture.php on line 41
>
>
> php.exe or user needs permissions?
> Some idea?
>
> Thank you very mutch.
>
> Best regards,
>
> Luiz Miguel Axcar
> Campinas, SP, Brasil
> +55 (19) 9749-6970
> [EMAIL PROTECTED]
> http://www.geocities.com/lmaxcar
> The penguin never sleeps.
--- End Message ---
--- Begin Message ---
I have a peculiar problem in one of my scripts. I cannot mkdir from the
script, but from a test script, the same exact code works.
test.php contains:
<?
include('func/mkdirs.php'); // this function recursively checks and create a
directory tree. I know it works fine.
$directory = '\\\\seint16\\TechComm\\Ceos\\Dang\\';
echo "Attempting to mkdir<br>\n";
mkdirs($directory,0755);
$dir_object = @dir ($directory) or die ("Could not open a directory stream
for <i>$directory</i>");
print_r($dir_object);
$dir_object->close();
?>
I have another script that takes some input from the user, namely to be a
new sub-folder to create on the destination directory. Just to eliminate
the possibility that the code from my script is not the problem, I commented
out everything that had to do with what I really wanted. In its place, I
substituted the above code from test.php. When I call test.php, the
directory is created fine. However, when I execute my problematic script,
which now contains the exact code, I get
Attempting to mkdir
Could not open a directory stream for \\seint16\TechComm\Ceos\Dang\
This is quite puzzling, since the exact same code should work in both
scripts, but it's not! Any help, please!
Thanks,
Dang Nguyen
--- End Message ---
--- Begin Message ---
VERY OFF TOPIC:
Nguyen? Any relation with the Poker Player? =-)
Dang Nguyen wrote:
I have a peculiar problem in one of my scripts. I cannot mkdir from the
script, but from a test script, the same exact code works.
[SNIP]
Thanks,
Dang Nguyen
--- End Message ---
--- Begin Message ---
Hello All!
I have a problem with Mysql and PHP.
Mysql isn't in c:\mysql so then I start php scripts in command line I
get the following lines:
> File 'c:\mysql\share\charsets\?.conf' not found (Errcode: 2)
> Character set '#14' is not a compiled character set and is not specified in the
> 'c:\mysql\share\charsets\Index' file
What can I do to get rid of them?
Best regards,
Alex
--- End Message ---