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.





PHP Script That Displays Another Page Partial Content


If you go to http://europe.nokia.com/A4305060, fill the "Enter your
product code:" field with the value "0523183" and press "Go" (the
ending page URL varies because there's a variable session-ID in the
URL-link associated to "Go") you will obtain this string:

"Version: RM43_V1.10.030"

Is it possible to have a string.php page that just display this string?




View Complete Forum Thread with Replies

Related Forum Messages:
Partial Content Caching Script
I found this script on the net and I think its great it caches my dynamic mysql content in to static pages to reduce load on the server. There is one problem I can't figure out.. When i run the script it shows the dynamic mysql content  plus content from the cache right below it. I have settings in place where if file cache is not old then it should load, but for some reason the dynamic content loads anyway. 

Any thoughs on how i can prevent the script to show the dynamic mysql content, when the cache file is still valid? ....

View Replies !
Session Var Is Setting ONLY AFTER I Reload Page, Form Var Displays First Page Load
Page1 has a form that calls Page2. The beginning of Page2:
<? php session_start();
$s=$_POST['sSelected'];
session_register("s"); ?>

in the middle of Page2 I have a form varaible:
<?php echo $_POST['stateSelected']; ?>
<?php echo $_SESSION['s']; ?>

The form var displays the first time the page loads. The session var
displays only after reloading the page2.

View Replies !
Generate A PDF And IE Displays A Blank Page. What Happens?
I have two server one is local and the one is the live server? for the pdf in local it display in IE and give me a good results, but when i test it online (live) the IE gave me blank?

Is this something on limit time?

View Replies !
Displays 5 Posts Per Page In Descending Order
I have been doing up a website which will, among other things, display news that I input into the MYSQL database. I have a working version of this where it just displays 5 posts per page in descending order (the latest at the top of the page) with the page numbering underneath them.

Now what I wan't to do is just dispaly the latest 5 posts on the page but, I want to dispaly them so that I can put in a Javascript function to maxamize and minimize each post by clicking on the title.

So, I have, ID, Title, Newstype, Author, Post, Date. In my mind I see this as display each of these using the COUNT(*) thing and just subtracting 1, 2, 3, 4 to get the 5 posts I want. I just don't know how to do it.

View Replies !
Script That Reads My Log File And Displays It In An HTML Page.
I have a problem. I am trying to make a script that reads my log file and displays it in an HTML page. I got the base code from a book, being that I am still learning PHP and I needed a little help starting out. But the code I am using gives me an error.

The error is :

Fatal error: Maximum execution time of 30 seconds exceeded in /home/sites/home/web/php-site/log-file.php on line 15

It ranges from to line like so :

Fatal error: Maximum execution time of 30 seconds exceeded in /home/sites/home/web/php-site/log-file.php on line 27

I want to know if anyone knows the specific reason or maybe a place to start at to find out the problem and the solution.

View Replies !
Developing A Page That Displays Latest 5 Images In A Database
I am currently changing my web site so that it is PHP and mySQL powered. On the front page I have an area that will display the latest images in my portfolio and the latest text description.

Therefore, what I need is an admin page which allows me to upload images to a database which has a timestamp/date field, a thumbnail field, an image field, a text field for the title and a text field for the description. I also need a HTML form with inputs for the thumbnail upload, image upload, title and text description (in a textarea).

It would also be useful to have the page display the database contents and allow me to edit the details and also, delete rows. I then need code for that will display the most recent 5 thumbnails and the title on my index.php page.

View Replies !
Single Page Login That Displays The Contents Of A Directory
Im running into a problem, I have a single page login that displays the contents of a directory. Code:

View Replies !
Displays Page Will Not Parse Till The Sql Query Is Finished.
I had PHP 4.3.3 running before I updated. When a page was loading, all the php/html that was doing simple prints of tables and images would load while an sql query was running. When the sql finished, the rest of the page displayed. I have now updated to 5.2.3 and when I go to the exact same page, nothing displays until the sql has completely finished.

The issue with this whole thing is the javascript I had loading on certain pages that displayed an image telling the visitor "please wait, processing..". This no longer displays since the page will not parse till the sql query is finished.

View Replies !
PHP Page That Displays Html Based On The Address Enterd
I would like to have a PHP page that displays html based on the address enterd. For example:

index.php?example=a would show a page with <body>Example1234</body> whereas index.php?example=b would show a page with <body>Example5678</body>.

I've done this before, but I can't remember the code I used.

View Replies !
MySQL Query - Page Which Displays A List Of Orders
At the moment I have a page which displays a list of orders, with the following query: Code:

