Jump to content

ahzulfi

Members
  • Posts

    54
  • Joined

  • Last visited

    Never

Posts posted by ahzulfi

  1. Hello guys

    there are many scripts like youtube - so called Youtube Clone and clipbucket is one of them or ClipBucket was one of them.

     

    now, i decided not to continue the Youtube Clone, i decided to create something more flexible, more extendible , more usable and more customizable.

     

    ClipBucket v2 - its still in its pre alpha stage and havent released its code so yo have to wait till i release the it code for online use.

     

    my main concern is now what you people think about Youtube clones & social networks, their demand and what things a developer need to make any code customize their own way.

     

    i just want to know, is Word press like plugin system is best for developer ?? i used the same thing for ClipBucket v2

     

    also, what are your opinions about ClipBucket - not as a use but as a developer

     

    thanks

     

    Arslan

  2. Hello,

    i have make a script named ClipBucket, and it cause overload after i convert it to SEO friendly, i know its not the prefferable Category for this post but i think it also related with PHP atmost.

     

    here is my .httacess code

     

    <FilesMatch "\.(db|inc|html|tmpl|h|ihtml|sql|ini|configuration|config|class|bin|spd|theme|module|cfg|cpl|tmp|log|err|inc.php)$">

    order allow,deny

    satisfy all

    </FilesMatch>

     

    ########## Begin - Rewrite rules to block out some common exploits

    #                             

    # Block out any script trying to set a mosConfig value through the URL

    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]

    # Block out any script trying to base64_encode crap to send via URL

    RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]

    # Block out any script that includes a <script> tag in URL

    RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]

    # Block out any script trying to set a PHP GLOBALS variable via URL

    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]

    # Block out any script trying to modify a _REQUEST variable via URL

    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})

    # Send all blocked request to homepage with 403 Forbidden error!

    RewriteRule ^(.*)$ index.php [F,L]

    #

    ########## End - Rewrite rules to block out some common exploits

     

     

    ########## Begin - Rewrite rules For SEO urls ######################

    rewriteEngine On

     

    #

    #

    #

    #URL Rewriting for Videos

    RewriteRule ^videos videos.php [nc]

    RewriteRule ^video/([a-zA-Z0-9].+)/(.*) watch_video.php?v=$1 [nc]

    RewriteRule ^user/videos/([a-zA-Z0-9].+) user_videos.php?user=$1 [nc]

    #

    #

    #

    #Signup Login & Logout URL Rewriting

    RewriteRule ^signup/ signup.php [nc]

    RewriteRule ^login/success login_success.php [nc]

    RewriteRule ^welcome/success signup_success.php [nc]

    #

    #

    #

    #Messeges

    RewriteRule ^messege/sent sent.php [nc]

    RewriteRule ^messege/inbox inbox.php [nc]

    RewriteRule ^messege/compose compose.php [nc]

     

    #

    #

    #

    #Users, Channel & Management

    #

    RewriteRule ^members/ /channels.php [nc]

    RewriteRule ^users/ /channels.php [nc]

    RewriteRule ^channels/ /channels.php [nc]

    #

    RewriteRule ^user/ /channels.php [nc]

    RewriteRule ^user/([a-zA-Z0-9].+) view_channel.php?user=$1 [nc]

    RewriteRule ^channel/([a-zA-Z0-9].+) view_channel.php?user=$1 [nc]

    RewriteRule ^user/contacts/([a-zA-Z0-9].+) user_contacts.php?user=$1 [nc]

    RewriteRule ^user/videos/([a-zA-Z0-9].+) user_videos.php?user=$1 [nc]

    RewriteRule ^user/favourites/([a-zA-Z0-9].+) user_fav_videos.php?user=$1 [nc]

    #

    RewriteRule ^myaccount myaccount.php [nc]

    RewriteRule ^manage/videos/ manage_videos.php [nc]

    RewriteRule ^manage/favourites/ manage_favourites.php [nc]

    RewriteRule ^manage/contacts/ manage_contacts.php [nc]

    RewriteRule ^manage/subscriptions/ manage_subscriptions.php [nc]

    RewriteRule ^manage/account user_account.php [nc]

    RewriteRule ^manage/video/edit edit_video.php [nc]

    #

    #

    #

    #Pages

    RewriteRule ^pages/help help.php [nc]

    RewriteRule ^pages/privacy privacy.php [nc]

    RewriteRule ^pages/termsofuse termsofuse.php [nc]

    RewriteRule ^pages/contactus contactus.php [nc]

    RewriteRule ^pages/aboutus aboutus.php [nc]

    RewriteRule ^pages/faqs faqs.php [nc]

    #

    #

    #

    #Miscellenous

    RewriteRule ^subscriptions manage_subscriptions.php [nc]

    RewriteRule ^search/result search_result.php [nc]

    RewriteRule ^upload upload.php [nc]

     

    #

    #

    #Group Section

    RewriteRule ^group/leave/([a-zA-Z0-9].+) leave_group.php?url=$1 [nc]

    RewriteRule ^manage/group/videos/([a-zA-Z0-9].+) manage_group_videos.php?url=$1 [nc]

    RewriteRule ^manage/group/videos/([a-zA-Z0-9].+) manage_group_videos.php?url=$1 [nc]

    RewriteRule ^manage/group/addvideos/([a-zA-Z0-9].+) add_group_videos.php?url=$1 [nc]

    RewriteRule ^manage/group/members/([a-zA-Z0-9].+) manage_group_members.php?url=$1 [nc]

    RewriteRule ^manage/group manage_groups.php

    RewriteRule ^group/topic/([a-zA-Z0-9].+) view_topic.php?tid=$1 [nc]

    RewriteRule ^group/view/([a-zA-Z0-9].+) view_group.php?url=$1 [nc]

    RewriteRule ^group/videos/([a-zA-Z0-9].+) view_group_videos.php?url=$1 [nc]

    RewriteRule ^group/members/([a-zA-Z0-9].+) view_group_members.php?url=$1 [nc]

    RewriteRule ^group/invite/([a-zA-Z0-9].+) invite_group.php?url=$1 [nc]

    RewriteRule ^manage/group/edit/([a-zA-Z0-9]) edit_group.php?url=$1 [nc]

    RewriteRule ^group/create/ create_group.php [nc]

    RewriteRule ^group/join/([a-zA-Z0-9].+) join_group.php?url=$1 [nc]

    RewriteRule ^community groups.php [nc]

    RewriteRule ^group/delete delete_group.php [nc]

     

    ########## End - Rewrite rules For SEO urls ######################

     

    I have used some loops in 3 ~ 4 four pages maximum of 25 times and i dont think it can cause server overload.

    so please tell me if the server load is caused by the above gived .httacess.

     

    if not then what could be the possible reasons i mean, what are the common mistakes that make server overload.

     

    Please advice.

     

    Thanks

    ArslanHassan

  3. Hello,

    i want to get $variable = 'sometext'; from PHP to javascript.

    i have declared $variable in PHP

    i m calling javascript as

    <script type='javascript' src ='file.js'> in my page, but dont know how to send $variable to javascript so that i can use it in javascript.

     

    hope you got what i m asking.

     

    Urgently needed.

     

    Thanks

    ArslanHassan

     

     

  4. Hello, hope  this will helps you

     

    - index.php (Where Box Has to be appea)

    - edit.php (Where You Edit The box)

     

    -Create Table iN Database

    table_name

    --field1(TEXT)

     

    INDEX.PHP - PUT THIS CODE WHERE YOU WANT TO SHOW YOUR BOX

    <?php

    //After Connectin to database

    $query=mysql_query("SELECT * FROM table_name");

    $data = mysql_fetch_array($query);

    echo $data['field1'];

    ?>

     

    EDIT.PHP

    <?php

    //After Connection to Database

    if(isset($_POST['submit'])){

    $box = $_POST['text_box'];

    $query = mysql_query("INSERT INTO table_name(field1)VALUES('".$box."')");

    echo "Data Has Been Added";

    }

    $query=mysql_query("SELECT * FROM table_name");

    $data = mysql_fetch_array($query);

    ?>

    <form name="form1" method="post" action="">

      <label>

      <textarea name="text_box" cols="45" rows="5" id="text_box">echo $data['field1'];</textarea>

      <br>

      </label>

      <label>

      <input name="submit" type="submit" id="submit" value="Submit">

      </label>

    </form>

     

  5. now i got another problem, i have passed a value to the image field ie

     

    <input type='image' value='value1' name='image'>

    <input type='image' value='value2' name='image'>

     

    i want to get value from $_POST['image'] , when one the image field is pressed it will passed the value ie if second one is pressed it will pass the value 'value2' but in IE m not getting its value due to which i m having too much problem.

    i have 10+ customers with each 3 Templates = 30 Pages  i have to change if i have to set a hidden field, this would be a nice idea but please tell me if there is any other way to get rid of this problem

  6. :o :o :o

    Man i sort this problem out and it seems to be a very strange one

     

    the problem is that

    the image field of form like

    <input type='image' value ='somevalue' name='test'>

     

    in all browsers, except IE , value of $_POST['test'] will be 'somevalue' bu IE shows nothing

    instead its shows the value using x-y coordinates

    $_POST['test_x'] & $_POST['test_y]

     

    This seems to be very strange for me....

     

    how can this be fixed......

  7. Hello,

    i have made Video Sharing Script called ClipBucket its Live Demo is here

    http://clip-bucket.com/livedemo

     

    use

    usename : demo

    password : demo

     

    for demo login

     

    the problem m getting is on this page

    http://clip-bucket.com/livedemo/watch_video.php?v=315c27e5a3c50d0

     

    When i use FireFox and Click On "Add To Favoutires" the Form Submits and value is then called in PHP using $_POST['form_field'] and then Video added to the favourites

    but

    when i use Internet Explorer 6~7  and Click on "Add To Favoutires" the Form Sumits but the value doesnt pass to $_POST and hence Video doesnt add to favourites.

     

    here is the code that i use for sumission in HTML

     

    <form method="post">
    <input name="add_to_fav" type="image" value="add_video" src="{$imageurl}/fav_icon.png" 	alt="Add This Video To Favourites" title="Add This Video To Favourites"/>
    </form>
    

     

    Here is the code which check the FORM_FIELD value

    //Adding Video To Favourite

    if(isset($_POST['add_to_fav'])){

    $userquery->logincheck();

    $msg=$myquery->AddToFavourite($_COOKIE['userid'],$videos['videoid']);

    }

     

     

    Dont know, Why internet Explorer is Causing this problem  ???

     

    Please Help Me    :-\

     

    Thanks

    ArslanHassan

     

  8. Hello,

    there are many video sharing scripts available, but i have tried to make a lil bit unque video sharing script

    http://clip-bucket.com/livedemo

     

    for User

    username :demo

    password : demo

     

    for admin

    Username : admindemo

    passowrd : admin1232

     

    i have also made some themes, one is like Youtube

     

    please tell me if you want my script to look more better, any suggestion will be appreciatable..

     

    thanks & regards

     

    Arslanhassan

  9. Hello,

    i have made a video sharing script, now i m stuck on how to make the script so that only such domain which is allowed and have it license to run the script can run the script rather then those who dont have license, i want to give complete source code to the user so that they can make addon and do adjustments they want but i also want my script not to leak, please help me how to firgure this problem out.

     

    Thankx in Advance

×
×
  • 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.