[PHP] Re: Not php related - php.net logo in Netscape 7?

2002-06-07 Thread Timothy J. Luoma


I believe it is a favicon.ico

MSIE started this and apparently Netscape/Mozilla now have them
too.
TjL




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Not php related - php.net logo in Netscape 7?

2002-06-07 Thread Timothy J. Luoma


Oh, I forgot to mention that it is a different way of indicating
that a favicon to be used, which is found in the HEAD of the HTML
document.

 

This works in browsers other than IE, but I don't think that IE
supports this

TjL




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: phpDocumentor version 1.1.0rc1 RELEASE ANNOUNCEMENT

2002-06-10 Thread Timothy J. Luoma

On Mon, 10 Jun 2002, Miguel Cruz wrote:

> On Sun, 9 Jun 2002, Greg Beaver wrote:
> > June 9, 2002
> > RELEASE ANNOUNCEMENT
> > phpDocumentor version 1.1.0rc1
> > http://www.phpdoc.org
>
> Best of all, with OSX IE 5.14, the page comes up completely blank.

Well in Opera6/Win it's just a big mess, probably because Opera doesn't
support 'overflow' properly.


Greg:

I'm assuming you're the web designer or at least know who the
webdesigner is

I appreciate the obvious effort to make your pages validate XHTML
and CSS.  There are a couple small errors that I thought I'd point out,
not to say "ha ha your code doesn't validate" (because it's better than
99% of the web, and probably much better than several pages I've worked
on) but just to try and be helpful

There are a bunch of CSS errors listed at
http://jigsaw.w3.org/css-validator/validator?uri=http://phpdocu.sourceforge.net/phpdocumentor.css

... It looks like there is some kind of expression there that the
validator isn't aware of (and I've never seen):

height:expression((document.body.clientHeight-105)*.30);


As for the XHTML, line 229 needs a space before the 'width="105"
height="31"'

http://sourceforge.net/sflogo.php?group_id=11194&type=5"width="105";
height="31" alt="SourceForge Logo" />

The _target="blank" isn't valid for the doctype defined & no character set
is defined


The page looks great in Mozilla-1.0/win, and even in IE6/win, (heck even
Netscape4.79 doesn't look bad ;-) but not in Opera6

TjL




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Can a php script be placed within a stylesheet?

2002-06-10 Thread Timothy J. Luoma

On Mon, 10 Jun 2002, Andrew Brampton wrote:

> Yes you can place one in a style sheet you just need to tell apache (or
> whatever) that .css should be parsed by PHP, this can be done via a
> .htaccess or something similar... Here is a example in a .htaccess file:
>
> AddType application/x-httpd-php .css

But wouldn't that prevent it from being parsed as a CSS file?





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: forcing file downloads

2002-06-13 Thread Timothy J. Luoma

On Wed, 12 Jun 2002, Justin French wrote:

> I know this has been discussed many times, but I've been hunting through
> the archives with very little resolution on the issue.

The user can define certain things given the way they want mime types to
be handled.

PDF used to be a good solution until several browsers decided that they
would display PDF.

So if I want to make sure someone downloads a file, I make it a ZIP, pure
and simple.

TjL




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Email validation

2002-06-13 Thread Timothy J. Luoma

On Wed, 12 Jun 2002, Pedro Pontes wrote:

> function checkEmail($strEMailAddress)
> {
>  return eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)+$",
> $strEMailAddress);
> }
>
> You have it now :).

I'm still learning my PHP regex... does the above allow someone to have a
literal "+" in their email address, ala <[EMAIL PROTECTED]> which is
perfectly valid, but often rejected by "email validators"?

TjL




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] checking date is not greater than today

2002-06-30 Thread Timothy J. Luoma


I am trying to compare a given date string (i.e. June 30, 2002 is
20020630).  I want to make sure that the input string that is given is not
greater than today (i.e. if today is June 30, and you ask for 20020701, I
want to be able to throw an error).

I'm a newbie, so I'm not sure the best way to do this.  My thought was
that if I take the year () and add on the day-of-year (i.e. Feb 10 =
041) then I would be able to compare them as you would any other numbers.

The problem I have then run into is that strftime and date seem to have
different opinions as to what day of the year it is.

date
z - day of the year; i.e. "0" to "365"

strftime
%j - day of the year as a decimal number (range 001 to 366)


I have these variables defined

$SEARCHYEAR = 
i.e 2002

$SEARCHMONTH = MM
i.e. 06

$SEARCHDAY = DD
i.e. 30


$TODAYCMP=date ("Yz");

$SEARCHCMP=strftime("%Y%j",mktime(0,0,0,$SEARCHMONTH,$SEARCHDAY,$SEARCHYEAR));

