Posted by: cyanos | November 3, 2007

Lab 3: Meinen Kampf (mit Linux)

Wow, it was quite the trip trying to get http_get() and http_post() to work in php. Maybe I should have stuck with Python!! :P

The following sites really helped me configure everything.

http://www.art122-5.net/index.php/How_to_install_PECL_HTTP

http://www.jellyandcustard.com/2006/01/19/installing-pecl-modules/

http://www.linuxforums.org/forum/redhat-fedora-linux-help/58407-yum-install-mythtv-suite-problems.html

http://www.linuxforums.org/forum/linux-applications/41118-how-install-gcc.html

Of course, I’m a Linux Newbie, and so pretty much any Linux site helps me :P

 

Had to roll back from 5.2.4 to 5.0.4.. I got the PECL_HTTP module on there (http.so), and was finally able to get those dang http_get() and http_post() methods working. Before, there was fatal interpreter error saying it didn’t know what those methods were. (Postmortem comment: crap, I should have just asked John about getting and posting via http… argh.. oh well, this here is one way to do it, I suppose.)

 

Hurrah for Amazon. Wow, having multiple instances of the server versions really helped, though. I would have wasted even more time uninstalling everything to roll back the php version.

Kudos to CodeIgniter. The framework had some nice functionality, that allowed me to do some url rewriting, form validation, templating, and configuration stuff (i.e. setting global variables like URLs).  It was just a light framework that I already knew the basics of.  I’ll have to look more into Smarty though. I have seen many people use it and they have said good things.

Dumped a bunch of time into this lab. Was it worth it? Well, I suppose it’s one of those “I’ll find that out when I’m older”-type of things.

Finally got something to show up in Twitter. Yes, I can proudly declare with the rest of the classmates that have finished Lab 3 that the posting came straight from the application that I wrote…

Still not done, but very close.


Responses

  1. I just posted an entry detailing how I did GETs and POSTs for labs 2 and 3. And how I’m doing PUT for lab 4.


Leave a response

Your response:

Categories