Nothing is too advanced for this newgroup and there is not other better. I
did not read your problem very carefully, but I think you are trying to set
a cookie on a page that does a redirect, that is just impossible unless you
do the redirect with a meta tag on the client.
Anyway, if that
Look, i don't know if you already received a reply for your message, but i
can tell you i know a lot about PHP and i have absolutely no idea how to do
this.
I will just remind you that PHP is intended to be used as a server to client
technology and that it might have some indirect interaction
For session variables to work:
Use the $_SESSION array instead of $HTTP_SESSION_VARS.
Also, check your session_path (defined in php.ini, which should be under
/WINNT). session_path should point to a directory where user IUSR_MYHOST has
writing permissions. There, you should see a file created
Did you checked my last message? Was it helpful?
PHP under Apache exposes diferent global variables than PHP under IIS. It
will be impossible for you to correct your errors without changing your
code. Run phpinfo() to see what variables are available under IIS.
About session variables...
I
Hi.
I followed the instructions in the php manual to install php as CGI module
under apache, under windows. I get the following message when requesting
a php file:
Invalid URI in request GET /mydir/myfile.php HTTP/1.1
I believe this is because Apache is not getting the protocol:host part of
the
Hope to find someone to help me with this:
I am trying to load a dynamic extension using the dl() function. The dll file resides
in my web root directory (c:\inetpub\wwwroot). I have extension_dir = ./ in php.ini
(the default).
dl(_php.dll) doesn't seem to find the file when called from
Hi! I have the following problem:
I am using IIS 5.0 on Win2k, and I am unable to create COM objects. For
example, the following code will produce the script to halt:
$myObject= new COM(CDONTS.NewMail);
$myObject-to='[EMAIL PROTECTED]';
$myObject-send();
The script stops in the second line,
I am sure many of you have had this same problem. I want all uploaded images
to my site (gifs and jpg) to be resized on the fly so that all have the
same width and height. Does anyone knows about a tool (free, if possible)
that can do this under Win2k, IIS 5.0 and that can be used with PHP 4.0?
Recently, I reinstalled Windows 2000 (IIS 5.0) and PHP 4.03pl1. Since then,
no cookies are being sent to the clients. No error is being reported. I
change the PHP installation to 4.04, but I still have the same problem. I
can't do session handling or anything without cookies.
HELP PLEASE. Any
Hi!. I have the following problem (we are going crazy about it!!) and i
think there's many people out there that have experienced the same thing:
A session created in one page is killed on the next one. Check an example:
PAGE 1:
session_start();
session_register(myvar);
After several tries, I am convinced there is no way to do it. I went around
the problem by using dinamic field names (var1, var2, var3, etc) and then
reading them using $HTTP_POST_VARS[var.$i], where $i would be your former
index to the array. For example:
The form coud have HTML code like this:
The is no function that i know specific to do that. But you can work it out
with a RegExp. Try:
$fileName=ereg_replace("_", "[^A-Za-z0-9_%]", $fileName);
Cheers!!
-Original Message-
From: Floyd Piedad [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 19 April, 2001 11:24 PM
To: [EMAIL
Hi everyone! I have the following problem:
I don't want any of my site's pages to be saved on any browser's cache.
Yet, I want all HTML forms to keep their data when the user changes to
another page without submiting and then comes back using the back button.
I have seen changing the
Hi!
I can't make php.exe to read the configuration file, php.ini, from another
path different from c:\winnt\. This location seems to be the default, but I
want to change it to any other.
I tried erasing php.ini from C:\winnt\ and I thought php.exe would read the
php.ini siting next to it (in the
Hi! Ok, this is not a question about PHP, but since this is such a great
discussion forum, I am certain it is a good place to get started with a new
technology.
The thing is I have a DTD specification and I want to translate it into a DB
schema, and then create an "add-delete-modify"
Hi! Ok, this is not a question about PHP, but since this is such a great
discussion forum, I am certain it is a good place to get started with a new
technology.
The thing is I have a DTD specification and I want to translate it into a DB
schema, and then create an "add-delete-modify"
Hi! Id like to run a script by typing the following line at the command
prompt:
php.exe -C myphp.ini -f c:\htdocs\mysite\myscript.php
This works fine, except it doesn't load any extensions (dlls), even if
myphp.ini is configured to do so. Therefore, It doesn't recognize functions
such as
Ok. I already posted a question asking how to pass parameters to php.exe
when running it directly from the command prompt. However, i've noticed the
matter is a bit more complex than i had thought. I will reformulate my
question:
How the h--- does any Web Server passes information like the URL
?
JOE STUMP WROTE:
Yeah - like I said
php foo.php -url http://www.mydomain.com/myfile.php
in foo.php
echo $argc;// should be 3
echo $argv[0]; // will be the filename
echo $argv[1]; // will be -url
echo $argv[2]; // will be the url
--Joe
-Original Message-
From: Diego Fulg
I know the UNIX epoch is 1/1/1970 and that mktime() returns the number of
seconds between that date and the date specified by its parameters. If this
date is before 1/1/1970, it always returns -1, not a large negative number,
which would be more reasonable, i think.
The question is: How can I
When not explicitly set, a cookie works only for the domain where it was
originally set. That means that if the user visits your website using the
server IP address, he will receive a cookie that will not work when he uses
the domain name instead of the IP address. Therefore, I recomend you set
Hi! I was wondering if someone knows, or can think of a way to go around
this problem i have.
The thing is i am working with a form with a field array. Each field is
something like:
input name="myfields[]" type="text"
When i receive the posted data, I can access the "myfields" array. This is
22 matches
Mail list logo