and then I tried it for today and got

echo " ";

as a result I get




So I'm trying to figure out:

A) Why strftime and date don't handle leap years the same way

and (more importantly)

B) The best way to make sure a given date MMDD is not greater than
"today"

I did some googling & php.net searching without luck.

Thanks
TjL





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] checking date is not greater than today

2002-06-30 Thread Timothy J. Luoma

On Sun, 30 Jun 2002, John Holmes wrote:

> $today = date("Ymd");
> if($input_date > $today)
> { echo "Date must be before today!"; }

*thwaps self*

DUH!  Thanks... been staring at this for too long.


> It looks like you're dealing with MySQL dates. There are a ton of useful
> functions you can use in your queries that make any time manipulation in
> PHP unnecessary. Chapter 6, Date and Time Functions of the MySQL manual.

I'm not dealing with MySQL dates yet, just simple query strings, but I'll
check that out before I get into MySQL.

Thanks

TjL





-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: checking date is not greater than today

2002-06-30 Thread Timothy J. Luoma

On Mon, 1 Jul 2002, Peter J. Schoenster wrote:

> On 30 Jun 2002 at 22:31, Timothy J. Luoma wrote:
>
> > I am trying to compare a given date string (i.e. June 30, 2002 is
> > 20020630).  I want to make sure that the input string that is given is
> > not greater than today (i.e. if today is June 30, and you ask for
> > 20020701, I want to be able to throw an error).
>
> I would question why you accept input as a particular format. It's
> certainly easier to work with timestamps than arbitrary representations
> of dates.  I would not be so quick to assume you have to accept input as
> is.  Or at least have it fixed to a format ... but the Perl modules I've
> worked with are liberal with what they receive  :) Anyhow, I'd just
> find a PHP module ot handle this.

In general, the user shouldn't ever have to format the date... it's all
automatically generated.

However, wise users will look at

http://www.tntluoma.com/ethan/daily/index.php?20020701

and realize that they could possibly "look ahead" by manually editing
the URL and going to

http://www.tntluoma.com/ethan/daily/index.php?20020702

That's all I wanted to avoid.  I'm using that particular date string
because it works easily with what I am trying to accomplish.

I am surprised, however, that two PHP functions would deal differently
with the way that day#-of-the-year is handled (365 vs 366).

Thanks to all who made suggestions on/off list, I believe I now have it
working.

TjL



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] random quote script with flat file? (PHP Vault: Random Quote Script)

2002-05-18 Thread Timothy J. Luoma


I've been searching for some a little bit of PHP that will pull out one
line from a flat text file and display it, changing it on reload.

So far most of them use MySQL and the links that I did find all turn up
404... but one was called "PHP Vault: Random Quote Script" and it seemed
like it would do exactly what I was after.

(these next two links work, but the 'download' part comes up 404)

http://www.hotscripts.com/Detailed/4613.html

http://www.hotscripts.com/PHP/Scripts_and_Programs/Quote_Display/

Thanks for your help

TjL


-- 
Site: www.tntluoma.com   mailto:[EMAIL PROTECTED]



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] random quote script with flat file? (PHP Vault: Random Quote Script)

2002-05-18 Thread Timothy J. Luoma

> list($usec,$sec)=explode(" ",microtime());
> mt_srand($sec * $usec);
> $quotes = 
file("quotes");
> echo $quotes[mt_rand(0, (sizeof($quotes)-1))];

Yes!!!  That 
works exactly!  I love PHP! I love this list and look forward to the day when I 
can 
contribute something more than fascinating questions ;-)

Thank you!

TjL




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] PHP&Apache config to not require "?"

2002-05-21 Thread Timothy J. Luoma


Hello PHP'ers

I am currently using the very cool PHPSlideshow(1)

This gives me URLs that look like this:

http://www.tntluoma.com/show.php?directory=nursery/

I would like to be able to have simpler URL like this:

http://www.tntluoma.com/show/directory=nursery/

I was researching for an answer for this and came across some information
at http://www.evolt.org/article/rdf/18/22880/ that was quite helpful about
Apache's 'force type' which means (I think) that I can use this:


ForceType application/x-httpd-php


that will mean that I do not have to use the .php, which is good.

But the question remains how I can drop the ? (originally found after the
show.php? for a / as above)

I came across a site once that talked about how to do that too, but my
bookmarks were recently destroyed (bad day) and I can't find it now that
I'm looking for it.

Any help/pointers appreciated.

TjL

(1) The very cool PHPSlideshow can be found at:
http://www.zinkwazi.com/pages.php?page_name=scripts