<?php
mysql_select_db($database_connOriental, $connOriental);
$query_rsOrders = "SELECT *, date_format(OrderDate, '%d %M %Y') as formatted_date FROM Orders INNER JOIN Customers WHERE OrderCustomerID = CustomerID ORDER BY OrderID ASC";
$rsOrders = mysql_query($query_rsOrders, $connOriental) or die(mysql_error());
$row_rsOrders = mysql_fetch_assoc($rsOrders);
$totalRows_rsOrders = mysql_num_rows($rsOrders);
?>
.........

View Replies !
PHP Dynamic Drop Down Menus, Page Displays Diff Data Depending On Dropdown Selected.
I currently have two drop down menus the first one with countries and then the second one changes depending on which country is selected to display counties.

This works fine, now what I want to do is have it so when it county is selected it shows all the squash clubs that are in that county below the drop downs. Code:

View Replies !
How To Add My Own Content Into Page
i've built a page and made it a module... but it is almost a blank page because i don't know how to add my own content in that page... Code:

View Replies !
1 Page, Many Content
Up to now i have always created pages that are seprate and a link just goes to that pages so like index.php games.php news.php etc,

I am creating a site for someone however and they have only given me index.php and want all of the infomation inserted in to the 'content area' of the page. I know it changes the url to like index.php?news index.php?

View Replies !
Get Content From A Page
I wanted to try to get content from a page say www.google.com and use PHP to modify it to my liking.

View Replies !
Page Content
on my website i have a test.php page and link to test.php?test=1 and test.php?test=2:

<a href="test.php?test=1">Test 1</a><br>
<a href="test.php?test=2">Test 2</a><br>

what javascript script do i need to tell it what to put on these 2 pages (?test=1 and ?test=2) and where to put the content i want to have on these pages.

View Replies !
Analysing Page Content
I'd like to be able to request a page from a server and then be able to
analyse the content (rather than rendering it to the screen of my browser)
in php. I guess this is a bit like how a robot works. I've got quite a lot
of php knowledge already, but I can't think of how to do this.

Has anybody any ideas on the types of functions or mechnisms I should be
using for this?.

View Replies !
Capturing Page Content
In building an application, I am trying to capture the content of a page to see if the user has permission to view it. If they have permission, show the link. The user logs into the system and it sets a cookie. I'm trying to look for the cookie, but it doesn't show any. When I view the page directly, I do see the cookie. I'm using file_get_contents currently. Is there another way to do this so that cookies work?

View Replies !
Page Content Search
anyone know a way to search for links in a url? I would like to open a website say yahoo.com and have a list of all urls on that site. can you do it with php?

View Replies !
Content Page Layout
I'm Currently using joomla for my upcoming site but i'm not fully happy with the layouts and some panels. below are afew samples on what i need, the first 2 are what's currently on joomla and the bottom 2 are what i want Code:

View Replies !
Editing Page Content
I want to allow users to edit content in a webpage. How do I ensure that text is placed between <p> tags? and that when the user hits return that new <p> tags will be inserted?

View Replies !
Use To Search Page Content
I have a site running PHProxy. I would like to put a restriction system on what users can't view. I would prefer they don't look up porn, warez, etc. on my site.

What I want to do is create a table in mysql that acts as a blacklist. I will add words to the blacklist manually on my own, but i want php to search the content of the pages for these blacklisted words.

I think i can handle it all, except I am not sure how i should go about searching through the content of the current page. Any ideas?

View Replies !
How To Find Content On A Page
I'd like to build an extremely simple script that will be used in part of a larger script. This script will when correctly working echo if a string in the static HTML "<!--stuff-->" exists or not within the same file; thats it.

I plan on erasing and reinserting this string from and back to the file. I'd like to keep this as simple as possible and since my files change a lot I need this to work with the static string we're looking if it's anywhere on the file (and not on say specifically line 7 or 23 or something predefined). Code:

View Replies !
Change Page Content?
I want to make a page that has a dropdown menu with 13 options on it and when one of the various options are chosen, make it change the information below to the corrresponding information to that option.

View Replies !
Parse Page Content
I have a request from boss that create a small function which will keep login inforamtion. Then the page will automatic login into targeted site using stored login info and capture content of the page.

View Replies !
Generating Web Page Content
I have $results array, which contains product id’s corresponding to DB records. I would like to generate a href link with that product id in it, where if user clicks on it, a web page is automatically generated by pulling results from the database based on that product id.

Problem: I can’t figure out how to generate that type of a page without using POST or GET method.

View Replies !
Change Content Of Page...
I have a directory called members, and in it i have a seperate page for each member, but I would rather pass a variable in the url that would choose what to have the page display. so you'd go to "member.php?member=person1", and on the page it would be something like this (this is in javascript, since that's all i know)

if (member == "person1") {
document.write("This is member one, he likes swimming, ice cream, etc"); }

if (member == "person2") {
document.write("This is member two, she likes jogging, complaining, coctail parties, etc"); }

how would i do this in php? thanks a lot :)

View Replies !
Content Will Not Display Until Page Refreshed
I have a web site in php that is (trying to be) a local directory.
The first and second pages (index.php and index2.php) do not appear when going to the web site unless you hit the refresh button.

The problem occurs with all I know who have visited the page.

The problem "disappears" if you visit the site and return in the same browser session -- presumably because it is now in the cache.

My first foray into php was to update and expand a local directory I had made originally coded in html. I purchased the php "site" and modified it extensively, learning a very little bit along the way about PHP and MySQL and Apache server.

I have submitted the issue to the ISP and to the program writer, each of whom points the finger at each other, and no solution.

I have searched the forums to no avail -- I found one post in WirdPress.org that is unanswered, and another post in Joomla which was ansered with several suggestions to edit the .htaccess file, none of which worked.

I have cleared my browser many times, but I doubt that is the problem (or else why would everyone who visits have the problem).

View Replies !
Reading Complete Page Content
I'm looking for some php code or for ideas how to read the complete
content of a single page. Like a small spider or indexer. I want to
read the content and put it into a MySQL database for a small search
funktion.

View Replies !
Display Only A Certain Amount Of Content Per Page?
Basically, i am using file() and a for loop to display content from text files, but i don't want to have all the information displayed at the same time.

I want to show the first 20 lines, then have a link saying "Click for the next 20 entries" which takes the user to the next page which has the next 20 lines. What is the simplest way to do this?

View Replies !
Update Page Content From A Form
I want to have a web page that uses variables from a text file as some of its content.
I want another page with a form that will allow me to updated/change the variables in the text file. I have no need to add variables using the form only change the values of existing variables.

Basically I want to make some content on one of my pages update-able using a form; not entire paragraphs just single words that I have laid out in a table. I have been told that I should just use something like mySQL for this. I do not know if it is necessary since I only want to do it to one page.

View Replies !
Using A Link To Change Page Content
Basically I have a page to enter data into a mysql db via a form. After the data has been input, this form disappears and instead (on the same page) the data is shown in the same format, just not editable anymore.

What I need to do is have a link that will be able to switch between the two states, being 'edit' and 'view'.

View Replies !
Transferring The POST Content From One Page To Another
Is there an easy way to transfer a page POST content to the next page?
Right now I read out the POST content in the PHP script and put it in a
html form (with POST as content type) as a hidden field, but I am
wondering if there isn't a nicer solution to do this. I need this
functionality so that the user is able to re-login if for some reason
his/her session got lost.

This happens every now and then when the user
is completing a form and hence the need for re-submitting the form data
after logging in again. The form also contains arrays, so I have to
iterate through all of them which is okay.

View Replies !
Phrasing Only The Content Area Of A Page
I am trying to return only the content section of a page that is a "text" page, so the forum would not apply, like an about.com or wikipedia article is what i am trying to get.

On wiki I know I can easily do it by getting the div labeled "content", but what abotu pages that aren't labeled, is there any ideas out there?

View Replies !
Importing Content From Changing Page
I am trying to import content from a forest fire bulletin, but each time it is updated they change the filename.. I can find out what the filename is from Page A by doing this: Code:

View Replies !
Populating Page Content From Mysql Db.
First off my db table is orginized in this way:

ImgKey (auto increments)
ImgType (pertaining to the buttons in the gallery)
ImgName (name of image)

When you click a button from the initial gallery page, my plan is to pass a query string to the next page with the appropriate ImgType. On the next page I need to grab all the records in the table with that ImgType. (you can see the next page by clicking the first button) Code:

View Replies !
Getting Content From Password Protected Page
I would like to know is it possible to get page content from password protected area (page). I would like to get some text out of page, but that page is password protected (you need to have logged in to see it). I have the password and username to get into page normally, but I want to get same content dynamically.

View Replies !
Display My Content Pages WITHIN My Index Page
Basically I have a layout index page. What I want to accomplish is display my content pages WITHIN my index page and I dont want to use iframes. Code:

<?php
if(strstr($id, "..") || $id[0]=="/") $id = "";
if(empty($id)) $id = "/home/vbd/public_html/home.html";
else { $id = $id . ".html"; }
if(is_file("$id")){ include("$id");
} else include ("404error.html");?>

I'm formatting my links like this: Code: <a href="index.php?id=news">News</a> And heres what's happening, the home page work as it should but none of the links are working.

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 !
Making Sure Page Shows Latest Content
Is there a way to make sure the client browser loads a php script from the server each time, rather than displaying what it has saved in the cache? I have a script which displays the contents of my Sql table, but the browser often displays the previous version, without any records that have been added since.

View Replies !
Preg_match_all , Pulling Content From Html Page
This is what I have:

