PHP Applications
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Applications

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old May 11th, 2007, 09:19 PM
lordchriz lordchriz is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Dumaguete City, Oriental Negros,Philippines
Posts: 26 lordchriz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 55 m 55 sec
Reputation Power: 0
Send a message via Yahoo to lordchriz
Profile script

helo,

can anyone have sample script on how to edit, update a profile.php of a user

thanks
__________________
im lve web designing

Reply With Quote
  #2  
Old May 12th, 2007, 03:52 AM
augustusgloo's Avatar
augustusgloo augustusgloo is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 123 augustusgloo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 2 m 32 sec
Reputation Power: 2
Smile I have 1

If you want to edit a file of a single user, best option is to write into it.

profile.php
PHP Code:
<?php
$user 
"frblgs";
$name"Fred Bloggs";
$level 3;
$pass "password";
?>


chpass.php
PHP Code:
<?php
$add 
'<?php $password = "' $_POST['newpass'] . '";?>';
$fp fopen('profile.php''a');
if (
fwrite($fp$add)){
 echo 
"Changing password successful";
}else{
 echo 
"Error";
}
?>


$pass now equals what is posted in newpass.

You should be able to adapt this to your needs.

Cheers,
Hamish

Reply With Quote
  #3  
Old May 12th, 2007, 04:45 AM
lordchriz lordchriz is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Dumaguete City, Oriental Negros,Philippines
Posts: 26 lordchriz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 14 h 55 m 55 sec
Reputation Power: 0
Send a message via Yahoo to lordchriz
i don't understand the script, is another sample script that would edit, update a profile of a user..

thanks

Reply With Quote
  #4  
Old May 14th, 2007, 01:21 PM
augustusgloo's Avatar
augustusgloo augustusgloo is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: May 2007
Posts: 123 augustusgloo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 4 h 2 m 32 sec
Reputation Power: 2
Talking

There is no other way I know of, unless you have some constant script and very complicated programming. Basically this script writes into the profile and resets the variable. It is as simple as

PHP Code:
<?php
$var 
'var';
//$var is equal to var
$var 'foo';
//$var is now equal to foo
?>


but with tags in between like

PHP Code:
<?php
$var 
'var';
//$var is equal to var
?>
<?php
$var 
'foo';
//$var is now equal to foo
?>


so it will work.

I hope this clears your mind

Reply With Quote
  #5  
Old May 14th, 2007, 01:53 PM
tkarkkainen's Avatar
tkarkkainen tkarkkainen is offline
Moderator
Click here for more information
 
Join Date: Apr 2007
Location: Finland
Posts: 2,310 tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)tkarkkainen User rank is Lance Corporal (50 - 100 Reputation Level)  Folding Points: 7832 Folding Title: Novice Folder
Time spent in forums: 6 Days 4 h 58 m 15 sec
Reputation Power: 4
What exactly do you want? If you want modifiable profiles where users can set their name, email address, www address, occupation etc. you need to store the profile somewhere (most often a SQL database) and then write, modify and delete the information in the DB.

I suggest you read some basic database tutorials to get basic understanding.
__________________
Fight Internet censorship!

Code:
()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

Reply With Quote
  #6  
Old June 15th, 2007, 09:43 PM
akong_mata akong_mata is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Jun 2007
Location: makati city
Posts: 15 akong_mata User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 h 21 m 57 sec
Reputation Power: 0
kikid! lordchriz! :)

bisaya language: ayaw pangayo ug human daan na script... paghimu ug imuhang ginama para ikaw ra pud kabalo magtroubleshoot...

english language: do not ask for a done script, if you do so.. there are many free scripts at some tutorial websites.. but it is better if you do it on your own, so that it will be easy for you to troubleshoot and that you understand what you made...

best reference: googleDOTcom || phpDOTnet

Reply With Quote
  #7  
Old August 1st, 2007, 11:46 AM
roelor roelor is offline
Contributing User
Click here for more information
 
Join Date: Apr 2007
Posts: 81 roelor User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 12 h 25 m 6 sec
Reputation Power: 2
its not hard to make 1 for ur own but for multiple users it can become a pain in the *** (security issues sessions etc) the systems i like most are the simple ones easy to adjust and to inpliment in to any site. atough i never came so far that i implemented a script into my site... (guess im a lazy bum)

edit*oftopic* whoah the time is realy accurate...
__________________
EAT THIS PIECAKE!!!
liked the old site more

Last edited by roelor : August 1st, 2007 at 11:54 AM.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Applications > Profile script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway