Search found 16 matches

by nefus
Wed Mar 10, 2004 10:57 am
Forum: PHP - Code
Topic: setcookie and IIS
Replies: 3
Views: 672

iis cookie issue

This must be a tough one. I typically get really amazing responses fast here. Don't let me down guys! :)
by nefus
Tue Mar 09, 2004 3:09 pm
Forum: PHP - Code
Topic: setcookie and IIS
Replies: 3
Views: 672

cookie woes

You betcha! :-) I should mention the IIS server is registered as 4 different dns names on the dns server.... although I doubt that means a whole lot.
by nefus
Tue Mar 09, 2004 2:50 pm
Forum: PHP - Code
Topic: setcookie and IIS
Replies: 3
Views: 672

setcookie and IIS

I'm having some oddball issue with setcookie and IIS. I have tried even running a single line script just to test the cookie and it just doesn't work at all on one server, but does 100% on another. Both of them are IIS. setcookie("name",$_user,time()+(60*60*24*7),'/','www.link.com'); Is th...
by nefus
Wed Oct 08, 2003 10:42 pm
Forum: PHP - Code
Topic: php install on xp
Replies: 6
Views: 993

ah..

Thanks, that worked perfectly! Now I can debug more easily.

I suppose my follow up question will be, could there be anything that might cause my php script to not work correctly from command line (keeping in mind it did work perfectly fine on another system).
by nefus
Wed Oct 08, 2003 2:52 pm
Forum: PHP - Code
Topic: php install on xp
Replies: 6
Views: 993

xp woes

Well... I guess I have several problems really. Error logging doesn't seem to work either. But the script itself still kicks out all sorts of undefined variable errors even with E_Warning. But the script is a bot that connects to an irc server. I'd love to show you a log of the errors, but I can't g...
by nefus
Wed Oct 08, 2003 2:03 pm
Forum: PHP - Code
Topic: php install on xp
Replies: 6
Views: 993

php install on xp

Are there any problems with php install on XP? I recently installed php with apache and mysql only to discover a script that I'd been testing on a 2000 server simply refused to run. I get all sorts of errors. Yes, I do have the same ini settings in php.
by nefus
Mon Jun 30, 2003 10:03 am
Forum: PHP - Code
Topic: ldap support
Replies: 3
Views: 860

A good question for us beginners.. thanks for asking it.
by nefus
Mon Jun 30, 2003 9:59 am
Forum: PHP - Code
Topic: php & irc
Replies: 1
Views: 642

php & irc

Can someone give me a lead on how to make a php script connect into an irc network? Not trying to do anything beyond a simple login, join a channel to deliver some data and then disconnect. No continuous connection required. The irc gateway information in the manual doesn't seem valid as the documen...
by nefus
Mon Jun 16, 2003 3:51 pm
Forum: PHP - Code
Topic: passing variables through url get garbled
Replies: 8
Views: 1540

I appreciate your effort! Sadly, your last suggestions didn't work. The first one echoed the first word as though nothing had changed. It still left off any other text after the ' character. The second suggestion added the \ character back even though stripslashes had been used. No further text was ...
by nefus
Mon Jun 16, 2003 3:18 pm
Forum: PHP - Code
Topic: passing variables through url get garbled
Replies: 8
Views: 1540

That seems to work pretty well. However, when the variable is passed thus.. echo "<INPUT NAME=comment SIZE=55 VALUE= '$variable' >" if there is a ' in the variable, it will display no text afterwards.
by nefus
Mon Jun 16, 2003 2:42 pm
Forum: PHP - Code
Topic: passing variables through url get garbled
Replies: 8
Views: 1540

passing variables through url get garbled

I am passing variables through a url and even using urlencode I still have problems with the ' character. It wants to convert them to \ or just kill the remainder of the variable after the ' character.
by nefus
Mon Mar 10, 2003 9:20 am
Forum: PHP - Code
Topic: IIS & Cookies
Replies: 8
Views: 968

IE6, IE5 and Mozilla 1.21. All 3 have been tested. This is very depressing. :-/.
by nefus
Mon Mar 10, 2003 8:45 am
Forum: PHP - Code
Topic: IIS & Cookies
Replies: 8
Views: 968

No, I'm checking for the cookie on another page. :)
by nefus
Fri Mar 07, 2003 10:46 am
Forum: PHP - Code
Topic: IIS & Cookies
Replies: 8
Views: 968

That command gives me a response. The others still do not work.

print_r($_COOKIE);
echo $_COOKIE['cookiename'];

will result in

Array ( [PHPSESSID] => c19b0e31595b2447f531da9af32889ac )
Notice: Undefined index: cookiename in C:\Inetpub\clients\dm\htdocs\rulespost.php on line 1
by nefus
Thu Mar 06, 2003 12:14 pm
Forum: PHP - Code
Topic: IIS & Cookies
Replies: 8
Views: 968

I use setcookie("cookiename",$user,time()+(90*90*12),'sitename'); then to read it I have if (!isset($_COOKIE["cookiename"])) { go to unauthorized page; } else { do these things } I have verified the cookie is being written. But I cannot get the second part of the code to work. FY...