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.





Use Php Script That Configured To Get Certain Info Off Of A Web Page And Store Them In Some Variables


is there an easy to use php script that configured to get certain info off of a web page and store them in some variables, without having to do a lot of coding by hand.




View Complete Forum Thread with Replies

Related Forum Messages:
Best Way To Store Info In MySQL
I'm creating a site where members can create their own photo galleries, and I'm going to use mysql to organize the photos.

What's the best way to store the photo gallery information in the database? Should I create one table per user's gallery (many tables, each with a few rows),

or should I create a single table where all of the photo records will be stored stored, with a column linking each photo to a user (one table with lots of rows)? What's the best way to do this? Does it even make a difference?

View Replies !
PHP Info Instead Of Echo Store To File?
The code below is kept in a file called search.php I call this file with an include to the index page performing a search function. The issue is the search is in the top right corner and the results end up appearing in the top right corner instead of in the main text part of the page.

I use and include to make the search work on my main index page. The problem is when someone searches it replaces the search box with the results in the same section when i want it to post the results in the main section.

View Replies !
File On Server - Store Info In Database
I have a html form that allows a user to upload a file to the server. For each file that is uploaded, how do I store relevant information such as date uploaded, name, etc. in a database table? Here's my code so far:

$query = "INSERT INTO tbl values('".$fileName."', NOW())";
$result = mysql_query($query) or die(mysql_error());

And how will I get the info in the database to link to its relevant file on the server?
Basically, how can I select and display a file based on the database data?

View Replies !
Using Buttons To Store Variables
I'm writing a PHP script, and I know exactly how I want it to work, and what I want it to do when certain things happen. I also know how to make everything work. Well, everything except for this!

The goal of the application is to perform sales.  It will use a point and click interface. It should look something like this:

item 1

View Replies !
Store Multiple Variables
how I can store multiple variables in one field of a table and make them usable? For example, if the input from a form is:

Varible 1 = 1
Varible 2 = 9
Varible 3 = 3

Then the data should be stored in a single field as 1,9,3.

View Replies !
Secure Place To Store Login Info And How To Login With It
I had an idea to store my login code: ftp_login... in a separate file outside of the public_html dir and set full permission (777) to it.

1. Is that safe?

2. How do I call this function from inside another file?

function Login()
{
$connection= ftp_connect('ftp.me.com');
return ftp_login($connection, "me", "pass");
}

I was hoping to return connection but I don't know how to send pointers in php.

View Replies !
Sessions And Redirects - Send Info From Page One To Page Two.
I have a two part form, each part on a seperate page. I want to send info from page one to page two. Thought ok, I use session variables. The problem is that they don't get sent to the second page. All works fine on my local testing server, but when I go live session varables don't show. Has this something to do with header? Is there another way to get to the second page? Code:

View Replies !
Email Me This Info Page From A Order Confirmation Page?
How do i make a "email me this info" page from a order confirmation page? Basically someone enters some info in a form, then on submission is comes to my email. After submission, i want to have a text area where they can enter an email address to have the info emailed to them if they wish. You can see the page here, you have to enter info first, the email nbox on the second page (process.php) is non fuctional.

View Replies !
How To Store Session Variables Between Visits?
My website gathers some data on its first page, which is used on other
pages. I would like to 'store' the data in some session variables between
visits, to prevent any problems that may occur if a visitor bookmarks a
different page.

What is the best way of achieving this? Can I store the values in a cookie
on the clients pc?

View Replies !
Global Variables To Store User Name
I'm trying to do is set up a global variable for when the user logs in to store his user name, and call upon this variable later.

$loginName = $row['Username'];
session_register("username");
$username = $loginName;

I also set up a variable for a loginflag

session_register($loginFlag = 1);

This is probably wrong also. Here I'm trying to display different data to a logged in user and someone who isn't logged in.

