Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by chintansshah

  1. open account in www.socialtwist.com and use widget and copy script to html page of your website.
  2. before save file on server and insert value in database, just change the file name, Search space and replace with underscore(_) sign.
  3. Integrate with Social media like facebook, orkut, twitter etc...
  4. I don't understand your requirement 100% but I tried. You should create three different forms, one for Country, State and City. in Country form, Name field is there in State form, select country first and then add state name in City form, first selct country, respected state as per country selection and then enter city details.
  5. hey, nice pic, very cute %20 because of while uploading a file, there is space "pics of-cute-girls.jpg" in file name So, space is converts to %20
  6. you can do with div, apply different background to both div
  7. Fow windows, you should xampp, please find at http://www.apachefriends.org/en/xampp-windows.html#641 Download it and install it.
  8. I think, you should use any of WYSIWYG editor for this functionality.
  9. Where you assign the value of $idk
  10. for resize image read below link http://php.net/manual/en/function.imagecopyresampled.php
  11. you should take one more incremental column in user table, which is increase when username is matched. While check exist username after getting the result check the incremental number and add+1 and set new username and store new incremental number for that user.
  12. You should first save your result in one variable and then club then array with same COLUMN. Use below function function club_array($contents,$parent_id) { if(count($contents)>0) { $list = array(); $children = array(); foreach ($contents as $v ) { $pt = $v[$parent_id]; @$list = $children[$pt] ? $children[$pt] : array(); array_push( $list, $v ); $children[$pt] = $list; } $contents = $children; } return $contents; } club_array($result_arr,'module_id')
  13. You can do debug using following steps 1. Echo your query and run in phpmyadmin 2. If it's get 2 rows from the table then your query is perfect 3. check your RowCount function 4. Check mysql_query and mysql_num_rows functions generate the same output what $Module['MySQL']->RowCount gives you.
  14. I feel that, there are permission issues. You can install php, mysql and Apache Please follow th steps. Install Apache To start off we will install Apache. 1. Open up the Terminal (Applications > Accessories > Terminal). 2. Copy/Paste the following line of code into Terminal and then press enter: sudo apt-get install apache2 3. The Terminal will then ask you for you're password, type it and then press enter. Testing Apache To make sure everything installed correctly we will now test Apache to ensure it is working properly. 1. Open up any web browser and then enter the following into the web address: http://localhost/ You should see a folder entitled apache2-default/. Open it and you will see a message saying "It works!" , congrats to you! Install PHP In this part we will install PHP 5. Step 1. Again open up the Terminal (Applications > Accessories > Terminal). Step 2. Copy/Paste the following line into Terminal and press enter: sudo apt-get install php5 libapache2-mod-php5 Step 3. In order for PHP to work and be compatible with Apache we must restart it. Type the following code in Terminal to do this: sudo /etc/init.d/apache2 restart Test PHP To ensure there are no issues with PHP let's give it a quick test run. Step 1. In the terminal copy/paste the following line: sudo gedit /var/www/testphp.php This will open up a file called phptest.php. Step 2. Copy/Paste this line into the phptest file: <?php phpinfo(); ?> Step 3. Save and close the file. Step 4. Now open you're web browser and type the following into the web address: http://localhost/testphp.php The page should look like this: Test PHP Page Congrats you have now installed both Apache and PHP! Install MySQL To finish this guide up we will install MySQL. (Note - Out of Apache and PHP, MySQL is the most difficult to set up. I will provide some great resources for anyone having trouble at the end of this guide.) Step 1. Once again open up the amazing Terminal and then copy/paste this line: sudo apt-get install mysql-server Step 2 (optional). In order for other computers on your network to view the server you have created, you must first edit the "Bind Address". Begin by opening up Terminal to edit the my.cnf file. gksudo gedit /etc/mysql/my.cnf Change the line bind-address = And change the to your IP address. Step 3. This is where things may start to get tricky. Begin by typing the following into Terminal: mysql -u root Following that copy/paste this line: mysql> SET PASSWORD FOR 'root'@'localhost' = PASSWORD('yourpassword'); (Make sure to change yourpassword to a password of your choice.) Step 4. We are now going to install a program called phpMyAdmin which is an easy tool to edit your databases. Copy/paste the following line into Terminal: sudo apt-get install libapache2-mod-auth-mysql php5-mysql phpmyadmin After that is installed our next task is to get PHP to work with MySQL. To do this we will need to open a file entitled php.ini. To open it type the following: gksudo gedit /etc/php5/apache2/php.ini Now we are going to have to uncomment the following line by taking out the semicolon (. Change this line: ;extension=mysql.so To look like this: extension=mysql.so Now just restart Apache and you are all set! sudo /etc/init.d/apache2 restart
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.