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 Complete Forum Thread with Replies
Related Forum Messages:
Image Gallery For Individual Users
I was wondering how I can create an image gallery for my website. Ever user has to login through his username and password. After logging in, I want to include a section where the user can image his/her images to my webserver in a directory - memberid/imagefileno. There should also be thumbnails of the images below that section. Another section I want to create is videos. With thumbnails. and for videos it should be memberid/ If the directory doesnt exist, the directory should be automatically created.
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 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 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 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 !
Individual Members
I have a file called competed.php which displays to the individual members offers that they have completed on my site. it looks like this <?php include "config.php"; $con = mysql_connect("localhost","$DB_User","$DB_Pass"); if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("$DB_Name", $con); $result = mysql_query("SELECT * FROM uoffers WHERE status=Ƈ' AND uid='$uid'"); while($row = mysql_fetch_array($result)) { echo $row['title']; echo "</a> - Completed: "; echo $row['date']; echo "<br>";
View Replies !
Individual Hyperlink
God every step i take forward its different. Again am stuck in thhis news. For eg, I got 5 news in my first page so how do i give individual hyperlink to there respective data.
View Replies !
Instead Of Individual Lines
i can make the table without a problem, its just looks kinda messy as shown in mysql output.jpg that i have attached. here is the code that im using: PHP Code: $_Table = $_REQUEST["Cust"]; mysql_connect("localhost", "xxxxxx","xxxxxxxx") or die(mysql_error()); Â Â Â Â Â Â Â mysql_select_db("customers") or die(mysql_error()); Â Â Â Â Â Â Â $query="SELECT * FROM $_Table"; Â Â Â Â Â Â Â $result=mysql_query($query); Â Â Â Â Â Â Â $num=mysql_numrows($result); Â Â Â Â Â Â Â mysql_close(); Â Â Â Â Â Â Â $i=0;.
View Replies !
Hit Counters For Individual Objects
I've been Googling for about an hour, and I must be using the wrong terminology because I'm only finding guides to overall site hit counters. I'm looking for some help devising hit counters for blog entries. I want to display (probably for myself) how many views, possibly unique views, and new comments using PHP and MySQL. What should I be Googling for, or does anyone have some useful links? I'm not very knowledgeable about SESSIONS, so I could use some really good tutorials regarding them as well.
View Replies !
Explode Individual Characters
<?PHP $var = 'hello everybody $tar = explode('', $var); foreach($tar as $key => $val) { if($val != 'e') { echo $val; } } ?> this does not work. the error tells me that the explode delimeter is empty but this is what i want. im trying to explode the string into an array of its letters instead of just its words. is there another way of doing this then?
View Replies !
Retrieve Individual Rows
im querying a db for two rows which are always returned. how can i reference each row and output its contents without using a while loop. ive tried: $row = mysql_fetch_array($result); extract $row; echo $var1[0]; //var 1 of row 0 echo $var1[1]; //var 1 of row 1 but this doesnt seem to be working?
View Replies !
Summing Individual Rows In Mysql
I have created a php score sheet that allows graders to enter scores for different criteria. It uses a mysql database to store the information. I want each row to total, and cannot figure out how to do that. Since new people and new scores will be added to the list, the total row needs to total new people as well. I'm pretty new to this, so don't assume I know syntax, etc. Can anyone tell me how to do this? Name Spelling Math Science Total Joe 15 11 45 Mary 11 22 41 Sam 7 3 11
View Replies !
Replacing Individual Characters With Preg_replace
I found this code in a PERL script that was written by someone else: $password =~ tr/a-zA-Z/n-za-mN-ZA-M/; For example, "newuser1" translates to "arjhfre1" and vice versa. I realize this isn't the best password encryption, but then I didn't write the originating software either. I am trying to convert this to it's PHP equivalent. I understand why this works in PERL, but I can't figure out the syntax for the preg_replace command to get it working in PHP. Can someone please take a crack at it?
View Replies !
Breaking Up A String Into Individual Words
I have a text box that I will use to search a database. I would like to use it so that it will not use a whole string (ie. 'red striped top') but instead break it up into individual words (ie. 'red', 'striped', 'top') and maybe put it into and array. I will then use the words in the array to search the database. How do I break a string up this way? Also, is this the most common way of creating a means of searching a database?
View Replies !
Trim() A Phrase Instead Of Individual Characters
I have a script that takes a URL and trims characters from it for storage in a database. My intention is to trim http:// from the start of the URL and and trailing slashes. For this I have been using the following: $url = trim($url, "http://"); Unfortunately a problem has arisen in that any url's ending in .net have "t" trimmed from the end because, I realise, trim() strips out individual characters, not phrases. Is there any way trim() can be modified to only find and remove the instance of http:// in it's entirety, and ignore single instances of the letters, or is there an alternative function I should be looking at?
View Replies !
Script For Individual User Accounts
I am running a nascar fantasy league website and would like to be able to perform the following. Require players to establish a user id and password. Use this information to allow access to mysql database stored data. In other words I want to create a members only area. The twist comes in here. I want each player to only be able to view his information. (This includes things like fees, account balance, driver roster, trades, etc.) I have searched through many user authentication ideas but none seem to apply to me. I am looking for something that works similar to logging on to your credit card account online.
View Replies !
Cart Not Reecognizing Individual Orders!
I have a shopping cart script which works fine up to a point. When I add to cart...it adds the item fine...However, with another computer/browser, the items in the cart remains there....For example...if I add a $5 item to the cart.....when someone else visits the page they will see $5 in their cart. Code:
View Replies !
Individual Vars Versus Arrays
It always seems that an array is the preferred way to store multiple values that are related for use as such things as arguments, but is it actually beneficial? Is it beneficial to make one array with multiple values as opposed to making multiple variables with multiple values.
View Replies !
Preg_replace With Patterns For Individual Case
If I have a general regex pattern such as '/([a-x]*)([a-z]*)/'... Is it possible to have a replacement dependant on the back reference? Or to do an individual replacement depending on the number of the match found? For example: if 1 was "sausage", then replacement had to be "noodle", but if 1 was "noodle", the replacement had to be "pie". How ineffective is it to a preg_replace with patterns for each individual case of the back references?
View Replies !
Ignoring Commas In Individual Fields
I'm trying to develop a bullet proof CSV function that can ignore commas that are found in individual field data when parsing through a regular CSV file. Here's some of the code I'm trying right now: $file = fopen( $file_name, "r" ); $cnt = 0; while( !feof( $file )) { $line = fgetcsv( $file, 4096 ); $count = count( $line ); if( is_array( $line ) && $count > 0 ) { for( $i = 0; $i < $count ; $i++ ) { echo "<br>$line[$i] "; }}} fclose( $file );
View Replies !
Create All The Individual Pages For The Images.
I have roughly 60 images to display, i have created a gallery of thumbnails for these images, but because of the proportion of some of these images i cant load them onto the same page as the thumbnails as the page become both too wide and too long, and id like to keep the pictures the same size, as they are small enough to fit on a page on their own. i need a php script which will attach to the thumbnails and load the full size pic on a dynamically created page, just really simple just click and load i just dont want to create all the individual pages for the images.
View Replies !
Web Calendar Group/individual View Events?
There seem to be a lot of web calendars out there and I am having a tough time sorting out which ones to even try - a lot of the more popular ones were created 2 or 3 years ago. Can anyone recommend a good one that uses php and mysql preferably? One of the main uses would be for family to indicate their holidays so all in the family can see. Thus, it would require a group/public feature that allows users to see all "public" holidays or just their own holidays.
View Replies !
Preg_replace - Setup Individual Patterns For Each Acronym
I am trying to dynamically create links to files by scanning the directory for files in them. My page displays links taken straight from the file names with some formatting. I take the .ext off first, replace the _ with whitespace and uppercase each word. The problem comes when I am making exceptions and want to uppercase acronyms. What I am trying to do is setup individual patterns for each acronym since some might be within words (the won't change it). If I put them into the array declaration, nothing happens. if my loop that creates my word finder, it works. If something does not make, let me know. PHP Code:
View Replies !
Explode Function To Retrieve Individual String
If one has used the explode function to retrieve individual string i.e. $attribute from a table, can tt individual string, aft being exploded, be placed as a parameter of a recordset i.e. $rs[$attribute] to retrieve values from another table?
View Replies !
How To Maintain A Time Of Login For Individual User?
I have one question, We can maintain login time and logout time in php. I have done it using the get date and time while the user is loging in AND get the time when the user logout THEN take the difference between them and stored it in database, IF the user doesn't logged out properly (ex, without logout just close the browser) . In this situation how to calculate the time difference between login and logout?
View Replies !
Implement A Individual Shipping Cost Per Product
I have a shopping cart, and im trying to implement a individual shipping cost per product and a secondary shipping price for additional products and quantitys. I just cant seem to get my head around the statement ... basically this is how it should go: Code:
View Replies !
Remove Individual Array Elements In A 'for' Loop?
How do I remove individual array elements in a 'for' loop? Example: $array = array(1, 2, 3, 4, 5); for($i = 0; $i < count($array); $i++) { if ( $array[$i] == 3 ) { ** I want to delete this array element ** } } The resulting array should = (1, 2, 4, 5) Note I want to remove the element completely, not just set it to no value, as in (1, 2, '', 4, 5).
View Replies !
Individual News Posts - Result For Invalid ID
This is my page for displaying individual news posts and I'm trying to make it so if the user doesn't specify an id number or specifies an invalid id number they will get alternate content that will be a message saying 'invalid id' or something instead of Code:
View Replies !
Listing Table Data With An Option To Delete Each Individual Item.
Was wondering if anyone could help me with a PHP, MySQL problem. I am completely new to PHP and MySQL. I have been trying to find a way to list data from a table on a web page and after each individual item have a hyperlink to allow users to delete the information listed. Can anyone help? i.e. Name Age Sex ------------------------------------------ Adam 21 M delete Betty 22 F delete Chris 23 M delete Daisy 24 F delete ------------------------------------------------------------------------------------------------------------------------------ (delete after 'Sex' would be the hyperlink to delete that entire line (row) from the table).
View Replies !
|