User Profile

Collapse

Profile Sidebar

Collapse
Muddasir
Muddasir
Last Activity: Dec 8 '09, 03:32 PM
Joined: Jun 13 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Muddasir
    replied to chance of php file gets deleted
    in PHP
    Basically i want to know.. is there any flaw in the code can lead to deletion of a file???
    See more | Go to post

    Leave a comment:


  • Muddasir
    started a topic chance of php file gets deleted
    in PHP

    chance of php file gets deleted

    Hi members,

    My question is:

    Is there a way through which anyone can delete a php file from server. like some hacker delete registeration.p hp file from server (live server) ???

    If so. then how?? and how can I avoid this?
    I do have knowledge about sql injection n xss attacks. but no really sure that a FILE can be deleted?

    waiting for your responses

    Regards
    See more | Go to post

  • Thank you for your reply.

    Actually the site I am developing does not play audio without warning and stuff. Here is how it works on my website..

    -> Registered user searches for music on the site..
    -> User can add music track of their choices to the play list of music player.
    -> If user click on PLAY then music will start playing in the player.

    Note: Music player is on the right panel...
    See more | Go to post

    Leave a comment:


  • Thank you all for replying.

    I am using embed code for player. It also has a feature of adding music to play list. Actually its the requirement of the project to keep playing the music while user can browse through the site.

    @Steven: thanks i will try that

    and my apologies for posting this question in this section rather than in html forum

    Regards
    - Muddasir
    See more | Go to post

    Leave a comment:


  • anybody ?
    See more | Go to post

    Leave a comment:


  • Play Music in background while browsing though website

    Hi everyone.

    How can I play music in background while user can browse through my website. Uptill now I have created a music player which plays audio tracks but as soon as users jumps to another page the music stops.

    How can I achieve this. any ideas !!!!!


    Regards

    Muddasir Hussain
    See more | Go to post

  • Muddasir
    replied to How can I send confirmation mail.
    in PHP
    Okay let i guess this is what you want....not sure but it might help you...

    when user fills a registration form and hit submit button. You probably do insertion in DB, when you do insertion get the last inserted id. and store it in variable let say '$userid'. Make link in the email that you will send to the user and that link will contain that last inserted id e.g the link might look like this.

    Code:
    <a href='http://yoursite.com/authentication.php?userid=$userid'>Click
    ...
    See more | Go to post

    Leave a comment:


  • Muddasir
    replied to Drop down Event which calls php scripts
    in PHP
    You can do this through AJAX.

    Another way is
    if page refreshing wont matter that much then you can simply pass the value to the query.
    Code:
    <form name="myform" id="myform" action="" method="get">
    
    <select name="mydropdown" id="mydropdown" onchange="sortby_form.submit()" >
    
    <option value='one'>One</option>
    ...
    See more | Go to post

    Leave a comment:


  • Muddasir
    started a topic List shopping API's
    in PHP

    List shopping API's

    Hi everyone.
    I am working on shopping API's
    If any body can list me useful some shopping API's with documentation.
    I want to use them on my website using PHP
    I have already worked on

    shopzilla
    yahoo
    amazon
    ebay
    shopping.com

    I want some API other than above mentioned APIs


    Regards
    Muddasir
    See more | Go to post

  • Muddasir
    started a topic Problem in setting timezone
    in PHP

    Problem in setting timezone

    Hi everyone

    I want to set timezone (US/Central). It is working fine on my local computer but when I upload the code on web server It is giving me error

    Fatal error: Call to undefined function: timezone_open() in

    Here is the code

    Code:
    $tz1 = timezone_open("US/Central"); 
    $ts = date_create("2008-08-19 12:19:21", $tz1);  
    echo $ts->format(DATE_RFC822), "<br/>";$ts->setTimezone($tz1);
    ...
    See more | Go to post
    Last edited by Dormilich; Sep 23 '10, 06:30 PM.

  • Thank you for replying..

    But I found the error.

    There was a comment written without using ' // '. I put there '//' before comment and now its working fine. but i was wondering why it was working fine in Fire Fox.

    Once again Thanks for your time.

    Regards
    See more | Go to post

    Leave a comment:


  • Muddasir
    started a topic document.getElementById not working in IE 7.0

    document.getElementById not working in IE 7.0

    Hello guyz
    Can you please help me with this. I am having problems with document.getEle mentById. It is working fine in FireFox but in IE its not working.

    What should i do.

    Thanks
    See more | Go to post

  • Muddasir
    replied to need help in this query
    thanks a lot ppl

    okay I will try to put my question more clearly.

    Normally if we want to fetch any record against any specific value we use e.g. "WHERE hr=2" and in the result se we will get a row of record having hr=2, and no result when colum hr doesnot have value= 2 right !.

    I am asking is it possible that we can get results even when colum hr doesn't have value=2. can we get the results...
    See more | Go to post

    Leave a comment:


  • Muddasir
    started a topic need help in a query
    in PHP

    need help in a query

    Hello everyone.
    guyz can you please help me in this query

    Note: i put this question in MySQL forum but no one replied. please guyz its urgent.

    id | name | lastname | status | hrs

    1 qwe sss 1 5
    2 rtyy zax 1 5
    3 bvgf hyv 1 5
    4 bvgd vbcf 1 10
    5 cvxx hopy 1 10
    6 bcxd loiu 1 10


    now what i want to achieve is that......
    first four records...
    See more | Go to post

  • Muddasir
    started a topic need help in this query

    need help in this query

    Hello everyone.
    guyz can you please help me in this query

    id | name | lastname | status | hrs

    1 qwe sss 1 5
    2 rtyy zax 1 5
    3 bvgf hyv 1 5
    4 bvgd vbcf 1 10
    5 cvxx hopy 1 10
    6 ...
    See more | Go to post

  • Muddasir
    replied to Comparing Dates
    in PHP
    Hi bips

    here it is what I understood you want to do

    Code:
    //considering this date is being fetch from db and was stored in this format
    $date = "2008-07-15 22:15:58"; 
    
    $date1 = substr($date, 0, 11); 
    
    $date2 = date("Y-m-d"); // current date
    
    $difference = abs(strtotime($date2) - strtotime($date1));
    
    $days = round(((($difference/60)/60)/24),
    ...
    See more | Go to post

    Leave a comment:


  • hi
    try using header("locatio n:abc.php?usern ame=xyz");

    Regards
    See more | Go to post

    Leave a comment:


  • Muddasir
    replied to openining a new window
    in PHP
    i am able to do what i want to..
    i guess i wasnt clear in putting my query to u ppl.

    i used
    parent.opener.l ocation.reload( );
    which refresh the parent window while new window is being opened using <form> with target=_blank

    neways thanks a lot for u guyz for always helping me. i have learned a lot through Bytes


    Regards
    Muddasir Hussain
    See more | Go to post

    Leave a comment:


  • Muddasir
    started a topic openining a new window
    in PHP

    openining a new window

    ello everyone.

    i want to open a link in a new window but without pop notification, means user does not have to select "allow pop-up" and also want to redirects to the other page.
    here is code of the file go.php
    Code:
    $url;
    <script language="javascript">
    window.open('<?php echo $url; ?>');
    
    window.location='searchresults.php?keyword=<?php echo $keyword;?>&item_id=<?php
    ...
    See more | Go to post

  • Muddasir
    replied to Back Button Problem after Login Out
    in PHP
    Hi.
    did u unset the session variable(s) on log out page.
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...