Your Own Matrimonial Website PHP Script | Matrimonial portal script
Matrimonial software script, an online website development PHP script that is user-friendly in all bases including search, update, add/remove, and edit profiles from the database. This online matrimonial system application includes member registration with features of feeding basic details, religious background, physical status, and profile insertion with a confirmation message.
For more details contact us on ready2goportals@gmail.comVisit us at www.ready2goportals.com
Archive for January 2012
PHP Web Development Indian Expert WeTheDevelopers Php Website Design Company Outsourcing PHP Projects n Customize Web Application Development Solution in India with Web Developers Designers Programmers n Coders having expertise in PHP MySql WordPress Joo
Check out this SlideShare Presentation:
Update records to databse
<?
$update=mysql_query("update tblName set Name='$Name',Email='$Email' where id='$id'",$db);
?>
Beware of Relative Includes
Say you have an application with an index.php
that contains:
require_once 'include/config.php';
require_once '/path_to_lib/util/all.php';
The util library also has an
include/config.php
file. In util/all.php
it has:
require_once 'include/config.php';
Which config file will
util/all.php
include?Relative paths are converted to absolute pathnames with something like:
function relativeToAbsolute($relativePath) {
return realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/' . $relativePath);
}
Since
index.php
is the script that is being executed then util/all.php
will include the config file in the application folder instead of the one from the util library folder. The solution is instead of relative includes use:
require_once dirname(__FILE__) . '/include/config.php';
Disable UAC and IIS.
Before proceeding to installation we will have to disable
user account control (UAC) and Internet Information
Services (IIS) for the time being. You can enable them
again once installation is complete.
To disable UAC go to
“Start>Control Panel>User Accounts” there you will
find an option “Turn User Account Control on or off”
just click on it and uncheck “User Account Control to
help protect your computer”, click “OK”.
To disable IIS go to “Start>Control Panel>Programs and Features”
on the leftmost side you will find an option
“Turn Windows features on or off” click on it and
uncheck “Internet Information Services”, click “OK”
and restart your computer.
Also visit :
-> http://online-income-sources.blogspot.com/
to learn genuine money making techniques.
If you are facing any other problem (Error)
regarding Apache PHP and MySQL then please
mail me directly on metech11@gmail.com
GuDLuck!
Adding a button to toolbar in Nucleus.
Edit the file PAGEFACTORY.php
Add
$this->_jsbutton('blockquote',"blockquoteThis()",_ADD_BLOCKQUOTE_TT ." (Ctrl + Shift + Q)");
And
$this->_jsbutton('blockquote',"blockquoteThis()",'');
Upload image button-blockquote.gif to admin/images directory
Edit javascript/edit.js
function blockquoteThis() { insertAroundCaret('If the toolbar is enabled, the button should start working now.',''); }
Retrieving from Database and show checkboxes
I was working on a project and i had landed in an awkward situation, where i have to save the tick box values in a database and once done, i had to retrieve those values and present it to the user for editing.so i create the solution yourself.
For example when there are checkboxes for 5 colors – Red, Green, Blue, Yellow, Brown and i have the php script doing insertion into database.
http://corpocrat.com/2009/05/24/how-to-store-and-retreive-checkbox-value-in-mysql-with-php/
Javascript Return Statement
After 20+ years of programming I learnt something new today, while messing about with the php_spidermonkey extension.
If you place a carriage return after a 'return' statement in Javascript, and put some code on the line underneath, the function returns 'undefined', as if the statement was simply: return;
Here's an example of a function that returns 'undefined':
function whatelse()
{
var ok = false;
return // function ends here
ok ? 'OK (true)' : 'OK (false)'; // this line is never executed!
}
Interview Tips
Wedd Fest - Wedding Exhibition 2010 will Organize on 23-24-25 October at Imperial Palace in Rajkot Gujarat India
Wedd Fest - Wedding Exhibition 2010
Wedd Fest - Wedding Exhibition 2010 will Organize on 23-24-25 October at Imperial Palace in Rajkot Gujarat India .
Wedd Fest is Brand Name of Wedding Exhibitions used to Organize by Espresso Events from Rajkot Gujarat India.
Espresso Events presents this Wedding Show Every Year in major cities of various states in India.
Useful Links
Espresso Events - Nri Gujarati Classified Link
Espress Events Link - Link on Blog Wedding World
Espress Events - Wedd Fest Website
Espress Event - Company Website
Thanks & Regards
Espresso Events,
Rajkot, Gujarat-India
bounce php-fpm
killall -w -v php-fpm
-w is to wait for the processes selected to stop
-v verbose
I observed that few php-fpm processes took time to stop (might be they are wrapping up stuff). Immediately starting php-fpm after passing the killall command without -w might cause error (port in use or unix socket in use).
Another important point. In case if you are running php-fpm in the unix socket mode then make sure to bounce your server in case you are bouncing php-fpm. I follow this
stop server && stop php-fpm && start php-fpm && start server
reset a directory with rewinddir() in php
<?php
//Open send directory
if(@$dir = opendir("send"))
{
//List files in send directory
while (($file = readdir($dir)) !== false)
{
echo "filename: " . $file . "<br />";
}
//resets the directory stream
rewinddir($dir);
//to check for changes
closedir($dir);
}
else
{
echo 'directory not opened';
}
?>
outputs :
1)
directory not opened
2)
filename: .
filename: ..
filename: sendsms.html
filename: sendsms.php
filename: send_vard.php
filename: send_vcard_sms.html
filename: smser.php
Zocial – A CSS3 social button & icon Sass framework
Zocial is a CSS3 social buttons set and vector icons with @font-face as a Sass mixin and is usable as a Compass extension. It includes buttons and icons for Twitter, Facebook, Google+, GitHub, RSS and Smashing Magazine.
Beware of References
I got tripped up by the following code:
// This data actually comes from csv file
$data = array(
array('Area1', null, null),
array(null, 'Section1', null),
array(null, null, 'Location1'),
array('Area2', null, null),
array(null, 'Section2', null),
array(null, null, 'Location2')
);
$root = array();
foreach ($data as $row) {
if ($row[0]) { // Is Area
$area = array();
$root[$row[0]] =& $area;
} elseif ($row[1]) { // Is Section
$section = array();
$area[$row[1]] =& $section;
} elseif ($row[2]) { // Is Location
$section[] = $row[2];
}
}
print_r($root);
Expected result:
Array(
[Area1] => Array(
[Section1] => Array(
[0] => Location1
)
)
[Area2] => Array(
[Section2] => Array(
[0] => Location2
)
)
)
Actual result:
Array(
[Area1] => Array(
[Section2] => Array(
[0] => Location2
)
)
[Area2] => Array(
[Section2] => Array(
[0] => Location2
)
)
)
So what did I do wrong? To answer this lets look at a simpler example:
$a = array();
$b =& $a;
$a[] = 'hello';
echo implode(' ', $b); // Outputs 'hello'
$a = array('world');
echo implode(' ', $b); // Outputs 'world'
See I was expecting the last line to output 'hello' because I was thinking references were like C pointers. That is:
void* a = array();
void* b = *a;
So looking up the PHP manual it says:
They are not like C pointers; instead, they are symbol table aliases...
References can be thought of as hardlinking in Unix filesystem.
php.ini di XAMPP 1.6.2
Sering sekali pada saat kita melakukan kesalahan atau bingung pada saat konfigurasi php.ini di XAMPP. Hal ini disebabkan ada beberapa php.ini yang tersebar di beberapa folder XAMPP, mana yang digunakan ?
PHP sebagai Module PHP
Untuk melakukan pengecekan php.ini yang digunakan pada modul Apache cukup gampang, kita cukup menggunakan informasi dari fungsi php_info() dan melihat isi dari entri Loaded Configuration File.
Untuk xampp, coba jalankan server Apache dan ketik pada browser http://localhost/xampp/index.php, hasilnya terlihat seperti gambar di bawah ini (klik gambar untuk melihat ukuran sebenarnya).
Pada gambar terlihat entri Loaded Configuration FIle menunjuk ke c:\xampp\apache\bin\php.ini, inilah lokasi file php.ini yang yang dikenali dan digunakan oleh Apache web server di XAMPP.
Penggunaan php.ini di Interpreter Command Line
Selain sebagai modul Apache, php tentu saja bisa digunakan sebagai interpreter di command line atau terminal. Untuk ini php.ini yang dikenali adalah yang berada pada folder yang sama dengan program php.exe.
Sebagai contoh, instalasi XAMPP di sisi saya adalah di C:\xampp\php maka php.ini yang dikenali di sini adalah c:\xampp\php\php.ini. Apabila belum ada terdapat file php.ini di folder ini, maka carilah file php.ini-dist dan diubah namanya menjadi php.ini.
Demikian tips ini saya buat, semoga bisa berguna. Untuk saran, kritik dan pertanyaan dapat diajukan melalui comment di bawah atau kirimkan email ke pintarphp@komputasiawan.com.
SubID tracking php affiliate script
with this script you will make your small ad network which you will add your affiliate links as the offers when the visitor of your site register as a new user it will show him the offers with a commission for each lead/sale and your affiliate links will be modified by adding this member ID at the end of your affiliate links in a way able you to track this member leads/sales from your statistics at the original ad network which these leads/sales belongs to.
For example if you are a publisher at an ad network your affiliate link for a certain program would be something like this;http://www.youraffiliatelink...?sid=
now when member number 33 promote this link he/she will promote this link;http://www.youraffiliatelink...?sid=33
when this member bring for you a lead/sale it will shown at your statistics at this network affiliate/publisher area and so you will add for this member the number of leads/sales from your website Control Panel and so on for all other ad networks which have the sub id features.
Admin features includes add/edit/delete categories offers add/edit/delete payment methods complete/deny/delete payment requests set site setting like name slogan minimum pay out privacy page add leads/sales to members add/edit/block/delete members accounts and much much more.
members can view their day by day statistics from time to time stats. request payment when reach the minimum pay out modify profile and much more.
CSS style file available so you can modify your website look contact page you can reply to your contacts from admin cp and more.
demo information:
demo website: click here
login as member1 username: member1 and password: member
login as member2 username: member2 and password: member
login as member3 username: member3 and password: member
login as member4 username: member4 and password: member
login as admin click here username: admin and password: admin
* click here to visit website for this script.
Assignment #4
File created:
1) adminLogin.php --- Time spent: 30mins
2) adminVal.php --- Time spent: 40mins
3) admin.php --- Time spent: 40mins
4) adminLogout.php --- Time spent: 20mins
5) adminOnlyINC.php --- Time spent: 40 mins
6) connINC.php --- Time spent: 20 mins
7) utilINC.php --- Time spent: 30mins
8) sessionINC.php --- Time spent: 10mins
9) editTable8.php --- Time spent: 20mins
Learnt: I have learnt to use session to identify different user's state and to connect to Mysql database using php.