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.





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

Related Forum Messages:
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 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 !
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 !
Login Page Produces Blank Page
What I get when I enter username/password and hit submit is a blank page and the URL never changes. In other words, the login page is 'index.php' and when submitted it should redirect to 'admin.php'. Instead the url/address stays at 'index.php' and the page turns completely blank.

In the previous thread, the problem turned out to be some missing indicator to the md5 encrypted password. Well, in this version, that's there! In fact, I used the ending scripts for that project in creating this project. So, why it won't work is a real mystery. Code:

View Replies !
This Page Took To Generate
Ive seen it on a couple of sites. I would be interested in this, but not only for a search or something. Basically I want it somewhere on all pages, so it should compute how long it takes for PHP to generate the entire page, including the time thats wasted building up content gathered from MySQL queries ....

View Replies !
How Can I Generate Rss For My Web Page.
Can any one tell me about RSS. How can i generate Rss for my web page.

View Replies !
OOP Page = Blank
OOP – page does not display

I need your keen eyes to figure out what is happening here

I have an OOP script that works well on two local test servers
One runs a slightly older PHP, the other one the last PHP just before release of PHP5, in both cases it runs with Reg Glob off, as it should
How is it built:

One) A class that reads a template, sets values, and sends info to a browser.
That class I have used many times and I know it does not cause any trouble

Two) a templates
Using the following
<!--{PROD_1}--> no problems here!

Three) the main page
<<
require_once ("../DB conn etc..."); // Include the configuration file.
require_once ("../classes/the class I mentioned in “One”.class"); // Include the class.
$id=1;
$page = again the “One” class ("../templates/main_template_products.inc.php"); // Create an instance.
$content_1 .= ''
include "../includes/prod_1.inc.php";
$page->SetParameter("PROD_1", $content_1);

and my include file
<?
$conn = db_connect();

$sql= "select prod_1 from XXXXX where id=$id";
$result = mysql_query($sql,$conn);

while ($new_content=mysql_fetch_array($result) ){
$content_1.= $new_content[prod_1];
}
?>

I am pretty sure that the scripts has no fault. It works on another production server.

So what can go wrong. Up to the point of getting a full blank page that in “view source” shows 100% of nothing! I know the DB conn fine since I can edit it via my CMS using the same db conn function.

Will that be a server setting? It runs with reg glob on and safe mode on.

View Replies !
PHP Blank Page.
I posted earlier about this, a blank php page. I've enabled logging
ALL in the php.ini, but nothing. If I change the name of the db in
the include file, I get an error message, so I guess this means it's
connecting to the mysql db. I've included the first couple lines of
code for this page:

index.php
<?php
session_start();
require_once('inc/db_config.inc.php');
$conn = db_connect();
$sqlsu = "SELECT * FROM subjects ORDER BY ID";
$ressu = mysql_query($sqlsu, $conn);
if (mysql_num_rows($ressu)) {
while ($qry = mysql_fetch_array($ressu)) {
$cat = stripSlashes($qry['cat']);
$resns = mysql_query("SELECT * FROM questions WHERE test LIKE '$cat'",
$conn);
$numcat = mysql_num_rows($resns);

inc/db_config.inc.php

function db_connect()
{
$result = @mysql_pconnect('localhost', 'root', 'password);
if (!$result)
return false;
if (!@mysql_select_db('quiz'))
return false;

return $result;
}
?>

View Replies !
Getting A Blank Page?
When I try to run a PHP script of mine, I get a totally blank page. I've tried to put HTML at the very beginning of it, but even that does not show up. I don't see anything wrong with it either. Basically there are two header requires, and then some code that reads a database, and then a few more requires.

View Replies !
Blank Page?
I hve index.php setting two session variables when you login. But when i put session_start(); on any other page to get the variables, it leaves me with a blank page. What could be causing this?

View Replies !
Blank Page
I want it to show on a blank page the first 10 rows of the table. What should i add/delete?

<?php
$host="localhost"; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
$db_name="test"; // Database name
$tbl_name="test_url"; // Table name

// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");

$sql="SELECT * FROM table LIMIT 10";
$result=mysql_query($sql);

mysql_close();

?>

View Replies !
PDF IE Is A Blank Page
I'm working with FPDF 1.51.

The ouptput of my php script (a pdf file) in IE is a blank page and click on with right on 'view html', IE tells me: 'the XML source code is not available', but the same script on Mozila and Opera it's OK, open Adobe inside the window...

my code:
...
Header('Content-Type: application/pdf');
Header('Content-Length: '.strlen($this->buffer));
Header('Content-disposition: filename; filename=doc.pdf');
...

how can i resolve this problem?

i think there's a bug in IE (v.6 on XP professional - with IIS/Apache)

View Replies !
Php Blank Page
I am have my website hosted on www.dot5hosting.com. They say they support php version PHP 4.4.1, i don't have access to the php.ini file. i was trying to  create a php page for my website,  but even  a simple php script  displays a blank page.

<HTML>
<HEAD>
<TITLE> Simple PHP Example </TITLE>
</HEAD>
<BODY>
<P><?php echo("This is a test!"); ?></P>
</BODY>
</HTML>

The page source displays the same code as above. I tried saving the file with extensions .php , .php3 as well but none of them works. What should i do.

View Replies !
Blank PHP Page
I just installed the blogging tool wordpress on by copying the directory into my Redhat 9 www folder. I've set the correct database name, username and password but all that
I have from index.php is a blank page.

View Replies !
Blank PHP Page - Php.ini
I have a site that relies upon php, and that works fine, error reporting is on inside of php.ini, and I'm stumped. Here's my code:

<?php
$conn = @mysql_connect("localhost","nick","568610")
or die ("Sorry, could not connect to MySQL");

$rs1 = @mysql_create_db($_REQUEST['db']);

$rs2 = @mysql_list_dbs($conn);
for($row =0; $row < mysql_num_rows(rs2); $row++)

{ $list .= mysql_tablename($rs2, $row) . " ¦ "; }
?>
....

View Replies !
How To Generate Pagination At The End Of A Page
Suppose I have many readers' reviews and I can't show them all in one page. Say if I limit to 10 reviews per page. How to do it such that the pagination will be generated below like this: >> Page 1 | 2 | 3 | 4 ...etc. (Each page is a hyperlink)
Can anyone point me to the code? Thanks.

View Replies !
Blank Page / Timeout
My website consumes an XML web service using SOAP to handle the requests and responses. If the response is larger than a certain size, i get nothing back and my browser shows a blank page with nothing in the source code. I do get a result if the response is smaller so the request code seems to be working.

My php.ini files includes:

max_execution_time = 300
max_input_time = 300
memory_limit = 128M

Error Reporting is E_ALL - i dont even get any error messages when it does fall over.

Are there any other settings that i should try to let the server handle a larger response?

View Replies !
Blank Page When There Is An Error
my server is somehow configured to not show any errors what so ever. I have
tried the following 2 lines to no avail in my test script:

error_reporting(E_ALL);
ini_set ('error_reporting', E_ALL);

all I get is a blank page when there is an error.

View Replies !
Debugging Blank PHP Page.
How can I debug a blank PHP page? I've turned on all logging in my
php.ini, bu the page just turns blank.

View Replies !
Blank Page Issue
In my website i am facing a issue now . all my forum php pages its showing blank page but other php files its running fine and i am using vb bullitn . do any one have idea why its coming.

View Replies !
Blank Page Is Coming..
I have a problem installing php5 in windows xp. I am getting a blank
page while i process the file.
if i type localhost the iis page is loading. i created a virtual
directory 'php' if i type http://localhost/php means it is showing all
the files in the directory but if i click the file a blank page is
coming.

can anybody give me a solution to resolve this.

View Replies !
PHP Page Is Blank For Newbie
phpinfo.php works just fine . php intro pages work just fine too
When the code below is posted the page appears blank does some one
have any ideas why a page will appear blank.

View Replies !
Blank Page On PC Or Mac, IE Or Firefox
I tested this php form, and it worked on 2 out of three computers, all of which were on different networks. The one that didn't work stalled after I hit submit . . . all I got was a blank page . . .  no error messages or anything. This happened whether it was on a PC or Mac, in Firefox, or IE. Any ideas what could be causing it?

Code: ....

View Replies !
Displaying Just A Blank Page??
I have commented out a lot of my code and have realised that the code below is what the problem is. I have placed ini_set('display_errors', 'on');
error_reporting(E_ALL);  at the very top of the page. No errors are displaying. However I can't see what the problem could be. Code:

View Replies !
Blank Page With [object] On It
I'm using a popup window to INSERT data into a dbase. I pass two variables to the popup, the problem the I'm having is the when I pass the two variable the opener turns blank with an [object] on it with one of the variables on the address bar and the popup with the other. What I want is the the opener not to go blank and the two variable pass to the popup. The code work perfect in macs safari but not in microsoft explorer. Here's the code:

View Replies !
When Using SESSION, It Gives BLANK Page
I installed PHP 5.2, MySQL (latest version) and Apache 2 on Win XP. it works OK except SESSIONS when I have a file beginning like this, it gives a blank page:

session_start();
if (isset ($_SESSION['loggedin']) && isset ($_SESSION['time']))
{

I think it must be about php installation.and yes it works on other servers, but on my pc, it gives a blank page. Code:

View Replies !
Page Is Blank And No Error ...
When i have a syntax error in my code. The web page is blank and no error is displayed. Has anyone idea what is the problem ?

View Replies !
Blank Page Problem
In my site i am loading all inner pages in index page it self, i am storing inner pages as separte file and loading that files in index using include().

Site givs exact result. But the problem is when i am loading the site some time it show blank page and after clicking refresh button its get loaded. Many time this problem repeating.

View Replies !
Blank Page Showing
with this script: PHP Code:

<?
$username = $_SESSION['username'];


if (isset($_GET["form"]) && $_GET['form'] == "password") {
    $e = "none";
    $p1 = $_POST['pass1'];
    $p2 = $_POST['pass2'];
    }
    //validate password
    if (!username_field($p1) or $p1 == "") {
        $e = "password";
    }
    //make sure the same
    if ($p1 != $p2) {
        $e = "match";
    }.....

View Replies !
If Else - Always Returns Blank Page
<?php
if ($hi) {
echo "$hi";
}
?>

i go: http://site.com/test.php?hi=anything

no matter what i put there, it always returns blank page. whats the problem here? how can i get the value of $hi that the user submits at: http://site.com/test.php?hi=anything

View Replies !
Blank Page On Apache
I have PHP 5.21 and Apache 2.2 installed on my server machine. When I connect to localhost to test the server, the default .html file apache uses comes up ok, meaning I can connect to the server. The problem I'm having is that when I go to localhost/test.php nothing comes up.

View Replies !
Header Redirects Me To A Blank Page
Ive a problem with the command.

header("Location : index.php3") , it works on PWS , but on Apache it redirects me to a blank page (and no errors ).

View Replies !
Search Problem, Blank Page
I have a simple search on my site. It searches through by database of products by keyword. I'm sure my coding is wrong. When I submit, I recieve a blank page. I'm using MySQL, Apache server and PHP4. Any help would be great. I've tried changing some code, but still get the same results. Code:

View Replies !
Using CURL Gave Blank Page
I need to use CURL to fetch a link and get its results. I have the wamps 5 1.7.2 (windows, apache, mysql, php) pre packages installed. Activate the php extention php_curl and running it gave me nothing back (just a blank page)

<?php

// create a new curl resource
$ch = curl_init();

// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "http://www.google.com/");

// grab URL and pass it to the browser
curl_exec($ch);

// close curl resource, and free up system resources
curl_close($ch);?>

while dumping it into my personal web host account it works. So I assume, i have left something off the php installation.

View Replies !
Code Makes A Blank Page?
I upgrade from PHP4 to PHP5.4.2 and now this code doesn't work.  I moved the header command up to the top (you can see where I commented it out lower in the code) and now all that show is the header.  If I have the header in the original position the page is blank. Code:

View Replies !
Redirect Code Gives Blank Page
I have a simple piece of code designed to register a bookmark in an arrray during a customer site visit. The page should update the arrray and redirect but I get only a blank page. I dont get error messages and this basic code works in a similar application. Code:

View Replies !
Fopen() Returning Blank Page
I need to use fopen to open a url on a different server, but when I do it only returns a blank page. No error messages and no url.

fopen is turned on in php.ini.

View Replies !
Page Blank But No Errors Displayed
I have a script that's just returning a blank page. So I'm guessing I've got an error somewhere.

In fact I know I have because if I comment out one or two classes, I get an error message coming up. But why do I get a blank page at first? How come it's not giving me an error message for my obviously faulty class? Code:

View Replies !
Db Call Is Causing Page To Be Blank
I've got a page that pulls the data from the config table, and allows you to edit it inside a form. It uses the following db call: Code:

View Replies !
Phpinfo() Returns Blank Page
I am having a strange problem. I have installed Win2K3, PHP 5.2.3, IIS6 and for some reason whenever I try to go to phpinfo.php I get a blank page. The strange things is that it worked before (like a week back) and nothing has changed on the server.

I have a website that uses PHP on the machine and it seems to work, so I am not sure what is going on?

View Replies !
Script Generates Blank Page
Someone using the nifty testimonial script I created has come to me with a problem. When he tries to log into the admin area, he gets a completely blank page(no source, no nothing). I had him turn on error reporting(all) on at the top of the page, and he still gets nothing. I had him create a page for phpinfo, and it shows as a completely blank page as well.

View Replies !
> SQL Query Brings Up Blank Page
Im trying to write an SQL query that takes info from two tables and matches them by ID.
However when I use the code it takes out my whole page - nothing shows - not even the html on the page. PHP Code:

View Replies !
Installing Fails No Errors But A Blank Page
I installed apache and it works across my LAN just fine. When I install
php though, nothing happens even with very simple commands. I even
turned on the error checking in the php.ini file and still the web page
is blank where the php stuff should be.

View Replies !
No Errors, Just Blank Page - Error_reporting(E_ALL)
Hey people. I have a strange problem. I never get any errors, just blank pages. Even if I insert error_reporting(E_ALL); . Is there an INI setting that I am missing?

View Replies !
Display A Blank Page When Form Submit?
I keep getting a blank page when i submit my registration form, because there's no errors being display.

View Replies !

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