Jump to content
xisto Community

humphrey88

Members
  • Content Count

    21
  • Joined

  • Last visited

Posts posted by humphrey88


  1. Here's what I wanted to do: set up a "puzzle of the day" email delivery system that people could subscribe to.

     

    Here's how I attempted it: using a modified version of an article on asp101 (getting scripts to run on a schedule), I put the following code at the bottom of my site's homepage:

     

     

    Code:

     

    <% If DateDiff("d", Application("LastScheduledRun"), Now()) > 0 Then Application.Lock Application("LastScheduledRun") = Now() Application.UnLock 'Trigger the emailer, which will then redirect back to here. Response.Redirect "/delivery.asp" End If %>

     

     

    delivery.asp in turn sends off that day's puzzle and redirects back to the homepage.

     

    Well, it worked, sort of. I had my own email as the only recipient for the past 4 days as a test. And I did indeed get the puzzles: 3 times a day. That's problem number 1.

     

    Until today, when I didn't get the puzzle at all. By this time of day, it's usually arrived twice. That's problem number 2.

     

    Any suggestions? Up to and definitely including "try the following free service/script instead"...

     

    Note that this is a godaddy hosted, cheap-as-possible account. I don't believe I can access any kind of scheduled task controller on the server.

     

    Thanks in advance.


  2. Anyone care to share how I can add a simple promt for asking the user:"Are You Sure You Want to do This?" on submit.....<%'show Remove Expired button if Mike is logged inIf realtor("ID")=1 ThenResponse.Write("<FORM ACTION='mainmenu.asp' METHOD='post'>")Response.Write("<INPUT type='submit' name='S2' value='Remove Expired'>")Response.Write("</FORM>")End If%>Something like onsubmit="Are You Sure?"


  3. I am trying to convert a date that I take from an email. It is in this format:Wed, 02 Aug 2006 03:59:10 -0700And I want to convert it to:2006-08-02This:trim(substr($date,12,4))."-".trim(substr($date,8,3))."-".trim(substr($date,5,2))...will get me:2006-Aug-02.Any quick php tips to convert the "Aug" to convert to "08"?Thanks!


  4. HiFew years back, I developed a passion for photography. Therefore, I got myself a Nikon camera. However, due to my busy schedule, I hardly had the chance to try it out. I will be having my semester break soon and thus I would like to start pursuing my "lost-passion".Therefore, can anyone teach me how to take a good picture? As in the angles, the mode etc. I have always been fascinated on how others managed to take such nice pictures.Anyways, I would like to capture the nature as I have always been amazed by the beauty of nature (the sun, the sky, the trees, the flowers and the insects.)Is there anyone out there who shares the same passion as me? If you are one of them, would you mind sharing a skill or two?I appreciate it a lot. Thank you.


  5. HiI would like to create a youth-oriented website. The theme colors I have chosen is lime green and black. However, I am bad at design the layout. Therefore, I would like to seek your comments regarding the layout.Is it possible if you can list down some examples of websites with similar themes so that I can take reference?My target audience is from 10-16 years old.Thank you for your help.


  6. There are different database backends supported by PHP. However, most of us probably use MySQL and the books on PHP mostly use MySQL as the backend database.
    These are the currently supported database format:

    1. dBase
    2. FrontBase (functional since DB 1.7.0)
    3. InterBase (functional since DB 1.7.0)
    4. Informix
    5. Mini SQL (functional since DB 1.7.0)6. Microsoft SQL Server (NOT for Sybase. Compile PHP --with-mssql)
    6. MySQL (for MySQL <= 4.0)
    7. MySQL (for MySQL >= 4.1) (requires PHP 5) (since DB 1.6.3)
    8.Oracle 7/8/9
    9. ODBC (Open Database Connectivity)
    10. PostgreSQL
    11. SQLite
    12. Sybase

    Source: PHP.net- DSN

    Now anyone, using database format other than MySQL, may like to share his experience with us.

    Regards,
    Sid



    Hi

    I have tried using mySQL. I think that it is quite common and useful. One of the advantages for mySQL is that it is free (open source). Therefore, I would recommend you to use it too.

    Normally people who use PHP will eventually use mySQL.

    For more information about this, you can log on to http://www.mysql.com/

  7. Hey I need a Log in System for my site, What I want to do is where they have there own profiles for members only to view. Then Have it where they see pages which Non members don't see.. Also I want it where I can Only add Usernames or Passwords. Basicly its going to be like thisGuest Page:No Log is neededAny one can SeeMembers Page:Log in Needed to see, May only log in from Admin adding there name, Can Delete there name if they quit member ship, or change there password to banned them. Also The Members pages cannot be viewed Even if U type in the link to the a Members sectionI want the Log in Spot to be on the main Home page and all the Guest Pages.. So it can't be a log in system that needs its own siteWhich one do u perfer to use?? Theres so many but what one does all this???Ty For the helpAlso I need to know How to make a Guest book on a webpage, Im new to PHP and don't know nothing about it lol, I never found a good place to learn it .


  8. Hello,Can any body please tell me how is it possible to automitacilly detect that wheather flash plugin is installed on the compuer of my website visitor so that it is possible to immidiately redirect him to HTML version of the site if the plugin is missing.Also is it possible tho detect the platform i.e Linux/Win of that system ?Please help.


  9. Hi

     

    I have just started learning PHP programming too. I think that it will be easy to pick it up if you have prior knowledge of the other programming languages (not HTML). I know that you do not have any past experiences with the other languages. However, I believe that if you really wish to learn, you still can pick it up speedily. The website that I would recommend you is http://sg.php.net/. This website provides all that you need regarding PHP programming. I got to learn alot from this website as it gives real examples of codes and gives a detailed explanation of how the codes will work.

     

    I hope that you would give this website a try. I also hope that you can be able to be a PHP savvy soon.


  10. For a long time now I have been reading forums and articles to figure out how to write/read files with a Program on the Internet.
    I'll give you my situation. I have a game that writes/reads a file that keeps track of a high score. It is in Java and it is hosted as a Java Applet and a Java Web Start program.
    I want to be able to write and read from a certain file on the server, the same directory in which my game is in on my server.

    Everything I have read says this is perfectly ok and the working sandbox doesn't affect this. Well I can't seem to figure out how to do this.

    I don't know if the way I write the file is bad, the way I retrieve the directory, or if in the script to execute the applet I need to include something, or in the JNLP file I need to put something.

    Everything I have read tells me it is possible and easy but I can't find a place that tells me exactly how to implement it.
    To sum it all up:
    I have a program wrapped in a single Jar file on my server. I want to be able to have read/write/delete priviledges in the same directory the Jar is in on the server, NOT the clients computer.
    If anyone could shed any light on the subject I would greatly appreciate it.


    Hi

    Other than signed Java Applets, all the Java Applets will be "forced" to run in the sandbox. This is to ensure that the security goals are not compromised. Therefore, in order not to allow your Java Applets to run in a sandbox, you have to ensure that the Applets are digitally signed and they are accepted by the end-users. However, you may want to find out yourself on how to digitally sign your applets.

  11. Well..can someone introduce me?(picture introduce is well)



    You can try out Borland JBuilder. It is a software for you to run your Java applications.

    This software is free and you can download it from https://www.microfocus.com/borland. There are other softwares provided by Borland too. The softwares will allow you to run your C++, Pascal or even other programming languages' applications.

    I hope that what I said would aid you in your work.

  12. Hi everyoneI just learnt a little about using Javabeans in JSTL programming. I learnt to use it for shopping cart purposes as well as creating cookies. However, I wish to know where Javabeans can also be used with PHP programming as I would like to build my site with PHP.I am looking forward to your replies.Thanks.


  13. Dear FriendsI need solution to a problem. The problem is as under:
    I am creating certain files (playlist) in server disk when user selects some songs. The files are created in ram format. What I want to do is to delete these files created during a particular session. Is it possible to do so? Now I am deleting these files using on Unload event fired by JavaScript. I am using PHP.


    Hi

    I have just learnt how to do it. I think you can use the session_destroy() function. More information can be found at http://sg.php.net/session_destroy

    I hope that the website would give you the answer that you are searching for.

    Cheers.

  14. Hi,
    I some application i came across to give support for the JSP to SMS. What i mean to say is i need to send the SMS From a JSP Form. How i can implement it, any resources, links, e-books are welcome.

    Please help me....

    Regards
    Arunkumar.H.G



    This technology seems interesting. I didn't know that we can send SMS using JSP scripts. However, does it charge? If not, I guess it would be something worth finding out. Does any one know how to get a SMS server?
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.