How to test php offline?

I am new to web stuff, and am running 10.5.4. I am trying to find if it is possible to test php offline, because where I volunteer in the day has no wi-fi, but I try to work on some php im learning.
I have php installed, obviously, as well as apache. I have uncommented the lines in httpd.conf file, and I have enabled websharing in system prefs.
I created a simple test.php file that calls phpinfo(), and it works I know because I ran it from terminal. But when I put the file into /library/websharing/documents and point localhost to it, all it does is display the code, not the info. Isn't it supposed to interpret the php that way? If not, is there anyway to do that?
Thank you for help!

nevermind, I searched httpd.conf and found the addtype line there, and already uncommented....
Oh and also, if I type just http://localhost in the browser, it goes to an apache ready page saying if you see this the installation of apache was succesful...
Message was edited by: x5452

Similar Messages

  • How to test php when creating in DW CS4

    I am a bit confused. Here is my set up:
    I have DW CS4 on my laptop and I am developing a site for a
    client. I have a local copy and I have set up a remote folder using
    FTP and utilize this mainly to put my pages on the server.
    I do have dynamic content, primarily PHP and up until
    yesterday I was able to view these pages using "Preview in Browser"
    or Live View. (On a side note, I do not remember how I set this up
    before). Well, today I installed IE 8 to start testing on that and
    now all of a sudden I cannot use Live View or Preview In Browser
    feature anymore. It keeps asking me to set up a testing server and
    if I choose not to, all I get is the source code displaying.
    I have no problem setting up PHP on my Laptop, but never had
    to do this before. Any insight as to what might have happened?
    Mike

    You may have to look at After Effects for something like this.

  • How to test php

    I'm trying to test the php parts of my site on dreamweaver cs6. When I was making it a popup came up wanting me to make a test server. I put the connection info for the initial host server. Now I don't know what to do. I click the button on the form in my site and it doesn't go to the .php site. What do I do to test it? Am I missing something?

    Setting up a local testing server in Dreamweaver CS5 | Adobe Developer Connection
    Although written for CS5, the set-up is the same.

  • Instapaper- can't figure out how to read page offline

    Can anyone help me with how to read a web article offline with Instapaper Free? I used the Instapaper "read later" bookmarklet, which appeared to save the story, but I can't figure out how to access the text version offline.

    Hi, thanks for taking time to reply, and I'm sorry for confusion of the two types of script. The only reason I am using shell script to test IP is I haven't figured out how to test it with Applescript. I will use only Applescript once I get it all figured out, as I undeerstand shell script even less than I understand Applescript.
    The begining script writes user name and email address to a plist from user input, then runs the above script to test and send mail. I just can't figure out how to have mail "make new message" with the "username" and "emailaddress" values already contained in the plist. I have seen that I can't use "property list file" unless it is directly under "tell application system events", but I am stuck on how to do this, and have mail use the values. Thanks again
    tell application "Mail"
    set theName to value of property list file item "username" of p_list --this is what I've been trying to figure out.
    set theAddress to value of property list item "emailAddress" of p_list --p_list path is at the begining of script.
                                 set newMessage to make new outgoing message with properties{visible:true, subject:"Your IP Address has changed",content:"Your Current IPAddress is: " & Current_ipAddress}
                              tell newMessage
      make new to recipient at end of to recipients with properties {name:theName,address:theAddress} --This is where I'm trying to use them
                              end tell

  • Testing PHP In Snow Leopard

    Hello,
    I am trying to enable Web Sharing on my Imac. All seems to be working , Your computers website output is "It Works", your personal website outputs the default page. But, when I try to run /Library/WebServer/Documents/test.php, and in the test.php file is <?php phpinfo(); ?>, it just shows the output <?php phpinfo(); ?>, not the php output. To initiate the file, I am using http://localhost/test.php.
    Thak you for any help,
    JR

    Hello
    im not sure but , do you have enable php on your mac ??
    how to find here
    http://stackoverflow.com/questions/1293484/easiest-way-to-activate-php-and-mysql -on-mac-os-10-6-snow-leopard-or-10-7-lion
    HTH
    Pierre

  • How to test a simple PL SQL function from another PL SQL script

    Hi,
    I have created a function. Now i need to test that whether it is returning the correct values or not.
    For that, i have written anothe pl sql script and trying to call this function. Im passing all the IN parameters in that function. I assume here that OUT parameters will provide me the result. Im trying to display the OUT parameter one by one to see my result.
    I'm using toad as sql client here connected with oracle.
    pl sql script:-
    DECLARE
    BEGIN
         DBMS_OUTPUT.PUT_LINE('$$$$$$$ VINOD KUMAR NAIR $$$$$$$');
         FETCH_ORDER_PRODUCT_DATA(320171302, 1006, 6999,
    ODNumber OUT VARCHAR2, Line_Number OUT VARCHAR2,
    ServiceID OUT VARCHAR2, BilltoNumber OUT VARCHAR2,
    AnnualPrice OUT NUMBER, CoverageCode OUT VARCHAR2)
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | ODNumber );
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | Line_Number );
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | ServiceID );
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | BilltoNumber );
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | AnnualPrice );
    DBMS_OUTPUT.PUT_LINE('HERE IS THE RESULT ' | CoverageCode );
    END;
    Function:-
    Program Name : SPOT_Order_Product_Data_For_CFS.sql
    Description : Function to Validate parameters from CFS
    By : Vinod Kumar
    Date : 08/19/2011
    Modification History
    By When TAR Description
    CREATE OR REPLACE FUNCTION FETCH_ORDER_PRODUCT_DATA(orderNumber IN VARCHAR2, customerNumber IN VARCHAR2,
    productLine IN VARCHAR2, ODNumber OUT VARCHAR2,
    Line_Number OUT VARCHAR2, ServiceID OUT VARCHAR2,
    BilltoNumber OUT VARCHAR2, AnnualPrice OUT NUMBER,
    CoverageCode OUT VARCHAR2)
    RETURN VARCHAR2 IS
    lv_err_msg VARCHAR2(100) := '';
    lv_bucket_id VARCHAR2(14);
    lv_bill_number VARCHAR2(30);
    lv_anual_price NUMBER;
    lv_coverage_code VARCHAR2(8);
    lv_quote_num NUMBER(10) := NULL;
    lv_line_num NUMBER(5) := 0;
    lv_customer_number VARCHAR2(30) := customerNumber;
    lv_product_id VARCHAR2(14) := productLine;
    lv_count_quote NUMBER := 0;
    lv_quote_status VARCHAR2(5);
    lv_quote_version NUMBER(2):=0;
    BEGIN
    IF INSTR(orderNumber, '-') = 0 THEN
    lv_quote_num := orderNumber;
    ELSE
    lv_quote_num := SPT_Delimiter(orderNumber, 1, '-');
    lv_line_num := SPT_Delimiter(orderNumber, 2, '-');
    END IF;
    --Check status of the quote COM, APP
    SELECT COUNT(*) INTO lv_count_quote FROM sot_order_header WHERE ORDER_NUMBER=lv_quote_num
    AND ORDER_STATUS IN ('APP', 'COM') AND CUSTOMER_NUMBER = lv_customer_number;
    IF lv_count_quote = 0 THEN
    lv_err_msg := 'Invalid Order number';
    RETURN lv_err_msg;
    END IF;
    -- Fetch the latest version on SPOT quote
    SELECT MAX(VERSION_NUMBER) INTO lv_quote_version FROM SPT_QUOTE_HEADER WHERE QUOTE_NUMBER = lv_quote_num
    AND CUSTOMER_NUMBER = lv_customer_number;
    -- If quote is valid fetch the data in OUT parameters
    IF lv_line_num = 0 THEN
    BEGIN
    SELECT a.CUSTOMER_BILLTO_NUMBER,
    b.LINE_NUMBER, b.BUCKET_ID,
    b.ANNUAL_REF_RATE_USD, b.COVERAGE_CODE
    INTO lv_bill_number,lv_line_num,lv_bucket_id,lv_anual_price,lv_coverage_code
    FROM SPT_QUOTE_HEADER a, SPT_QUOTE_LINE b
    WHERE a.QUOTE_NUMBER = lv_quote_num
    AND a.CUSTOMER_NUMBER = lv_customer_number
    AND a.VERSION_NUMBER = lv_quote_version
    AND a.QUOTE_NUMBER = b.QUOTE_NUMBER
    AND a.VERSION_NUMBER = b.VERSION_NUMBER
    AND b.PRODUCT_ID = lv_product_id;
    ODNumber := lv_quote_num;
    BilltoNumber := lv_bill_number;
    Line_Number := lv_line_num;
    ServiceID := lv_bucket_id;
    AnnualPrice := lv_anual_price;
    CoverageCode := lv_coverage_code;
    RETURN '';
    EXCEPTION WHEN OTHERS THEN
    lv_err_msg := 'Multiple PIDs existing in the SPOT order, please provide the SPOT order + line number as input data';
    RETURN lv_err_msg;
    END;
    ELSE
    BEGIN
    SELECT a.CUSTOMER_BILLTO_NUMBER,
    b.BUCKET_ID, b.ANNUAL_REF_RATE_USD,
    b.COVERAGE_CODE
    INTO lv_bill_number,lv_bucket_id,lv_anual_price,lv_coverage_code
    FROM SPT_QUOTE_HEADER a, SPT_QUOTE_LINE b
    WHERE a.QUOTE_NUMBER = lv_quote_num
    AND a.CUSTOMER_NUMBER = lv_customer_number
    AND a.VERSION_NUMBER = lv_quote_version
    AND a.QUOTE_NUMBER = b.QUOTE_NUMBER
    AND a.VERSION_NUMBER = b.VERSION_NUMBER
    AND b.PRODUCT_ID = lv_product_id
    AND b.LINE_NUMBER = lv_line_num;
    ODNumber := lv_quote_num;
    BilltoNumber := lv_bill_number;
    Line_Number := lv_line_num;
    ServiceID := lv_bucket_id;
    AnnualPrice := lv_anual_price;
    CoverageCode := lv_coverage_code;
    RETURN '';
    EXCEPTION WHEN OTHERS THEN
              lv_err_msg := 'Multiple SPOT lines exist with same parameter';
              RETURN lv_err_msg;
    END;
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    lv_err_msg := '@@@ EXCEPTION THROWN @@@ '|| SUBSTR(SQLERRM,1,120);
    RETURN lv_err_msg ;
    END;
    Don't look at the function, it might have errors but my primary concern is how to test this function. Once I start doing its testing then only i can understand any bugs(if any).
    My pl sql is not so good. Im still learning. I don't understand IN and OUT parameters are.
    I just know that IN parameters r those whick we pass in to the function wen we call it and OUT parameters are those through which we get the result.
    Thanks in advance
    Vinod Kumar Nair

    20100511 wrote:
    I wondered how I could test the output of the function from within TOAD?I usually create the following function in my developer schema:
    create or replace function BoolToChar( b boolean ) return varchar2 is
    begin
      if b then
        return( 'TRUE' );
      else
        return( 'FALSE' );
      end if;
    end;To test a function like yours, the following will do in SQL*Plus/TOAD/etc:
    begin
      DBMS_OUTPUT.put_line(
        BoolToChar( XCCC_PO_APPROVALLIST_S1.does_cpa_exist(1017934)  )
    end;
    I'm probably doing 101 things wrong here, but thought I'd ask anyway and risk being shouted at.Shout at? You reckon? I thought people risked being beaten with a lead pipe, or pelted with beer cans and stale pretzels - which makes being shouted at a really safe and viable alternative. {noformat};-){noformat}

  • How to test the migrated workflows in SharePoint 2013

    Hi, we are migrated the portal from SharePoint (Moss) 2007 to SharePoint 2013 using Doc Ave tool.
    Now my concern is how to test all (OOTB and SharePoint Designer) workflows are working properly in SharePoint 2013.
    How to approach? Any ideas/help will be appreciated.

    Hi Ashok,
    Have the business users that use them or the folks that created them test them in the DEV environment prior to the PRD migration...
    -Ivan

  • How to test domain controller on upgraded Win Server 2008 R2

    The windows team recently upgraded the development environment for the domain controller from 2003 to Windows 2008 R2 and I am to test the Idm functionality on this upgraded version. Our current configuration is that the DC and Idm gateway runs on different machines. To test this new DC, i want to install the idm gateway on that server and run some onboarding and termination test cases just to make sure if the AD connection is working on the upgraded DC. But i am getting ’Input/output error’ when i try to install the service and from the documentation it says 'The most common cause of this is that you do not have rights to work with this service.'. The server admin tried installing the gateway with his id as well and it failed. He tested installing in on the 2003 version of DC and it worked, so its not a matter of permission (i think..)...
    Does anyone have any better idea on how to test an upgrade of a DC from version 2003 to 2008 R2? Any help in this matter is appreciated. We are running Idm 8.1 on a Windows platform and an upgrade to OW 8.1.1. Patch 2 is also in the works..
    Thanks in advance.

    I may have found a workaround. Can you try to change the "compatibility mode" in 2008 R2 to "Windows XP SP3" and see if it will install?
    Admittedly I have not done this myself so I'm not entirely sure where or how it's done, but I have confirmation it resolves the issue from others who have faced it.

  • How to test the payload in XI

    Hi all,
    could please explain how to test the payload in xi and with steps.
    Thanks in advance,
    Radhika

    Hi Radhika,
    You can test in three ways.
    1.)  In message mapping directly give the relevant data and then execute.  Here you can test whether the mapping is correct or not.
    2.)  In Integrstion Directory after completing and activating  the Configuration,  in tool you can find the Test Configuration tab. There you can give the sender and receiver details along with payload. Here you can test whether the Configuration is correct or not.
    3.)  In RWB in COmponent monitoring.  Select the Integration Engine Monitoring. Here give the sender and receiver details, Interface name, name space, Quality of service.
    Now give user name and pass word.
    Paste the payload from massage mapping and then press test tab.  Here yoyu can directly send the message from XI server to the receiver system.
    Ok,
    Jeevan

  • How to test the rule if multiline container is passing to the task?

    Hi Experts,
                      I am working on leave workflow. I have to get the approvers based on no of days of leave and leave type. I am getting these details in ITEMS_TAB internal table. I am passing this table to a rule. Now my problem is when I tried to simulate the rule I am not getting any input screen to enter the data.
    ITEMS_TAB is an internal table type of   "PTREQ_ITEMS_WF_TAB_FLAT".
    In the rule I have created a container by selecting the radiobutton "ABAP Dict. Data Type" and entered the above reference parameter is it right way?
    Is it possible to test the rule independently if I use multiline container as import parameter in my rule?  If so can anybody please tell me how to test the rule?
    Thank You.
    Srija.

    Hi Pavan,
                     Thank you.
                     To copy the values I am not getting any input screen to input the values. I observed one thing that the type that I am referring in the Rule is a deep structure. Is this is the reason that I am not getting the input screen to enter the values?
    I tested by creating aother rule by taking a field for that rule I am getting the input screen to simulate the Rule.
    Can you please suggest if the rule will not work then what I have to do? without the rule how can I get the agents?
    Thank you.
    Srija

  • How to upgrade Php Version in solaris 10 SPARC ?

    How to upgrade php  Version 5.4.7 to latest version 5.5.3?
    Do we need to uninstall current version(5.4.7) and install latest version(5.5.3)?
    Or is there any way to upgrade directly.

    I'm suggesting to remove the initial package and then install a new version that is in the same package format.
    You can also compile it and modify the target installation directory during the compilation.

  • How to test a plug_in without Adobe Reader Integration Key?

    I havge a project to create a plug_in for acrobat reader with Adobe Acrobat 8.1 SDK. I also apply for the Adobe Reader Integration Key, but I have not it by now. But deadline of the project is coming, is there any one who can tell me how to test the plug_in without Adobe Reader Integration Key?
    I also have another question, does the plug_in I make with Adobe Acrobat 8.1 SDK can be compatible for all the version of Acrobat reader, such as 7.0, 8.0 and so on? Thank you.

    You test the plug-in, as well you can, using Acrobat. You also build
    it using the preprocessor options to build a Reader plug-in, so you
    don't accidentally use an API not in Reader.
    If you are saying, is there w way around the Integration key for
    testing in Reader, the answer is no.
    Different Reader keys and tools are needed for each version of Reader.
    You will probably not get a key for an old version of Reader.
    Aandi Inston

  • How to test the interfaces in XI ?

    Hi ,
    Our Xi system is being upgraded from 3.0 to 7.0. I was asked to test the interfaces once the upgradation is done. I am not sure how this testing is to be done and will there be aby test plan for this??
    Can some one help me on this ??
    Thanks in Advance,
    Hemanthika

    To test, you must have imported all your scenarios in to your new system.then couple of general tips,
    1.testing can be done only after understanding the scenario.
    For this, u refer to the integration scenario in ur design. so this shall give u an idea about all the systems involved in integration and how the data flowing is between them and what kind of systems they are?
    2. For testdata, you might need of business or functional team as you cannot have any info on the file formats etc(depending on different scenarios invloved like R3, SOAP Databse etc)
    these are only general tips. but u can refer to many of the trouble shooting guides already available blogs in sdn for any sought of inputs.But then, SDN is always there.
    you can test/monitor ur results in RWB->component monitoring
    also in sxmb_moni
    thanks
    kiran
    Edited by: kiran dasari on Mar 17, 2008 4:44 PM

  • How to test Adapter Module

    Hi
    My Scenario is File - to - File
    I have written one adapter module and i have deployed in J2ee Engine as well. In sender communication channel i have given the JNDI name like
    <b>"localejbs/<JNDI Name>"</b>.I have tested the my file to file scenario by placing a file in source directory which i have mentioned in Communication channel Source Directory and File Name.But i didnt find any difference in target file.
    I have used the following blog
    <b>
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/da5675d1-0301-0010-9584-f6cb18c04805</b>
    1.How to test the adapter module.
    2.How to configure my communication channel.
    Please help me its very urgent
    Best Regards
    Ravi Shankar B

    Hi,
    check JNDI service in visual admin to see if
    your service has the same name there
    >>>>1.How to test the adapter module.
    by using it in a channel
    >>>>2.How to configure my communication channel.
    add you adapter module to the adapter module tab
    in communication channel
    Regards,
    michal

  • How to enable images offline in aperture

    How to enable images offline in aperture?
    Cannot reconnect to images offline?

    Tell us more, please - that is not much to go on
    What is your Aperture version, your MacOS X version, where are your referenced original image files located? On yor system drive or on an external drive, a network volume?
    What happened, before the images went offline? A crash? Did you install or upgrade software?
    What did you try already to fix that problem?
    Regards
    Léonie

Maybe you are looking for

  • Add Custom CSS to SharePoint Foundation 2010

    I have SharePoint Foundation 2010. I am trying to use custom CSS to override the out of the box CSS. I have linked my CSS file within the master page a million different ways but nothing seems to work. Can this be done in Foundation or do I need to p

  • Wierd error message and computer restarting

    Everytime I try to change any ipod preferences, I get the following error message: "An error occurred when updating the default player for audio file types. You do not have enough access priviliges for this operation." Then, when I press OK, my compu

  • HELP! Unable to run root.sh

    I have just started to install the Oracle 8.0.5 for Linux and have run into a little problem (I am using RedHat 5.1). I setup the proper oracle user and group and set up the proper env variables in the .profile of the oralce user I setup like so: LD_

  • Take off Rounding in OBIEE Reports

    I have a report with 10 columns say, when all values are zero then I need to remove that crresponding row from report. I wrote a filter condition where (col1 != 0 or col2 != 0 or col3 != 0 or.....col10 != 0) I have a value of 0.1 in one of the column

  • Mobile Safari as full desktop safari browser in ipad

    Mobile Safari as full desktop safari browser in iPad I am having a curiosity which i need to solve with the help of yours. Actually as per my knowledge is concerned i know that the iPad is working with the mixture of mobile Safari as regular one. Wha