Is there a way to parse php from a java program(a webserver for example)

Hellow folks,
I've recieved an assignement for school to develop a java webserver. The http and https webserver that I have written so far works as it should. Now to make it a little bit more impressive, I would have liked that my server is able to interpret php scripts or any other server-side language. I have know idea on how to accomplish this, I both understand java and php but I haven't got a clue on how to integrate the two. I do know that it is possible to run php as a cgi-php-interpreter, in that way I should make a batch, run it and recieve its output. Thats another problem since I have got no idea on how to recieve the outputted data from the batch.
If anyone could tell me how to start at one of the two different approaches I would be gratefull to you.
Thanks in advance
Benjamin Smekens

Thanks,
Tought about the invokation Runtime.exec(), I know how this works, allready used it, but have no idea on how to return values from a program that you bassicly run on your operating system instead of your own java application. Altough I guess I could use the Runtime.exec() to produce a html file and read that in from my webserver. Then again I didn't find any document which states that its even possible to generate the html, another thing are the passing variables e.g example.php?sfzefszf&&sfefsef. I know you can send those trough the command line php CLI, but the CLI cant generate any html if I'm right.
Anyway any more tips would be greatly appreciated, since I'm kind of stuck on this for one month and a half and read about every document that I could find. There is to read about the subject.

