Search found 4 matches

by peterg012
Tue Jan 05, 2010 9:00 am
Forum: PHP - Code
Topic: Sessions: session_id, regenerate_id, start order?
Replies: 2
Views: 321

Re: Sessions: session_id, regenerate_id, start order?

Hi, I am not sure if you are aware that using session_regenerate_id() will replace the current session id with a new one, and keep the current session information. You could use this to destroy a session: session_destroy(); You can only use session_regenerate_id() after session_start because it need...
by peterg012
Tue Jan 05, 2010 8:42 am
Forum: PHP - Code
Topic: Browser error with PHP email script
Replies: 4
Views: 182

Re: Browser error with PHP email script

Hi, On the line where the error is: mail($EmailTo,$Subject,$Body,$EmailTo); I notice that the 4th parameter is the "TO" address. You have created a $headers var, but have not used it. Change you line to the following as a test:   $Header = "From: $EmailTo"; $Send = mail($EmailTo,...
by peterg012
Tue Jan 05, 2010 8:35 am
Forum: PHP - Code
Topic: Domain Search Using Curl in PHP
Replies: 2
Views: 1317

Re: Domain Search Using Curl in PHP

Hi, The following line: curl_setopt($resURL, CURLOPT_HEADERFUNCTION, 'curlHeaderCallback'); is looking for a function called curlHeaderCallback , which does not exist. This cURL option uses a callback function. By looking at what you are doing, you won't need to set the CURLOPT_HEADERFUNCTION option...
by peterg012
Thu Sep 06, 2007 12:58 am
Forum: PHP - Code
Topic: Variables in HTML Files
Replies: 1
Views: 169

Variables in HTML Files

Hi,

I often see something like the below in html files:-

Code: Select all

<title>%%Config.KnowledgebaseName%%</title>
[/b]

What exactly is it? Is it a place holder? Do you know of any tutorials on this?

Thanks!! :oops: