Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    PHP


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Identifying Off-site Links


Is there an easy way to identify off-site links using php? For example, on a forum site like phpbuilder.com, I'm looking for code to flag posts that contain: Code:




View Complete Forum Thread with Replies

Related Forum Messages:
Get All Links From Whole Site
I want to write an application what to extract all links from a whole site, but not work:
PHP Code:

View Replies !
All The Links To One Site
if im going to run this script and point it to you tube, and my target will be all the videos related to skateboarding, this script will get all the links, or links where  I can download the videos that is related to skateboarding. its like a script that will crawl to you tube and will get all the links that is related to skateboarding.

View Replies !
Previous And Next Links On My Site
How would I make automated Previous/Next buttons on my web-site (using php and mysql). I have read many different articles on the web, but none of those have helped me. What I need is the Previous/Next links show up depending on the number of rows, and the row that the user is currently on. Basically, the number of rows is undetermined, and it should only show one row per page.

View Replies !
Site Links From My Include
I have a website with multiple levels and have attempted to use server side includes for the navigation. Each webpage has the <?php include 'menu.php'?> code in it which gets to the file with links for the site's pages.

* "webpage.php" uses a relative link to call "menu.php" (no biggie)
* "menu.php" has relative links to all pages (problematic)

When the webpage is rendered in the browser, code from the "menu.php" include file is simply inserted into the "webpage.php". The relative links in "menu.php" work great for webpages on the same level, BUT it doesn't work for pages on other levels.

Am I stuck with having to use 4 separate 'menu.php' include files for the 4 different levels of the website? All I want to do is use a single "menu.php" include file and have it utilized by all pages in all levels. Possible?

View Replies !
Retrieving Links From A Remote Web Site
I am using a class called snoopy which fetches links from a remote web page. I am able to use it to fetch links, but when I try to fetch links from the actual page that I need to fetch the links from I get the following error. Code:

View Replies !
Create Dynamic Return Paths As Links On Site Pages.
I would like to create dynamic return paths as links on site pages. For example, there might be a link to the whet stone page on both the chisel and plane pages. If my viewer came from the plane page, I'd like the return path to indicate "home->planes->whet-stones", appropriately linked. Likewise if from the chisel page, "home->chisels->whet-stones".

Above the immediate back link, normal site layout logic would apply. Should the referer page be off site, site layout would rule. This doesn't appear to be particularly difficult.

View Replies !
Identifying Browser
Is there a way to identify the brwser a visitor to my site is using?  I would like to include site style based on the visitor's browser.   If their us IE show layout one way, if their using Firefox show it another  way...etc...etc.

View Replies !
Identifying People
on my website i'm finding people are coming back and signing up again and again... how can i log them so i know who has logged in before. was thinking IP but does this not change per session online with dial up?

View Replies !
Identifying A Value Range
i have a form that submits to a php file, the form basically has a hidden field called number:

<input type="hidden" name="number" value="12">

i know how to read the value of that, its simply putting <?php echo $_POST['number']?> but what i want to do is check if the number is between 1 and 25 and if it is then echo A else if it is between 25-75 then echo B else if it is anything above 75 then echo C .

View Replies !
Identifying SSL Clients
I have a site that uses PHP sessions through SSL, my employer does not wish the site to require cookies so I have switched on the use_trans_sid option for users who have cookies disabled. The problem I have is stopping session hijacking.

If I am on a page "https://secure.mysite.com/page.php?PHPSESSID=XXXXX"

And I email the url to someone else they can get onto the site without being challenged for a logon. I am trying to find a way to check that the connection is still coming from the same SSL connection, e.g. by checking the clients public key, but I can't find a way to get any information about the SSL connection from PHP.

View Replies !
Identifying An Image
Ive got a tracking system which tracks how many times a user clicks on an advert on my site. At the moment all the listings are set as one so when a user clicks on that advert it gets one click. However, one of the adverts is now going to contain two images advertising two separate companies.

Ive set it up so the images and urls are different and they go to their own websites and in my tracking table i have just added an extra column called image and the number 1 goes in if image 1 is clicked on or 2 if image 2 is clicked on. However, to display this is the bit im not sure about. At the moment its displayed in a table like this:

Advert Name                Category                      Number of clicks

Advert 1                     Shopping                       257

However, if advert 1 has two images, meaning two separate companies, how can I show this in the above table?

View Replies !
Identifying The Clicked Record
i already know how to load the my list of suppliers using
mysql/php/apache, but what i would like to do now is put a link for
each and every supplier and when someone clicks it, they will
automatically go to that supplier's list of products.

i want something like this:

SUPPLIERS TABLE
supplierID, Name, Address,

AA Alfin21 1506 w. 66th street <>EDIT<>

View Replies !
Identifying Search Engines
my website is pretty much database driven and i've typically parsed the data in PHP and just output flat HTML. however, i'm trying to save some badwidth by spitting out just the critical information, and have javascript parse out the data.

however, i'm kinda worried how search engines would react to this. (especially google) would search engines ignore the keywords if they are inside javascript tags? how do i detect search engines? maybe i can just setup a special script that output's "search-engine-friendly" output.

View Replies !
Identifying The Logged On User
is there a way (in php) to identify the user name used when logging onto a mySQL database? I want to know this so that I can program a basic audit trail on edited records.

View Replies !
Identifying Black Images
I would like to be able to identify completely black images in order that I can exclude them. I am thinking I could use gdlib but I cannot find a suitable function. If I can find the rgb of the image then I can exclude it.

View Replies !
Identifying Individual Users
I know that you can identify users using an ip address. But what if you have several users with different computers in one room sharing the same ip address. Is there anyway to differentiate each individual. Is there a unique signature from the computers that can be used?

View Replies !
Identifying Parts Of A String
$url = /blah/elephant/spaghetti/page.php

This gives you the whole path.

But how can you identify each directory in the url individually?

ie. I want $one to equal 'blah', $two to equal 'elephant' etc.

View Replies !
Identifying A Page Via Hyperlink
I have a page (product_wide.php) that displays sale items. In that page, I "include" a 2nd page that contains hyperlinks to general item categories. The hyperlinks in filternavbar point to product_wide, and display items from the category selected. I need a way, using the same hyperlinks I am using now in filternavbar, to tell, from product_wide, that it was from filternavbar that the link was clicked (as opposed to some other page in the site that takes you to product_wide. I can't change the configuration of the filternavbar url because of duplicate content issues with google.

View Replies !
Identifying Dynamic Form Fields
User goes to page which is a form that asks for some basic info regarding returning products for credit/exchange, and also asks for how many products are going to be returned. Upon submitting, a return authorization form is presented to them with the specified number of product fields. I now want to take the input from this form and email it to myself, as well as, display a confirmation page to the user. The problem I have is a can't say, for instance, echo "$field_name"; because field_name will get created dynamically after the user specifies how many products to return. For example, say the user says 5 products, this will generate a form with field names like:

return_code0 inv_num0 qty0 product0 cre_exch0 stockout0
return_code1 inv_num1 qty1 product1 cre_exch1 stockout1
return_code2 inv_num2 qty2 product2 cre_exch2 stockout2 and so on....

These get created with a for() loop. Once this form is submitted, how can I address the field names? Code:

View Replies !
Identifying If The User Has Placed Invalid Characters
what would the code look like if you wanted to tell the user their info they submitted into a form had invalid characters? would you use ereg?

View Replies !
Identifying Non-Supported Characters In A TTF File With GD?
I've managed to get GD working (mostly anyway) on my site - and am utilising the "imagettftext" function.

I am using this function to display individual characters on my website - with a nominated Font.

However, sometimes the characters in my StringText are not supported by the particular font that I am using ...

Directly from http://www.php.net/manual/en/function.imagettftext.php

imagettftext - "If a character is used in the string which is not supported by the font, a hollow rectangle will replace the character."

Can anyone suggest some code that would:

1) compare/look at the StringText supplied within the "imagettftext" function (in my case the StringText will comprise of a single character only)

2) where the supplied StringText (ie character) is NOT supported by the font, then I need for that character to be reported as not supported. ie. either; return a flag or skip the non-supported character entirely - rather than displaying the standard "hollow rectangle".

View Replies !
Identifying Opening Link For Database Query?
I've got a tricky problem i need to solve, i'm building a banner exchange type site in which there are already about 100 banners so i've had to code things around what already exists to a certain extent.

Now each of the banners that go out on other sites have a link on the banner which pops open a window with details of the banner. this would be fine if all my banners were gifs and jpgs but there are also swf and dcr banners so i have no real control over the actual link on the banner. up until now each banner had a html page made for it so when you clicked on a banner it would open a page banner_1.html which had the details of that banner. for obvious reasons i'm going to replace all these redundant pages and put a htaccess redirect at their url to all redirect to a common page popup.php so all details will be dealt with in one file.

ok this is fine but my problem is in this page popup.php i need to identify the link that just opened the window so that i can then get the info from the database to put on the page..

remember i can't use the url like so...
bannerpage.php?thisbanner=1

but all existing links have unique addresses, is there a way to do this, i'm pretty sure there must be but i can't get my head around it?

View Replies !
Identifying Auto Increment Values For Each Of The Fields
I have set up a database i mysql, identifying auto increment values for each of the fields (eg AdminID). I was wondering how i can set up a form which will, when i go to add a new member, have the autoincrement value already present in the field and i can continue to input the rest of my data as usual.

View Replies !
Identifying User's Pick From Selection List
I have an application that uses PHP to access a MySQL table and
extract rows which match the user's search entry. Data from the
matching rows are loaded into an HTML selection list, and the user can
scan the list and highlight a selected item.

My question: In PHP, what is the syntax for identifying which row is
highlighted?

My goal is to pass the unique row ID of the selected item to a
subsequent form where all the fields will be displayed for the user to
edit.

I already have the code that loads the selection list and the code
that displays the fields. I just need to know how to determine the
highlighted item.

I have two PHP books, and both discuss loading the selection list, but
there is no mention of what to do next.

View Replies !
Form, Type=file And Identifying By Isset()
Windows XP
PHP 4.4.2
Apache 2.2
Register_Globals = Off
Safe_Mode = On
-----------------------
Hi All,

I am having a problem getting a file browse input field to be recognized on the next page. Let me show you...

page1.php Contains a web form with a file input to attach a file using a browse button.

<form method='POST' action='page2.php' enctype='multipart/form-data'>
<input name='uploadFile1' type='file' id=uploadFile1'>

page2.php contains a validator to check the input and perform an action based on whether or not the browse input field has been populated.

// IF THE POST CONTAINS A FILE UPLOAD, PROCESS SECTION 1 IF NOT PROCESS SECTION 2.

if (isset($_POST['uploadFile1'])) {
echo "File is attached so print this.";
}

if (!isset($_POST['uploadFile1'])) {
echo "File is NOT attached so print this.";
}

If the user uses the browse button on the form page to populate the field with a file path to a file on his pc, then I expect to see the "File is attached message". However, regardless of whether someone does or does not browse a file, the message is always that they have NOT browsed a file and the variable "uploadFile1" is effectively left unpopulated.

OUTPUT
File is NOT attached so print this.

Conversley, I thought I might be able to use the _FILES variable instead of _POST, but I get the exact opposite, that the browse field is populated all the time whether or not someone has browsed a file or left the browse field blank.

if (isset($_FILES['uploadFile1'])) {
echo "File is attached so print this.";
}

