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 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 Complete Forum Thread with Replies

Related Forum Messages:
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 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 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 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 !
People Database
We are developing a webpage for our group, which shows the details of
the people working in the groups. For example: Last name, First name,
Status, Phone, Fax and Mailing address.
One of us is supposed to take care of new people being added to database
and shown on the webpage. We have a page to put in the details(a form),
which calls a php script. The script checks if there is another person
with the same name in the database and shows the options depending on
the result. If there is someone three buttons appear: Update, Reset, and
Add New. If there is none, two buttons appear: Add New and Reset. I want
to know, if I have different scripts for "Add New", "Reset" and "Reset",
will the $_POST variables(generated by the first form for details) be
passed to these scripts.

View Replies !
Email Sent To People
I need to build script that would receive data from form (name, email) and will send to that email message like: "Hi! Congrats! You have received our special discount, please use the code "random number"!" I am quite new to PHP and I have managed to create email sending script but I do not know how to insert the number generator in email sending script.

View Replies !
Can People Read Php Code From Web?
I'm wondering how secure is it for people to read the php code from website? What about the encoder like Zend Encoder (too pricy)? why do they provide encoder if the php code is invisible to people w/o encoder? let's say my code here, i don't want to show 123.456.789.123 to anybody if people can read/hack the php code. PHP Code:

View Replies !
How Do I Handle People Going Into The Same Record At The Same In Web App.
I am building an app using php and postgresql. My questionis this.
How do you handle people wanting to make parallel changes to a record.
Since in web apps you are doing a select, bring over a record then
updating it, there is no lock on that record while you are making the
changes in your browser window. Does transactions handle that? Do you
make your selection and update all part of the same transaction? This
whole scenario has me stumped.

View Replies !
How To Calculate The No. Of People Currently Browsing
how to calculate the no. of people is currently browser the first page in php programming???

View Replies !
I Dont Want People To See My Xml Files
how can i make it so that my php files can use my xml document, but you cant go to www.mysite.com/file.xml ?

View Replies !
Using Phplib To Force People To Log In
I am currently using phplib to force people to log in before being able to view certain pages. Currently I am using PHPLIB to do this, but this project has not been updated since 2002. I am assuming bugs/hacks/holes have been found within this code. Is there an updated version of PHPLIB that I am not finding, or is there a replacement package that could also be used?

View Replies !
Best Way Of Only Allowing People To Vote Once?
I want to build a user rating system but what is the best way of only allowing people to vote once? Is it by marking their IP or by saving a cookie or something else? Needs to be quick and simple and doesn't have to be mega secure and the option of a login system is not do-able.

View Replies !
Use Sessions To Allow People To Log Into Site.
I'm trying to use sessions to allow people to log into my site. The problem is that sometimes it works and sometimes it doesn't. As far as I'm aware my script is fine and I've had people tell me it's fine too. Basically, when a user enters their username and password it checks that against my mysql database and if correct creates a session and stores their username in it in a variable called uname.

when they access another area of the site it checks to see it uname is set and if it is then it lets them access that area and if it isn't asks them to log in again. The session id is kept so I know the session is there but it doesn't always register the variable uname. I think the php version is 4.1.2.

View Replies !
How Many People Are Currently Browsing The Website Using Php?
is it possible to count how many people are currently browsing the website using php? or would it require them to be registered and logged in.

View Replies !
Mail() To Hundreds Of People
I have a task whereby an application will retrieve 1 to 1,000,000 email addresses and must email every single one of them at one time. Very practical approach is? How do you do this?

View Replies !
Can't Mail To Multiple People
I can't mail to multiple people for some reason. I need it to potentially accept two email addresses if necessary,

$from_address="info@my.com";
$reply_name=$from_name;
$reply_address=$from_address;
$reply_address=$from_address;
$error_delivery_name=$from_name;
$error_delivery_address=$from_address;

//may be one, or two emails, if only 1 email address it works

$to_address="my@my.com, my1@my.com";
$subject="Quotation";
$email_message=new email_message_class;
$email_message->SetEncodedEmailHeader("To",$to_address);
$email_message->SetEncodedEmailHeader("From",$from_address);
$email_message->SetEncodedEmailHeader("Reply-To",$reply_address,$reply_name);
$email_message->SetHeader("Sender",$from_address);

View Replies !
How Many People View The Webpage
I have a website (program in PHP) and I want to know how many people have visit or view my page. How do I count that. Please reply if you have any cludes, or idea, or where to start to work on it.

View Replies !
Teaching People Mysql
ever since I have learned php/mysql, peeps have been asking me how to make their applications in php and mysql. I told them to view source codes of scripts and they'll figure it out like I did. It doesn't seem to work, where do I start teaching them, I figure I could always go through the basics of loops, blocks, etc.

View Replies !
Send Mail To Many People Simultaneously
I have a database with emails from different people. I want to send an message to all those email adresses. The problem is that I have almost 200 emails in my database.

View Replies !
Stopping People From Reloading A Page
I have a form, and when submitted it inserts a new row into a database. If people reload the target page, I'm sure that it'll reinsert another duplicate row. How do I stop people from submitting info numerous times?

View Replies !
How Do People Feel About The PEAR Db Class?
I wrote a simple CMS for personal use. I'm thinking of using it for
other clients now. It's use of the database is slow and inefficient.
I'm thinking of switching to the PEAR class listed here:

http://pear.php.net/package/DB

What do people think of it?

View Replies !
Stop People From Viewing Php Files
I have a bunch of php scripts that get information from a database then mark it up in XML.

I want to prevent random people from running these pages and being able to look at the XML.

How do you accomplish this while still allowing my flex app to see them?

View Replies !
Lots Of People Writing To One File
I have a file that is read, then modified, then the stream is opened to be written to and written to. When multiple users are accessing this file, sometimes it disregards the others edit and messes up the file. How can this be fixed?

View Replies !
Need To Be Able To Upload 3 Or More Files And Allow For People To Enter Their Name
I have searched everywhere for a new file upload script, I need to be able to upload 3 or more files and allow for people to enter their Name, email address and a description of the files they uploaded. Can anybody recommend an upload script that does what I need? An email notification is also required.

View Replies !
Stop People From Viewing Certain Pages
if I want to stop people from viewing certain pages how would I do it? I have used

if(isset($_SESSION['MembersID']))
{


}
else
{

header('location: '.$config_website_url.'/'.$config_website_url_topic.'/index.php?page=account&view=login');

}

but i keep getting headers already sent message,so how would I get around this? or can't I?

View Replies !
Prevent People Entering Numbers?
can i prevent users from entering numbers into my HTML form. and the opposite a code to stop people entering letter into some firelds.

View Replies !
Send The Mail To Multiple People
is their a way to send the mail to multiple people like carbon copy it so neither people can see who got it?

View Replies !
Stopping People Spamming My Mailform
Recently we have been having trouble with our mailform being hammered by spammers.
I am fairly certain that they are accessing the form outside of the site because the emails aren't valid (see email contents) and there is email validation on the form.

QuoteName = 144957a7-2ca2-4130-9f16-f715da818ed4
Email = 144957a7-2ca2-4130-9f16-f715da818ed4
Telephone = 144957a7-2ca2-4130-9f16-f715da818ed4
enquiry = 144957a7-2ca2-4130-9f16-f715da818ed4
Comments = 1 waitfor delay '0:0:20'--
Reset = Reset
02/04/07 - 20:43

I am looking for a way to reduce these spam attacks but do not want to go down the route of using captcha as i feel this may dissuade users entering forms. Is there a way of ensuring that a form has only been submitted via a valid refferer.

View Replies !
Prevent Multiple People Using One Account
I have a website with premium and free members. Premium members, it goes without saying, need to pay before they can enjoy some special features within the site. Now, I want to prevent premium members share their ID and password with others. My current plan is to log every request by premium ID in the database and later observe the log file to determine whether an ID has been shared or not. My table will hold: the user ID, date and time, page requested, and IP address. If 2 different IP address are accessing the page within my website using the same ID within a very close time. Then the ID should be marked as 'shared'.

View Replies !
People Hitting My Form Process
I have several people or being just coming to my site and hitting the php page that processes a contect for on my site, this results in getting several blank emails. Does anyone know why this is happeneing or how I can stop it?

View Replies !
How Do You Display How Many People Are Browsing Your Website?
Just want to have on my page "10 people are browsing right now" type of deal... How do you do it? Is it simple?

View Replies !
Know The IP Address Of People Visiting My Site
I want to know the IP address of people visiting my site!! :thumbsup:

Is there any function to do that in PHP?

View Replies !
How Do I Stop People Seeing My Php Code And Giving My Product Away?
I am currently working on a program for small business, done using HTML/PHP and MySql. It will run on internal Intranets. Aside from legal ties, how can I keep people from viewing the source code and giving my product away to others?

View Replies !
How Good Will This Prevent People From Posting To My Server.
I'm just putting the finishing touches on my polling script. For the login I want to make sure you can only post from the server the script is running on. This will help prevent any malicious scripts from posting username password combos over and over until one works. (In theory). Anyways, to the point of the post, how secure is this in your opinion.

<?php
$host= $_SERVER['HTTP_HOST'];
$ref= $_SERVER['HTTP_REFERER'];
$cut= substr("$ref", 7, 9);
echo $host;
echo "<br />";
echo $cut;
if ($cut === $host) {
include("your login page.php"):
} else {
echo "Go Away";
}
?>

When you use substr(); you take out the first 7 letters to eliminate the "http://", and then however many characters long your domain name is.

Since I'm testing this on my local machine, I used localhost, which is 9 characters long.

View Replies !
Do People Develop Live On The Server Or Offline?
I have been developing on our server in a 'spare' domain up to now which makes for a <B>lot</B> of time spent uploading/testing changes as I go along. I was wondering do the majority of PHP/MySQL folks do this or do do you set everything up on your own machines?
I have seen the downloads available and was wondering is it straightforward to get going offline. As soon as I had everything runnung on our server, I stuck to that.

View Replies !

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