How To Get Information From Web Page?
I am now writing a programme that can get information from web page.
That is;
The information which I need is on a page and it will be update now
and again.
So I need to get the information automatically at certain time.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Remote Web Page Information
I am trying to create a script that can grab information from a 3rd party website. For example, say I wanted to copy the text "Advertising Programs - Business Solutions - About Google" Off of Google's homepage. I wanted my website to open Google and select that text and output it onto my site. So if Google where to edit that information, it would also edit on my site. Anyone have any idea how to do this? I had a buddy who did that once with a Roster Rankings chart for IGN Gamespy Arena, but he ran off.
Constant Page Information
I would like to have a constant logo and list of links at the top of the page. Is there a way to do this so that I do not have to copy and paste this information into every page?
PHP Send Information/page To Email
i have a website and i have a log in system with php and mysql, that works fine however i want my registered user to be able to send me information by email, they'd fill in a text field then press send. I need this to send the whole page so that it gets their username in so people can't put a another persons user name. Code:
Retreiving Information From A Preivious Page
im trying to make a forum and in my veiw_forum.php its supposed to only show the posts with the forumid the same as the forum id in the link forum the page before (www.domain.com/view_forum.php?forumid=1) , this is my code so far but it isnt working, can someone tell me whats going wong? Code:
Passing Information To A New Page With A Submit Button
I've started creating scripts that allow for one page to have a form that data can be added to. A second page that allows some one else to view all the submissions that have been entered. This page also creates a submit button for each entry. Now what I need to do is make it so that only the entry for which the submit button is connected to is carried over to a third page. At this point using variables, each button gets a different name and value such as, button 1, button 2, button 3, ... When I click any of the buttons all the data from all the submissions get carried over to the new page instead of only the data that that button goes with. How do I write the code on the third page to carry over just the data that the button I click is related to? I'm using a flat file for the data entered into the first page. Glenn
Redirecting The Page - Cannot Modify Header Information
I have one doubt regarding redirecting the page.. If I run the redirect code that is header("Location: www.sampels.com") in the local server it works well but If I upload the same PHP file to the web server It gives warning and didnt work. Warning: Cannot modify header information - headers already sent by (output started at /usr/local/etc/httpd/htdocs/project/index.php:7) in /usr/local/etc/httpd/htdocs/prjoect/index.php on line 108 what can I do to do solve this problem.. please can anyone help me.
Sending Sensitive Information To An HTTPS Page
I am trying to emulate sort of a Payment Gateway. A user makes an order and then when he checks out he gets transfered to the HTTPS page to enter his details. At the moment I am storing the order in a temporary cart DB Table and as a reference I use the Customer's ID so I have TABLE Order_Temp customerId | orderDateTime | ItemID Once the order gets stored I redirect them using header('Location:https://'.$url); Now I have to pass some how in the HTTPS page the reference for the order so my $url looks like: https://www.paymentgateway.com/chec...?customerId=123 The problem with that is that I expose the Customer Id wich can easily be changed to anything else. What alternatives do i have ? I though using post might be a sollution, BUT is it safe ? Can you fake an id of a user when you post a form by injecting code? And how easy is that ? I was thinking of storing in the Temp_Order table the session_id and then passing it thru the URL ? Is that safe ? I just want to know if there is a standard practice of doing something like that. Thank you, and I really appreciate anyones times that is spend reading my post :)
How To Refresh Page Without Prompt The "resend Information...."?
I wrote a PHP page for user input the information to search the database. And the database data will update every second. I want to set the auto refresh to get the data from database every minute. But the page always display the dialog box ask me to resend the information. How to disable this warning message. I using POST and REQUEST to get the data from user input page.
Getting URL Information
Can someone point me to a document anywhere in the Internet where it tells me what are all kinds of information I can get from a URL. Specifically, the ones that are possible to deal with PHP. For example, I can find out the IP address or the URL's host's location.
IP Information
As part of my statistical analysis of the visitors to my site, I record people's IP address. Is there an easy way to get more information (where people are from, maybe even long. and latitude) or perhaps translate the IP address into a named address?
Get Pc Information
How do i get the browser type from the user. I want to display this information on my webpage. I can get the IP,OS of the user already.
How To Get Information From Url
I am using the get method on my form to send information to my proccesing script, but i don't know how to take the information from the url and so that i can search for it in the database using a piece of code like this, $sql = "SELECT * FROM items WHERE id=$art"; Can any one tell me how to do this.
Get User Information
Hi, how do i get some information about my visitors? Things like IP, Operating System,used browser, referrer url and so....
Get Information From Server
I have a script that is used to email a lot of persons in an easy way. You load the script and select a file from your that contains all the email addresses from your own machine. I would like it to be possible to just click a check button or something and load a preset file from the server, this would make it a lot more user friendly (not to mention secure). The problem is that I do not know how to incorporate this in the script.
How To Get Client's Information?
I'm working on a website hit tracking appilication, in php we can use REMOTE_ADDR to retrieve the client's IP address, but how do I get its isp server (domain)? For example, the domain: pcp08721939pcs.norstn01.pa.comcast.net is associated with IP: 68.32.198.43 How can I use php functions to get 'pcp08721939pcs.norstn01.pa.comcast.net'? Anyone can help me out?
PHP Cookie Information
How do I read the expiration time for a cookie? I understand that reading the value of a cookie is just $HTTP_COOKIE_VARS["CookieName"] but is there a way to read when it expires? What I'm trying to do is make a login with a "remember me" option. So if you choose "remember me" the cookie is permanent, but if not it expires an hour after you are done with the admin section of the site. So I need to keep updating the cookie to expire after an hour, but only if it is set to expire less than an hour from "now".
Sorting Information
I have a script that completes a mysql query and displays all the information & all works fine The problem im having is that i only want it to display the information i tell it too ie... there are 3 people with an age of 40 and the rest with various other ages, can someone point me in the right direction to get the script to display only those who are 40 & ignore the rest...
Passing Information
I'm needing to work with a bar code scanner and have come to realize that after scanning a barcode the unit actually does a hard return. What is the best way to variables from one page to another. I was thinking of creating 5 pages of for input and the last one would have the submit button. I just don't what would be the best way to pass the variables from page one, two, three.. etc to page 5. Thanks for any help you might be able to offer.
PHP Variables Information
I'm pulling a variable out of our LDAP. How can I see the full lenght of the variable? I'm trying to write a script to allow/disallow based on username. It appears when I set the username variable from the LDAP information there is some white space I need to trim. And if there is, how do I trim in PHP?
Parsing Information From .asx
I am trying to extract the artist, title, etc. from this .asx stream: http://www.sirius.com/asx/6lu9ladr/starlite.asx I understand .asx is Windows code, but I assume this still may be possible. Where can I begin to figure out how to do something like this?
Extracting Information
Does anyone know where I should start with this. Im trying to extract the information in: $_SERVER['HTTP_USER_AGENT' But I dont know how to get the information out? What functions should I be looking at. I want to get the OS, Browser, IP etc..
Login And Get Information
I would like to make a script that can log in to another webpage, and enter a second page, and then get the HTML there, and then save it to a DB/file. The login script is like this:
Get The Different Information In A Field
I have a field that has only 4 different information, lets say that the field's name is "color" and it has 4 different information that are: red, blue, green and yellow. How can i get those 4 or more colors out of the field with PHP?
Retrieving Information From URL
I want to make it easier for a user to get to a comment on my page and to be able to go directly to that comment when it is typed into the URL. For example, instead of this: http://www.mysite.com/comments.php?id=1 I want them to be able to do this: http://www.mysite.com/1 I am just wondering how to retrieve the "1" from the url instead of having to type id=1 and store it into a variable. I know that the second one is pointing to my homepage instead of comments.php, and thats fine. I am just going to redirect to the other page or include the other page after I retrieve the "1".
Getting Information From An Array
I've got a problem with an array, and I'm not sure exactly why my script isn't working.I'm pretty new with arrays, so that could be the reason right there. My script look like this function getconfig($getkey){ return $currentconfig[$getkey]; } In the array, the online key is set to 1. I am trying to get the 'online' key, so I use getconfig('online'); but it doesn't return anything.If I use print $currentconfig['online']; it prints "1".
PHP Not Outputting Information
I am trying to pull info from a MySQL dbase with a simple script that recieves info from a get request such as http://mysite/subfolder/index.php?where=Alaska The code for the request is as follows Code:
Php Collapsible Information?
Would it be possible to create a page using php that basically a user could click on and it would expand to show more information a bit like the javascript menu's that are available but in php if possible. same sorta thing that clicking additional opptions on creating a post works??
Access Quota Information With Php
Actually i'm looking a way to show email quota information like yahoo di in my squirrelmail i try to do from shell, ex: $ du -sh asiah 1.8M asiah is it possible to show that information to browser with php , since i have try to use : <?php $tes= exec("du -sh /mail/raka.com/users/asiah"); echo $tes; ?>
Cannot Add Header Information - Headers Already Sent
I've got this annoying error: Warning: }Cannot add header information - headers already sent by (output started at c:program filesapache groupapachehtdocsdevadminauth_user.php:2) in c:program filesapache groupapachehtdocsdevadminauth_user.php on line 16 Trying to get my head round this one, but to no avail. Basically I've got this login script, its a HTML file, and when you login in, and you've not entered anything I've used the header function to re-direct the user back to login section, and if the user if sucessful, I would like them to go to the next section, again using the header function. Can someone point me in the right direction, if ((!$username) || (!$pass)) { echo "Username and Password must be entered"; header("location: http://localhost/dev/admin/login1.html"); exit; } $result=mysql_query("SELECT * from user_addition where username = '$username' AND password = password('$pass')"); // check for any results from the query by counting number of rows returned in the result set $num = mysql_num_rows($result); // if number of returned rows is more than 1, a match was found if ($num != 0) { echo "1"; header("Location: nextsection.html"); exit; } else { echo "INCORRECT"; #header("location: http://localhost/dev/admin/login1.html"); exit;
Website And Tracking Information
i need some information on how you guys would go about making a website that could give you information based on a number you put it. This information will be tracking information on a particular package. The number will be a given number that corresponds with that package. Basically, all the files are dbase files that need to be converted into something readable. I then need to be able to use php or something to search through the readable information from the dbase file and then put it on the screen for the user looking for the tracking information. How would you go about this.
Warning: Cannot Add Header Information -
Everytime i try to use headers on win2k/apache/php4 i keep getting errors. I dont have a clue why i get them.. but anyway, i use this code(from webmonkey): <?php // File Name: auth02.php // Check to see if $PHP_AUTH_USER already contains info if (!isset($PHP_AUTH_USER)) { // If empty, send header causing dialog box to appear header('WWW-Authenticate: Basic realm="My Private Stuff"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required.' exit; } else if (isset($PHP_AUTH_USER)) { if (($PHP_AUTH_USER != "admin") | | ($PHP_AUTH_PW != "abc123")) { header('WWW-Authenticate: Basic realm="My Private Stuff"'); header('HTTP/1.0 401 Unauthorized'); echo 'Authorization Required.' exit; } else { echo " <P>You're authorized!</p> "; } } ?> and when the output i get in my browser is: Warning: Cannot add header information - headers already sent by (output started at grogram filesapache groupapachehtdocsschildmain_admin.php4:2) in grogram filesapache groupapachehtdocsschildmain_admin.php4 on line 5 Warning: Cannot add header information - headers already sent by (output started at grogram filesapache groupapachehtdocsschildmain_admin.php4:2) in grogram filesapache groupapachehtdocsschildmain_admin.php4 on line 6 Authorization Required.
Warning: Cannot Add Header Information
Warning: Cannot add header information - headers already sent by (output started at functions.php:1) in /home/victor/www/cart_action.php on line 89 cart_action.php is a php file without interface but just doing re-direction using Header(). functions.php is a file contain inside cart_action.php which do not have any interface but contain several functions written by me. This happen suddenly, and I am very sure that I didn't output or echo anything before the header(), what is the possible problem like?
Cannot Add Header Information - Headers Already Sent ...
Hello all, I'm very new to PHP, and have been desperately trying to make the submit button on my form redirect to a confirmation page. But the header() function keeps giving this kind of error message: ---------------- Warning: Cannot add header information - headers already sent by (output started at /customers/mydomain/mydomain/httpd.www/mysubdomain/header.php:1) in /customers/mydomain/mydomain/httpd.www/mysubdomain/mail2.php on line 5 --------------- My code looks like this in the header of mail2.php: ----------- <?php if ($_REQUEST["Submit"]) { header("Location:confirmation.php"); $Email = $_REQUEST['Email'] ; mail("me@me.com", "Newsletter", "From:$Email"); } else { } ?> -------------
Php 5 Information, Tutorial, Book, Etc
I have worked on php for the past 6 years off-and-on and I was planning on making the conversion over to 5.x and I understand there has been a lot of changes from 4.x. Based on this, I was wonder if you could suggest a book that highlights the changes with examples as well as a site or two that would help with this. On another note, I would like to know how you guys seperate and tier your applications in php (I have been working with .NET in which we used a 3-tier). Do you try and use 3-tier, 2? How do you pass around the connection in php when you seperate the code (use some type of global or always pass the connection)? Etc?
Where To Find Pipe Information?
On a Linux platform, I have the need to call a compiled 'C' program from a PHP script (to do some special authentication), and to keep the information passed from the PHP script to the compiled 'C' program secret, i.e. the information should not be passed on the command-line. The PHP pipe manipulation functions (such as popen) were suggested to me. Where can I find out more about pipes, specifically: a)How to use the C library calls to manipulate pipes? b)The Linux API (below the C library)? I need enough information to write the compiled 'C' program, to exchange information with the PHP scripts via pipes, and to handle exception conditions. I'm just not sure where to look ... I'm not even sure if the C library is documented ... and which documentation is appropriate.
Collecting User Information
What methods do we have of collecting information about browsing history? We would like to see the last few links that a client followed, prior to entering our site. I thought $_SERVER[] object might have something like this, but I haven't found any details, yet.
Information Regarding $_Session And Extract
I am new to PHP. I would need some information on the following: 1. a) I wanted to know from where the data is extracted and stroed in the global assocoative arrays ( specifically what will be the contents of $_Session ?) b) Is there any way by which i can get to know all the keys of the arrays ( specifically what are the Keys of $_Session ?) extract($_GET); extract($_POST); extract($_COOKIE); extract($_SERVER); #extract($_SESSION);
How To Capture Cookies Information
I want to find out how do I capture user cookies information for traffic analysis on Windows machine and server cookies from Linux server.
Checking Information In An Array.
I have a function which reads a csv file into an array from there I want to check if a value is in it. Basically the csv files look like this: 23123233123,name,some@one.com 23423412213,name2,some2@one.com 211111,name3,some3@one.com My function looks like this: function read_csv($filename, $delim=',') { $row = 0; $dump = array(); $f = fopen ($filename,"r"); $size = filesize($filename)+1; while ($data = fgetcsv($f, $size, $delim)) { $dump[$row] = $data; $row++; } fclose ($f); return $dump; } $csv_array = read_csv(csvfile.csv); I would like to now seach the array to see if a value is in there and do something from there with it. if (in_array(211111) == "true"){ echo "Your already in the file"; //note don't write to csv file } When I try to check to see if the value is in there It never tells me true so I can run the commands that I want from there.
DIY Enterprise Information Portal
Has anyone tried reverse-engineering Netvibes and placing Zend Framework on the back end to implement an enterprise information portal? Maybe do a Save As with your Netvibes page and Posh http://www.portaneo.com/solutions/en/opensource.php as a starting point...? I figure it'd have the enterprise stamp of approval if it had ZF on the back end.
Storing Information Without Cookies.
I am trying my hand at writing a forum in PHP. I wanted to know how is it possible to save information such as the visited threads so that the correct icon is displayed. I know how to do this using cookies, but how can I do that without using them so that when a member deletes cookies from his system, his activity information is still preserved?
Change Header Information
i want to change header information. but if i try with header("http://form/menu.php"); Cannot add header information - headers already sent by (output started at /form/new/menu.php:8)
Saving Form Information
Say I have a webpage which takes in many user inputs through a form. Once i click the submit button in the bottom the information is sent to the server. I fill in the user inputs and would like to save the webpage with in input data filled before submitting. Is it possible to save the webpage with user inputs filled?
Submit The Information Via POST
I am trying to build a script which wiil receive some user input, and submit the information via POST to a second procedure, which does some validations. If the validations fail, the original procedure is recalled, but this time the user should see an error message. The following fragment illustrates:...
|