<?php if ($loginFlag == 1) { ?>
<p><b>Welcome staff member <br />
<a href="../chooseupdate.php">
<?php echo $loginName; ?> </a>........

View Replies !
How Can I Store Global Variables For Whole Web Site
can anyone help me that how can i store the global variables for my web site. suppose i want to store the no. of users visited my site then what strategy should i use ?

can i implement some lock mechanism so that this global variable is not accessed by more than one application at some time which may create some confusion.

View Replies !
Session Variables To Store Database Field
On my site I allow users to log in. If the login is sussessful they are taken to a page saying welcome and their name is pulled from the database and displayed on screen. What I want to do is be able to store their name pulled from the database in a session variable if possible which I can then show there name on each page. Is this possible, im using MX to do so.

View Replies !
Variables To Store (Name,Species,Sex) Inside An Array
In PHP, is there anyway of using variables to store each piece of information (Name,Species,Sex) inside an array. Then, when it comes to fetching the information, the array position (e.g. 0) is called along with the information type (Name etc). A bit like the following: record(1).name The information is coming from the record array, at position 1 displaying names.

View Replies !
Array Problem - Extract And Store In Seprate Variables .
I have an array from a program of the type $list_box_contents[$row][$col]['text'];
 There are 3 columns  and an indefinite no. of rows.

Each array element contains a few bits of information. I want to to extract this and store in seprate variables .

$list_box_contents[$row][2]['text']; has 2 bits of information, a price and a small text box with some text. How can extract the price data from this .

View Replies !
Use A While Loop To Add Info From The Db Into Variables
i want to use a while loop to add info from the db into variables named item1, item2 etc.
i have the below query which i know wont work because it doesnt like the variable names $item$i... how can i get it to automatically create and name the variables for each $i?

$query1 = "SELECT * from quotes where quote_id = $quote_id";
$result1 = @mysql_query ($query1); //run the query
while ($row1 = mysql_fetch_array
($result1, MYSQL_ASSOC)) {
$i = 0;
$item$i = $row1['item$i'];
$i = $i + 1;
}

View Replies !
Getting Info From Db While Passing Variables Via Address
I am passing variables via a link address such as follows :
content.php?page=$cat&amp;&amp;author=$author&amp;&amp;title=$title

I am using urlencode to replace the whitespace in the links. I am also using a function to replace characters such as & with its w3c compliance version. (ie. &amp;) The function is as follows:

<?php
function replace($string) {
  return preg_replace('|&+|', '&amp;', $string);
}
?>

The following is an example of how I am using the preg_replace and urlencode to populate the variables in the url. Code:

View Replies !
Creating Info File With Variables
I'm trying to create a file with XML in it which contains user login info. In my script, a line is inserted that will be one type of user information, for example, <loginname>$username</loginname>. 

When the script runs, it actually inserts the characters $username. How do I make it so it enters in what $username equals, which is $_POST['username'] ?

$userinfobody = '<?xml version="1.0"?>
<loginname>"$username"</loginname>
<loginpass>"$password"</loginpass>
<contactemail>"$email"</contactemail>
<regdate>"$todaysdate"</regdate>';

I am also getting a syntax error now at 1.0.

View Replies !
Getting Info From Tables, From Multiple Variables
I wonder if anyone can point me in the right direction with this.

$query = "SELECT * FROM products_to_categories WHERE cat_id='$cat_id'";
then found prod_id by doing this:

$num=mysql_numrows($result), $i=0;, while ($i < $num), etc and
$prod_id=mysql_result($result,$i,"prod_id");

Now, all these prod_ids that are being returned in the loop, how do I use them in another query? i.e. how do I do this:

select * from another_table where prod_id=$prod_id (all of them)?

View Replies !
Include() - Store The Text In The Index Page
I have a index.php page that has some text on it and I also have a edit_index page. From edit_index you can edit the text on the index page. But I don't want to store the information in a database or a text file but instead want to store the text in the index page.

Since the index page is PHP i made a variable at the top named $index_content and that holds the current text. What I want to have happen is for me to be able to, from edit_index, is edit the variable with the new text. So when I hit submit on edit_index I want it to call up index.php and redefine the $index_content variabled stored in the page. But i don't know how to write to a page like that when it's not apart of the script being executed.

I tried require(), but that didn't work, and I tried include() but that didn't work either. Is there some way to do this that i'm not aware of?

View Replies !
Redirect Page After Store The Data Into The Database?
How can I redirect this page after I store the data into the database?  Here is the entire script: Code:

View Replies !
PhpMyAdmin - Configured With The Config.inc.php
I have recently installed PHP 5.1.2.2, MySQL, Apache server all succesfully, but now i am trying to install phpMYadmin. I have configured with the config.inc.php, but when go into that directory to set it up, this is what i get:

View Replies !
Do Web Servers Normally Allow The Use Of Jpgraph Or It Has To Be Configured?
I'm about to start working with jpgraph... the question is:
Do web servers normally allow the use of jpgraph or it has to be configured?

Cause if it's not a standard figure I will not use it... but if it's common staff I will get into it and learn how to use it...

View Replies !
Setting A Session To Store User's Last Page Visited?
I have the following code that sets a session to return the user back to the previous page they were on.

$_SESSION['last_page'] = (!isset($_SESSION['curr_page'])) ? "http://www.mydomain.com/page1.php" : $_SESSION['curr_page'];
$_SESSION['curr_page'] = $_SERVER['PHP_SELF'];

Bascially I am looking for a better way to do this. The problem with this is you need to hard code what the previous page was. Is there anyway to dynamically set what page the user was on. What if the last page URL had an id in it like...

http://www.mydomain.com/?id=14

How could I set this as the previous page in a session?

View Replies !
Session Variables - Query The Database To Get All Info On The User Logged In?
I have a login script working. All is fine. This works by querying a database and if the result = 1 then set a session. What i want to do is get all the information relating to the user currently logged in. When i echo the session i get the value 1. How do i query the database to get all info on the user logged in?

View Replies !
Warning! PHP Is Not Configured For Debugging - In Komodo
I am looking for some assistance in 'fine-tuning' my preferences as I set-up
my system to learn PHP.

I am running Komodo professional, version 3.5.3, build 262321, platform
win32-x86.

Under Preferences/Language/PHP in debugger configuration, I am getting the
following error message:
WARNING! PHP is not configured for debugging. You can use the configuration
wizard to configure PHP for debugging.

When I try and run the Debugger Config Wizard I get to the point where it
asks me to choose the PHP extension directory.

I currently have e:/Program Files/perl/php/ext but when I try and click
Next>, nothing happens. It will not accept this choice.

What is it looking for?
How should I be configuring the system for PHP Debugger support?

View Replies !
JpGraph Error This PHP Installation Is Not Configured
I have serious problems with my GD Library configuration on my win2000 server. In phpinfo() every seems fine and I can use the library if Im running a php-script through a web browser. But, if Im in running the same script trough the command line interface like: c:xamppphpphp.exe c:scriptmyGdScript.php

I get the error message:

"JpGraph Error This PHP installation is not configured with the GD library. Please recompile PHP with GD support to run JpGraph. (Neither function imagetypes() nor imagecreatefromstring() does exist)"

View Replies !
Get Info From A Html Page With Php
im looking for a way to get info from a html page in php i have a code that was sapose to work but no longer does any one have any ideas on how to make it work? here is the Code:

View Replies !
Sending Page Info
for several different .php files (file1, file2, file3 ...) i want to have page numbering, ie, this is page 1, this is page 2... the files are accessed in different order

order 1: file1, file2, file3
order 2: file2, file3, file1

but the page numbering should always be 1, 2, 3 regardless of actual file order. any ideas how this can be done?

View Replies !
Passing Info From One Page To Another
I have a dynamically generated list of check boxes with ids email1, email2, up to the end of the list of addresses. This list is then passed to the next page where all the addresses are concatenated and added to a database. At least that's the theory. I can't figure out how to dynamically get all the $_POST[emailx] variables, with x being 1, 2, to the end of the list.

View Replies !
Send Info Into Same Page
we can send info into same page like following index.php?do=1 we can get it

if ($_REQUEST["do"]==&#391;').

View Replies !
Does The MySQL Server Need To Be Configured To Handle Apostrophies?
I am trying to do an sql insert statement. Several of the records I am trying to insert into my table include apostrophies. I am using the before the apostrophe like so: Antonio's I get an error when I submit the SQL. Does the MySQL server need to be configured to handle apostrophies?

View Replies !
Move_upoaded_file Permissions Problem - Does Something Need Configured On Server?
I am trying to carry out an upload and save file in directory operation
using move_uploaded_file(). However, when I run the script it give me
the following error:

Warning: move_uploaded_file(photos/sonyericsson_t610.jpg): failed to
open stream: Permission denied in
/home/martyn69/public_html/photos/add_photo.php on line 41

Warning: move_uploaded_file(): Unable to move '/tmp/phphPIdIj' to
'photos/sonyericsson_t610.jpg' in
/home/martyn69/public_html/photos/add_photo.php on line 41

I have ensured that the permissions for the folder are set to 777.
Also, I know that the file has been successfully uploaded as I have got
the processing script to display the filename, size, type etc. The
problem occurs at the move_uploaded_file() part. Does something need
configured on the server for this to work?

View Replies !
Php (4.4) Configured To Open Secure URLs (https)?
I use apache, Php and MySql on my Windows XP machine at home. I have been doing so successfully now for a long time. However, I am now trying to use fopen to open secure URLs (https) and having no luck. I have installed openssl and enabled the extension (phpinfo says so, too). But still it does not work.

I now realize that I need to have https and ftps as registered streams, i.e., Registered PHP Streams php, http, ftp, https, ftps, compress.zlib (from phpinfo at my hosting provider)

When I run phpinfo on my version of Php (which I just downloaded from php.net) it says,
Registered PHP Streams php, http, ftp, compress.zlib

I've been reading forum posts saying to compile Php with
"--with-openssl in your ./configure
command."

Well, I do not compile Php from source (don't even have a C compiler). I always download binaries (like php-4.4.0-Win32.zip that I downloaded today from php.net).

How do I get a binary that was compiled with openssl in the configure command? Or if I am misunderstanding something here, what is is that I need to do?

View Replies !
Make Html Page And Store On Harddrive From Database For Pagination Technigue
i am creating a news site. i am adding new news in database and it must be visible to user at top. and then second latest news and so on.

i am displaying 15 news on each page and then put a link for next 15 news on page.

my site is accessed by millions of people everyday. so for each when he want to see news he click on news link and in my php program query is run in database. so my database access became very slow because if one million people clicks on news link, the database will be accessed and query will be run one million times. Code:

View Replies !
Page Info Change On Submit
I have a menu on my site that is all pulled out of a MySQL database. So the links actually look like this: <a href="about">About Us</a> And when the user clicks on this link I want the page to go to the database and get the info for "about" and then refresh the page and display the info.

View Replies !
Opening A Page To Display The Right Info
I'm making a website where registered users can upload a photo as well as information. The main page will display all of the users' photos. When user1 clicks on, say, user5's photo i want a page to open up and user5's information. How do i do this?

Every user has a username stored in the database along with their information and the url to their photo. Code:

View Replies !
Reading And Extracting Info From Another Page?
How would I extract some info from another site and then display it on my site?

View Replies !
I Can't Get Info.php Working On PWS Win98 The Page Cannot Be Displayed
Can someone help me?
I have tried php-4.3.4-installer
I have tried php-4.3.4-Win32
If someone has PWS running PHP4 on windows 98
I would appreciate any help. thank-you

View Replies !
Parsing Info From Other Page (method POST)
- i want to get some info from the page XYZ to my page. XYZ page has a FORM where you can select DAY, MONTH, YEAR and you get the info about a day you selected.

- now, if i want to grab the info from let's say 20. august 2002 my url will look like this: http://XYZ/file.php?day=20&month=8&year=2002.

- THE PROBLEM is, their form has the POST method, which means, if i want to direct link the 20 august, it will bring me to the FORM page and not to DATE page.

is there any ways to bypass this?? I REALLY NEED THAT INFO?!

View Replies !
Dynamic Content - Writing DB Info To A Page
I'm writing a website that works on similar lines as a dating site, where end users can enter their details and what they want to sell, which is then submitted on to a webpage, any people that are interested in that product, contact us and we then pass the lead to the person who is doing the selling. So basically teh site is acting as a middle man.

I have done the database bit where the end user enters his details, we get emailed his details and his id (which is a an auto increment field) then there is a page called view.php which pulls up his details on a web page and there is then a submit and decline button. Teh decline button is the easy part, but the bit that I'm stuck on now is the submit part. And thus here is my question how do i write information that is held on a database to a webpage. But this webpage has to ADD and and not OVERWRITE what is already there as we want to create a listing? Code:

View Replies !
Pass Info Forward From A Redirect Page
I have a main page with 75% constant contents. I want to change the other 25% depending on what page calls the main page. Example:

www.mysie.com/a.html
www.mysite.com/b.html
www.mysite.com/c.html
www.mysite/x/y/z/mainpage.php

Pages a, b, and c are redirect pages to mainpage.php How can I how can I open storya.txt in the mainpage.php when someone clicks on ~.com/a or storyb.txt if they click on ~ .com/b ?

View Replies !
Using XML To Send Info From The Web Page To MySQL Database.
I am trying to undestand XML and the resion for it and if i should be using XML to send info from the PHP web page to mySQL database.

if so how would i send for example
$xml = mysql_query("INSERT data WHERE stuff = stuff");please excuse the bad code.

View Replies !
HTML Presentation Page For Uploaded Info?
I've seen a lot of posts about uploading files, but not much about what happens afterwards. Can someone point me to a tutorial, post or book which will help me solve this problem:

I'd like to have a form where users can upload a photo, add a short bio, put in some contact info, and have all of this information stored in a database (natch).

Then I'd like for this form to take this user's data and put it into an html presentation template. Ideally, members would sign in and be able to modify their own profiles as well as view other profiles.

View Replies !
Passing This Radio Button Info To New Page.
I have my users choosing from several radio buttons on a page(page1). When they click "submit" they should be given a table of results on another page(page2). Depending on which one they choose an X will appear in the correct box. Code:

View Replies !
Getting Current Page Info Into The Query String
I have a drop down list in a form, in a PHP page, the form is displayed via 'echo'.

The FORM ACTION tags looks like this:

echo "<CENTER><FORM NAME='choose_lib' METHOD='post' ACTION='viewpix.php?ctPos=360&ctWid=109&hsp=1&loc= XXX '>";

When the user selects a name from the drop down list, which is dynamic, how can I get that variable into that ACTION url where it currently says XXX ? All I can think of is that I am going to need an intermediate page, and that doesn't sound very efficient.

View Replies !
Header Problem - Insert The Info Below And Then Jump Back To A Page.
i want to insert the info below and then jump back to a page. Here is insert and the header statement: PHP Code:

View Replies !
How Can I Pass Variables From The 1st Php Page To The 2nd Php Page Without Using Cookies
How can i pass variables from the 1st php page to the 2nd php page without using cookies or passing through the URL from an <a HREF="2ndpage.php"> link? the variable consist of 200 characters. for example some code

//for example i get the variable $variable from the db.

while ($row = mysql_fetch_array($result,MYSQL_ASSOC))
{
<a href=&#392;ndpage.php'>
}

View Replies !
Passing Variables From Page To Page
I just need to know how to pass variables from page to page on my form.

View Replies !
Passing Variables From A Page To An ASP Page?
I have a site using a PHP CMS and I need it to use an ASP module from
another site but I would like to use a frame so it looks like it is
still in the same site.

I need to pass a username variable from a form in in the PHP webspace
(where the domain is pointing) to a page in an ASP webspace (using a
subdomain not related to the main domain).

I created a frame page in the php hosting with a 1px top frame and the
main frame pointing to the asp page but of course the variable is not
being passed.....if I put the ASP connection code on the frameset page
it doesn't recognize it because the hosting is a Unix/PHP hosting
only.

My question to you is:

Can a variable be passed from the php to the ASP webspace using some
other technique?

I just need to have the ASP module showing as if it is in the PHP.

View Replies !
Carrying Variables From Web Page To Web Page
I was reading about PHP variable scoping - it doesn't seem to support
carrying any variables from one web page to another - how is this
usually done? I have a lot of php variables created on my home page
that I need to make use of on other web pages - how can I do that?

View Replies !
Reading Unix Group Info And User Info
how one reads group/user info of *nix servers using PHP? Is it possible at all? I need to authenticate people on a secure local website by looking at their group and user rights.

View Replies !
Fatal Error: Fopen(): Unable To Find The Wrapper "https" - Did You Forget To Enable It When You Configured PHP?
i have used a script that i downloaded and uses the
fopen($url,'r'); function to access a url to retrieve data and i get
this error

Fatal error: fopen(): Unable to find the wrapper "https" - did you
forget to enable it when you configured PHP?

i checked the 'allow_url_fopen = On' in php.ini and it is set to On,
and still it didn't work

View Replies !

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