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 suggesti
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 with
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 sugges
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 for
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 r
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 fro
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?
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 li
I had EXACTLY the same problem about a month a go, but using IIS on Win2k.
The session file contains only ":foo|", so it's just the same.
There are a couple of things to check:
1. Make sure the browser is receiving the cookie.
2. Make sure the browser is returning the cookie (shoul
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 clue
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 PROTECTE
m: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 19 April, 2001 8:34 PM
To: Diego Fulgueira
Cc: Php-General
Subject: Re: [PHP] Cache Control with forms
> Hi everyone! I have the following problem:
> I don't want any of my site's pages to be saved on any browser's cac
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 session.cac
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" application.
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" application.
Hi! I´d 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 mysql_
[0]; // will be the filename
echo $argv[1]; // will be -url
echo $argv[2]; // will be the url
--Joe
-Original Message-
From: Diego Fulgueira [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 4:45 PM
To: Php-General
Subject: [PHP] Passing variables to a scripting engine... (like
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 be
Hi!! I was wondering if anyone knows how to pass parameters to PHP.EXE when
invoked from the command line (DOS prompt).
I know this shouldn't differ too much from the Linux version, so anyone who
has scheduled scripts to run using CRON should have an idea, i guess.
In particular, I don't know ho
I was wondering if anyone around knows of a tool (free if possible) to index
all the pages of my website and implement a search engine. I prefer it to
run on NT.
THNKS!!
Diego Fulgueira.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
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 know
Hi! I know how to upload images. But I will be very grateful if anyone
around has some code to do that and is willing to share it with me. I have
all kind of algorithms in PHP I could share too, just tell me what you need.
By the way, do you know of a site with PHP samples?
Thanks a lot!.
--
PH
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 th
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:
When i receive the posted data, I can access the "myfields" array. This is
fine.
The problem is within my form i
Does anyone around knows the regular expression that matches all the
ocurrences of a word (p.e. "needle") not within PHP code, i.e., outside the
tags?
By the way, is there a good online tutorial or reference on regular
expressions?
Thanks a lot.
--
PHP General Mailing List (http://www.php.ne
Hi. Does anybody knows how to have different configuration options, that is,
different php.ini files, for several different sites that reside on the same
server?
I have IIS and the CGI version of PHP 4.04.
Thanks in advace.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-ma
29 matches
Mail list logo