Hiding Hyperlinks For Page Displayed
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 Complete Forum Thread with Replies
Related Forum Messages:
Preg_replace - Search A Whole Page And Remove All Hyperlinks
If I want to search a whole page using curl and remove all hyperlinks would I use preg_replace or preg_match_all ? PHP Code: preg_replace('/<a[^>]*>[b](.*)[/b]</a>/', '', $data); how do I just output the (.*) and remove the a anchor/hyperlinks? I tried: PHP Code: preg_replace('/<a[^>]*>(.*)</a>/', $1, $data); to represent what I am trying to display, but now I'm confused...anyone give a hand?
View Replies !
Hiding A Page Url From Browser
Is there a way to mask or hide a Page location, so a User can't simply type the path into the Browser to get there? So that the only way to get to this Page is via a link? How can the url or path that shows up in the browser be hidden or inaccurate something.
View Replies !
Page Not Displayed!
I have a site in PHP with a page 'approveMembers.php' within 'approve' directory under the site directory. This site has been hosted on net. Now the problem is when i access this page from my machine that uses a proxy server to connect to the internet, the contents get displayed properly. However, when i use a machine that connects to the internet directly (without using a proxy), the contents do not appear in the page even though the status bar read 'Done' after loading the page. Code:
View Replies !
Page Cannot Be Displayed
OS: Windows 2003 Server Program: EasyPHP1.8 Changed port to 81 in httpd.conf, rebooted and everything.... 127.0.0.1:80 still connects to the index page 127.0.0.1:81 doesnt connect (Page cannot be displayed) 192.168.1.181:80 & 192.168.1.181:81 doesnt connect either (192.168.1.181 is the computers IP) Is there any configuration I have to do with Windows Server 2003? This is all after a clean install of the OS. Firewall is off (default) or anyone have any advice what the problem could be?
View Replies !
The Page Cannot Be Displayed!
I have a problem when try to upload a quite BIG file (more than ~600K, less than 600K is OK). My browser said : "The page can not be displayed" - in IE and "The connection was reset" - in Mozilla Firefox. Have someone found the problem like this before? And how can I solve it?? My very very simple code is:
View Replies !
PhpMyAdmin - Page Cannot Be Displayed
I programmed my config.inc.php file with the codes below. But i cant go to the website.. It shows an error msg, "page cannot be displayed" What haf i done wrong.. N i m actually not sure about my local host.. Cos i m using my school wireless network.. $cfg['PmaAbsoluteUri'] = 'http://www.example.com/phpMyAdmin-2.5.7-pl1/' $i = 0; $cfg['Servers'][$i]['host'] = 'example.com' // MySQL hostname $cfg['Servers'][$i]['port'] = '' $cfg['Servers'][$i]['socket'] = '' $cfg['Servers'][$i]['connect_type'] = 'tcp' $cfg['Servers'][$i]['controluser'] = '' $cfg['Servers'][$i]['controlpass'] = '' $cfg['Servers'][$i]['auth_type'] = 'config' // Authentication method (config, http or cookie based)? $cfg['Servers'][$i]['user'] = 'username' // MySQL user $cfg['Servers'][$i]['password'] = 'my_pass' // MySQL password (only needed // with 'config' auth_type)
View Replies !
&JAVA - Page Cannot Be Displayed
I have installed j2sdk1.4.2_14 to work with my php-4.3.9-3.15. And i have follow all the step from head to tail. Now, i suppose to just create a simple php coding on java function. When i exec the page...it did not show any error but just 'The page cannot be displayed'. I hava added a line of : export LD_LIBRARY_PATH=/usr/java/j2sdk1.4.2_14/jre/lib/i386/server:/usr/java/j2sdk1.4.2_14/jre/lib/i386 to etc/init.d/httpd. Seems not working as well.
View Replies !
CHMOD 777 - Page Cannot Be Displayed. Why?
I have placed a CHMOD 777 on a folder and now all of the files inside that folder return 'page cannot be displayed' error, an internal server error (500). I have tried on individual files as well.. the same thing happens. Anyone know what is going on?
View Replies !
Pagination Displayed In One Long Page
My site is a virtual pet style site where there are user shops and at the moment all items are displayed in one long page, not so great when theres over 100 products in one store. Below is a copy of the code. If anyone could please give me some pointers, Id really appreciate it. I've gone through tutorials but they seems to be to advaced for what I need and I simply get lost. Code:
View Replies !
Page Blank But No Errors Displayed
I have a script that's just returning a blank page. So I'm guessing I've got an error somewhere. In fact I know I have because if I comment out one or two classes, I get an error message coming up. But why do I get a blank page at first? How come it's not giving me an error message for my obviously faulty class? Code:
View Replies !
Flip Flop The Displayed Page
I want to test different content on a landing page to see which my visitors like the most. Version A is to be shown 50% of the time, Version B to be shown 50% of the time. So, visitor #1 gets shown Version A, visitor #2 is shown Version B, visitor #3 shown Version A and so on. My idea is that I would have some code that would say include(content-a.php) or include(content-b.php) depending on which is due to be shown next.
View Replies !
How To Limit Number Of Lines Displayed On The Page?
I just wrote this script to read information from a TXT file that contains list of JPEG files, and the list is rather huge. So I want to limit the number of displayed files to like 20 per page (with NEXT/PREVIOUS links to the next or previous 20), but I have no clue how to do it. Code:
View Replies !
Phone Number Is Not Displayed In The Paypal Page
I am using Paypal in my site. The problem is the phone number is not displayed in the paypal page, but am sending the phone number in a hidden value with the name "H_PhoneNumber". Can anyone tell what could be the problem? Why am not getting Phone number in the paypal page.
View Replies !
Linking Functions To Data Displayed On Page
I have a text input box, in which you can enter a user ID. You click 'find user' and this populates a table with this users details. So far pretty straight forward. What I want, is a set of functions relating to this user, such as a simple button: 'Delete User' (the functionality of which is self explanatory). Code:
View Replies !
Page Cannot Be Displayed While Attach Images To Posts
i am including the ability for users to attach images to their posts. Now they can attach more than one image. First time round. the image gets uploaded and everything works fine. second time round though. i get a 'page cannot be displayed' error. The address in the address bar is correct. i just cant see why its working first time and not second. Anyone experienced this before or myt know why its happening?
View Replies !
How To Control The Number Of Page Links Displayed With Pagination?
Does anybody know how to control the number of page links displayed with pagination? I mean like, with the tutorial on this site, if I had, say 50 pages of results, it actually creates individual links for page 1-50. How could I make it truncate say 1-5, and then an arrow to goto 6-11 and vice versa? Here is the code the tutorial uses for($i = 1; $i <= $numofpages; $i++){ if($i == $page){ echo($i." "); }else{ echo("<a href="$PHP_SELF?page=$i">$i</a> "); } }
View Replies !
Session :: Problems With This Web Page Might Prevent It From Being Displayed Properly
when i add php session <? session_start(); header("Cache-control: private"); // IE 6 Fix. ?> I just get this error "Problems with this web page might prevent it from being displayed properly bla bla". Of course am adding those lines just the first thing in each page b4 anything else. so am getting that error in pages that have template applied to it. and when i delete the session lines it just back to normal. So i dont get whats the problem with the session.. there is no other way of writing it. and the session is working already properly in another project on same computer. am using php & IIS.
View Replies !
PHP Pages Getting 404 Error, "Page Cannot Be Displayed"...
I tried putting this into the PHP Installation forum but don't get any answers or suggestions there so I'm going to try it here and hope it doesn't get moved. I'm on a Windows 2003/PHP 5.22 setup. I'm TRYING to upgrade from PHP 5.02 which did work on my server and quite well. I followed the upgrading and installation instructions layed out on the PHP.net set -- I still can't get it to work. The install dumped all the PHP related files under "c:program filesphp". I've ensured that path is in my windows PATH statement for my env vars. I've also verified that "c:program filesphpphp-cgi.exe" is in my Web Service Extensions listing in IIS and the status is set to "Allowed". From the command-line, I can execute my "test.php" file that has the phpinfo(); info function in it and it works fine. It's only when I try to use my web browser to access the php file that I get the 404 error, "page cannot be displayed". I know that IIS in general is working ok because I can point it to the default http://servername/iisstart.htm and it resolves to that page just fine. It's only when I change it to http://servername/test.php (which has my phpinfo()) function in it when I get the 404 error. My web server just doesn't seem to be interpretting PHP files anymore and I can't figure out why.
View Replies !
No PHP Error. Just "Page Cannot Be Displayed"
I was wondering if someone could explain why I'm receiving this error. It's like a 404 error but I think it might be something else. Basically, I have a page where a user inputs his email address. The system is supposed to look up the email address and send the associated password to that email address. It worked up until a few months ago. Note that the validation works. So, if the user tries to submit a blank text box, it returns an error. If the email address is not found, it returns an error "Email not found." But if the email is valid, it just dies. This code worked a few months ago when I initially wrote it....
View Replies !
Hyperlinks In PHP Anyone?
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 Replies !
Broken Hyperlinks
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 Replies !
Hyperlinks In Text
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 Replies !
Stripping Out Hyperlinks
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 Replies !
Internal Hyperlinks
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 Replies !
Using Hyperlinks To Invoke
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 Replies !
Retrieving Hyperlinks From Access
does anybody know a simple way of retrieving a hyperlink from an acces table. After retiving the data array with odbc_fetch_into()the hyperlink is returned as "hyperlink name#..path of document#. maybe sombody has already solved the problem and can save me hours of programing.
View Replies !
Paging With Column Hyperlinks
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 Replies !
How To Use Hyperlinks To Remove Data From DB
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 Replies !
Creating Hyperlinks In Word
I read your article on "Creating Word Documents on the Fly" and modified it greatly for my uses - but a great start. The one thing I can't figure out is how to set a certain bookmark to a hyperlink nstead of plain text. Code:
View Replies !
Find And Replace Hyperlinks
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 Replies !
Blocking/Restricting Hyperlinks
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 Replies !
Create Changing Hyperlinks
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 Replies !
Add Hyperlinks To Non-linked URLs
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 Replies !
Changing Hyperlinks Automatically
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 Replies !
Using Hyperlinks For AJAX Instead Of Dropdowns
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 Replies !
How To Identify Hyperlinks In Files
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 Replies !
Text To Html Hyperlinks On The Fly For Editors
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 Replies !
Parsing Flagged Hyperlinks With Regex
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 Replies !
Parse String , Return Hyperlinks
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 Replies !
Selected Hyperlinks Activate PHP Script
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 Replies !
Finding Urls And Making Them Hyperlinks
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 Replies !
Sending Php Email With Hyperlinks Inbedded
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 Replies !
|