Hey..not sure if my terminology is correct...but this is pretty much what I want.

I want my php code to work offline..I would people to be able to (when connected to the internet) connect to my sql server. they will then run a query and get all data from one of my databases.

Then will offline, they will have the ability to use the data...save it (locally)...turn off their comps, turn it back on, change the data a bit more...then eventually upload it to a DIFFERENT database (online)..

does this make any sense at all??

Would I have to use another programming language to create the file to make it openable offline?

thanks! - post questions if you need something cleared up!

    Yes. You can write it as a command-line app (see the manual), or use the GTK extension to wrap a GUI around it (see the manual). They will need PHP installed unless you use something like Priadoblender (which really just builds an executable that consists of PHP and the source code of your script embedded as a resource). If they're going to install PHP, they could also install Apache, and then you can write the application as a web app that runs on localhost.

      ugh this is really freakin hard lol..

        im just having troubles with like...step 1...just opening the file from the desktop/cmd prompt.

        i tried the priado blender thing...couldnt get that to work either >.< just cant find a good tutorial that goes step thru step (i have 0 experience with anything like this...command prompt, cli etc) and the manual is just rly confusing >.<

          not necessarily. I will need to query from my database...but I just need this: http://pdem.info/Standards/testTreeview.php NOT online, so my co workers can use it when they arent connected to the internet

          This phpmyadmin thing you have there...my current database is in phpmyadmin...except it is online. Is this one non online? like...ugh i have so much trouble explaining this stuff..

          like right now my database is:

          mysql.pdem.info...

          i will look at this phpmyadmin thing and see what its all about.

          thanks for your help!

          edit* yeah, im not understanding what this phpmyadmin thing i just dl'ed is.

          is it just like a library of functions and stuff (like mysql_query() ) that i use in my php code...? or...?

            you can use it offline aswell its just easyer for you to creat tables and upload existing ones and modify and view all you databases lots easyer my pc is not conected to the internet and works fine for me

            ye uses all of them i use mysql_query and mysql_connect and it saves alot of time

              how am i supposed to use this phpmyadmin thing with my code?? and still..how do i make a .php file openable off my desktop when I am not connected to the internet...example: this is one tutorial i was trying: http://www.sitepoint.com/article/php-command-line-1/

              i think i may not be able to make this whole process work...lol i just have no idea what to do

                open it in a text file like note pad lol we all been there
                and to view it like normal type in http://localhost/ wile your offline

                to create a .php example index.php open note pad put your code in save it as example file name :index.php save as type: all files then save

                  when I do that, it just opens the .php file in my IDE, so that i can view the code/edit it...it doesnt open it as if it is a .exe (which is what i want)

                    still doesnt work..i followed it line for line.

                    is it because of how my code is set up? doesnt work for all php code...?

                    I am just trying to do a simple test.

                    <?php
                    
                    echo "hi";
                    ?>

                    do i need more than that for it to work??

                      no what dose it come up with a error if or your php.ini

                      go to php.ini open it in note pad go to save as and type in "php.ini" and file types should be all files
                      then try

                      cos some times it wont rename properly it will still have php-dist.ini at the top of the text editer

                        How about this approach:

                        On your machine:
                        Install Apache, Install PHP

                        Put your .php file in the .htdocs (or wherever you pointed your Apache to)

                        then make a linky to it on the desktop doubleclik and: ....tada... your browser will open and show your wonderful app.

                          Write a Reply...