Delphi for PHP Article 2: A Lazy Sunday (Video)

March 18, 2007

OK, I just got back from church and I am stuffed from the three bowls of soup and a huge salad.  So, I am feeling lazy, but I still want to get a Delphi for PHP article out (since I have a limited exclusion from my NDA and am alowed to discuss such matters or so I must say in each of these articles.)

 So, today you get treated with a video I made for the other Delphi for PHP testers.  It isn’t too exciting, but it will show you a little bit about the underlying structure of the DB Demos in the beta releases of Delphi for PHP.  I should say that it is entirely possible that the demos requiring the steps described in this video will be reworked for the final product.  If that’s the case you likely won’t have to do much, or ANY of this process in the full blown 1.0 process.

If you are new to PHP programming, you can use this process to create a webserver on your local home computer.   That’s downright handy for testing any web product.  So, you’ll benifit that way even if the Delphi for PHP stuff isn’t too handy for ya.

 OK here you go: 

Share and Enjoy:
  • del.icio.us
  • Fark
  • Reddit
  • Digg
  • DZone
  • email
  • Facebook
  • FriendFeed
  • Google Bookmarks
  • Netvibes
  • Ping.fm
  • Posterous
  • Slashdot
  • StumbleUpon
  • Suggest to Techmeme via Twitter
  • Technorati
  • Tumblr
  • Yahoo! Bookmarks
  • Add to favorites
  • Blogosphere News
  • HackerNews
  • Identi.ca
  • LinkedIn
  • MySpace
  • Print
  • Yahoo! Buzz

Comments

24 Responses to “Delphi for PHP Article 2: A Lazy Sunday (Video)”

  1. Fernando Madruga on March 18th, 2007 8:22 pm

    Is there any way to see this video with crystal clear quality? Running it inside Firefox displays the text VERY clearly, but crops the video to the specified size of 700×571 instead of the full 1024×768; playing in IE 7, shows the video zoomed to that same viewing rectangle; downloading the video and playing it on my PC shows the video at the proper size, however, looks as “fuzzy” as when played in IE scaled…

    Any special trick to be able to see this video with no fuzziness on the text?

    Later,
    Madruga

  2. Brian on March 18th, 2007 10:35 pm

    Hi, Thanks for the heads up. I’ll put it up in another format, until then just double click on the file to see it full screen.

    I’ll convert it to flv which should make it look better for you.

    Until then, you can also download it at: thecodecave.com/mov/rundbdemos.wmv

  3. Fernando Madruga on March 19th, 2007 4:13 am

    Thanks but that link you posted was “converted” into a “player”.
    However, I did download it before from thecodecave.com/mov/rundbdemos.wmv, but what is weird is that, playing it full screen or even in a window will blur the text; (and if I play in a window, I have plenty of room left: my laptop has 1680×1050, so 1024×768 fits inside that with some room to spare!); playing it in Firefox, plays only a crop from the top left corner but does so with crystal clear text! BTW: my gravatar wasn’t updated. Will see if this post uses the correct one!

    Later,
    Madruga

  4. Fernando Madruga on March 19th, 2007 4:59 am

    Woah! Not only the gravatar is not updated, but worst of all, I forgot the close tag on the link and, once more, the link is being converted into a player “icon”… Since the link runs to the end of my previous comment, I’ll repeat the comment, this time without links!

    If I download the wmv file and play it on a window at 100% (my laptop’s display has 1680×1050, so the video fits and there’s some free space around), it plays with the text showing a bit fuzzy. If I play it here in Firefox, it crops the video to the top-left corner but displays the text crystal clear as if it was really text showing on my laptop. Weird thing. Maybe it’s somehow related to my LCD not using the default 96 DPI and instead using 120 DPI?

    Later,
       Madruga

  5. Joe on March 20th, 2007 6:11 pm

    So the D4PHP is a way to compile PHP applications?

  6. Brian on March 20th, 2007 6:38 pm

    Yes, and you can do some really cool stuff with it.

    Take a look at this Windows Demonstration.
    http://www.thecodecave.com/d4p/windows

    Since this works across all browsers, there’s going to be some really unique products coming out.

  7. Brian on March 20th, 2007 6:45 pm

    BTW Fernando, I’m not sure why you are getting blurry text running a full screen version of the video, I’ve not had that problem.

    As for the gravatar, I can’t check that right now with their site being down, but are you sure you’ve capatalized your account in the same way you’ve entered it here?

    Fernando.Madruga@… is NOT the same gravatar as fernando.madruga@… or Fernando.madruga@…

    When their site comes back up I’ll check and see if where the issue is…

  8. Fernando Madruga on March 20th, 2007 9:53 pm

    As for the gravatar, maybe that’s the issue. Not the name but maybe the domain which I some times capitalize and some don’t! :) Forgot to read the fineprint, I guess!

    As for the video, I’ve just reverted my PC to a “clean” Windows XP + Office 2003 instal (and all drivers and windows updates), so as to be sure that some problems I was having with Delphi 2007 weren’t caused by my PC. It turns out that they may have been as it’s been working very stable now! But, I took the opportunity to try the video again and I see it blurred even in full screen. It’s not “much” of a blurr, but just enough to make it a tad annoying.

    Firefox still does the same thing of displaying an extra “player”. Weird but now I’m sleepy so won’t look into it…

  9. Brian on March 21st, 2007 5:41 pm

    I don’t know. It’s had 803 viewings since Sunday. So, it must be working for some people, or I’d be getting more comments.

    In future videos, I’ll see if I can increase the quality at my blog’s preferred size. I think this one will stay as it is. After all it was JUST a lazy Sunday post… ;)

  10. Joe on March 21st, 2007 6:27 pm

    A way to compile php applications like .EXE. :-)
    I think its more of an IDE am I wrong?

  11. Brian on March 21st, 2007 7:09 pm

    It does not produce a “native” binary executable. The result is still PHP. Yes, it is an IDE, but more fully featured than any other IDE on the market today. It produces more than just PHP by pairing the PHP files with XML files storing the visual layout and properties chosen in the “Object Inspector”.

  12. wilmsoft on March 29th, 2007 8:40 pm

    I’ve got the first release of Delphi 4 PHP… I have to say I’m VERY disapointed… I’m a Delphi code since Delphi 1 and PHP programer since 1998 and the thought of a Delphi for PHP was a dream come true. However, I can’t not get it to run any “app” on my Hosted server. The code runs fine on my local machine but, that’s not where my web sites are hosted. I HAD to upgrade to PHP 5.X.X.X in order to even get anywhere on a simple Hello World. I have no issue with that execpt it’s not really mentioned anywhere in the specs… Also, I was completely dumbfounded to find that there was NO FTP built in to Delphi 4 PHP… Come on guyes! You have to “delploy” you project (which puts all the files you’ll need together in one spot then open up your favorite FTP program and copy them to where you want it…. So, that means a simple change is not a click of a button away to update… you have to click deploy and about four “next” buttons to have it “deploy” THEN open your FTP and copy the files to the server…. That is a Joke.

    Just calling it Delphi and hoping it will change the way things are done (Like Delphi ONE did) will not change the way things are done. I’m back to hand coding in my Favorite PHP editor. At least when I hit save, it saves it via FTP back to the server it came from….

    I wish I could get my money back… :(

  13. Brian on March 29th, 2007 9:20 pm

    Well, I do understand where you are coming from.

    But I can’t say that either of those two things were not issues for me. I usually use PHP 4, but php 5 was always there for me to enable with a simple .htaccess change. Your past that anyway.

    As for the FTP setup, I agree that would be nice too, but I don’t need it either as I use the old Novell add on util NetDrive ( abandonware publicly distributed for free to students) to make my debian webserver’s root drive X: on all of my machines, even my laptop. There are a bazillion instruction pages at colleges and elsewhere explaining how to use it, but I really don’t think you need it. Here’s one set http://www.loyola.edu/5555/netdrive/installingnetdrive/

    I know lots of people use similar solutions so that their FTP account is just a drive letter on their windows sever.

    Maybe it will help the transition for you… The public goal for Delphi for PHP v1.0 was always a Delphi 1 level of ability. It’s surpassed Delphi 1 in MANY, MANY ways, but I can’t deny there are some rough spots that require attention.

  14. wilmsoft on March 30th, 2007 7:49 am

    I’m curious (and a die hard Borland….er ahem… Code Gear fan) what do you see as: “It’s surpassed Delphi 1 in MANY, MANY ways, ”

    Because for me and Delphi one (coming from VB) was I Dropped down a button, a label and pressed F9. Bam! done… And every thing from “hello world” to middle-ware client server app doing OLE (or what ever) was just as hard (or simple).

    I Dropped down a Calendar in D4PHP, do the deploy, copy the files to my server and I get: “Warning: require_once(vcl/jscalendar/calendar.php) [function.require-once]: failed to open stream: No such file or directory in /home/wilmsoft/public_html/delphi/vcl/vcl.inc.php on line 127″

    Is that a rough spot? Do I really have to dig in to the source code to figure out what’s missing the vcl.inc.php file?

    I hear what your saying about the FTP and figured that would be the general response. But, I’m a contract programmer. I never am “on the server”. I almost always am on someones remote server where I don’t have access to a simple .ini file. I can’t use this tool and make money as it is today. I made money DAY ONE with Delphi One. No telling the customer oh, I’m glad you hired me to fix such and such but, I need you to now use change your infrastructure so my tools work.

    I thought (or hoped) that the code gear spin off would start to focus (again) on the little guy writing code not the corporations… and I do see that trend and felt like I need to preorder D4PHP. But, Code Gear bought Delphi 4 php and I think it’s going to take a few releases to get it where they want it. Version one is not there yet. I wish I would have waited for the demo before I put down my money….

    And this may not be the place for this conversation but, I couldn’t find any place on Code Gear’s site to vent. I am interested in other peoples view on this potentially awesome product.

  15. Richard on April 3rd, 2007 10:36 pm

    Brian, your link mentioned above is broken.

    Take a look at this Windows Demonstration.
    http://www.thecodecave.com/d4p/windows

  16. tangraaam on April 4th, 2007 2:03 pm

    whaaaaou! nice video.. But may I ask a question? I love your codegear wall paper? could it be possible to send it to me ?
    ( actisante@actisante.com) .

    Thank you!

    Frank

  17. Brian on April 4th, 2007 3:37 pm

    Thanks! (and check your email!)

  18. Brian on April 4th, 2007 4:03 pm

    Yeah, I pulled that demo and another because it featured a very early version of Delphi for PHP which could have caused some confusion. I’ll put up another of my own creation shortly.

  19. Richard on April 4th, 2007 7:55 pm

    Thanks. Also, the video was great. Made installation and setup a snap. Do more of them !!

  20. Ken on April 29th, 2007 5:04 pm

    how to compile delphi to php into EXE to run as localhost?

  21. Brian on April 29th, 2007 5:34 pm

    Thanks Richard!
    Ken: There are a few “compilers” out there, just look around in google and you’ll find a couple…
    http://www.roadsend.com/home/index.php?SMC=1&pageID=main
    http://www.priadoblender.com/index.php?layout=main&cslot_1=2
    http://www.phpcompiler.org/

    Depending upon what you are trying to achieve, you might want to look at an accellerator instead. wikipedia lists a few:
    http://en.wikipedia.org/wiki/PHP_accelerator

  22. ken on April 29th, 2007 6:21 pm

    I have tried all your options. None is easy. I am blur on how to compile my php file into exe. I hope some can produce a good software. Dephi to php version 1 is only provding GUI with php code. What is the good of it if we cant compile the php file so that it can run on windows environment?

  23. Brian on April 29th, 2007 7:40 pm

    The goal is to produce WEB software with PHP. If you want to produce software for running locally, stick with Delphi for Win32 and that will give you what you want.

  24. Joe on April 29th, 2007 10:33 pm

    There is a way. Its called, if I remember correctly, Bamila Compliler. Try a google search, you should see a page for something like that. It only has php 4, but its powerful. Really, powerful. You’ll have to do all the coding, then you can just add all the files you need and your all set. ;-)

Got something to say?





Who is Brian Layman

I am a WordPress expert living in North East Ohio. I am part of the ever expanding Open Source Internet workforce. I am able to stay at home, with my wife and four home schooled kids, while working as the Senior Developer for b5media - a blogging network that has hosted over 300+

I co-host the NEO WordPress Monthly meetup. I am the board chair of our local church. I host and have provided development services for clients such TV personalities Rhett and Link as well as corporations such as Borland International.

In my spare time I try to sneak out, canoe, mountain bike and camp as often as I can. Sometimes I also defend the earth against zombies and aliens, but usually not during the camping trips.

Services Provided

In providing hosting, email, theme and plugin development to my clients, I function as a single point of contact answering to the needs of their expanding sites.

My service portfolio includes but is not limited to WordPress hosting, optimization, theme development and custom plugin creation. Community creation via vBulletin, Ning and BuddyPress and bbpress

I also am well experienced in site conversion, transition and merges. To clarify this, website technologies change and giving up your data is not an option. I have transitioned literally hundreds of sites from one platform to another.

viagra 50 mg indian version of viagra cialis cheapest viagra india online viagra cost comparison viagra for sale without prescription generic tadalafil online buy viagra in korea indian levitra discount cialis online viagra prescription over the counter vardenafil cialis otc cialis no rx cialis 30 mg viagra ranbaxy buy levitra in uk cialis low price tadalafil tablets 10mg cheap viagra fast shipping cheap generic levitra cialis discount cialis 5mg viagra discount prices buy levitra without prescription vardenafil online generic levitra canada viagra professional price cheapest sildenafil citrate indian version of cialis viagra lowest price viagra online prescriptions tadalafil 10mg levitra over the counter levitra prescriptions online buy viagra without a prescription liquid tadalafil citrate buy viagra prescription online tadalafil 20mg india india viagra generic sildenafil citrate for sale vardenafil hcl 10mg cialis discount coupon buy levitra australia viagra over the counter in canada liquid sildenafil tadalafil price comparison viagra cost in india cialis mail order sildenafil sales buy vardenafil cialis offer cheap vardenafil generic cialis no prescription viagra tabs generic indian names viagra price canada vardenafil hcl 20 mg generic viagra without prescription viagra by scilla biotechnologies buy generic cialis free viagra viagra over the counter viagra pills kamagra 100 mg cialis from india tadalafil australia tadalafil 20mg tablets tadalafil soft tabs sildenafil pills viagra no prescription required generic viagra paypal tadalafil online indian viagra cost tadalafil online pharmacy generic soft viagra sildenafil soft tablets viagra generic names buy viagra in ireland levitra without prescription levitra online purchase cialis pill indian tadalafil levitra 5mg cialis cost per pill tadalafil oral jelly sildenafil no prescription vardenafil price generic cialis 10mg cheap cialis no prescription order sildenafil citrate indian generic viagra blue viagra buy cialis usa apcalis 20mg tablets viagra overnight delivery sildenafil india purchase viagra without a prescription viagra prescriptions order viagra without prescription viagra with no prescription levitra for sale purchase viagra canada discount levitra viagra 200mg cheap viagra 100mg cialis overnight delivery buy sildenafil online viagra made in india cialis tabs 10mg viagra indian pharmacy viagra for sale in ireland viagra uk prices buy viagra in europe generic cialis india levitra online viagra for sale india buy viagra in dublin generic cialis soft tabs viagra 50mg cost generic sildenafil 100mg tadalafil generic viagra super active 100 mg kamagra 100mg sildenafil 100 mg tablets cialis no prescription viagra low price online cialis suhagra tablets buy cialis daily use tadalafil sample cialis prices viagra prescription online buy cialis pill kamagra from india cialis online levitra mg vigora india vardenafil 10 mg sildenafil citrate 100mg buy viagra in india buy cialis professional viagra in india buy viagra in singapore generic revatio viagra substitutes sildenafil canada viagra no script cheap kamagra viagra retail price cheap lovegra order viagra uk buy cialis in mexico viagra prescription price purchase cialis online without prescription online cialis prescription ranbaxy caverta buy viagra in hong kong sildenafil price cialis mastercard buy viagra in england viagra mail order canada cialis tablets for sale order cialis cialis soft tabs generic levitra india tadalafil prices cheap sildenafil citrate tablets cialis online prescriptions cialis 5 mg daily levitra prices prescriptions viagra viagra over the counter alternative cialis 20 mg tablets cialis generic india cialis prescribing cialis 20mg daily sildenafil 50 mg viagra drug prices tadalafil generic india cialis sale viagra prices buy viagra 50 mg levitra pharmacy buy viagra generic viagra prescription drug cialis daily cost vardenafil uk viagra soft tabs online buy viagra super active cialis 10mg price 25mg viagra silagra 100mg online viagra prescriptions cialis prescription cheap cialis india revatio 20 mg indian equivalent of viagra tadalafil india viagra capsules cheapest viagra buy cialis without prescription tadalafil overnight cheap tadalafil online purchase viagra online no prescription