-- 
Site: www.tntluoma.com   mailto:[EMAIL PROTECTED]
Info: Apache/1.3.19 (Unix) with PHP/4.0.6


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Store in XML -> process w/ PHP -> Display in XHTML ?

2002-05-30 Thread Timothy J. Luoma


Summary: I've been looking for a resource (book, website, etc) that will
address how to write/store information in XML and deliver it as XHTML
(using PHP for the processing), but haven't had much luck.


I know a little bit of PHP (just enough to be dangerous, but also to
recognize how cool it is) and love the idea of XML.

The only drawback to XML at this point is that so few browsers can deal
with it.

So I'm wondering if there is a way to use PHP to do the transformation.
I see there are several XML functions in the PHP manual, but nothing
seemed "on point" from my investigation.

Thanks for any help.

TjL

ps -- I know this is 'php-general' but a lot of the conversation here is
pretty far over my head.  Is there a 'php-newbie' list?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] My first piece of decent PHP (I think :-)

2002-02-25 Thread Timothy J. Luoma


Hello folks!  I've been lurking the last 200 messages or so (i.e. 10-15
minutes ;-) I've already learned a lot, including that this list will be
well worth the bandwidth.  I hope my post will be worth the reading.

I think I have my first contribution to make, and at the same time would
like to ask for suggestions/corrections/etc.  I recently started using PHP
at my personal site (www.tntluoma.com) after reading Core PHP PRogramming
and mySQL/PHP Database Applications this past weekend.

I wish I had known about it sooner!  I had already manually (well, using
global search/replace in UltraEdit) changed my site from HTML4 to
HTML4-Strict to XHTML1.  That was fun (NOT!)

Then I realized that some of my pages were in HTML4 strict, some in loose,
some XHTML-Strict, some XHTML-Loose, and even a few XHTML 1.1 for good
measure.  Before PHP, I had tried using SSI for defining DOCTYPEs, but
then it wouldn't validate anymore :-/  Then there were some of the pages
that validated, but the W3.org icon on the bottom of the page hadn't been
updated when I changed the DOCTYPE, so I had to go back again and work to
fix that.  This was != HOURS OF FUN  (and I won't even mention having to
then go back and make the DOCTYPE the first line to get IE6 to go into
standards mode).

Now that I'm using PHP (which is a TON faster than SSI on my site at
least) I have achieved what I think is a pretty excellent situation.  I
have:
- an index.php that builds the page, calling external global files
that define doctype, global meta tags, etc as well as a set of bottom
navigational links and the W3 icons for (X)HTML and CSS validation
- a body.html that holds the main text of the page
- a header.html (optional) that includes local meta tags or CSS
for just that page
- a footer.html (optional) that adds any navigational information
for that directory

Ok, so thanks for reading all that.  I have created this:

http://www.tntluoma.com/php/snippets/set-doctype.txt

The code there looks for a variable $DOCTYPE and then sets the
DOCTYPE, the W3 image for validating, and a 'friendly name' which we can
use in ALT tags, etc.  For example

elseif ($DOCTYPE == "xhtml11")
{
//XHTML 1.1
$DOCTYPE_NAME="XHTML 1.1";

$DOCTYPE_ICON='/global/xhtml/1.1/valid.gif';

$DOCTYPE='http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd";>http://www.w3.org/1999/xhtml"; xml:lang="en">';
}


There is an 'else' to handle cases when no DOCTYPE is defined.

This will make it easy to define DOCTYPEs for specific pages that
need/want them, and if you want to change the XHTML doctype for IE6 or to
go with the full XML definition.

Anyway, sorry for the long post.  I hope this is helpful to
someone else.  Comments/suggestions welcomed.

TjL



-- 
Site: www.tntluoma.com   mailto:[EMAIL PROTECTED]
Info: Apache/1.3.19 (Unix) with PHP/4.0.6
How does your webhost provider measure up to UCVHost?
See http://www.peak.org/~luomat/misc/tntluoma-uptime/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma


Hello folks

I have a virtual domain under Apache and do not have access to the global
php.ini file

Apache lets me set site-wide configuration in an /.htaccess file

Is there something similar for PHP?  All the references I've been able to
find seem to refer to php.ini but do not say if I can make a /php.ini or
similar file in a virtual host.

Any help appreciated

TjL, PHP neophyte


-- 
Site: www.tntluoma.com   mailto:[EMAIL PROTECTED]
Info: Apache/1.3.19 (Unix) with PHP/4.0.6
How does your webhost provider measure up to UCVHost?
See http://www.peak.org/~luomat/misc/tntluoma-uptime/


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma

On Wed, 27 Feb 2002, CC Zona wrote:

> > I have a virtual domain under Apache and do not have access to the global
> > php.ini file
> >
> > Apache lets me set site-wide configuration in an /.htaccess file
> >
> > Is there something similar for PHP?
>
> Forget "similar", you can set PHP config options in the .htaccess file
> itself.  See .

Thanks for your reply.

I'm afraid I did a poor job of asking my question(*).  My apologies.

I would like to set some variables of my own creation (ie $DOMAIN_NAME) on
a global basis.

I am looking for the best way to do that without access to the php.ini
file.

TjL

ps -- I promise to go re-read
http://www.tuxedo.org/~esr/faqs/smart-questions.html ten times :-)




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Apache Server Side Includes mixed with PHP pages

2002-02-27 Thread Timothy J. Luoma

On Wed, 27 Feb 2002, Richie Chauhan wrote:

> 
> 
> 

FYI I think your SSI syntax is wrong, it should be



TjL

ps -- I emailed Richie offlist that my experience with PHP was that it was
MUCH faster than SSI, fwiw



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: global variables w/o access to global php.ini

2002-02-27 Thread Timothy J. Luoma

On Wed, 27 Feb 2002, CC Zona wrote:

> In that case, the "auto_prepend_file" config option may be of interest.
> It's described on the page previously mentioned.

Awesome... that was just what I needed.  I hadn't made the connection
before.

Thanks
TjL



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Auto_prepend_file

2002-02-28 Thread Timothy J. Luoma

On Thu, 28 Feb 2002, Richard Baskett wrote:

> What I want to do is have a function available to all my php files without
> having to use an include in every page.  So what I did was put this line in
> my .htaccess file:
>
> php auto_prepend_file "pathtoscript/uniemail.php"

On my system I had to give the absolute full path (not just document root
but /usr/local/lib/apache/htdocs/pathtoscript/uniemail.php)

You might try that.

TjL




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] showing last mod. of *included* file

2002-03-01 Thread Timothy J. Luoma


I have been using this code to show the last modified time:

(Note: the following was adapted from http://www.terrabyte.dc.com.au/phpscripts.php3 )

// the server is 13 hours ahead of Eastern Time USA
$hourdiff = "13";
$timeadjust = ($hourdiff * 60 * 60);
$eastern_time = date("d M Y g:ia",getlastmod() - $timeadjust);
echo "Last modified: $eastern_time (ET/USA) ";


This works really well, except for one thing.

All of my pages have two required parts:

index.php
body.html

and two optional parts

header.html
footer.html

The code above is 'include'd into 'index.php'

'index.php' is a boilerplate, and will hardly ever change.

The optional files are not likely to change all that often, if ever, if
they exist.


Is there a way that I can adapt the above PHP code to show the last mod.
time of 'body.html' (always the same filename) instead of index.php?

TjL

ps -- I did try to Google the solution, but this is such a specific
situation (needing to adjust the timestamp and then check the last mod of
an included file) that I did not have any luck finding anything that was
'on target'.  Pointers happily selected.

-- 
TjL, PHP Neophyte
Site: www.tntluoma.com   mailto:[EMAIL PROTECTED]
Info: Apache/1.3.19 (Unix) with PHP/4.0.6


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: showing last mod. of *included* file

2002-03-01 Thread Timothy J. Luoma


> Use filemtime().

UGH!  There are so many things to learn!  I hate asking obvious questions
like this, but I'm still not finding the right search terms.  I appreciate
your patience.

FYI the answer to my problem was found at

http://www.php.net/manual/en/function.filemtime.php
[EMAIL PROTECTED]
28-Aug-2000 02:33
This one reads all files in directory and prints only the newest date




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] need help converting code to more efficient loop

2002-03-09 Thread Timothy J. Luoma


Hello!  I am trying to reduce the size of the code below, which I believe
can be simplified.

I checked the 'for' entry in the manual as well as googling for some
similar code, but did not have any luck.

Here is what I have:


$ICON_COUNT="0";

if ($SHOW_WAI_ICON != "no")
{
$ICON_COUNT++ ;
}

if ($SHOW_BOBBY508_ICON != "no")
{
$ICON_COUNT++ ;
}

if ($SHOW_W3_ICON != "no")
{
$ICON_COUNT++ ;
}

if ($SHOW_CSS_ICON != "no")
{
$ICON_COUNT++ ;
}


Now I would like to make that a 'for' loop, but I'm not sure how to do it
in PHP.

In case it is not clear what I am trying to do, this is what I would do if
PHP syntax were like bash:

