Cipher coding practice...

I have a teaser cipher That I have mad via applescript.
I'm curious to know if I can, and if so, how I can only include the alphabet.
Josh

I'm curious to know if I can, and if so, how I can only include the alphabet
What do you mean by this?
Do you mean you want to validate the input to make sure it's only valid alphabetic characters?
Or you want to validate the output to make sure it's valid alphabetic characters?
Without more details it's hard to give you an optimal design, but in general, given a string s you can validate that it matches a character set via something simple like:
-- here's your string to check:
set inputStr to "the quick brown fox jumped over the lazy dog"
-- go check it:
set isValid to checkAlpha(inputStr)
on checkAlpha(s)
  set validChars to {" ", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", ¬
  "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"}
  repeat with eachChar in (characters of s)
  log eachChar as string
  if eachChar as text is not in validChars then return false
  end repeat
  -- if we get here, every character matched, so we're good to go
  return true
end checkAlpha
In this model, just expand the validChars list to include all the characters you consider valid.
There are also numerous other ways of doing this. I'm sure other people will add their $0.02, too.

Similar Messages

  • How to follow best coding practices and make this code runable.

    How to change this code to make it work and follow best coding practices.
    This code is to add fields to internal table LIST which already exist.
    In the loop are all the selections which are to be made.
    But i am new to ABAP and not sure how to make this work.
    please help me.
    DATA: wa_list LIKE LINE OF list,
          l_v_index TYPE i.
    DATA: t_price_result1 TYPE STANDARD TABLE OF komv WITH HEADER LINE INITIAL SIZE 0.
    DATA: wa_result LIKE LINE OF t_price_result1.
    LOOP AT list INTO wa_list.
      l_v_index = sy-tabix.
    *GET MATERIAL DOCUMENT(MBLNR) AND DELIVERY NUMBER(XBLNR)
      SELECT  mkpf~mblnr
              mkpf~xblnr
       into (wa_list-mblnr, wa_list-xblnr )
    *            INTO i_list
       from mkpf inner join mseg
    *   up to 1 rows
        on mkpf~mandt = mseg~mandt
        and mkpf~mblnr = mseg~mblnr
        and mkpf~mjahr = mseg~mjahr
        where mseg~matnr = wa_list-matnr
         and mseg~charg = wa_list-charg
         and mseg~kunnr = wa_list-kunnr
         and mseg~sobkz = wa_list-sobkz
         and mseg~werks = wa_list-werks
         and mkpf~budat in budat.
                                                                "RFC3762
      ENDSELECT.
      wa_list-mblnr = list-mblnr.
      wa_list-xblnr = list-xblnr.
    * GET POSNR FROM TABLE LIPS
      SELECT posnr
      FROM lips
      INTO list-posnr
      up to 1 rows
      WHERE vbeln = wa_list-xblnr AND
                 matnr = wa_list-matnr.
      ENDSELECT.
      wa_list-posnr = list-posnr.
    * GET SALES ORDER #
      SELECT vbelv
      FROM vbfa
      INTO list-vbelv
      up to 1 rows
    *        INTO wa_list
      WHERE vbeln =  wa_list-xblnr.
      ENDSELECT.
      wa_list-vbelv = list-vbelv.
    *GET PO
      SELECT bstkd
      FROM vbkd
      INTO list-bstkd
      up to 1 rows
      WHERE vbeln =  wa_list-vbelv
          AND posnr = 0.
      ENDSELECT.
      wa_list-bstkd = list-bstkd.
    *get serial number
      SELECT SINGLE obknr
       FROM ser01
       INTO list-obknr
       WHERE lief_nr = wa_list-xblnr
           AND posnr = wa_list-posnr.
    wa_list-obknr = list-obknr.
    SELECT sernr
    FROM objk
    INTO list-sernr
    up to 1 rows
    WHERE obknr = wa_list-obknr.
    ENDSELECT.
    wa_list-sernr = wa_list-sernr.
    *get date
    SELECT budat FROM mkpf
    INTO list-budat
    up to 1 rows
    where mblnr = wa_list-mblnr.
    ENDSELECT.
    wa_list-budat = list-budat.
    *get CLP
    SELECT   vkorg vtweg spart
    INTO (list-vkorg, list-vtweg, list-spart)
    up to 1 rows
    FROM vbak WHERE vbeln = wa_list-vbelv.
    ENDSELECT.
    wa_list-vkorg = list-vkorg.
    wa_list-vtweg = list-vtweg.
    wa_list-spart = list-spart.
    SELECT pstyv
    INTO list-pstyv
    FROM  vbap
    up to 1 rows
    WHERE vbeln = wa_list-vbelv AND posnr = wa_list-posnr.
    ENDSELECT.
    wa_list-pstyv = list-pstyv.
    CALL FUNCTION 'Z_SD_PRICING_CONDITION'
    EXPORTING
    i_organization                  = wa_list-vkorg
    i_dist_channel                  = wa_list-vtweg
    i_division                      = wa_list-spart
    i_customer                      = wa_list-kunnr
    i_plant                         = wa_list-werks
    *      i_pricng_date                   = sy-datum
    i_material                      = wa_list-matnr
    *   I_SALES_UNIT                    = 'EA'
    *   I_QUANTITY                      = '1.000'
    i_stor_loc                      = '0001'
    i_item_cat                      = 'TAN'
    *   I_AUART                         =
    *   I_REFRESH                       = 'X'
    *   I_KOMP                          =
    *   I_KOMK                          =
    * IMPORTING
    *   E_MES_TYPE                      =
    *   E_MES_NUMBER
    *   E_MESSAGE                       =
    TABLES
    t_price_result                  = t_price_result1
    * EXCEPTIONS
    *   CUSTOMER_NOT_FOUND              = 1
    *   PLANT_NOT_FOUND                 = 2
    *   MATERIAL_NOT_FOUND              = 3
    **   PLANT_MATERIAL_NOT_FOUND       = 4
    *   SALES_DATA_NOT_FOUND            = 5
    *   ORG_UNIT_NOT_FOUND              = 6
    *   UNABLE_TO_CALCULATE_PRICE       = 7
    *   UNABLE_TO_FORMAT_PRICE          = 8
    *   MANDATORY_INFOR_MISSING         = 9
    *   OTHERS                          = 10
    LOOP AT t_price_result1.
      IF  t_price_result1-kschl = 'ZPR2'.
        wa_list-kbetr = t_price_result1-kbetr.
      ELSE.
        wa_list-kbetr = 0.
      ENDIF.
    ENDLOOP.
    MODIFY list FROM wa_list INDEX l_v_index.
    ENDLOOP.

    Hi,
    Lets first start from your Select Statement.....Replace your SELECT ....ENDSELECT by SELECT Into Internal Table
    Your program is having a SELECT...ENDSELECT within LOOP...ENDLOOP........One should avoid doing this as far as possible.
    SELECT  mkpf~mblnr
                  mkpf~xblnr
    INTO itab
    for all entires i_list
    from    mkpf inner join mseg
        on   mkpfmandt = msegmandt
        and mkpfmblnr = msegmblnr
        and mkpfmjahr = msegmjahr
        where mseg~matnr = i_list-matnr
           and mseg~charg = i_list-charg
           and mseg~kunnr = i_list-kunnr
           and mseg~sobkz = i_list-sobkz
           and mseg~werks = i_list-werks
           and mkpf~budat in budat.
    Restructure youe complete code with this approach and Share your Finding's.
    You can also think of using a SAP Standard FM.
    Anyway..What is the objective/Output of this report?

  • Coding Practice for Bound Property Names

    I think this simply an issue over coding practices, but if I am right then all the tutorials and documentation on how to write Beans are promoting poor coding practices. Speicifcally, it bugs me that String literals are always used in all the code I see. As in the following code:
    class MyBean  {
       public void setValue(value newValue) {
          beansupport.firePropertyChange("value", oldValue,  value);
    }the practice that I have starting using is:
    class MyBean  {
        public static final String propertyValue = "value";
       public void setValue(value newValue) {
          beansupport.firePropertyChange(propertyValue, oldValue,  value);
    }This way, a PropertyChangeListener can refererence MyBean.propertyValue instead of using the literal "value" -- eliminating the chance for error and also there don't have to be multiple literals floating around using up space. Is there any reason this isn't commonly accepted practice or did I miss something?

    Strings appearing in source code can be reduced to a constant, like an enum. So it is likely that the code with strings is actually faster, as the value is known before compilation. It is easier to read. Keep in mind that strings get interned every now and then and thus get reduced to this equivalency:
    public method blah( "value", some stuff )...
    public method nah(*){ do stuff; let x = "value"; more stuff with "zoiks!" }
    ends up like
    key k1 = "value"
    key k2 = "zoiks!"
    what the jvm sees;
    public method blah( key1, some stuff )...
    public method nah(*){ do stuff; let x = key1; more stuff with key2 }
    The string values get "inlined" and can be checked during compilation, allowing for many optimisations not otherwise possible.
    Hope that helps a little.
    Andrew

  • Coding Practice(GV$SESSION)

    Hi
    Recently there was an issue of 1 procedure running in parallel through 2 different sessions and causing some irregular results.
    So, I changed the code in such a way that when the procedure runs then it sets the module and action in the GV$SESSION view.
    exec DBMS_APPLICATION_INFO.SET_MODULE ('MOD', 'ACT3000');
    So whenever the procedure runs it first checks in GV$SESSION whether ACTION with the name ACT3000 is running or not, if not it runs,else it exits.
    The question I have here is that is it a bad coding practice to select from the view GV$SESSION or any other system views in a procedure or an anonymous block?
    Regards
    Ankit

    The question I have here is that is it a bad coding practice to select from the view GV$SESSION or any other system views in a procedure or an anonymous block?Probably there's no general answer to this. Sometimes it is just necessary to to query system views, sometimes you might think it over again - in particular for performace reasons.
    In your case you also have the alternative of querying sys_context to get the information you wanted:
    SQL> select sys_context('userenv','module') module, sys_context('userenv','action') action from dual;
    MODULE                         ACTION
    SQL*Plus
    SQL>..whereby dual itself is a system view/table ;)

  • Best Coding Practices

    Hi
    are there any best coding practices for EP development?can anybody suggest the material?
    Prasad

    EP, as in Enterprise Portal?
    James

  • Best coding practice

    Not a big deal here but I'm curious what others think about
    this. A fellow programmer and I were talking about this and
    couldn't come to a conclusion.
    Basically is it better to use a NOT EQUAL TO or an EQUAL TO?
    For instance if you have a list of names and you want all
    "BOB"s to be treated one way and all others to be treated another.
    Would it be better to say
    <cfif FNAME EQ "BOB">
    blah blah
    <cfelse>
    woo woo
    </cfif>
    or
    <cfif FNAME neq "BOB">
    woo woo
    <cfelse>
    blah blah
    </cfif>

    quote:
    Originally posted by:
    MaryJo
    quote:
    Originally posted by:
    MikerRoo
    Good grief, you are ALL wrong --
    especially Mary Jo for introducing a barely relevant tangent
    to the thread and getting it wrong to boot!
    First of all, when someone asks what is best for a string
    comparison, mentioning Compare and CompareNoCase is *hardly*
    irrelevant. Second, I was NOT wrong. Since the discussion was
    revolving around performance that was just what I mentioned. That
    doesn't make me
    wrong just because there are reasons to use it other than
    just that. If you want to debate if there's any performance gains,
    well that comes right out of the CFMX coding guidelines at
    Livedocs, which say it is "significantly faster". I'm assuming Sean
    is correct in stating this, I'm not really in the mood to test it
    myself, but feel free to add your comments there and tell him he's
    wrong if you disagree.
    http://livedocs.macromedia.com/wtg/public/coding_standards/performance.html
    Of course, you can debate if the gain is that big a
    deal...which is why I phrased it the way I did (i.e. "If it's
    processing time you care about....") Again, that's what the bulk of
    the debate was on, so that was what I was addressing.
    No one asked what was the best for string comparison. YOU
    raised that issue.
    Your stated reason, (for performance) has not been true since
    CF5.
    Up until then, the question seems to be as much about style
    as anything else.
    That page you linked says that
    CompareNoCase() is "faster" than "is not".
    (1) If you actually run the tests, you'll see that the
    difference is less than the test variation (but statistically
    real).
    (2) This says nothing about compare() vs "IS". Here the
    performance is the same.
    (3) CompareNoCase is not functionally the same as the most
    commonly needed string comparison (case tolerant), so that is
    irrelevant for most uses anyway.
    Run the tests yourself and see that I'm right.
    In fact,
    Sean even admits, that the real reason to use compare() is
    accuracy, at the bottom of that page!
    So, my assessment was right. You were right mostly for the
    wrong reason and the post was barely relevant.
    Ironically, if you had found and linked that page to begin
    with, it would have made one more case for avoiding negative logic
    ("IS NOT").

  • Any usefull examples of good coding practice in large programs

    Hi, ive been writing code for about 10 years now. Know a good bit about labview now lmao! But want to get to know good code practices e.g. in creating large programs, code templates, avoiding race conditions, use of multiple loops and to be able to write code for clients as a contractor. Any one help me??
    Stu
    Solved!
    Go to Solution.

    Check out thelargeapp community and this KB article
    Message Edited by Jeff Bohrer on 06-14-2010 04:49 PM
    Jeff

  • Good coding practice for object init

    We have a code that requires initializing instance of the object for each item in the loop. I have following option in mind. Please advice which one is the best option. TIA
    Option 1
    =======
    public class AThread extends Thread {
    private ObjectA var1 = null;
    private ObjectA var2 = null;
    public AThread() {
    this.var1 = new objectA();
    public void run() {
    while ( ... ) {
    if (var2 != null) {
    var2 = null;
    var2 = var1;
    var2.callmethod();
    Option 1
    =======
    public class AThread extends Thread {
    private ObjectA var1 = null;
    public AThread() {
    public void run() {
    while ( ... ) {
    var1 = new objectA();
    var1.callmethod();
    var1 = null;
    }

    1. If in the future, you post code, you can make it much more readable by enclosing it in the [code][/code] tags.
    2. Why not implement Runnable instead of extend Thread? You're not creating a new type of thread, so it is more "OO"-sensible to create a new Runnable and run it.
    3. In the first Option 1, you might as well just be doing
    while (...) {
      var1.callMethod();
    }Assigning the reference to another variable does not create a new instance of the object, so it is not worthwhile to create a new reference to it just to call its methods.
    4. In option 2, setting the object's reference to null at the end doesn't really help anything, because the object is going out of scope anyway and will be destroyed.
    Your question, really, between the two options, is as follows: should you recreate and destroy the object for every iteration through the loop, or just call the method multiple times?

  • Good Coding practice

    Example of a nonsense code below
    for (int i=0; i < 10; i++)
        int total = i + 1;
    System.out.println(total);when excute, total will be redeclared 9 times, compiler doesn't complain. But is this clean?
    A better code below?
    int total;
    for (int i=0; i < 10; i++)
        total = i + 1;
    }

    My query is whether the "buffer" inside the loop ok?It's fine where it is. The compiler calculates how many slots on a stack
    are needed for all local variables. Those slots are allocated from the
    stack upon entry of the method and removed when the method returns.
    Note that the amount of slots needed is not necessarily the same as
    the total number of local variables:void foo() {
       int i; //  slot 1
       for (int j= 0; j < 10; j++) // slot 2
       for (int k= 0; k < 10; k++) // slot 2 again
    }kind regards,
    Jos

  • Good programming practice

    There are 2 sets of code which I extracted from a dummy book. The author just want to illustrate 2 ways that we can capture an exception.
    Code set 1_
    import static java.lang.System.out;
    class GoodNightsSleepA {
        public static void main(String args[]) {
            out.print("Excuse me while I nap ");
            out.println("for just five seconds...");
            takeANap();
            out.println("Ah, that was refreshing.");
        static void takeANap() {
            try {
                Thread.sleep(5000);
            } catch (InterruptedException e) {
                out.println("Hey, who woke me up?");
    Code set 2_
    import static java.lang.System.out;
    class GoodNightsSleepB {
        public static void main(String args[]) {
            out.print("Excuse me while I nap ");
            out.println("for just five seconds...");
            try {
                takeANap();
            } catch (InterruptedException e) {
                out.println("Hey, who woke me up?");
            out.println("Ah, that was refreshing.");
        static void takeANap() throws InterruptedException {
            Thread.sleep(5000);
    }To u guys who are experienced java programmer out there. Which set of code do u think is better coding practice and u'll usually code that way ? I personally would say GoodNightsSleepA is a better practice. Or u guy have some other better suggestion ? Thank you.

    Thank you to everybody who responded to this thread. Can anyone pls point me to a link that talks about proper OOP system analysis and design. I believe I need some foundation on this, otherwise I can't write a proper scalable code. Like some of u has pointed that the GoodNightsSleepB class will be more appropriate coz it provides flexibility to other user who would like to use it as a subclass. I didn't thought of this b4 until u guys have enlighten me.
    To corlettk, I'm totally new to AOP. I just read some of the links from the google search result. I'm still in a very blur stage about AOP. Am I right to assume that we should only code to include basic business requirement functions(primary task) in our class and make use of AOP to do the secondary task(such as data verification/exception capturing) ? Pls correct me if I'm wrong. Thank you in advance, guys.

  • Fpga programming practices

    i am looking at a piecie of FPGA code, and i have the following questions about its accepted coding practices.
    On the piecie of FPGA code that I am looking at,
    1. It seems that sequence structure is used a lot.  Howcome a state machine is not used instead?  Does using a state machine hurt the performance? 
    2. It seems that clusters were used sparingly and more shift registers were created to pass variable.  Does creater too many cluster or nested cluster hurt the performance?
    3. It seems like some values are passed to the outside of a sequence structure's frame through its top.  Is there a special application for that or just sloppy coding? 
    Please let me know if there are some good material to read on the topic.  Thanks!
    Kudos and Accepted as Solution are welcome!

    Have you tried writing an FPGA VI yet?  I have the impression that you're trying to understand everything about it before starting any work.  I think you'll learn it better if you start writing some code, then come back to this forum with questions about your specific code, rather than vague questions about FPGA generally.
    1. Correct.
    2. Well, neither is ideal.  See "Limiting the Number of Front Panel Objects in FPGA VIs" and "Using Clusters and Arrays in LabVIEW FPGA."  But do whatever makes sense to you first and see if it works.  There's no need to optimize until you start running into timing constraints or running out of FPGA resources.
    3. From this question, I think you haven't quite understood how FPGA works.  You're compiling your code into hardware.  It has no idea if a control is a type definition or not; all it sees is data.  If a type defintion makes it easier for you to program, use one.
    4. I don't believe there's any standard architecture on FPGA.  Again: you're basically building special-purpose hardware out of limited resources; use those resources in whatever way makes sense to you.  If you need the FPGA to perform several independent tasks, put each one in a separate loop.
    5. Single-cycle timed loops are always more efficient than a standard while loop, but again, start simple and optimize only when you run into restrictions.  However, it is often possible to avoid standard while loops and sequence structures entirely.  Put a timed loop, configured as a single-cycle loop, on the block diagram.  Drop a case structure in it, and put an integer shift register on the loop.  Connect the shift register to the case structure selector terminal.  Increment the value in the shift register on each iteration.  You now have a simple state machine.  Let's say the cycle clock is 40mhz and you have three frames of code that you want to execute every 200khz.  In cases 0 through 2, put your code.  Create a case 3..198 that does nothing, and a case 199 that resets the shift register back to 0.
    6. See "Using SubVIs on the FPGA."  A single instance of a subVI, and every instance of a reentrant subVI, is basically inlined during compilation, so there's no difference between using a subVI and putting the code directly at the top level.

  • Wht is ment by coding standards?

    hi,
    Can any one tell me wht is ment by coding standards. Wht r the tips to be followed when we r developing a application. so tht the application consists of good coding standards...
    thanks
    [email protected]

    Wht r the tips to be followed when
    we r developing a application. so tht the application
    consists of good coding standards...There are many books out there and through the generations of code, they only change slightly. When you read the books on 'coding standards', keep in mind at some point you will probably want someone to pay you for coding--at that point you will have to adhear to their corporate coding standards, if they officially exist or are implied by the project lead.
    I don't know of much else that will frost the attitude of a lead quicker t'ward a very compitent developer than one that insists the corporate standard is "not appropriate" or "bad coding practice". It may be, but until it is officially changed, or you are fired, they are paying you to make it their way.

  • Not able to capture button event in pageLayout Controller

    Hi Guys,
    I have the following layout
    pageLayout ------------------------ pageLayoutCO (controller)
    ----messageComponentLayout (Region)
    ----------messageComponentText (item)
    ----------messageComponentText (item)
    ----------messageComponentText (item)
    ----------messageLayout (Region)
    ----------------header(Region)
    ----------------------button (item) (say BTN1) (fires partial action)
    I am not able to capture the event fired by the button BTN1 in the controller of the pagelayout..... but if i set a controller at the messageComponentLayout iam able to capture the event.
    what should i do in order to capture the button event in the pageLayout Controller
    Thanks in advance
    Tom.

    Tom,
    Two things:
    1)The button ur using is of type submitbutton or button?.In this scenario it should be button.
    2)The correct coding practice is using:
    if("QUERY".equals(pageContext.getParameter(OAWebBeanConstants.EVENT_PARAM)))
    instead of
    String _event = pageContext.getParameter("event");
    if("QUERY".equals(_event))
    because you never know if Oracle in any upgrade or patch change the value of the constant EVENT_PARAM in class OAWebBeanConstants.
    3)If first point is followed by you, just match the exact event name in code and in property inspector for the button.
    --Mukul
    --Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • TABLE ILLEGAL STATEMENT  error with MODIFY command

    Hi gurus,
    i want you to inform me about table illegal statement error. The error occurs when i use modify as below.
    loop at itab.
       select .......
             where xxx eq itab-xxxx.
           MODIFY itab.
      endselect.
    endloop.
    i know that i have to give the sy-tabix as INDEX parameter to the modify command. but i want to know why i have to do this?
    cause when i debug, i follow the sy-tabix field and it have not a change in select endselect.
    may the reason of the error about cursor in select and cursor effects modify command?
    or why?
    Thx,

    Hello,
    I guess this is because your MODIFY statement is inside the SELECT ... ENDSELECT & not inside the LOOP ... ENDLOOP.
    SAP documentation says:
    Within a LOOP loop, the INDEX addition can be ommitted. In this case the current table line of the LOOP loop is changed.
    You have to change the coding:
    DATA: v_index TYPE i.
    loop at itab.
    v_index = sy-index.
    select .......
    where xxx eq itab-xxxx.
    MODIFY itab INDEX v_index.
    endselect.
    endloop.
    BR,
    Suhas
    PS: The coding practice followed is not very performance oriented as well. May be you should have a look around in some blogs, wikis in SCN & change the code accordingly.
    Edited by: Suhas Saha on Nov 19, 2009 9:41 AM

  • Moving a site in early development from CSS/HTM to PHP

    Hello.  I am early in the development of my latest site, which I began constructing using CSS and HTML.  My pages were .htm's.  After studying up on .php, I decided that i wanted this site to be in .php, so that I could do some things server side, like having secure forms for contact and etc..
    So I made a new index page in .php.  I copied and pasted the code from my index.htm into the index.php, and attached the CSS style sheets that I had created.  So everything is displaying correctly in the new index.php, as it was in the index.htm.  Can someone let me know if this is an okay practice.. a legit way of going about what I'm trying to do?
    My next question revolves around hyperlinks.  Is the creation of links fundamentally different in .php than in .html?  I figured you could make links in the same way, by moving to html in the properties panel and turning text on the page into a link.  However, when I go to view the page in a browser and try the link I made to another page in the site, and it asks me if I want to open up a file (note: I did not set up a local testing server).  Do you need to set up a local testing server using MAMP (i'm on a Mac) in order for links to function properly in a .php page?  Or should I be creating the links in the php code, by using the echo function?
    And of course last night I was trying to set up my local testing server and was having some struggles getting it to work.  I still have to figure that out, but before I ask you how to do that, I think I will try some more resources on the web, as there seems to be some videos available on that topic.  And yes I did copy all the files of the site that I'd like to test to the root directory of htdocs in the MAMP application folder, I'm must just be getting some of the settings wrong in the manage sites dialogue box.
    Any help/insight would be of a great help!  I know this is fairly simple stuff, but thanks!

    So I made a new index page in .php.  I copied and pasted the code from my index.htm into the index.php, and attached the CSS style sheets that I had created.  So everything is displaying correctly in the new index.php, as it was in the index.htm.  Can someone let me know if this is an okay practice.. a legit way of going about what I'm trying to do?
    That's fine.
    Won't make any difference to the server or the end result in browsers until the server finds some PHP script in your page to process before sending the page to browsers.
    A .php extension merely tells the server to check the page for PHP script to process before delivering the page to a browser. If it finds none, nothing happens server-side. The page is simply sent to the browser.
    My next question revolves around hyperlinks.  Is the creation of links fundamentally different in .php than in .html?  I figured you could make links in the same way, by moving to html in the properties panel and turning text on the page into a link.  However, when I go to view the page in a browser and try the link I made to another page in the site, and it asks me if I want to open up a file (note: I did not set up a local testing server).  Do you need to set up a local testing server using MAMP (i'm on a Mac) in order for links to function properly in a .php page?  Or should I be creating the links in the php code, by using the echo function?
    There's no change to your normal HTML coding practices when using PHP pages. They're regular HTML pages with PHP script sprinkled through them. The script is processed by the server. End users never see it in their browsers.
    Browsers understand HTML. A link is a link. Created the same as always.
    PHP scripts in the page are processed by the server, then inserted in the page then delivered to the browser.
    A testing server is required if you want to test PHP pages locally.
    You can test by saving your pages after each edit then upload to your PHP-enabled web host then refresh your browser. It works but it can be slow.
    A testing server does the same thing locally. Much quicker.

Maybe you are looking for

  • HT1541 Is there a way i can gift iTunes credit (already on my account) to a family member on another Apple iD

    I have an amount of credit on my Apple iD and would quite like to gift it over to my son on his Apple iD if possible. Any light on this matter would be appreciated.

  • Can we skip the first screen after call transaction has been performed?

    Hello Friends, I have written a program for INTERCATIVE REPORT . When i click on the link it needs to call transcation MD4C. I have written a BDC for calling the transaction and skipped first screen.Its working fine but the problem is that WHEN I TRY

  • Payment terms & condition

    Dear All, I want to creat payment term in PO as follows : Payment 90% Balance 10% After confirmation My client want to lock 10% payment in MIRO for some quality related purpose. Will system disallow for 100% payment? If yes pl tell me detailed scenar

  • Weblogic.rjvm.PeerGoneException

    this package is not in the API doc on the web for WL5.1... but i still get an error: <I> <RJVM> Signaling peer -2000438937484024190S110.20.116.265:[7031,7031,7032,7032,7031,-1] gone: weblogic.rjvm.PeerGoneException: - with nested exception: [java.io.

  • To delete/uninstall all infoaxe

    Every time I log on to the Google homepage, I get infoaxe with it. I know this is spam. Please tell me how to get rid of it completely. It is too terrible.