Disable IPhone's Automatic Hyperlinks?

Jan 10, 2011

We send out a notification email whenever we have "phishing" emails reported to us. In these emails, we include a copy-paste of the text inside the original phishing email as a sample of what is reported to us. Our code strips all hyperlinks out of the email via PHP, but still includes (in plain text) the link. When users receive this email in their client (Thunderbird, Outlook, Horde/IMP, etc), the hyperlink is removed. However, the iPhone likes to take web addresses in plain text and automatically turn them into hyperlinks. Is there any possible way to stop this action from happening via a HTML tag or by using PHP to replace certain parts of the hyperlink?

ADVERTISEMENT

VIM Disable Automatic Newline At End Of File?

Jun 26, 2009

So I work in a PHP shop, and we all use different editors, and we all have to work on windows. I use vim, and everyone in the shop keeps complaining that whenever I edit a file there is a newline at the bottom. I've searched around and found that this is a documented behavior of vi & vim... but I was wondering if there was some way to disable this feature. (It wouldbe best if I could disable it for specific file extensions).

View 7 Replies View Related

Disable Automatic Opening / Saving Of File Downloads?

Sep 26, 2010

If I have a mp3 or wav file on a page... when i visit that page in Internet Explorer it starts downloading that mp3 or wav or mov file automatically instead of playing that file. How can i prevent that either with .htaccess or php or html?

View 2 Replies View Related

Converting URLs To HTML Hyperlinks While Avoiding Already-formatted Hyperlinks?

Jul 8, 2011

So I have this code:

$sURLRegExp = '/http://([a-z0-9-.]+.[a-z]{2,3}(/S*)?)/i';
$iURLMatches = preg_match($sURLRegExp, $sMessage, $aURLMatches);
if ($iURLMatches > 0) {
$sURL = $aURLMatches[1];
$sURL = str_replace('www.', '', $sURL);
$sMessage = preg_replace($sURLRegExp, '<a href="http://$1" target="_blank">' .
$sURL . '</a>', $sMessage);
}

It does a perfect job of converting all incoming messages so that plain URLs entered will turn into HTML hyperlinks that even remove the "http://" and "www." part, for brevity.

Thing is, administrators for the site on which this works are able to enter in HTML. If they do, it turns it into a horrid mess. Something like <a href="<a href="http://www.site.com">site.com</a>">text</a>.

