Jump to content

iambaz

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

iambaz's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi Everyone, This has been causing me a headache for about a week now. I have created a glossary on my website. I need the expression to find a given word in a body of HTML text and surround the given word with the <strong></strong> tags. Problem is, I only want it to find the word if it is between <p></p> tags and isn't between <a></a> (or <h></h>, <li>tags etc tags). I did manage to get it working so it picks up text just between the <p> tags, however it still picked up the word when it was in an <a> tag which was in a <p> tag. The current expression I have to do this is: '(!<h[1-9]>)|(!>)|(?!<.*?) CONTENT (?![^<>]*?>)|(!</a>)|(!</h[1-9]>)'s I hope I have explained myself well, I am so desperate that if anyone could fix this for me, or point me in the correct direction that I will sort them out with a small payment in thanks for their time (Hope this isn't against board rules or anything). Thanks for any help in advance. Barry
  2. Hmmm, yes I never really tought the implications of it through properly. Back to the drawing board! Thanks for your help!
  3. Ok, well slightly off topic but a continuation of the original problem, does anybody know if it is possible to upload a file through a form but without the file upload dialogue box, ie php could get a local file path from database, and then through a form, this file is uploaded and then I could get it with $_FILES var using PHP? Basically I would be eliminating the users choice of what file to upload and replacing it with a pre set filepath. I know this is probably going to be a javascript so apologies, but if anybody knows if it is possible or not, that would be great. Thanks in advance
  4. Hi, I am trying to create a script that will upload a file from my local machine onto my web server. I do not want to use a form, I want it to be automated within the script. I have looked for tutorials, but all seem to deal with copying files around the server but not from the local machine. Is this possible? If so, could somebody point me in the right direction? Any help would be apreciated. Cheers
×
×
  • 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.