if (!isset($_FILES['uploadFile1'])) {


OUTPUT

File is attached so print this.

So, I am missing something. Can someone give me some direction so that I can simply identify (with register_globals = Off) whether or not an input field (input type=file) has been populated or left blank? Is this even possible? What am I missing?

View Replies !
Voting System - Identifying Voter And Integrity Of The Vote
I am trying to setup a voting system for our intranet (staff awards - free text fields). I have the database adding the votes no problem. What I would like to do however is the following:

1.  It's our intranet, there is no need for each person to login so it just uses "user/user".  However I need to capture the person's login on the vote record so I can identify who voted.

2.  restrict the users to one vote each.  I have done some research and it looks like I have to create a cookie.

View Replies !
Identifying Different Unicode/utf-8 Types Inside A Text String
I am dealing with a script that reverses a string that is in hebrew, so I can display it properly when I write that string onto an image, however sometimes the string might be half hebrew half english, so I need a way to identify what language is in the string and only reverse the hebrew parts.

in technical terms the hebrew text is encoded in utf-8, and the english text will be encoded in the normal encoding for english, (anscii, latin-swedish whatever, i dont know the name of that encoding)

so the simple question is how do I identify different types of encoding within a string?
that way I can break up the parts that i identify as being utf-8 and reverse only those

(yes I am well aware of methods to display hebrew properly in php, but when writing to an image this is another story, only method i found so far is reversing the hebew text string)

View Replies !
How To Count Links To External Links?
I get results of the query diplayed on my find.php page with links to different web sites. I want to store count of clicks on each of those links that are displayed on my find.php page. How can I do that?

View Replies !
Converting A PHP Site To A Total Static HTML Site
What's the best way to convert a PHP site to a total static HTML site? You might wanna ask why I wanna do this. Reason: I would like to create an offline version (without server) for demo purposes. Looking at my current PHP site, I am having problem dealing with this issue.

View Replies !
Site Flow Chart/site Map Creator For PHP?
I'm working on a site created by someone else, containing a hundred
different pages or so in PHP, with connections (includes and form
actions) going all over the place.

Is there a utility out there that will create a visual site map of all
the connecting pages in a site?
I tried using Dreamweaver MX 2004's, but the best it can do is see
connections in HTML. It'd only go one layer deep and find only a few
connections for a total of about 6 pages out of the dozens.

View Replies !
Make A Site That Can Take In A String As The Sub Domain For The Site
I am trying to make a site that can take in a string as the sub domain for the site. For example, if you put in, Jenny.homepage.com, the site would get Jenny as a parameter. Does anyone know how to do this?

View Replies !
PHP Script On One Site Access A Database On The Other Site.
I own 2 sites on 2 different providers. I wish a PHP script on one site access a database on the other site. I used following instruction:

$link = mysql_connect("localhost", "mysql_user", "mysql_password")

But I do not know what to put for "localhost", and I even don't know if this could work.

View Replies !
Trying To Make An Iframe Site Into A Include Site
Basically I have a site over at www.allFOTC.com and right now as you can see I'm using all Iframes. It works awesomely for function, but it's gotta be killing my SEO. I'd like to be able to have the same functionality but using php includes so it'll always look like one normal page as far as Search Engines are concerned.

Would it be possible to create dynamically changing includes (like when someone wants to watch an ep, JUST the small center block changes to the video) without having to make each page with a full on layout?

Right now it's so simple to go find a page I want to edit and only have to look at 5 or 6 lines of code. I'd hate to have to have full layouts on each page and have to fish through all that code to find something.

View Replies !
Copy Image From Site To Site Using URL
I'm trying to copy an image/file from one website to a directory in another, using the URL for the source image/file. I'm not sure which PHP function to use. Does anyone have a suggestion?

View Replies !
Site To Site Data Transfer
When a visitor goes to siteb i want it to send information to sitea, in this case lets choose browser type. Eventually I want to have more sites sending data back to sitea. some not managed by somebody that i know i can trust. so mysql passwords etc. cant be given out. I thought about $_GET vars, but there is no way to make that secure from bogus entries, is there? Unless i used some sort of encryption and the decrypt key was at sitea.

View Replies !
Active Persistent Links And Active Links Both 0
I just installed Apache/MySQL/PHP

I'm trying to test if the connection to MySQL is there

I know the database works on its own, I checked that

when I run phpinfo() I get mysql listed, I'm just wondering if when it says "Active Persistent Links" and "Active Links" both 0 (zero) under "enabled" column, is that fine, meaning configured properly?

View Replies !
Carry Over Some Session Information From A Non-secure Site Into A Secure Site
I'm baffled as to how I can accomplish this. Compatibility is important, so I would like to not use cookies. I am trying to carry over some session information from a non-secure site into a secure site. It's actually the same server but a different domain name.

View Replies !
Site To Site Content
I am looking for a PHP function that can display content from a
separate site preferably with error handling. This is in lieu of using
frames. Something similar to the ColdFusion tag cfhttp.

View Replies !
Links
I want to use jpg.pictures from another website.
Before I want to check if the file exist

I tried (file_exist("http://www.xx.yy/path/file.jpg"))
but that is not allowed

Also tried linkinfo("http://www.xx.yy/path/file.jpg")
but, however some files do not exist all the results are True (-1)
Thate could be correct because the path exists, the file doesn't.

View Replies !
Sym Links
i have been creating sym links, for my little project and im now having problems accessing them?

You don't have permission to access /test/phpdb/mp3 on this server.
Apache/2.2.4 (Unix) DAV/2 mod_ssl/2.2.4 OpenSSL/0.9.8d PHP/5.2.1 mod_apreq2-20051231/2.5.7 mod_perl/2.0.2 Perl/v5.8.7 Server at clark.ee. Port 80

user nobody has permission to all directories in htdocs, the symlinks are stored ion /opt/lampp/htdocs/mp3

View Replies !
Links In PHP
is there any particular way links have to be served to php in order not to cause an error

for instance

echo "<a href="index.html">Some text here</a>";

will not work

View Replies !
Getting Nav Links From A Db
I hope not, but I'm beginning to think that I'm going overboard with my desire to put the kitchen sink into a database. so I need some opinions. Since I've become so enthused about drawing content from a database and displaying it via php, my latest brainstorm is to put navigation items into their own table and have them dynamically displayed when each page loads.

My reasons are that if a client needs to change or add a link to the nav list - which has happened more times than I'd like to remember. I don't have to sweat blood changing or adding the link to each page on the web site by hand or semi-automated means. I'd just make the alteration once in the nav table. This approach, to me, is way cool. But is this taking the whole php/database experience a little too far?

View Replies !
Links In Php?
On a script I have I ask the page to link to:

<a href='?cal_start=$prev'>

Now I also want it to have the GET property_id in the href as well: How can I achieve this?

View Replies !
PHP Links
I've just changed from using an iframe to a table, because I want the content to expand appropriately. So I was wondering if I can use PHP on the navigation so they load into the table.

View Replies !
Nav Links
I want a main display page (index.php) to display all of my relevant data. This way, I can change one document and have it reflected across the entire site.

What I did was, create my index.php with an include() for my navigation links. In my main index.php page I have a section where I used an include() for the content. So the index page would look like this: Code:

View Replies !
Id Links
I am trying to create a user specific id link using some sort of gateway page (i.e. out.php, gateway.php, yada yada).

something like this: www.mysite.com/out.php?siteid=123?userid=456

anyone have any resources or code so I can get through this? for the site id I need ti to read the url it is redirecting to from my database.

View Replies !
Dynamic Links???
I’ve looked at several tutorials and searched the archives of this site. I found a few pointers, but I feel entirely daft and can’t seem to quite get it.

The “ultimate” goal is to display members profiles, and not have to hard code all the bl**dy records, as I’ve done so far. (Current version http://www.internetbonsaiclub.org/c...y/profiles.html)

So, now I have the records in one table in my database. The profiles.php3 page takes all the records in that table, and displays the names in alphabetical order. So far, so good.

Now, I have viewprofile.php3, which should display only one record at a time, based on which name the visitor clicked on.

View Replies !
Links From Txt File
I have this code:

<?
$links = file("mylinks.txt");
$antal = sizeof($links);
for($vis=0; $vis<$antal; $vis++) {

echo"<a href='" . $links[$vis] . "'>" . $links[$vis] . "</a><br>";
}
?>

It works fine, but:
When I view the source, there's a linebreak (as in the txt file) after each $links[$vis]

And I don't like it!
How can I prevent the linebreak?

View Replies !
Function Links
I have seen on some sites (evilwalrus.com for one) where they not only highlight the PHP code in the scripts they display but they also link any native PHP functions from within the code to there explanations like in the example below and I was wanting to if anyone knew how I might accomplish something like this. Code:

View Replies !
PHPSESSID And Links
My host compiled the feature into the php build that auto appends the PHPSESSID to links when sessions are on. Now, a lot of my links have the PHPSESSID value inserted in the middle of the link, after the '?'. For example: http://www.utorials.com/browse.php?...2c6d5f72e7f81=0 should be http://www.utorials.com/browse.php?cid=9&sid=0

the =0 is after the id for some strange reason. The problem is very consitant in that it appears on the same links in the same way each time. Some links are fine.
Any ideas?

View Replies !
UTF-8 Email With Links
I have an email in utf-8 encoding. In the content of the email, I need
to send a link in which the filename is in utf-8 string...just like
this..

$content = "<a href="http://xxxxxx/".$filename.""">Link to file</a>";

however, the link can not be correctly passsed and it automatically
encodes it into %xx format. How to solve the problem?

I've tried urlencode($filename) and urldecode($filename) but cannot fix
the problem...

View Replies !
In Need Of Ebook Links
im new to this group and im desperating seeking ebooks on PHP-MYSQL, so
any one plz suggest me the same one....

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved