I should first admit to being a php newbie, so the answer may
be obvious, but this looks like a
bug to me. Global variables are OFF. I start a session at the very
top of page "member.php":
session_start();
In a function called from the same page, I store some variables in
the session array:
you can simply call:
Window.location.href =
'http://yourdomain.com/phpscripttocall.php?variable1=value1&variable2=value2'
^works in all browsers supporting JavaScript ... there's a few variants of
this that will only work in IE or Netscape, but this one is vague enough to
work in both... (not
Sorry,
No such thing as $_POST_VARS
"Jack E. Wasserstein" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I am using the following code on the php form handler
>
> if ($_POST[referdrremember] == "true") {
> setcookie("remailcookie",
> "$_POST_VARS[refdremail]",time()+3600,"/","wa
php-general Digest 25 Dec 2003 01:09:11 - Issue 2492
Topics (messages 173294 through 173313):
Removing/unsetting session variables.
173294 by: Alain Williams
173295 by: CPT John W. Holmes
173305 by: Matt Grimm
Re: Error with Absolute URLs
173296 by: CPT John
I have written a session-enabled php page which displays a table of
search results. The first column in the table contains anchor links to
www.mydomain.com/mypage?seqno= where seqno is a variable I would
like to pass when the anchor is clicked. However, I do not wish the
?seqno= to disp
I am using the following code on the php form handler
if ($_POST[referdrremember] == "true") {
setcookie("remailcookie",
"$_POST_VARS[refdremail]",time()+3600,"/","wasserstein.com","0");
Try to see the cookie in the same script, not sure which one to use with or
without $
print " the cookie's va
thanks for the help, it definitely saved my from hours of pulling at me
hairs.
however i have a new problem. i can create session variables, but i can't
access them across pages.
for example.
page2.php
Code:
Step 2 - Register Session ";
// Get the user's input from the form
$name = $_POST[
First I'm very new to all this, so forgive the naivity of these questions:
Anyway, I am building a WEB Site dev environment that supports PHP-MySQL
development. I have both IIS and Apache WEB servers available for local
testing which begs the following question:
What are the factors that would in
"As long as allow_url_fopen is enabled in php.ini, you can use HTTP and FTP
URLs with most of the functions that take a filename as a parameter. In
addition, URLs can be used with the include(), include_once(), require() and
require_once() statements."
http://us4.php.net/manual/en/features.remote-
Hello,
On 12/24/2003 02:44 PM, Chakravarthy Cuddapah wrote:
Is it possible to format data in array to XML and display ?
This class seems to do what you want. It requires DOM XML extension.
Class: XML Array
http://www.phpclasses.org/xmlarray
You may also want to try this class for generating XML d
hi...
a very basic (i hope) question...
i know i can have a web page that uses PHP/ASP/Etc... and i can do a kind of
include, such that i can incorporate content/text from another file. i'm
curious to know if there is a way to do that such that i can incorporate
text from a file on another server
I'm new to your list and configuring Apache with the SSL module enabled
and have a newbie configuration glitch I've not been able to resolve.
I'm very puzzled over why my scripts with included files, either SSI or
PHP, work fine outside of the SSL directory structure (but still at
similar nested le
PHP manual recommends this, which works for me:
// Unset all of the session variables
$_SESSION = array();
// Destroy the session
session_destroy();
--
Matt Grimm
Web Developer
The Health TV Channel, Inc.
(a non - profit organization)
3820 Lake Otis Parkway
Anchorage, AK 99508
907.770.6200 ext. 6
Of course. If it's a simple (short) array, you can just create a string
with the XML tags and array values, and write that to a file with an XML
extension.
More sexy would be to use the DOMXML functions in PHP.
http://us3.php.net/manual/en/ref.domxml.php
Guy named Kris wrote a great XML -> PHP s
I'm new to your list and configuring Apache with the SSL module enabled
and have a newbie configuration glitch I've not been able to resolve.
I'm very puzzled over why my scripts with included files, either SSI or
PHP, work fine outside of the SSL directory structure (but still at
similar nested le
newbie ...
Is it possible to format data in array to XML and display ?
Thanks !
From: "Robin Kopetzky" <[EMAIL PROTECTED]>
> Good Morning and Merry Christmas to all.
>
> I recently installed PHPTriad to a new server and the not work on ANY html page. Does anyone know what I may have missed in
> configuration? Help...
Try using them on a .php page? PHP doesn't normally run
Good Morning and Merry Christmas to all.
I recently installed PHPTriad to a new server and the http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Yes, there was a blank line. Now I just have to test it to see if that was
it. One other question though. It appears that Windows does not have this
problem - the site in question is on a Linux box. Why would this be? The two
sites are identical, I just use the Windows one for developing and testin
From: "Beauford" <[EMAIL PROTECTED]>
> Just a clarification, session_start() is on the first line of
restricted.inc
> and restricted.inc is included on the first line of
> update-corrections-input.php. All update-corrections-write.php does is
write
> info to a database and includes update-correctio
Beauford wrote:
> I'm getting the following error. My question is, where would I use the
> ob_start() and ob_end_flush() function so I can get rid of this. I
> have read the PHP manual, but not quite getting it.Or if there is a
better way?
> Don't work around the problem with output bufferin
From: "Brad" <[EMAIL PROTECTED]>
> I keep getting errors on my websites, that contain absolute URLs, e.g.
> http://www.url.com/blah.html. With most, being in the folder of my
> website, it's fine, i can just add $_SERVER['DOCUMENT_ROOT'], but
> there's a script I use to display the network statisti
From: "Alain Williams" <[EMAIL PROTECTED]>
> I have several variables that I set in a session - to record that a user
is logged in.
> I want to be able to unset them - when they log out.
>
> $_SESSION['PERMS_USER'] = 'fred';
> Sets the variable quite nicely, I can also change it and the change is
I have several variables that I set in a session - to record that a user is logged in.
I want to be able to unset them - when they log out.
$_SESSION['PERMS_USER'] = 'fred';
Sets the variable quite nicely, I can also change it and the change is recorded.
I cannot unset it. I have tried (in
php-general Digest 24 Dec 2003 13:06:18 - Issue 2491
Topics (messages 173275 through 173293):
Re: Headers Problem
173275 by: John W. Holmes
Re: Can't upload file greater than 11kb
173276 by: Chris
173277 by: Chris
Re: UNUSUAL PROBLEM WHEN WRITING TO THE SCREEN
Hi,
I am having a real problem with error messages posted in the error.log file
in the Apache directory. I have been doing lots of searches to find a
solution and it seems obvious that many people are see this issue but I can
find no resolution or explanation for the entries (see below).
PHP Bug
On Tue, 23 Dec 2003 19:08:28 -0800 (PST), you wrote:
>>How can I unlink files in a directory that are, for example older than 1
>>hour?
>
>`find /path/to/dir -cmin +60 -type f -print0 | xargs -0 rm -f`;
Alternatively, for cross-platformness user opendir() and readdir() to
iterate over the directo
Chris,
Thank you! I will look on the net for "left joins", which is a
bit new to me, and I'll join a MySQL list, since I can see I'm going to
have more MySQL questions in the future.
Your reply is much appreciated, especially since it came so
fast!
--
Yoroshiku!
Dave G
[EMAIL PROT
You should *really* consider yourself lucky, because this is a PHP list, not
MySQL.
"SELECT members.email FROM groups LEFT JOIN members USING(member_id) WHERE
'$chosenGroup'=group_id AND 'yes'=active"
You should really find a tutorial on Joins, jsut search on `SQL tutorial
joins`
Chris
-Ori
29 matches
Mail list logo