Announcement

Announcement Module
Collapse

Forum Rules.

This terms of being safe and users being happy.

There will be rules you must apply too.
1. No fighting this also includes shoutbox ...
2. No Spam links into shoutbox ....
3. Grabbers are banned to be sold but allowed to share.
4. Selling scripts that is posted here is NOT ALLOWED!!
5. Selling service's is allowed etc hosting,domains,scripts install allowed only you and the client know the trust.
6. There will be no swearing at staff or members or anywhere !! !!
7. Coding scripts and php code MUST be coded into or Any one that posted with out block code like rules 7 will auto be deleted to you understand to use them type of bbcodes this will save time for admin's doing it also we are getting sick of seeing a page of 1094+ long with your error code.

If you broken the rules admins will inform your actions.

You will be warn 3 times MAX if you choice to not to listen then you will be BANNED for a week.

Keep it up later you will be Gone for good!

Sign up again this will just slap you ip deny ban ! means your time here is done for good.

Remember keep the forum clean and sweet and nice !!

We all here to help you with your errors and coding but remember we are not slaves!

If you wish to change your USERNAME inbox GUMSLONE.

Update
Any users wanted a freelancer or script builder and willing to pay for it don't pay in front contact one of admins and they will swap the deal of.. Anyone found founding the system will be banned from the site.
Be safe trade with me ( subzero ) if you want to deal a freelancer they will have to go though me.
As to make sure i know ( india ) having problems with paypal but it is better then moneybookers where you can't get a refund from unless the other person sends it back..

All this to keep your time here a enjoyable time and have fun !
See more
See less

Help with text grabing.

Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Help with text grabing.

    Sir, I am very new in php. Please help me about this. Suppose any visitor submited fb.com/xxx in input box. now how can I grab xxx in next page without fb.com? I think it will very easy for senior member. But hard to me. Please somebody help. At least give me a hints.

  • #2
    PHP Code:
    //users post example
    $post 'fb.com/sometext';

    //here we remove what we dont want
    //str_replace('THE TEXT YOU DONT WANT', 'TEXT YOU DO WANT(OR)LEAVE BLANK', $post);
    $post str_replace('fb.com/'''$post);

    //here we show new result which should display
    //sometext
    echo $post;
    //
    //
    //
    // 
    Last edited by Ghost; 15-07-12, 07:39. Reason: TO MAKE PHP CODE BOX BIGGER (STUPID BOX LOL)

    Comment


    • #3
      maybe this will help

      PHP Code:
      <?php
      $var 
      parse_url("http://fb.com/xxx?q=pov");

      print_r($var); // Array ( [scheme] => http [host] => fb.com [path] => /xxx [query] => q=pov )

      Comment


      • #4
        tanx it helpful. but what if a user insert "Ghost Vinay" as a name and i want to get the last surname how do i go about that?

        Added after 10 minutes:

        2) what if u want to get the last 3 letters of a word, eg "GHOST" and i want to get only the "OST" and/or the first 2 words also eg "GH"
        Last edited by Wintch; 17-07-12, 02:39.

        Comment


        • #5
          Originally posted by Wintch View Post
          2) what if u want to get the last 3 letters of a word, eg "GHOST" and i want to get only the "OST" and/or the first 2 words also eg "GH"
          I think this is just the thing u wanted: PHP.NET Function Substr

          PHP Code:
          <?php
          $rest 
          substr("ghost", -1);    // returns "t"
          $rest substr("ghost", -2);    // returns "st"
          $rest substr("ghost", -31); // returns "o"
          ?>

          Comment


          • #6
            tanx man, it help

            Comment

            Working...
            X