Search found 31 matches
- 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 ...
- Fri Jan 03, 2003 3:14 pm
- Forum: PHP - Code
- Topic: formatting question
- Replies: 3
- Views: 615
- Thu Jan 02, 2003 12:11 pm
- Forum: PHP - Code
- Topic: formatting question
- Replies: 3
- Views: 615
- 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 ...
- Thu Dec 19, 2002 8:19 pm
- Forum: PHP - Code
- Topic: tr color variations help in PHP
- Replies: 3
- Views: 868
- Thu Dec 19, 2002 4:22 pm
- Forum: PHP - Code
- Topic: tr color variations help in PHP
- Replies: 3
- Views: 868
- 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 ...
- 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...
- Sat Dec 14, 2002 12:37 am
- Forum: PHP - Code
- Topic: explain php.ini section
- Replies: 1
- Views: 481
- 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...
- 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...
- 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
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 ...
- Wed Dec 11, 2002 1:49 pm
- Forum: PHP - Code
- Topic: force the user to utilize https
- Replies: 6
- Views: 1676
- 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()
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
Code: Select all
<?php
header('location: http//www.yourpagehere.com');
exit();
?>http://www.php.net/manual/en/function.header.php
later
soshea