Jump to content

otuatail

Members
  • Posts

    961
  • Joined

  • Last visited

Everything posted by otuatail

  1. I want (for security perposes) to try and use a COM DLL I can write com objects but do not know how to initialise them and call the functions in PHP. Any help on this please. Paul.
  2. I am strugling finding functions I have looked under Section VI. Function Reference I have to do an events calender for a church. The events display will be limited to that week. If someone went in today Wed 24th I want to display 21st to 27th. I dont want any code samples, just the functions that find the day of week and a function that can (in this case) subtract 3 days to get sunday and add 7 for saterday. I can do the rest. Desmond.
  3. I have been asked to develop pages using 800 x 600. Is still a problem in 2006. Is there a way of getting this information from the users browsers and creating a log? Desmond.
  4. Good LuclI am the otherway around ASP for years, but feeling very battered and brused with PHP although I have a C and C++ background. Same as PHP Semi's on ends of lines. Most C++ functions seem the same. Good luck again. Des.
  5. I have used session variables to store all the fields entered with blank sessions variables obviously where nothing is entered. re-directing back to the form populating the fields already entered. and turning the text red or bold against the form entries that are blank and require filling in. ALSO a message at the top explaing why. I have had problems where the email has not been sent and it has been around the extra variable $headder $success = mail($to,$sss, $mmm, $headers); where $header was $headers = "From: $name <$from>\r\n"; also my Web hosting guy changed something on the server and I had to add a line above this ini_set("sendmail_from", "root@des-otoole.co.uk"); But I have also been told not to rely on the return value of the mail() function. Hope this helps. P.S. Try doing this in Microsoft ASP. count the grey hairs. Desmond.
  6. session.cookie_lifetime(180); Fatal error: Call to undefined function: cookie_lifetime() in e:\domains\d\des-otoole.co.uk\user\htdocs\index.php on line 4 session_start(); session_set_cookie_params(180); times out after 20 minutes session_start(); session_cache_expire(180); times out after 20 minutes session_start(); session_start(); session_cache_expire(180); times out after 20 minutes but Session remains on new browser session_start(); session_set_cookie_params(180); times out after 20 minutes but Session remains on new browser None of the above functions in any configuration works. The figure of 180 comes from this website session_cache_expire and is suposed to be the default in minutes.
  7. PHP Manual gives example session_cache_expire For PHP 4.2.0 and above I get an error on this undefind function. My Web remote server is 4.3.2 session_cache_expire can be used to set a time or return a time. Documentation states default 180 and this is in minutes session_set_cookie_params(180); does not give an error. If this is working is the time 180 minute and can I get the current value as session_cache_expire claims.
  8. This is obviously a dificult one I thought someonre knew of a a way of extending a sesion timeout from the default 20 minutes to 30 minutes in code. It can be done in ASP.
  9. [!--quoteo(post=374817:date=May 18 2006, 12:42 AM:name=ryanlwh)--][div class=\'quotetop\']QUOTE(ryanlwh @ May 18 2006, 12:42 AM) [snapback]374817[/snapback][/div][div class=\'quotemain\'][!--quotec--] change the php ini value session.cookie_lifetime [/quote] This does not help change the php ini value session.cookie_lifetime I have no access to the server I am a user of a web host. ALL i have is session destroy, Unload etc.
  10. how do i extending a time out of a session. Does it have to be done on each web page. ? Desmond.
  11. Thanks for the help that works fine now. Is there a comprehensive list of functions on this site or any other for all functions like int strcmp(str , str) Desmond.
  12. I have been looking for a refernce type of all the functions available in php. I want to iterate through a string and as PHP is C based, Thought of something like $char = $mystring[$x]; I also need to construct a Select Case: Any help on this please. I might be new to PHP but have used C and C++ extensivly. Desmond.
  13. [!--quoteo(post=373180:date=May 11 2006, 07:02 AM:name=Heero)--][div class=\'quotetop\']QUOTE(Heero @ May 11 2006, 07:02 AM) [snapback]373180[/snapback][/div][div class=\'quotemain\'][!--quotec--] The product key could possibly be converted into a software license, but I ran the program on separate computers using the same product key and the software license numbers showed up differently. Microsoft has been hiding something from us...... [img src=\"style_emoticons/[#EMO_DIR#]/wink.gif\" style=\"vertical-align:middle\" emoid=\":wink:\" border=\"0\" alt=\"wink.gif\" /] [/quote] The product key refers to the one on the microsoft box. Every time you re-install windows you will use this. but the instalation software generates a lice key based on this, and every time you install it you will get a diferent number.
  14. I have a small website and using session variables I can create a counter for how many hits I get. I can also create a seperate log giving me dates and times. I think someone is artificialy incrementing this. Can I retreve the IP address and log this as well. I have seen the website whatsmyipaddress.com so it must work. Desmond.
  15. I have searched the online manual for formating a number 2 3 decimal places. Can someone help out here $mynumber = 16.458302303 to <td>16.45</td> Desmond.
  16. I have a mysql database (4.0.25 I believe – streamline.net) I would like to show the first 10 or so with a Previous 1 2 3 4 next system underneath. I could count the records and work out how many pages, but I would not know the unique id as records could be removed and there would be gaps in the auto numbering. I could re-invent the wheel, but is there a simple system. SQL server has a page system although I never investigated it. Desmond.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.