Jump to content

olli460

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

olli460's Achievements

Member

Member (2/5)

0

Reputation

  1. Hello, Ive got about 20 text boxs with HTML code of images in them, I want to be able to change the width="250" to a value i specify, However all the widths are different so i cant just do a basic str_replace. Does anyone know a way i can do it.
  2. Hello, Im trying to write a little script for my forums i need to get the reply from my forums. Im trying this $pattern = '/<span class="postbody">(.*?)</span>/gis'; preg_match($pattern, $post, $video); However inside the stuff its grabbing there is stuff code like </p> etc and it keeps trying to use that as a modifier so i get the following error: Does anyone know a way around this?
  3. I want a script on my site that checks if my rapidshare and hotfile links are active, Im not really sure where to start. Does anyone know of a tutorial that covers this kind of thing? Thanks in advance Olli460
  4. Thanks JAY6390 That works Great! I also have NL in some of the brackets, That code u gave me only seems to grab one of the letters, How can i match 2 letters?
  5. Hello, Im trying to get a letter from a filename, The file name are structed as follows: I want to extract the (U) $name = "Random_File_Name_(U)_(Random Text).rar"; preg_match('([a-zA-Z])', $name, $flag); print_r($flag); But it dosen't work and im not really sure about how to do this kind of thing. Thanks in advance
  6. Hmm, i never thought of doing that, Althought ive got quite a few pages that is probally gunna take a while to do that for every page
  7. Hello, Ive got a script that handles all my pages such as index.php?page=aboutus I was wondering how i could add breadcrumbs to my page so the user can see the path to their page for example Home >> Services >> About Us
  8. Hello, Im trying to create a database of games and found a site that already has it, So im trying to grab the name of a game based on what i type, Here is what ive currently got: <?php if($_POST['r_name']) { $lines = file_get_contents("http://www.ds-scene.net/?s=releases&s2=2&o=a&f8=$_POST[r_name]"); preg_match("|<td class=\"romlistpad\"><div align=\"left\" class=\"romlistTxt\"><a href=\"/(.*?)\" title=\"(.*?) \"><b>(.*?)</b></a><br /><span class=|s", $lines, $name); $gamename = $name[3]; echo $gamename; } ?> It grabs the name fine however it only grabs one, How can i make it get several names with one search?
  9. Hello, Im trying to do a PHPScript that selects the category from a drop down list, I know how to do the drop down list but how can i grab the category, I can't see anything in wp_posts that relates to the categories. The categories are stored in wp_terms but i can't see anything releating to the posts to grab the category for that specific post. Anyone got any ideas?
  10. How will a cron auto submit the form? I can get a cron running to load the page with the form on but it wont automatically submit. Your comment was really useless
  11. Hello, I have a form that i submit every 24 hours, Would it be possible some how to automatically submit this form at 11:45 every day? Thx in advance
  12. Hello, Ive got a wordpress blog and i uploaded a file called submit.php When i try and load it in my browser it just redirects saying no file found. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
  13. Hello, That made them all lower case but did not make each word first character upper
  14. Hello, Ive got a variable that contins data, The data is not formatted correctly How can i change: OnE tWo tHreE foUr Into: One Two Three Four So just the front character of each letter is upper case and the rest are lower case.
×
×
  • 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.