473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

How choose profile image from gallery

Hi, good day every one please i am working on a social site on a member's page he or she can select a picture from any of his or her uploaded image and it will replace the timeline banner or page profile picture . pleas how can i achieve this using jQuery with Php
Feb 24 '15 #1
5 1426
Dormilich
8,658 Expert Mod 8TB
pleas how can i achieve this using jQuery with Php
jQuery = JavaScript = client-side … PHP = server-side. both are not compatible with each other.

without knowledge of the concerned system(s) we cannot offer any help.
Feb 24 '15 #2
what am saying is these images are in the database which is fetch and display on the member page onclick on any of the images fetch to page will now be move to a timeline folder which now replaces the timeline image.
Feb 24 '15 #3
Dormilich
8,658 Expert Mod 8TB
without knowledge of the concerned system(s) we cannot offer any help.
Feb 24 '15 #4
this is the move code

Expand|Select|Wrap|Line Numbers
  1. $srcPath = '../uploadDir/';
  2. $destPath = '../timelineDir/';  
  3.  
  4. $srcDir = opendir($srcPath);
  5. while($readFile = readdir($srcDir))
  6. {
  7.     if($readFile != '.' && $readFile != '..')
  8.     {
  9.         /* this check doesn't really make sense to me,
  10.            you might want !file_exists($destPath . $readFile) */
  11.         if (!file_exists($readFile)) 
  12.         {
  13.             if(copy($srcPath . $readFile, $destPath . $readFile))
  14.             {
  15.                 echo "Copy file";
  16.             }
  17.             else
  18.             {
  19.                 echo "Canot Copy file";
  20.             }
  21.         }
  22.     }
  23. }
  24.  
  25. closedir($srcDir); 
my question is how to add an onclick action on the initial image so the above code run
Feb 24 '15 #5
Dormilich
8,658 Expert Mod 8TB
you have to make an AJAX request (or form submit) since you have to execute server-side code.
Feb 24 '15 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: krunkelgarten | last post by:
Hi there, I'm trying to create a fully automatic image gallery. I already have the page that automatically creates the index of thumbnails. What i want now, is to create a page which indexes...
0
by: Perttu Pulkkinen | last post by:
Does anybody know a php-based image gallery, where final looks of the actual site would not be determined by the application? I mean that there would only be a php-library of objects/functions that...
1
by: news.microsoft.com | last post by:
Hello and first of all thank you for your time. I am currently developing an ASP.net web page, which has data stored in SQL Server. It is a web page for a State Agent and my problem is: I need...
1
by: ltt19 | last post by:
Hi everyone! I want to do da Image gallery using just the datagrid, this one will dilpays only images, no text, that means that it will have about 4 Collumns that will displays just images from...
2
by: news.microsoft.com | last post by:
Hello and first of all thank you for your time. I am currently developing an ASP.net web page, which has data stored in SQL Server. It is a web page for a State Agent and my problem is: I need...
2
by: kaizer bo | last post by:
Hi all, could someone show me how to add javascript functionality to a css image gallery? I would like to adapt the gallery at "http://www.cssplay.co.uk/menu/gallery_click.html" so that when a...
4
by: RE Kochanski | last post by:
I have attempted to use the CSS techniques from two or three sites to create a CSS only image gallery. I am muddling the affair by placing the thumbnails in one float, the page text in another...
2
by: Nik | last post by:
I have a simplified version of my image gallery at: http://www.niksally.f2s.com/upload/gallery/mixed_gallery.html Essentially, the format of the html is an in-line list: <ul> <li><img></li>...
25
by: Gilles Ganault | last post by:
Hello I've been googling for a couple of hours, but still haven't found what I need: - really simple PHP-based image gallery software. Ideally, just a single file that I just drop into a...
4
by: saunders1989 | last post by:
Hi, my goal is to create a website with an image gallery. i have about 6 buttons at the bottom of the page whcih when clicked will take you to a different album of photos. i have created the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.