Similar Messages

  • Is there a way to stop firefox from asking to remember a password for an entire domain?

    At work I have to connect through our website multiple times a day to client machines. We use our machine that creates a connection which is accessed by going to http://*****.ourfakeserver.com where the ***** will change each time. I would like to not be prompted every time I go to ourfakeserver.com. Is there any way to do this?

    The problem is that the subdomain changes all the time. I want to set the "Never Remember Password for This Site" for a whole domain regardless of the subdomain.

  • Is there any way of creating typing shortcuts on iPad Air iOS8?  For example typing "wcybl" results in "will call you back later".

    IIs there any way of creating typing shortcuts on iPad. For example, "wcybl" when typed could result in "will call you back later"

    Follow Japib's directions then enter the shortcut like in the screenshot. Be sure to tap save.

  • AirPort Express vs Extreme.  Is this a solution?  My wife wants to be able to access files on her hard drive for our Mac by way of a laptop from anywhere in the house.  For example, she would like access her $ software from any computer in house.

    Will one of these work to use software from iMac on any laptop wirelessly around the house?  Which would be better Express or Extreme?

    I've had much better luck with Express rather than the Extreme.
    She can use "Sharing"
    Apple - AirPort Express - Easy Setup
    Mac 101: File sharing

  • I have a Sony DCR -SR32 which does not appear in the list of compatible cameras for imovie '11. Does anyone know if there is way to import files from this camera ?

    I have a Sony DCR-SR32 HDD video camera which does not appear in the list of compatible cameras for imovie '11. Does anyone know if there is way of importing video from this camera to imovie ?
    Thanks
    Pheona

    Greetings Pheona,
    That appears to be a hard drive based camecorder.  Usually these mount on the desktop of your computer as a little white hard drive icon.  If you go inside you should be able to find the movie files the camera is saving.  See what format they are (the last 3 letters at the end of the file name is a good place to start).
    You can drag the movie files from the camera hard drive to the computer to copy them.  Then convert them with a video file conversion program to a format iMovie can understand.
    Try converting one of the files using a video file conversion program like Video Monkey: http://videomonkey.org/downloads/
    In the "Convert to" drop down menu choose "DV" (Preferred), "Quicktime", or "MP4".  Then import the resulting file into iMovie and see if that works any better.
    If that program can't convert the files you can try another file conversion program:
    http://www.southpolesoftware.com/iVI/iVI.php
    http://shedworx.com/voltaichd
    http://www.elgato.com/elgato/na/mainmenu/products/Turbo264HD-software/product1.e n.html
    Hope that helps.

  • Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstorepls help

    Is there another way of getting apps from the appstore without putting your credit card number in, ive heard about the itunes gift card thing can anybody just give me more info about that and how i can buy free things free things from the appstore...pls help as im only a teenager and have no credit credit and my parents dont trust me with theres and they dont care about the fact that you can set up a password/.... PLEASE SOMEONE HELP I WILL BE SO GRATEFUL... And i would really like to get the iphone 4 but if there is no way of etting apps without your credit number then i would have to get a samsung galaxy s3 maybe ...

    You can set up an Apple ID without a credit card.
    Create iTunes Store account without credit card - Support - Apple - http://support.apple.com/kb/ht2534

  • I allow my grandchildren to play free games on my ipad that I download for them.  Is there a way to prevent them from accidentally (or otherwise) purchasing upgrades?  My 6 yr old just did so and has no idea how she did it.  Can I block this access?

    I allow my grandchildren to play free games on my ipad and iphone that I download for them.  Is there a way to prevent them from accidentally (or otherwise) purchasing upgrades?  My 6 yr old just did so and has no idea how she did it. Is there a setting that would prevent this from happening?

    Yes.  You can set restrictions.
    This is covered in the manual.
    iPhone User Guide (For iOS 5.0 Software)
    iPad User Guide (For iOS 5.0 Software)

  • After I watch a podcast I delete it. When I go back in the next day it shows 500-600 episodes I have to delete manually. So 2 questions....  Is there a way to stop this from happening and is there a way to delete all. This is getting frustrating.

    After I watch a podcast I delete it. When I go back in there are 500-600 episodes and I have to delete each one manually. Is there a way to stop this from happening or is there a way to delete all at once. It's getting very frustrating.

    Had all these issues.  Bit the bullet and downloaded the Downcast App ($1.99).  Much better expereince and a lot more features.  Sad.

  • I don't want my Facebook Contacts added to my iphone Contacts as a result of this new update.  Is there a way to prevent that from happening?

    I've been told that when I apply the latest update issued by APPLE, it will add all my Facebook Friends into my Contacts on my iPhone.  Is there a way to prevent that from happening?

    Unfortunately when upgrading to iOS 6 the setting to add Facebook Contacts to your Contacts app is on by default. But once the upgrade is complete you can go to:
    Settings > Facebook > and turn off Contacts.
    That will get rid of the Facebook stuff showing up in your Contacts app.
    BTW, I also turned off Calendar on my iPhone and iPad so that Facebook events and Friend's birthdays etc. will not show in my Calendar app.

  • When I save photos or videos from my iPhone 4S to my PC they are all sideways.  Is there a way to prevent this from happening?  All are taking with the phone in portrait mode.

    When I save photos or videos from my iPhone 4S to my PC they are all sideways.  Is there a way to prevent this from happening?  All are taken with the phone in portrait mode.

    Shot videos ONLY in landscape. For photos choose what's you like. Maybe you have to rotate photos on PC. What's your operating system?

  • I'm trying to add a playlist manually to my iPhone 4. It won't let me because it's trying to delete all of the music currently on my iPhone. Is there any way to prevent this from happening in order to start manually updating it?

    I'm trying to add a playlist manually to my iPhone 4. It won't let me because it's trying to delete all of the music currently on my iPhone. Is there any way to prevent this from happening in order to start manually updating it?

    Are you leaving the box unchecked to Manually manage music & videos? You don't need to to add anything to the iPhone.
    Simply drag the playlist to the iPhone to manually add it.

  • When I listen to music on my iPhone and pause it, if I come back to it later, the playlist has started over. I have a 4S running on iOS 7.0.4. Is there any way to keep this from happening so that my playlist will start off where I last was?

    When I listen to music on my iPhone and pause it, if I come back to it later, the playlist has started over. I have a 4S running on iOS 7.0.4. Is there any way to keep this from happening so that my playlist will start off where I last was?

    Dear Jody..jone5
    Good for you that can't update your iphone because I did it and my iphone dosen't work for example I can't download any app like Wecaht or Twitter..
    Goodluck
    Atousa

  • I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?

    I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
    Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
    This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
    This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
    The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
    If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
    I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
    I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
    https://support.apple.com/en-us/HT201322
    A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
    In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
    Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
    If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!

    My apologies for the lack of photos, here is my post again with photos.
    I have hidden unwanted books from the purchased area of the iBooks store, but they're are still appearing on the front page of iOS as cloud downloads, is there a way to remove these from iBooks without using the hide iCloud books button?
    Let me explain a little more. I had downloaded a lot of free books in the past as a trial when iBooks was first released and since then I have decided I no longer want them, because of this I hid them from the purchased section of the iBooks store. The 5 books left are ones I decided to keep as seen in the following picture.
    This is how it appears in iBooks on my mac. There are 4 books downloaded and 1 book that I have decided not to download at this time. I would still like to keep this book available in the cloud incase I want to download it again in the future. You’ll notice that hide iCloud books is not selected, if I wanted to hide the book that I have chosen to keep in the cloud, but have not downloaded yet I could.
    This is exactly how I think this feature should work. If you have hidden a book from your purchases it should not show up in the mac Ibooks app. (I am aware you can never actually delete a purchase, just hide them and that hidden purchases can be restored to your account from within the account management section of the iBooks store).
    The iOS app is working differently for me. Here is a picture of the purchased tab on the iBooks store in iOS Ibooks. Again notice that pictures of Lilly is still yet to be downloaded. This is how I expected it to look.
    If we visit the front page of iOS iBooks the view is very different from what I expected. Here we can see the 4 books I wanted to keep on my device and have downloaded. We can also see the 1 book I wanted to keep, but did not want to store locally on the device and left in iCloud (Pictures of Lilly). However we can also see all the books I had hidden from the purchased section of my iTunes account and which I believe should no-longer be visible, Dracula, frankenstein etc…
    I am aware of the hide iCloud books button within the iOS app, but I did not need to use this to hide the books I had removed from the my purchased section of the iBooks store on the mac, why are they still appearing in iOS?
    I’m still not sure if this is a software glitch or not. This article suggests to me that books can be hidden, but I had already completed these steps.
    https://support.apple.com/en-us/HT201322
    A browse of google also suggests people may have been able to hide past purchases from the front page of iBooks on iOS in the past.
    In case there was an issue with syncing I tried logging in and out of my iTunes account via settings in iOS. Force closing the app, disabling automatic downloads and removing my device from iTunes in the cloud. Syncing with iTunes on the mac did not correct the issue either.
    Interestingly I have the same issue on my iPhone 6 running iOS 8.3 as I do on my iPad mini suggesting that this might be an issue either with my account or with iOS iBooks software in general.
    If there is a way to remove the already hidden iBooks in your account from the front page of iBooks on iOS without using the hide iCloud downloads button? Please help community!
    iPhone 6, iOS 8.3, Also an issue on my iPad mini iOS 8

  • Is there a way to hide apps from the app store? I don't want my kids to see those "free" apps that nag you to spend real money and download their other apps! I can hide them from "purchased apps", but they still show up when browsing for new apps!

    Is there a way to hide apps from the app store?
    I don't want my kids to see those "free" apps that nag you to spend real money and download their other apps!
    I can hide them from "purchased apps", but  they still show up when browsing for new apps!
    Is there a way to hide them so that my kids will never see them when looking for new apps?

    Not other than parental oversight. On the computer you can implement Parental Controls on a separate user account that they would use. You can then block certain websites. But you cannot do that on the iPad.
    You could change your iTunes account such that they cannot access it in order to buy or download apps.

  • Is there a way to transfer pictures from my ipod classic to my windows computer?

    Is there a way to transfer pictures from my ipod classic to my windows computer?

    Tranfer itunes puchases by:
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    Other stuff by the info provided in this previous discussion:
    Best iPod to PC