I tried altering the regular expression to make sure that there is no quotation mark after the given URL (which most likely indicates it's part of a hyperlink anchor tag) like so:

$sURLRegExp = '/http://([a-z0-9-.]+.[a-z]{2,3}(/S*)?([^"])/i';

...but it doesn't seem to work. I know about look-ahead assertions, but have no idea how to use them at all. Would that be the best thing to use in this case? How would I detect the presence of an anchor tag around this URL?

Note: I know I could just use strpos(...) !== false on the entire message, but that doesn't account for mixes of plain URLs and anchor tags in the same message.

View 1 Replies View Related

Convert Plain Text Hyperlinks Into HTML Hyperlinks?

Dec 25, 2009

I have a simple commenting system here...http://affbuzz.com/comments/7299a55137def55917a5dc6c4fe0f261af8a4217...and people can submit hyperlinks inside the plain text field. When I display these records back from the database and into the web page, what RegExp in PHP can I use to convert these links into HTML-type anchor links?Bonus: For the algorithm to not do this with any other kind of link, just http and https.

View 6 Replies View Related

Iphone SDK - Upload Image From Iphone To A Server Send Empty File?

Oct 21, 2010

I try to send a photo and GPS location to server via PHP here is the PHP part:Copy from here Saving the Uploaded File The examples above create a temporary copy of the uploaded files in the PHP temp folder on the server. The temporary copied files disappears when the script ends. To store the uploaded file we need to copy it to a different location:

<?php
if ((($_FILES["file"]["type"] == "image/gif")
|| ($_FILES["file"]["type"] == "image/jpeg")
|| ($_FILES["file"]["type"] == "image/pjpeg"))
&& ($_FILES["file"]["size"] < 20000))
{
if ($_FILES["file"]["error"] > 0)

[Code]...

The script above checks if the file already exists, if it does not, it copies the file to the specified folder.

Note: This example saves the file to a new folder called "upload"

now back to iOS part ,I only can send GPS location to server ,it's easy because just a string. and you can download sample code here But an image is not,I do some search and found this discussion I directly put the code in my send GPS&image button the best thing is it can feedback I send the file success or failed

this is the most message I got after I send photo to server

1.Invalid file

2.Return Code: Upload: Type: Size: 0 KbTemp file: Stored in: upload/

I follow some guide to save image to NSData

NSData *photoData= UIImageJPEGRepresentation(self.theimageView.image, 1.0);

and I also check there is data inside or not so simply add this code into Button action

if (photoData == nil) {
NSLog(@"The photo is nothing !!!");
}
else {
NSLog(@"Photo inside !!!!");

But How To Upload An Image To Server ??? maybe I need to give a file name then upload it ???but how to...

I never use camera function and upload data before Hope someone can figure out this problem

View 4 Replies View Related

Disable Customer In Magento / Administrator The Option To Disable Login Accounts?

Sep 1, 2010

I want to include to the administrator the option to disable login accounts, no data would be erased from the account, but if would be disabled for users not using it more, once cleared, the user would not notice any newsletters or anything else, just one last mail notifying the deactivating your account.

View 2 Replies View Related

IPhone Websites - Detect The Browser And That Its The Specific Safari IPhone Browser?

Apr 9, 2010

I would like to begin to develop a website in PHP for an iPhone.

1. Can I detect the browser and that its the specific Safari iPhone browser?

2. Can I limit the webpage I develop in PHP to only be the screen size of the iPhone?

View 1 Replies View Related

Discern An IPhone 3G/S Visitor To An IPhone 4 Visitor?

Aug 9, 2010

I want to load higher resolution pictures for iPhone 4 users, but the only way I know of detecting users is by a user-agent. But I'm under the impression that the user-agent of MobileSafari on any iOS4 phone is the same across the board.

What could I do to detect an iPhone 4?

View 2 Replies View Related

Hyperlinks In PHP Anyone?

Sep 3, 2005

I am trying to write a piece of code which writes the message on
screen "access denied" telling the user he can't access this page
without logging in and then offering a hyperlink to the login page.

Like this:

if ($queryrows)
{
echo("Welcome to the birthdays page");
}
else
{
echo("Access denied<br>");
echo("<a href="index.php">click here to access the login page</a>");
}

//this code works perfect until I type in the line with the hyperlink (
beginning echo("<a href...)). PHP won't accept this code.

My question is how can i insert a hyperlink (or equivalent link) to
another page in the above if...else statement?

View 5 Replies View Related

Different Hyperlinks To Different Records

Jan 20, 2003

I'm displaying few records from a mysql table - pretty straight forward one. For each record i display on the form, i want to add a link to it.so, each link would display a different page(an html). PHP Code:

View 4 Replies View Related

Broken Hyperlinks

Jun 20, 2007

I updated a homepage (only) and when I uploaded, it still showed the old page but the problem was the site was .php and my file was .htm so after I spoke with support they deleted some files and created a htaccess file but afterwards none of the links worked(when I click on them, it just went to the top of the page)

so I asked support to put the files back the way they were and I restored the old site to test and still no links work. What could be the problem? Note: I created the .php but the links still don't work. I did not change any of the links or navigation of the site or that page. The old page is up but no links work. I don't know what was deleted or whats in the htaccess file.

View 14 Replies View Related

Hyperlinks In Text

Aug 21, 2004

I managed to get a "news" section on my site using a php script. Basically it only gets the date and text from the mysql db and puts it on the site now i want to get a hyperlink in the text. how do i do this? i already found on this excellent forum (;-)) how to get hyperlinks from the mysql using:

echo "<a href=".$row_rsContent['url'].">".$row_rsContent['url']."</a>";

however this only works for the whole text. is there a way to get 1 specific word to link to a website?

View 1 Replies View Related

Stripping Out Hyperlinks

Mar 29, 2006

I am trying to strip out hypelinks in a string. Is there a simple function or class to remove hyperlinks but retain the link text or image? I considered stripping out all html with a regex but I'd like to leave tables, images etc. I just want to delink hyperlinks.

View 1 Replies View Related

Internal Hyperlinks

Dec 18, 2006

i have a script which will display a list of countries from the database along with other information, because this is a large list,

i wanted to have the alphabet going across the top of the page, each letter being a hyperlink and then when a user clicks on it i want it to go to the countries that begin with that letter chosen.

View 2 Replies View Related

Using Hyperlinks To Invoke

Nov 7, 2005

Suppose I have an inventory list ($inventory), consisting of unique parts only, which have been fetched from a database ($db), and I want to display something like this:

function deletepart($part) {
$q = "DELETE FROM inventory WHERE part = '" . $part . "'";
$db->execute($q);
}

foreach($inventory as $i)
$str .= "<tr><td>" . $i['part'] . "</td><td><a href="deletepart(" . $i['part'] . ")">delete this part</a></td></tr>
";

echo "<table>
" . $str . "</table>
";

The problem of course is in the <a href>-tag: it will lead to a new page, but I only want to manipulate the database $db. So without using buttons, how can I make the hyperlink act as a button? I am happy to wrap the table in a form, as long as it does not contain any Javascript.

View 1 Replies View Related

Extract Hyperlinks From .doc?

Oct 16, 2009

Is there any way to extract hyperlinks from .doc. I got bunch of hyperlinks in doc that I need to import in my database.

I have tried converting doc to HTML, but hyperlinks are not transferred.

View 4 Replies View Related

How To Add Hyperlinks To A CSV Export

Jul 6, 2011

I need to export a csv file. In that export file i need a link for the text. Example:(demo.doc) i need link for that "demo.doc".

View 1 Replies View Related

Paging With Column Hyperlinks

Jul 15, 2007

Im in a real bind here trying to figure out a solution to my problem.

I have a table which has paging. However, since the data is coming
from a database, I would like for the values in one of the columns to
also include hyperlinks.

Here is my sample code for extracting and displaying the data. Now I
would like to display col1 as a hyperlink, Col1 is just two letter
symbol char(2), however each symbol has its own unique hyperlink. I
have the hyperlink addresses saved in the database as well. Any ideas
would be extremely helpful! Thanks Al

///create query
$query = "SELECT col1, col2, col3 FROM table1 ";

///store results of query
$result = mysql_query($query . $pagingQuery) or die('Error, query
failed');

//display query results
echo '<table width="100%"><tr><td>column1</td><tdcolumn2</td>
<td>column3</td></tr>'
while(list($col1, $col2, $col3) = mysql_fetch_array($result))
{echo "<tr><td>$col1</td><td>$col2</td><td>$col3</td></tr>";
}
echo '</table>'

View 2 Replies View Related

How To Use Hyperlinks To Remove Data From DB

May 31, 2002

How can I use hyperlinks to delete data from a DB. I have a set of data from a user, with a remove link. The action on the link is going to be a $PHP_SELF, cause I want it to return to the same page...but of course with one less row of data.

Could someone point me in the right direction.....I have this code for the link...now i just need to know where to put my query.....and/or if i need to add any code to my link. PHP Code:

View 9 Replies View Related

Replacing Urls With Hyperlinks

Jun 26, 2006

i found this script from Googling around but i cannot find the answer to this problem Code:

View 2 Replies View Related

Find And Replace Hyperlinks

Oct 18, 2007

how to find hyperlinks in content and replacing it with my own content? lets say PHP Code:

$content = "click on [url]http://www.somelink.com[/url] to read more info";

i would like to replace http://www.somelink.com to some other text in $content.

View 2 Replies View Related

Blocking/Restricting Hyperlinks

Dec 21, 2006

I basically need block ALL visitors coming from certain locations, as the website I work for's population is mainly kids and young teens. So yeah, you see my problem. I would really like to keep them all as safe as possible. One of the main things I'd like to do is block access to it from the 4chan websites, as well as a couple of others.

If you know of 4chan, you know why, if not, then assume 4chan is no good. So anyway. All I really know on this subject is $_SERVER['HTTP_REFERER'], which returns the referral URL, if there is one. BUT, is there a way to block from all locations on a single website? And if so, how?

View 2 Replies View Related

Create Changing Hyperlinks

Aug 3, 2006

There is an email textbox field where the user enter his/her email address. Where they click submit: I want some hyperlinks to appear with the email address as the trackingID in the URL, i.e. the email address is added to the URLs. It's probably a 2 minute job, please can you show me how 2 do it?

View 6 Replies View Related

Add Hyperlinks To Non-linked URLs

Jun 14, 2005

I have some large parts of text with URLs in it (but without hyperlinks). I need to add links to all URLs but have no idea about how to do that, so i'm asking for your help in the hope that someone have done it already and can share the code with others or is just a PHP wizard ;) Code:

View 1 Replies View Related

Changing Hyperlinks Automatically

Jan 9, 2005

I have a self-programmed PHP/MySQL-based calendar on my website. What I'd like to add is that when someone enters a hyperlink (via text box -> MySQL database) and doesn't use HTML-code (which is possible,

but most people don't know HTML and don't look at the "how-to-post-links-tips" ;)), the link is automatically generated (clickable). Like it is on most of today's discussion forum softwares.

View 1 Replies View Related

Using Hyperlinks For AJAX Instead Of Dropdowns

Jul 20, 2005

I know html and php, but js is out of my league. I read this article as I want to start AJAXing my site. http://www.phpbuilder.com/columns/ka...6.php3?aid=917

However the example is for a dropdown link selector with get/post style method. I need basic hyperlink selection to do the same thing. Can anyone give me some help with the syntax I need for the <a></a> tags as well as what I need to do with the request object code?

View 4 Replies View Related

How To Identify Hyperlinks In Files

Dec 22, 2006

I want to identify all hyperlinks in a string and get the url's. I rember there is such a function in PHP but can't find it now. Is my memory wrong? If no such functions in PHP, does anybody have a script to do that?

View 1 Replies View Related

Noob Codeigniter Hyperlinks?

Mar 9, 2011

I have recently started messing round with codeigniter and ran into problems when doing standard hyperlinks through either html or using the anchor function as all hyperlinks append my server route on the start. So say for example I had written a standard hyperlink in my view such as
<a href="[url]....
http:[url]....

when I click the link? I'm not sure what I'm doing wrong but guessing it maybe something to do with routing?

View 2 Replies View Related

Hyperlinks Or Menu On About Joomla?

Apr 29, 2009

I have done my website using Joomla content management system. I have problems with menu links. On My local machine pages have are coming properly but ow they have stopped coming out or display as expected.

On local machine the pages have links like index.php?option=com_content&view=article&id=25 BUT NOW the pages are displaying as follows

index.php/the-news Where I am going wrong? What should I do so that extentions and other this should come out as the way it is at the local macahine??

View 2 Replies View Related

Include Hyperlinks From Subdomain?

Apr 9, 2011

I am including a file into my home page which is located in a subdomain. (php include) which works perfectly except for the fact that the hyperlinks in the page dnt work well since they are relative to the subdomain.[URL]... (which is a subfolder in the root folder) There are a lot of files to be included from the subdomain with a lot of hyperlinks which cannot be converted from relative to absolute path.

I would be happy to know any method to help me solve this issue, preferably a script which will replace the relative path to an aboslute path of HYPERLINKS in the page when they are being parsed..

eg.
convert: <a href="../specialfolder/file.php>file</a>
to: <a href="www.subdomain.com/specialfolder/file.php>file</a>

View 9 Replies View Related

Find Whitespace In Hyperlinks?

Feb 9, 2011

I have hyperlinks entered by users that have been justified. This has created the following scenario in my html:

<a href="http:// www. web site link .com ">Website link bro ken </a>

How can I use php to fix this on page load or in a script I run on my database to achieve this:

<a href="http://www.websitelink.com">Website link bro ken</a> (the link text I guess is impossible to fix without checkning if parts of words could fit together - as long as the link works, the on screen justification will have to pass.

View 1 Replies View Related

Using Hyperlinks Instead Of Radio Buttons?

Feb 12, 2011

I have the below code which pulls pet types from the database, and when you pick the particular type by selecting a radio button amd press 'Select Pet Type' you are brought to a page listing all examples of that pet. Is there any way of changing this so the pet types are listed as hyperlinks instead and when you click each particular hyperlink you are brought to a page where that pet type is listed?

<?php
/* Program: PetCatalog.php
* Desc:    Displays a list of pet categories from the
PetType table. Includes descriptions.
*          Displays radio buttons for user to check.
*/

[Code]....

View 10 Replies View Related

Sending Variables To Another Page Through Hyperlinks

Dec 18, 2002

I have hyperlinks directing to a page with a form to fill ( that page is called main_form.php). I want to be able to send a variable through the click of the hyperlink to 'main_form.php'.How do I do this?

View 3 Replies View Related

Hiding Hyperlinks For Page Displayed

Mar 10, 2005

Can anyone point me in a direction to find a tutorial on writing a script that will hide, (not show) The text link for the home page if my vistor is on the home page. i have read a book and they have on th4ere but it only deals with changing the type of image not disabling it and hiding it from veiw.

View 1 Replies View Related

Text To Html Hyperlinks On The Fly For Editors

Oct 20, 2003

Trying to create a CMS for editors of our website, using php/mysql, there's a content text area which allows them to enter content and formats it using nl2br, but I was wondering if theres a way I can shorten hyperlinks, so that they don't have to add "<a href..." every time to their content. Something like having them enter link(http://www.bbc.co.uk, the BBC) will enter <a href="http://www.bbc.co.uk">the bbc</a> in the content... any ideas?

View 3 Replies View Related

Parsing Flagged Hyperlinks With Regex

Feb 3, 2001

I want to parse all of the content in an HTML page which is flagged by a <LINKSTART> and <LINKEND> tag (thus eliminating all URLS not contained within such tags and the rest of the page). How might I do this with regex? Code:

View 1 Replies View Related

Parse String , Return Hyperlinks

Jul 17, 2005

I have a string with the following information.

$myString= "This is my example string please. Please visit
http://www.mylink.com . More example text goes here. another link
http://www.link2.com . more text.. blah..";

What I'm wanting is a function to return the following string :

$myString= This is my example string please. Please visit <a
href'http://www.mylink.com'>link</a> . More example text goes here.
another link <a href='http://www.link2.com'>link</a> . more text.. blah..";

Each string may contain 0 or more http:// instances. The function would
only parse on an http:// match.

I know this could be done with regular expressions, but I'm not sure how
to insert the modified data back into the original string at the correct
location.

View 3 Replies View Related

Selected Hyperlinks Activate PHP Script

Nov 16, 2004

I have a sitemap page with approximately 20 different pages listed on it, 10 of which are password protected, 10 of which are not. I want the 10 non password protected page links on my site map page to execute the following PHP command when they are clicked:

<?
session_unregister("CustomerID");
session_unregister("UserID");
session_unregister("FirstName");
session_unregister("AccessLevel");
session_destroy();
?>

How do I integrate this PHP function into the following code so that, when one of these links is clicked, the PHP script above is executed:

<li class="content_text"><a href="index.php">Home Page</a> - The home page for #*$! </li>
<li class="content_text"><a href="login.php">Login Page</a> - The login page for #*$! </li>

However, I don't want the PHP script to execute when a user clicks one of these links:

View 1 Replies View Related

Finding Urls And Making Them Hyperlinks

Nov 22, 2005

I want to take a block of text and add html tags to make hyperlinks
where hyperlink strings exist. So, if I have a variable

$a = "This is http://www.yahoo.com"

I would like to run that through a function such that the value of $a is:

"This is <a href='http://www.yahoo.com'>http://www.yahoo.com</a>"

How can I do this?

View 2 Replies View Related

Sending Php Email With Hyperlinks Inbedded

Jul 17, 2005

I'm sending an autoresponder to our customers, through the php mail
function. However, when I add a hyperlink into the $message, instead
of a live link appearing, all that appears is the html code, without
the link.

What am I doing wrong?

View 1 Replies View Related

Infinite Hyperlinks + Art Project Assistance

Jan 25, 2007

I want to create a page, that allows a user to input a large amount of text (think short story length) and submit it.That submitted text will be outputted to a static page after parsing.

Within the parsing I want a few things to happen;Every word, name or number is taken from the text and ran through a google search and then the first link that google provides will be turned into a link for that word on the outputted page.

The returned page then, is the same text that the user has submitted with every word turned into a keyword search result for that word. Code:

View 1 Replies View Related

Multiple Hyperlinks On One Image File

Apr 2, 2006

I'm not sure if this is the right forum to ask this question. Anyway, here's my question:- I've got a jpeg file which is a picture of a map. I want to insert a few different hyperlinks in different parts of this jpeg file so that when I click on one part of the file, it leads me to one page & when I click on another part of the file, it leads me to another page.

View 2 Replies View Related

Track Internal Hyperlinks Of A Website?

Nov 28, 2010

how to track internal hyper links of a website? Actually i want to find out the total no.of internal and external links of a website. but in the case of internal links there are alots of complications.what i mean is that some of its href attribute contains javascript,# etc.

View 1 Replies View Related

Creating Hyperlinks From Plain Text?

Mar 5, 2011

I use this code to make plain texts hyperlinks.

$text = eregi_replace('(((f|ht){1}tp://)[-a-zA-Z0-9@:%_+.~#?&//=]+)',
'<a target="_blank" href="\1">\1</a>', $text);
$text = eregi_replace('(((f|ht){1}tps://)[-a-zA-Z0-9@:%_+.~#?&//=]+)',

[code]...

View 2 Replies View Related

ADVERTISEMENT