variables="SHOW_CSS_ICON SHOW_W3_ICON SHOW_BOBBY508_ICON SHOW_WAI_ICON"

for i in $variables
do

if [ "$i" != "no" ]
then
#increment icon_count here
fi

done


I'm just not sure about the nested syntax in PHP.

Thanks for any help

TjL


-- 
Site: www.tntluoma.com   mailto:[EMAIL PROTECTED]
Info: Apache/1.3.19 (Unix) with PHP/4.0.6


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] problems trying to use PHP to choose CSS

2002-03-29 Thread Timothy J. Luoma


Hello PHP friends

I went searching (Core PHP Programm, php.net and google) for an
answer, but didn't find anything that did what I want, namely: Use PHP to
set the style sheet for a site.

I am trying this method: Register a global variable ($CSS) using a FORM.

Currently this does not work at all in Internet Explorer ver6.  It does
work in Mozilla 0.99 and Opera v6, but ONLY for page when it reloads... as
soon as I go to another page, the $CSS variable seems to get reset to
'global'

I wonder if I am not doing something stupid/overlooking something obvious,
but I am very new @ PHP so that is possible.

I have attached my various code snippets here.


// in my global PHP file

// Now what I am trying to do here is set a default that should ONLY be
// used if the $CSS variable is NOT already set

if (!isset($CSS))
{
// if it is not set, then and only then set it and define it
session_start();
session_register("CSS");
$CSS="global";
}


// in my global header file:
// this should take the variable $CSS and use it for the style sheet
// yes the .css should be appended to the $CSS
echo <<< EOD

EOD;

//in my global footer file
// here is where we set the variable by the FORM and reload the page
echo <<< EOD



Choose style:

Default
Smaller
Tamer Colors
Print




Current style is: $CSS



EOD;


Any help appreciated

Thanks
TjL



-- 
Site: www.tntluoma.com   mailto:[EMAIL PROTECTED]
Info: Apache/1.3.19 (Unix) with PHP/4.0.6


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: problems trying to use PHP to choose CSS

2002-03-31 Thread Timothy J. Luoma

On Sat, 30 Mar 2002, Hugh Bothwell wrote:

Thanks to Hugh for his help... his PHP code was perfect... it was exactly
what it took to get it done.

Just a few minor notes:

I was able to keep the echo <<< EOD statements which I prefer for this
particular implementation, and I kept



so that it would pass validation... (missing an 'action' was causing an
error).


That said, it was Hugh's PHP code that took this from being a thought I
had to actually working.  My thanks to him.

Reverting to lurk&learn mode for the time being :-)

TjL


-- 
Site: www.tntluoma.com   mailto:[EMAIL PROTECTED]
Info: Apache/1.3.19 (Unix) with PHP/4.0.6



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Newbie and includes

2002-04-06 Thread Timothy J. Luoma

On Sat, 6 Apr 2002, Dean Ouellette wrote:

> Newbie who has my include working with this
>  include ('includes/footer.php');
> ?>
>
> Problem is when I try to use this with files in other directories I use
>  include ('/includes/footer.php');
> ?>
>
> Then get file cannot be found.  Is there a way to do this?

You have to prepend the directory that the web server knows, such as
/usr/local/apache/htdocs/includes/footer.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Phone number validation

2002-04-07 Thread Timothy J. Luoma


> I'd just add that validating international numbers against any sort of
> list is bound 
to lead to extreme annoyance. Even telephone companies
> have trouble keeping track of 
changes.

Not to mention people who will just put in valid-format-but-false numbers when 
they are "required"

No stranger on the Internet is trustworthy enough to give my real 
phone number.

TjL



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] cookies not being sent?

2002-04-11 Thread Timothy J. Luoma


I have been using PHP that someone from this list provided in order to
provide a CSS switcher to my site (below).

I noticed today that it isn't working (it was working previously).

As far as I can tell, the problem is that cookies are not being sent.  I
tested this by setting Opera to 'display received cookies' and nothing
happens when I load the page or change the CSS.


Here is the relevant (I think) PHP:


((from the file that starts the page))
session_start();

// new session?  set default value
if (!session_is_registered("CSS")) {
session_register("CSS");
$CSS = "default";
}

// setting changed by form?  update session value
if (isset($newCSS))
$CSS = $newCSS;



((And then in the file that creates the footer))

// BEGIN choose CSS section
echo <<< EOD


Change CSS:

Default
Smaller
Larger
High Contrast
Print (under construction)


(Current: $CSS)



EOD;

// END choose CSS section


-- 
Site: www.tntluoma.com   mailto:[EMAIL PROTECTED]
Info: Apache/1.3.19 (Unix) with PHP/4.0.6


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php