preg_match_all("/<tr class="*tdshade.*>(.*)</tr>/U", $result, $matches);

$result is a string of HTML like so: Code:

View Replies !
Str_replace - Add Some Content On The Page To Show What You Have Submitted?
I had this wacky idea to have a pull down that keeps the same values when previewing what they have select in the post (ie. Webmaster World's 'Preview' Button When you post It has the same value of what u put in it when you add some content on the page to show what you have submitted) My Code:

$genre_pulldown = "<select name="genre" id="genre"><optgroup label="Genre"><option value="Yo Mama">Yo Mama</option><option value="Blonde">Blonde</option><option value="Political">Political</option><option value="Religious">Religious</option><option value="knock Knock Jokes">knock Knock Jokes</option></optgroup></select>";
if(!isset($_POST['genre'])){
echo $genre_pulldown;
}
else{
$genre_pulldown = str_replace('{$_POST['genre']}"', '{$_POST['genre']}" selected', '{$genre_pulldown}');//LINE 81
}

View Replies !
Form Post Content Making Page Not Found
We have a system where users track email correspondences by cutting and pasting previous emails into a text area form and submitting them. When the (to, from, subject) code is included, the processing page is not found. When that code is removed form the text area, it process just fine. Is there a way to avoid this?

I've tried strip_tags and htmlspecialchars. Neither have worked as it appears the code in the post affects things prior to to point where PHP would kick in. Code:

View Replies !
Adding Content To MySQL Database Then Pulling Into Php Page
Need to find a script that will add content to MySQL database from one php page then output into another php page at the same time. However the data does not need to be recorded or saved so this may make it easier.

View Replies !
Need To Reformat Content Extracted From External Html Page
When I output the extracted content (a html table from an external page) the table is too wide to fit into the design of my site. Is there a way I can tell php to look for width=value and ignore those?

View Replies !
About Partial Includes
I tried the following code, which simply includes all the contents from the other file. I want it NOT to include HTML code AFTER <END HTML DATA> tag in the other file.
Please let me know if the code needs to be corrected, or I am doing something wrong.

<?
$off_site = "./";
$data_start = "<!-- START HTML DATA -->";
$data_end = "<!-- END HTML DATA -->";
$fp = fopen ("$off_site$page", 'r')
or die("Unable to open file $off_site$page for reading");
$readData = false;
while (!feof ($fp)) {
$buf = trim(fgets($fp, 4096));
if ($readData) {
echo $buf;
continue;
}
if ($buf == $data_start) {
$readData = true;
continue;
}
if ($buf == $data_end) {
$readData = false;
continue;
}
}
fclose ($fp);
?>

View Replies !
Partial Text?
I'm currently writing a really basic articles system, and would like to "capture" the first two hundred words or so of each article for display on my main page. Each article is stored as a BLOB in a MySQL db, and they vary in length from 100 words right up to 4000-ish.

phpMyAdmin has a feature (in recent versions, anyway) that allows you to switch between 'partial text' and 'full text' when viewing a resultset. The partial text view grabs the first line, and displays like this:

this is the the first line and no doubt there are many more but ...

So... has anyone got any ideas on how I could isolate a small chunk at the start of an article for display, if it is over a certain length?

View Replies !
Partial Displaying Of A Row
How can I display half of a text selected from a row of a database on a webpage.

$query = "SELECT content FROM container";
$row = mysql_fetch_row(mysql_query($query));

and I want to display half of the content meaning half of $row[0]...

View Replies !
Partial Sort
if I have an array of ten items how can I sort the first five items in the array without sorting the second five items?

View Replies !
Recommendations On A Partial CMS?
I'm designing a *fairly* small templated website which has mostly static(ish) contents. There are about 45 personnel and the staff want to be able to update their own personnel pages ... upload pics, files and links to other sites.

I have access to PHP and MySQL but no real programming expertise other than displaying stuff coming out of a database.

The world seems awash in CMS systems ... Just want something small, easy which has an intuitive web interface (like this forum). Any recommendations?

View Replies !
Partial Uploads
I wrote a quick admin for a site, with basic image uploads.

It was working for around 2 weeks, now suddenly it started getting buggy, then it just stopped working.

now when i upload i am getting error 3, UPLOAD_ERR_PARTIAL , the uploads are definetaly not being cancelled by the browser.

I havent come across this before so dont really know the first step to fixing it, and there seems to be no documentation into what causes this.

View Replies !
Putting Content Of Required File Into Variable And Not Automatically Printing To Page
I want to create a variable whose value is the content of required file/s. In the code below, when require() is used the content in the required pages is automatically printed:
Code:

View Replies !
Partial Calendar Script
I have a mysql database with a table that contains 6 elements, one of which is a date in yyyy-mm-dd format. So far, I've managed to get it to select all of the dates for the selected year. My problem is, I would then like to list the month and underneath the month, list certain dates that are in that month (it's a tour calendar). For example:

View Replies !

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