Saturday, September 27, 2008

Fatality !!! - Fatal error: Call to undefined function curl_init()



Long time ago... in a galaxy nearby, I'm addicted to they call it Mortal Kombaaaatttt... woohooo, coool fighting game. Our desktop keyboard seems like to pull out from its original factory default location. Crazy stuff during college days. Sweet.
Now, the fatality is coming, but in the form of error la.. hahaha.... trying to call 3rd party software to snap url to display it on the browser. Understand? You should.. :) ....

Nice tips from php.net/curl

Tip for Installing cURL with AppServ development server on Windows

If you are running AppServ as a WAMP development environment on a Windows machine, you may experience difficulty installing cURL. Here are some helpful steps:

First go to the PHP directory and copy the following libraries to the windows/system32 dir.
ssleay32.dll
libeay32.dll

Open the php ini file and remove the ; from extension=php_curl.dll

Reboot your machine to load […]


Have try it before? Can it solve the prob....

Wednesday, September 24, 2008

XAMPP with Oracle : oci.dll not found

For my quickie...
By codrai .. OTN Forum
http://forums.oracle.com/forums/thread.jspa?threadID=406036&tstart=60&start=15


How to configure Oracle, Apache and PHP.

Ingredients
XAMPP implementation of Apache and PHP
Apache version 2.2
PHP 5.1.2
Oracle 10G Base client
Windows XP
Remote Oracle 9.1 database
URL’s
Oracle 10G Base client
http://www.oracle.com/technology/tech/oci/instantclient/instantclient.html
File Monitor
http://www.microsoft.com/technet/sysinternals/FileAndDisk/Filemon.mspx
Dependancy Walker
http://www.dependencywalker.com/
Steps
As with all things, this is easy once you know how. It is equally easy to get it wrong. I have included some information on how to debug issues.

I do not cover the install of Apache and PHP. XAMMP does a good job of this.

Start with configuring the Oracle client. Note; I had version 9 of the Oracle client on my machine. I had also read that the Oracle DLL for PHP supported versions 9 and 8 of Oracle so it took me a while to click that I needed version 10 of the client. There is a link above to version 10 of the client, this is a cut down client.

Download the client and copy the files to a suitable directory, say C:\Oracle10Client.
You need to manually configure some environment variables. I had read numerous articles with conflicting advise on this. I set the following:

TNS_ADMIN=C:\Oracle10Client\instantclient_10_2
Path=C:\Oracle10Client\instantclient_10_2;
NLS_LANG=ENGLISH_UNITED KINGDOM.WE8MSWIN1252
Enable oracle in PHP.INI

I only had to change one line, but 1st I had to make sure I had the right php.ini, XAMPP had created 3 and I had other versions from earlier installs.

My installation of XAMPP has the following file: http://localhost/xampp/phpinfo.php
This pointed me to the following location C:\Program Files\xampp\apache\bin\php.ini

I only had to change one entry, uncommenting the following line:
;extension = php_oci8.dll

That should have been enough. All I should have needed to was restart Apache and I’m away. I should have been able to go back to http://localhost/xampp/phpinfo.php and search for OCI to learn that OCI had been enabled.
Debugging options

It was not working and I probably made it worse until I solved the problems, but these are the activities I undertook.

I found the following error statement at C:\Program Files\xampp\apache\logs\error.log:

PHP Warning: PHP Startup: Unable to load dynamic library 'C:
Program Files\\xampp\\php\\ext
php_oci8.dll' - The specified procedure could not be found.\r\n in Unknown on line 0

I did the usual Google searches to find a solution.

I downloaded Dependency Walker. This is quite complicated for a novice, but it did give me a clue. I opened php_oci8.dll and it showed red on opening oci.dll and php5ts.dll. The real value was that it gives you path information for the instances of DLL’s I realised that it was calling the wrong DLL’s.

I played with paths and copied DLL’s all over the place. This made Dependency Walker happy, but not Apache.

I tested PHP directly from the command line with my little Oracle/PHP script

"C:\Program Files\xampp\php\php.exe" "C:\Program Files\xampp\htdocs\test\test.php". This worked successfully. I seen posts on the web that this helped identify other issues, such as wrong versions of DLL’s.

I was now stumped.

I then decided to use an old tool I had from a company called sysinternals (now looks like it is owned by Microsoft?) called filemon. I recorded the activity as Apache started up.

I noticed that apache was calling an earlier version of OCI.DLL. I overwrote this with the 10g version and voila.

I confirmed it was setup with the http://localhost/xampp/phpinfo.php which showed that OCI Support was enabled.

In short my main problems were due to not having a clean install base and having to ensure Apache used the correct DLL’s.

Saturday, September 20, 2008

oci.dll was not found : I'll 'find' YOU!

Troubled by the "...oci.dll was not found" error while trying to use oracle with PHP. Tried so many ways of workaround.. still koyakk.. Things should have been easier if this site is not giving the "file not found on server" error. C'mmon ORA... give me those instant client dll files ... please

From OTN :-

Installation Steps:

1. Download the appropriate Instant Client packages for your platform. All installations REQUIRE the Basic package.

2. Unzip the packages into a single directory such as "instantclient".

3. Set the library loading path in your environment to the directory in Step 2 ("instantclient"). On many UNIX platforms, LD_LIBRARY_PATH is the appropriate environment variable. On Windows, PATH should be used.

4. Start your application and enjoy. (----hopefully)



Tuesday, September 9, 2008

Downloaded, Installed and Slurped : Google Chrome in action


You're Welcome.

Now you guys are into the browser battlefield. Welcome to the war!! Be it for good , bad or else... me don't really care whatsoever as long I experience a far more better surfin' incident. :)
Keep polishing your stuff. Kudos!!

(to 'others', keep on pushing... untill somebody is ......huhu )



...super easy.. depends on your network


Normal dialogue..


What makes Google chrome different? Give your comment...


Monday, September 8, 2008

Very google-friendly : IE8 Beta 2 express setting



Recently upgrade my IE8 Beta (not so sure what version, 1.0 maybe) to Beta 2. As depicted above, express settings for search provider is Google. :) ..... don't know if it grab my old settings or what.... but... huhu... your comment please..


Tuesday, September 2, 2008

You can download 'em tomorrow : Google Chrome

The most used search engine, the most what not this and that. With a whole bunch of apps and services, now they will be releasing their own so called open source web browser. Yupp... a browser. Get to know 'em in a comical way. Nice.

So you got another 'option' doncha?


Ready to eat 'others' or end up being 'eat' ..:) What your say.


..not today :)

"By keeping each tab in an isolated 'sandbox', we were able to prevent one tab from crashing another and provide improved protection from rogue sites," Pichai and Upson wrote.


more [G blog]