Search found 10 matches
- Fri Jan 22, 2010 8:23 am
- Forum: PHP - Security
- Topic: Username and password in a login link?
- Replies: 2
- Views: 1597
Username and password in a login link?
I need to create a login link which includes username and password (taken from an intranet), so that when the user clicks it, he gets automatically logged in the website, without going to the login page. Is it safe to include the username and password in the url? I know nothing about is, and what th...
- Sun Nov 01, 2009 5:20 am
- Forum: PHP - Code
- Topic: When and why should I use session_regenerate_id?
- Replies: 2
- Views: 345
When and why should I use session_regenerate_id?
I read somewhere that using session_regenerate_id can help the security of the website. Is that true? How does it do that?
When should I use it in the script, just after a user has logged in?
And should I set the optional parameter to TRUE or FALSE?
Thanks for any help!
When should I use it in the script, just after a user has logged in?
And should I set the optional parameter to TRUE or FALSE?
Thanks for any help!
- Fri Oct 02, 2009 5:31 am
- Forum: PHP - Code
- Topic: HTML to PDF converter - a free, good one written in PHP?
- Replies: 1
- Views: 131
HTML to PDF converter - a free, good one written in PHP?
I am looking for a free HTML to PDF converter in PHP. I have been using dompdf, but it doesn't preserve cell padding or borders, and the pdf document does not look exactly the same as the webpage.
Does any of you know of any free good ones?
Thanks in advance!
Does any of you know of any free good ones?
Thanks in advance!
- Thu Oct 01, 2009 4:19 pm
- Forum: PHP - Code
- Topic: Form with image upload stalls after repeated submits
- Replies: 1
- Views: 97
Form with image upload stalls after repeated submits
I have a simple form which uploads a picture and updates different text fields onto a database. Everything is run locally, I haven't tried it on a real server yet. It looks like this: <form action="" method="post" enctype="multipart/form-data"> <label>Name</label> <...
- Fri Sep 25, 2009 10:54 am
- Forum: PHP - Code
- Topic: How to display a different date format
- Replies: 6
- Views: 246
Re: How to display a different date format
Thank you very much!
- Fri Sep 25, 2009 10:23 am
- Forum: PHP - Code
- Topic: How to display a different date format
- Replies: 6
- Views: 246
Re: How to display a different date format
Yes, I can. What would be the best way to do that?
- Fri Sep 25, 2009 4:48 am
- Forum: PHP - Code
- Topic: How to display a different date format
- Replies: 6
- Views: 246
Re: How to display a different date format
Thanks a lot!
- Fri Sep 25, 2009 3:20 am
- Forum: PHP - Code
- Topic: How to display a different date format
- Replies: 6
- Views: 246
How to display a different date format
I have this date and time inside a variable, taken from a database: $datetime = "2009-09-17 12:20:08"; I would like to extract just the date (without the time) and show it as "17/09/2009" instead. Is there a way to do this without the "explode" function? Thanks to anyon...
- Thu Sep 24, 2009 11:51 am
- Forum: PHP - Code
- Topic: <?=$variable?>
- Replies: 4
- Views: 281
<?=$variable?>
I found this syntax in a code:
They seem like the php start and end tags, but what does the "equal" sign do? I tried replacing it with:
It didn't work. Thanks to anyone who can help me.
Code: Select all
<?=$variable?>They seem like the php start and end tags, but what does the "equal" sign do? I tried replacing it with:
Code: Select all
<?php $variable ?>It didn't work. Thanks to anyone who can help me.
- Wed Sep 23, 2009 10:22 am
- Forum: PHP - Code
- Topic: What does this line of code do?
- Replies: 1
- Views: 54
What does this line of code do?
I found this line of code, but I can't understand the syntax of it: [color=#000080]register_shutdown_function([/color][color=#800000]array($this, 'close')[/color][color=#000080]);[/color] I read on the online documentation that the register_shutdown_function calls a shutdown function before the scri...