Archive

Archive for the ‘PHP’ Category

Cannot load mysqli extension. Please check your PHP configuration

August 25th, 2009 15 comments

Probably you are trying to access your phpmyadmin. You will get this error  if you have more then one “php.ini” file in your system. It is kinda conflicting. For instance i have wampserver2.0 and IIS7 together in my current system. I have activated IIS7 FastCgı method to use php on it. So it has one php.ini file at path of  “c:\wamp\….” and another one in “c:\Program Files\Php” . You can get a temporary solution if you rename your php.ini file which is in your “program files” path.

That is it.

VN:F [1.9.22_1171]
Rating: 8.4/10 (37 votes cast)
VN:F [1.9.22_1171]
Rating: +1 (from 3 votes)
Categories: PHP, Programming, Tips Tags: , , ,

Gedit Modifications for PHP

May 17th, 2009 3 comments

Since i am coding with codeigniter framework on gedit, i was looking for snippets for codeigniter on gedit

download gedit snippet for codeigniter

By the way if you want to make your gedit more useful for programming surely you may add some third party plugins as many as you want or simply just active default plugins. Idea is that firstly download a plugin then extract its content to ‘~/.gnome2/gedit/plugins/’ directory. Once you have installed the plugin you want, you need to enable it via Edit>Preferences and then the Plugins Tab. Such as;

- Snippets
- Class Browser
- Bracket Completation
- Character Map
- Embedded Terminal
etc..

You can basicly find out third-party plugins by clicking on this link

VN:F [1.9.22_1171]
Rating: 6.0/10 (8 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Categories: General, Linux, PHP, Programming Tags: , ,

What is PHP?

April 18th, 2009 No comments

First of all i need to say that PHP is a language which you are going to in love with. (That is of course if you are a developer ) PHP stands for PHP: Hypertext Processsor.

To start with it you should have knowledge about basic scripting and HTML language.

PHP is totaly free to use and download that is because it is an open source. Well there are many scripting languages on the earth. PHP is server-side scripting language. It means codes are executing on the server-side not in the client-side.

Thus, clients cannot see your php script, a client can only see pure html content. Now i can say PHP is secure langauge since user cannot see your PHP code. How it works? For instance, a client (user) requests a webpage from your server. Then your server executes php code and returns pure html content to the user. And user have no chance to see what is going on at the server-side.

Extensions : .php, .php3, .phtml

Read more…

VN:F [1.9.22_1171]
Rating: 7.5/10 (6 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Categories: PHP, Programming Tags: , ,

Let’s get started with jQuery

February 27th, 2009 No comments

Nowadays you may see tons of Javascript frameworks coming up. The truth is that it makes your code efficient if a framework used instead of pure javascript code. Most of the javascript frameworks helps you to solve crossbrowser difficulties. Probably you heard about Prototype and MooTools. You may see some people are trying to decide between these frameworks. I should say i am fan of jQuery. jQuery comes with tons of futures and flexibility and you can do a big work with less effort and it is not just a regular library however jQuery is even ajax and effect library. It does evertything i need with piece of code.

jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development. jQuery is designed to change the way that you write JavaScript.

Let’s say you are using some other libraries as well, there it goes, jQuery is such a good friend with other libraries. API designed with conciseness and convenience as the driving factors.

Before start with jQuery i want you to know some basics about it. You can download the framework basically from www.jquery.com then download it on your desktop. This is how jQuery places in html code.

<html>
<head>
<strong><script type="text/javascript" src="jquery.js"></script></strong>
<script type="text/javascript">
<strong>// Your code goes here</strong>
</script>
</head>
<body>
<a href="http://jquery.com/">jQuery</a>
</body>
</html>

You can start with placing your core *.js file which is jquery.js for this example.

Read more…

VN:F [1.9.22_1171]
Rating: 4.0/10 (6 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)
Categories: General, Jquery, PHP, Programming Tags: , , ,

Embed php into Javascript

February 24th, 2009 No comments

In javascript you cannot read variables from a server instanly however if you embed your php code you may pass variables into javascript code.

So php can pass its variables when page loads. Here is an example using jquery

< ?php $variable = 'Here is value'; ?>
<script type= "text/javascript">
$(document).ready(function(){
var button = < ?php echo $variable; ?> ;
});
</script>

Read more…

VN:F [1.9.22_1171]
Rating: 3.8/10 (6 votes cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)