Jump to content

nudl3s

Members
  • Content Count

    13
  • Joined

  • Last visited

Community Reputation

0 Neutral

About nudl3s

  • Rank
    Member
  1. OMG little mistake here passthru("ffmpeg -i $tmp 2>&1"); replace ffmpeg with $ffmpeg (my path to ffmpeg) ....
  2. It returns me : "array(0) { } " I worked on that before weeks and It was working fine, I have some videos I added then and they have duration time. But now when I try to add some file it returns me duration 00:00:00.
  3. Hello all, I dont know why I'm getting this error with calculating the duration for the video, everything works fine with uploading, file is going in my database and folder, the duration of my video is ok. ​http://prnt.sc/e59i4f here is my code: // video duration ob_start(); passthru("ffmpeg -i $tmp 2>&1"); $duration = ob_get_contents(); ob_end_clean(); $search='/Duration: (.*?)[.]/'; $duration=preg_match($search, $duration, $matches, PREG_OFFSET_CAPTURE); //error is on this line botom $dura
  4. All done Thanks all for the help. The limit of 10 i made like: <?php foreach($sub_array as $break=>$row): ?> <?php if ($break == 10): ?> <?php break; ?> <?php endif ?> And the issue for the product from same category: This <?php $title_cat = stripslashes($row->CatTitle); ?> Replace with : <?php $title_cat = $sub_array[0]->CatTitle ?>
  5. How to make contact with you more private, you have skype or something
  6. Psycho thanks a lot for your comments I need more time to be a good php programmer, I tried with your code but the page cannot be open shows up. About mac_gyver I am trying with your code and it helps a lot. All I wanted is to show all categoryes that have products with "promo_page = 1" and the maximum for each category to be 10. Example: Category 1: maximum 10 products from each category - product from cat 1 - product from cat 1 - product from cat 1 Category 2: - product from cat 2
  7. So how to do that, i think i tried everything but it didn't working
  8. Hello to all, Till now I made it like that. But as you can see, these two products are from the same category, but the category shows every time there is product from it. How to make it displays only one category and 10 products from it. Here is the code, do I have to make another for and how, where to put it, if anyone can help me: <?php $this->view("common/header"); ?> <link rel="canonical" href="<? echo site_url() ?>" /> <!-- <link rel="stylesheet" href="/css/bx_styles/bx_styles.css" type="text/css" /> --> <!-- <script type="text/javascri
  9. So is there any way I can run the page without including it.
  10. Hello all, I am making promo page, but it's giving me this error "Fatal error: Using $this when not in object context in /home/fhlbg/public_html/application/views/promo_test.php on line 2" file is promo_test.php <?php $this->view("common/header"); ?> <link rel="canonical" href="<? echo site_url() ?>" /> <!-- <link rel="stylesheet" href="/css/bx_styles/bx_styles.css" type="text/css" /> --> <!-- <script type="text/javascript" src="/js/jquery.bxSlider.js"></script> --> <!-- <script type="text/javascript" src="/js/jquery.bxslider.
  11. Okey here is my code till now I have done... <div class="inner shadow"> <?php $query = 'SELECT id, title_bg AS `title_cat` FROM categories'; $result = $this->db->query($query); ?> <?php foreach ($result->result() as $row): ?> <?php $title_cat = stripslashes($row->title_cat); ?> <?php $id = $row->id; ?> <div class="prod-sec"> <div clas
  12. I want to display 10 products from each category from database, I started to display the categories but how to make displaying the products from each one. Here is the code I make so far. I'm not sure am I doing it right with doble sql select , or it can be done only with one. <div class="inner shadow"> <?php $query = 'SELECT id, title_bg AS `title_cat` FROM categories'; $result = $this->db->query($query); ?> <?php foreach ($re
×
×
  • 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.