Maybe you are looking for

  • In Brazil. . . Do I need an adapter to plug in my HP Mini 110 into a 220 Voltage plug?

    Hi! I'm living in Brazil for a while and just got here. I have an HP Mini 110 and the plugs here say 220V. Is it safe to plug in my computer or do I need some kind of converter? If so what kind? My power is about to run out!!!!! Thanks in advance, Sa

  • How do I set up a specific homepage for Safari on my iPhone?

    How do I set up a specific page to be the page that opens every time I open Safari on my iPhone?  I saw that you go to Preferences, but I can't find where that is?  What are the steps from there?  Thanks.

  • My ipod touch no longer finds my location via my router after ios 5 update

    After I updated my ipod touch to ios5 it can no longer find my location when its on wifi using my airport express router . It has no problem when I'm using another router in another physical location... it finds its location perfectly. Only has a pro

  • Mail and Address Book corrupted?

    When I open my Applications folder, the two icons for Mail and Address Book have changed to an unfamiliar icon (it's a picture of blank pages with an overlaid "A" similar to the ruler-and-pencil application icon). Moreover, neither application will o

  • Database termination Problem

    Hi every body ..plz help me on this.. We are facing database termination problem in ECC6 production syste. Database: Oracle 10.2, O/S: Windows 2003. Spam  :27, SP level 13. Error is: Errors in file f:\oracle\p02\saptrace\background\p02_ckpt_6520.trc: