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.





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

Related Forum Messages:
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 !
Write An Sql Statement That Reads All Orderlines With The Current Session ID Into The Web Page Using Php
I am trying to write an sql statement that reads all orderlines with the current session ID into the web page using php... I have the following SQL statement:
$sql = "SELECT sel_item, sel_item_qty, sel_item_price, sel_item_totalprice, date_added, phpsessid from user_track where phpsessid = "$phpsessid""; This doesn't work. Has anyone got any suggestions... this is pretty urgent.

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 !
PHP/HTML Displays
I am using a PHPed version of an HTML file in order to include an onload function to write to a log file. The problem is that large parts of this file display as garbage 9 times out of 10, and sometimes again with a refresh.

Is this a HTML or a PHP problem?(it doesn't occur in my other HTML only pages)

If it is a PHP problem, is it a question of delaying script execution until images are displayed? And how do I do that (or whatever else may need doing)?

View Replies !
What Function Make When Reading File It Reads Binary Data And Not Normal Strings?
I mean what function make when reading file it reads binary data and not normal strings? and what kind of way you can read a file in whole? because sometimes you don't know how big a file is, like outside the original server.

View Replies !
Regular Expression Which Reads A Text File And Stores All The Email Addresses Found In TEXTFILE In A Variable.
I need a regular expression, which reads a text file and stores all the Email addresses found in TEXTFILE in a variable.

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 !
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 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 !
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 !
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 File Displays
I'm having a strange problem when upgrading the content management system eZ publish from PHP 4.4 to PHP 5.1. Some cache files related to i18n are included with the "include" function, but they are being displayed to the user agent instead of being parsed by PHP. With PHP 4.4 there was no problem.

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 !
Display A .php File In A .html Page
if u have a .php file, u can use include to pull in other files. no problem there. This is what i need to know. how to use html coding to pull in a .php file into the page and display it.

View Replies !
Converting An Html/php Page To Pdf File
Im using php 4.2.2, and need to convert an page that consist of html and php to and pdf file. Can anyone help me on how I can do this and if it’s possible to do with php 4.2.2

View Replies !
Urgent Please Help (how To Show .doc File On An Html Page)
i have uploadeed a .doc file into server now i want to show it on a
page
how can i do it

View Replies !
How To Extract A Page Title From An HTML File
I am trying to extract the page title, description and keywords from an HTML page. Description and Keywords are easy, using get_meta_tags().

View Replies !
Loading External HTML File In Every Page
how can I load a HTML into my "every-page" template. Let's say I have a menu (HTML - ul list that becomes a collapsing menu thru CSS) and I want to have it loaded in every page of my site.

View Replies !
Displays Email Addresses On The Screen And Saves Them To A File.
I have the following code that displays email addresses on the screen and saves them to a file. The problem is, depending on what flag I put for $fp, it either doesn't write or if it does it doesn't overwrite what's there, just appends it. What can I do about this?

Also, on the screen, it displays each record followed by a <br>. In the file, it just displays all the email addresses in a big block. PHP Code:

View Replies !
How To Get My Upload File To Automaticaly Post A Link To A Html Web Page
Can some one direct me to a good tutorial that can teach me how to get my upload file to automaticaly post a link to a html web page on a web site.

View Replies !
Horizontal Scroll Bar That Reads From A Database
I am looking for a horizontal scroll bar that I can use written in PHP, well does not have to be, but preferred, that can get its title, description, where to open i.e _self or parent frame and link for the description from a mysql database.

View Replies !
Browser Displays "No Input File Specified"
Why is it that my browser displays a "No input file specified" message? My code is to simply output a string in the browser using a simple function like the one below. Code:

View Replies !
Preg_match - Make A Loop That Reads All The Files In A Folder
I know basically what I have to do to achieve what I want, but preg_match is so confusing with its search criteria and characters. I want to make a loop that reads all the files in a folder (they are all images) and sort them by their initial filename and the number included. Each folder will have something like this:

large1.jpg
large2.jpg
large3.jpg
thumb1.jpg
thumb2.jpg
thumb3.jpg
main1.jpg
main2.jpg
main3.jpg
original1.jpg
original2.jpg
original3.jpg

I want to sort it something like "original[0-9].jpg" and either put it in array or whatever so I can count the total (like 3 of each) and use each one. I have the right loop I think for the files, but I don't know how to do the filename filter.

View Replies !
<link:page.html,xxx> => <a Href="page.html?id=xxx">
I want to transform this code <link:page.html,xxx> to

<a href="page.html?id=xxx"> dynamically.

I tried out alot of preg_replace stuff, but I didn't get to manage it.

View Replies !
Reads Out Image Files And Sub-directories Into A Photo Gallery Format
I have a script that reads out image files and sub-directories into a photo gallery format, no problemo.

Here's the problem, the admin section is killing me. After a few weeks of screwing things up horribly, I started using (a variation of) WFB but that has just turned out to be massive overkill for a upload/delete image file and add/delete album(sub-directory) script.

I'm just not enough of a PHP guy to start this properly so can someone take a few minutes and help me lay out the PHP for this photo gallery admin?

View Replies !
Random Number Generator That Checks And Reads An MSSQL Db Table
I've been struggling with "in_array" for quite a few hours now so I may not be able to see the woods for the trees. I'm trying to create a random number generator that checks and reads an MSSQL db table to check that the number has not been previously used.

Generating the random number is fine. Writing the data to MSSQL is fine. However, if I query the db table , and then try to compare the list of uploaded codes to see if there is already a record, the in_array function gives me incorrect results even though when doing a print_r I can see a match. Code:

View Replies !
Function That Reads The Content Of The Images Folder And Creates Hyperlinks Of The Subfolders
I have a folder "images" in which different other folders are stored. Like "party" or "car" or "holiday". In those folders are JPG's stored.

I am looking for a function that reads the content of the images folder and creates hyperlinks of the subfolders (with the same name as the folder) when i click a hyperlink I want the pictures in that folder to be loaded and shown as tumbnails.

So when i add an new folder with new pictures i want to have a new hyperlink which shows the new pictures.

View Replies !
Embed Php Generated Html In Another Html Page
I am trying to include some php generated html in a page that is just a standard html file, NOT a php file. I have seen other html pages do this by including an src to the cgi script in script tags, like this:

<script src="http://someurl.com/somescript.cgi"></script>

the html page loads and the script is executed and the returned html is displayed in the calling page. So, I tried this:

<script src="http://someurl.com/somescript.php"></script>

It doesnt work!!

View Replies !
.html' Page Be Replaced By '.html.php'
Can a '.html' page be replaced by '.html.php' page via RewriteRule? To clarify, I'm using a software that formats the look of the site using .html pages. I'd like to add PHP code to that page but of course, it is not of the right page type.

What I was wondering is Could I create a duplicate of that '.html' page, rename it to .g. '.html.php' and make the revisions and then just create a RewriteRule that redirects the '.html' page to the '.html.php' without generating an error?

The alternative and undesired way of doing it would be to rename the original page to '.html.php' and find and revise ALL of the routines that call that page. That would create a revision nightmare especially upon upgrading the software.

View Replies !
Page Redirection - Link Index.html Page To A .php Pag
I have an index.html page with a link to a .php page This is the complete code of the .php page Code:

View Replies !
Passing A Parameter From An HTML Page To A PHP Page
I want to pass a language value (EN/FR/DE etc.) from an Index HTML page to a PHP page with a language code in the call, so that the PHP page can select texts in that language. I would like to to it from an unordered list item if possible by extending the link ... <li><a href="scripts/pricelist.php???>Pricelist[/url]</li>

View Replies !
Using PHP To Load Another Page Or Html Page
Ive got a PHP script, which if it ends correctly, i want load another
PHP file or an HTML page automatically, ie without user intervention.
The new page shoud replace the current page on the browser. Is there a
PHP command or function which does this?

View Replies !
HTML Web Page Hyperlink To Php Web Page
I am still having a problem parsing a html page with php. Code in my HTML
is
<? php
echo '<a href="index.php">Home</a><br />
<a href="login.php">Login</a><br />
'
?>
However the link is to the Login page is:
file:///C:/Program%20Files/Apache%20Group/Apache2/htdocs/TeeJayUu/login.php

I am using PHP 5.0.2, Apache 2.0.52, MySQL 4.0.21, and Windows XP SP2. All
pages are in the htdocs folder and the following instructions have been
followed:
- Copy php5apache2.dll to Apache's module dir and rename it to mod_php5.so;
- Copy php5ts.dll to Apache's bin dir.
Finally, add the following line to your httpd.conf file:
LoadModule php5_module modules/mod_php5.so
Apache has been stopped and restarted.
Help - I am lost for what else to do. I want to keep this local until I
have got it working.

View Replies !
If Page = 'about' Show The About.html Page?
I wanted to do some kind of PHP script so that if the current page the viewer is trying to view is called index.php?page=about then it will use the php script to embed with an i-frame the about.html file into a cell in my web page's table. Basically, so that the whole page stays the same other than one cell of the table which is dynamic depending on the status of the index.php?page=whatever. Code:

View Replies !
Send Value From CSS Html Page To PHP Page
help me to find a way or script to pass value "digit" from CSS html page to php page which has funtion to accept value and search in database. for example, in CSS rollover image map. if a user select on particular place, that should call PHP page as well as send value to php page.

View Replies !
Include An Html File In Another Html File?
Can I include an html file in another html file usign PHP? Something like the way you would inlclude a text file, only have the html elements show up?

View Replies !
Order Query By Number Only Reads First Number .
I have a result page which has price lists, but for some reason the code cannot distinguish between 25,000 and 5,000. Another words in a DESC price result, i get:

80,000
78,000
72,000
6,000
52,000
42,000

It reads the first number, and if first number is the same it reads second, but how do i get it to Order by the entire Number?

View Replies !
PHP In Html Or Outside Html Page?
what's better, php code in html page or outside the page in seperate php file...the thing is i have my sql data in that code and i don't want people to see it, can people open up the php files?

View Replies !
Map Image Displays
I have the following code and the map image displays, however there is no red ellipse:
PHP Code:

View Replies !
IE Displays Php Different Than Mozilla
I have a wierd thing where for some reason internet explorer processes the php differently than mozilla, something i find interesting since i thought that php was run on the server side and the only the result outputted to the browser. I have on my page a top flash banner that i only want it to show its animation every couple of pages rather than every time a user clicks on a link so i threw this code together (probably considered sloppy, i know there is even some redundance that isnt needed but this is the result of rewriting it several possible ways to try to make it work correctly .....

View Replies !
How Php Displays The Output?
If I have a PhP code below in a linux+apache environment,

==============================
<?php>
the first php block code
<?>

The HTML code goes here

<?php>
the second php block code
<?>

============================

does php open a temporary file to store the output from
"the first php block code"?
then combined with "The HTML code goes here" and then the output from
"the second php block code"? Then display the output of this temporary
file to web client and remove this temporary file afterwards?



View Replies !
Calls On A CSV And Displays Every Row
I have a script that calls on a CSV and displays every row. At the moment it seperates each field with a comma. I am struggling with how to seperate each field and put it into a table column. Can someone push me in the right direction. Code:

View Replies !
Sort Displays
I don't know what's wrong with this coding, I get an error

Notice: Undefined variable: orderby in F:Htmlfsyc_databasegraduates_list.php on line 11
Notice: Undefined variable: color in F:Htmlfsyc_databasegraduates_list.php on line 30

<?
$connection = mysql_connect("localhost","****","********");
$db = mysql_select_db("job_seekers", $connection);
$table_name = 'personaldetails'
If (isset($sorting))
{
$orderby = "ORDER BY $sorting ";
If ($sorting == "personaldetails") { $orderby .= "ASC"; } else { $orderby .= "DESC"; }
}

$sql = mysql_query("SELECT * FROM $table_name $orderby");
......

View Replies !
File Upload NOT Using HTML Input Type=file
in an earlier post on the javascript forum i was talking about a small program i'm writing to allow file uploads through the http protocol that look and function similar to a ftp client.

I have made some nice progress on this project and am able to return the FSO collection from the client pc. this allows me to list of directories on the page so users can select multiple files to upload at once or even entire directories. Code:

View Replies !
How Do I Add A <? To Page? HTML - <?xml
I am trying to change my site from asp to php. but have encountered a problem The start of my pages have always been:

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

My problem is when I add <?xml ... the php parser kicks in and starts complaining.
If I leave the <?xml version="1.0" encoding="iso-8859-1"?> Off the page is displayed but not correctly in IE!

Questions:
1) How can I make php let me add the: <?xml version="1.0" encoding="iso-8859-1"?>

2) Thinking about is I'm not 100% sure why I originally added the <?xml version="1.0" encoding="iso-8859-1"?> (I made the site over a year ago) - does anyone know why it is needed for the page to display correctly in IE?

View Replies !
PHP/html Page
I am building a PHP/html page. when opened it pulls data from an external db and stores it locally as an xml file. The webpage pulls data from the locally stored xml. I need a line that selects the highest # out of these 3 lines on the xml and assigns it a name. On the xml they look like this:

<atm-0>82190</atm-0>
<atm-1>109190</atm-1>
<atm-2>91895</atm-2>

View Replies !
Html Page
I have a page, which I have centered by using:

<center>
<div>
other html
<iframe> </iframe>
</div>
</center>

This is so that the page appears in the centre of every browser resolution, whether 800x 600, 1200 x 768, etc. However, I am using server side scripting to include certain elements on the page. For example, there'a a home page, a contact page, etc. Everything is the same in the page except for the comments in the middle. I've put this in an iframe because absolute positioning won't work very well, i.e. the position is different in every browser depending on resolution.

View Replies !
Result Displays Seven Times In A Row
I'm trying to list out songs of a specific album and I think my code is fine. The only problem is that all the songs are displayed seven times. Everything else is fine.

View Replies !
Header Sometimes Displays Sometimes Downloads
using Javascript - open a new window:
$s=contents of database field in rtf format

header("Content-type: text/rtf");
echo $s;

This works perfectly in Safari (Mac browser) but in both Netscape and IE5 it tries do download.

If I use:
header("Content-type: text/rtf");
it downloads in all browsers.

I have two questions:
1. How do you know which behavior to expect (download or display)
2. I want to display an RTF file in a browser window. Is there a way to do it that works in IE and Netscape?

View Replies !
Displays A Date From A Database
I have a script running (with great effort and help from the group) that displays a date from a database and the amount of days to that date.

I would like to change the date into a more "human" format. The date now displays:

2002-12-08

I would like to change it to:

Sunday, December 08th

Is this a property of mktime()?

View Replies !

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