Search found 31 matches

by soshea
Tue May 06, 2003 4:24 pm
Forum: Databases
Topic: date postgres and php
Replies: 2
Views: 957

date postgres and php

any suggestions on this would be appreciated: when selecting a date from a table on a postgres DB the date is returned in this format: 2003-05-06 i would like to change the date when outputted with PHP to: 05/06/2003 (or any other format that i would like) can you reformat the date with postgres or ...
by soshea
Fri Jan 03, 2003 3:14 pm
Forum: PHP - Code
Topic: formatting question
Replies: 3
Views: 615

just wanted to followup with what i utilized incase other people had the same problem. i used the WRAP="hard". this made the formatting go from one long string (if the user did not create the returns them selves) to inserting the wrapping needed. your suggestion kick started the process, t...
by soshea
Thu Jan 02, 2003 12:11 pm
Forum: PHP - Code
Topic: formatting question
Replies: 3
Views: 615

ahhh, good point. completely forgot about the virtual. will giver it a try!!
thanx
soshea
by soshea
Thu Jan 02, 2003 11:39 am
Forum: PHP - Code
Topic: formatting question
Replies: 3
Views: 615

formatting question

hey, i am utilizing a <textarea> tag to input data into a text type column in a DB. this is so that people can cut and paste documents. my problem is that when i utilize a <pre> <?=$data[document]?> </pre> if they did not use a carriage return when typing or cutting and pasting, then the lines will ...
by soshea
Thu Dec 19, 2002 8:19 pm
Forum: PHP - Code
Topic: tr color variations help in PHP
Replies: 3
Views: 868

worked great!! thanx
soshea
by soshea
Thu Dec 19, 2002 4:22 pm
Forum: PHP - Code
Topic: tr color variations help in PHP
Replies: 3
Views: 868

wow, looks cool! it tested great locally, so tonight i can test it on the server.
thanx for the help!
soshea
by soshea
Thu Dec 19, 2002 2:22 pm
Forum: PHP - Code
Topic: tr color variations help in PHP
Replies: 3
Views: 868

tr color variations help in PHP

i am working making the colors alternate on each row of output from a query, but have not nailed it. i know comming from a coldfusion (ouch) background that it would be iif mod. any ideas with php? (ignore the db connection information i am working off of memory and i need a bit more programming to ...
by soshea
Sat Dec 14, 2002 10:09 am
Forum: PHP - Code
Topic: sessions and postgres
Replies: 2
Views: 644

thanx for the reply. well, i am not quite sure what is the best way to do things. after reading more last night about how php does sessions, i am going to just have the user login data stored in postgres, and stick with the php session method where the information is stored on the server. i was most...
by soshea
Sat Dec 14, 2002 12:37 am
Forum: PHP - Code
Topic: explain php.ini section
Replies: 1
Views: 481

well after reading a bit more will the session.gc_maxlifetime remove the sessions that have not been utilized for a while? or is there something else i need to look at? my main goal is to not have a whole mess of sess_* sitting on my server>
thanx for any info!
by soshea
Sat Dec 14, 2002 12:17 am
Forum: PHP - Code
Topic: explain php.ini section
Replies: 1
Views: 481

explain php.ini section

i need a bit of guidance here. it says in the php manual that if the session.cookie_lifetime=0 then the cookie will be deleted when the browser is closed. so if i have a <?php sessiont start(); ?> and then close the browser after the page. the session cookie should be destroyed. the kicker is that i...
by soshea
Fri Dec 13, 2002 3:19 pm
Forum: PHP - Code
Topic: sessions and postgres
Replies: 2
Views: 644

sessions and postgres

well since cookies are to quirky(will work some of the time, but relies to much on the user). can i get any suggestions from the group on how to make a session management tool with postgres. basically the user will login to the page (utilizing https) and from that form we validate off of the postgre...
by soshea
Fri Dec 13, 2002 12:04 pm
Forum: PHP - Code
Topic: setcookie() when logging in and logging out
Replies: 1
Views: 533

fixed the logout

whoops, i was referencing the old cookie i was testing with. the logout now works appropriately.
soshea
by soshea
Fri Dec 13, 2002 10:46 am
Forum: PHP - Code
Topic: setcookie() when logging in and logging out
Replies: 1
Views: 533

setcookie() when logging in and logging out

hey all, i am writing a login page for an are that utilizes HTTPS. for browsers for IE6.0 and netscape7.0 the page works fine. netscape 6.0 and below plus IE5 and below has problems though. they do not want to set cookies so the login page is continuously showing up. (i know this could be their own ...
by soshea
Wed Dec 11, 2002 1:49 pm
Forum: PHP - Code
Topic: force the user to utilize https
Replies: 6
Views: 1676

doing this on linux-apache no idea about IIS.
soshea
by soshea
Wed Dec 11, 2002 10:24 am
Forum: PHP - Code
Topic: force the user to utilize https
Replies: 6
Views: 1676

you will want to use header()

Code: Select all

<?php
header('location: http//www.yourpagehere.com');
exit();
?>
but you may also want to inform them of why they were redirected away.

http://www.php.net/manual/en/function.header.php

later
soshea