CEO & Founder of Falcon-Tech – Keyboard is my piano
  • Home
  • PHP
    • CakePHP
  • JavaScript && jQuery
  • Java && Android
  • Linux
  • Databases
    • MySQL
  • Other
    • Drupal
  • About me

Category: PHP

Kavecan.com MySQL PHP
13 Oct 2017

How to prevent SQL injection?

Posted by nikola, With 0 Comments, Category: MySQL, PHP,
Important is that any parameter in a query needs to be parameterized. It doesn't matter is your query is select, insert, update or delete ki ...

Read more
11 Sep 2015

Get latest SQL query

Posted by nikola, With 0 Comments, Category: CakePHP, Tags: cakephp, debugging, development
When debugging CakePHP code, it's very useful to know which SQL query is executed latest. Use next few lines to get this information $lo ...

Read more
11 Sep 2015

How to get free space on server?

Posted by nikola, With 0 Comments, Category: PHP, Tags: php, server
If you want to get info about free space on server, or in particular directory, execute next code in your browser - it will give you info ab ...

Read more
08 Apr 2014

How to get file extension (without parsing file name)

Posted by nikola, With 0 Comments, Category: PHP,
Get file extension without use of explode function of preg functions You can use pathinfo function - it will return an array with element ...

Read more
21 Mar 2014

How to check if function exists?

Posted by nikola, With 0 Comments, Category: PHP, Tags: php
Or - how to avoid re-declaring functions? Function redeclaration often occurs if you work with different versions of PHP, ie. on developm ...

Read more
21 Mar 2014

Example how to use cURL functions and to send http (or https) cURL request

Posted by nikola, With 0 Comments, Category: PHP, Tags: curl, php
Using cURL functions, you'll be able to connect and communicate to many different types of servers with many different types of protocols - ...

Read more
04 Dec 2012

Get ID of latest inserted record (get last insert ID)

Posted by nikola, With 0 Comments, Category: CakePHP, Tags: cakephp
How to return primary key of last inserted record (ID) generated in the last query, like LAST_INSERT_ID() in MySQL or mysql_insert_id() in P ...

Read more
04 Oct 2012

CakePHP and JavaScript onChange event

Posted by nikola, With 0 Comments, Category: CakePHP, Tags: cakephp, javascript
Here is example how to add onChange event in option-select (combo) form element. $packages = array('1'=>'First', '2'=>'Second', '3'=& ...

Read more
19 Aug 2012

Add new record in database, using CakePHP

Posted by nikola, With 0 Comments, Category: CakePHP,
Adding new record in database, without raw SQL, but using CakePHP's methods. Often is needed to add new record in database, when you can ...

Read more

Search

Today's poll

What are your main interests when it comes to computers?

View Results

Loading ... Loading ...

Recent Posts

  • How to burn ISO image to DVD or CD
  • How to prevent SQL injection?
  • Read file, line by line
  • Copy structure and all entries from one table to another (or how to create copy of existing table)
  • Redirection in JavaScript

Friends

falcon-tech

Random Linux Trivia

  • Director James Cameron again chose Linux servers for box-office smash Avatar

Tags

administration backup cakephp curl debugging development drupal7 google javascript jquery linux mysql personal php server sqlserver

Tweeter @kavecan

@MercedesAMGF1 but where is this livery? :) twitter.com/MercedesAMGF1/…

About 2 days ago via Twitter Web Client

Lookin GOOD! @redbullracing #redbullracing #rb15 #Honda #HondaF1 twitter.com/redbullracing/…

About 2 days ago via Twitter Web Client

On first peak it loks the same, but there are lots of differences. Tomorrow is a big day - @ForceIndiaF1, @MercedesAMGF1 and @redbullracing we are waiting for you! 🧐🤠🏁#skf1 #formula1 #f1 twitter.com/F1/status/1095…

About 3 days ago via Twitter Web Client

Sorry, but hopefully it doesn't run as bad as it looks twitter.com/WilliamsRacing…

About 4 days ago via Twitter for Android

Yes, #HaasF1Team is ready to go and it's lookin g-r-e-a-t! Next will be @ToroRosso and @WilliamsRacing, on February 11 #skf1 #F1 twitter.com/Haas_Automatio…

Last week via Twitter for Android

Instagram @kavecan

© 2016 - Kavecan.com - All rights reserved - About me & Contact
This website uses cookies to improve your experience. We'll assume you're OK with this, but you can opt-out if you wish.Accept Read More