Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    PHP




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

See Related Forum Messages: Follow the Links Below to View Complete Thread
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:

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.

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;
}
?>

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.

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?

Blank Page
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:

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?

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.

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.

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.

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:

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:

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:

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:

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:

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?

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.

Tikiwiki: Tiki-install.ph Blank Page
Just in case anyone searchs on this topic. I kept
getting a blank page running a fresh install of
tikiwiki 1.9.x tiki-install.ph. Downgrading to 1.8.x
gave me a mysql_connect() error which tipped
me off to the problem. I was running a fresh load
of FC 4 which had a php, php_pear and mysql but
not a php_mysql connector. Doing a rpm query
should show at least:

# rpm -qa | grep php
php-mysql-5.0.4-10.5 <== this was missing
php-5.0.4-10.5
php-pear-5.0.4-10.5

Solution was to do a "yum install php-mysql".

It'd be nice if tiki-install.ph did some sort of test
that 1.8.x appears to have been doing.

Ie6 And Lower Loads Blank Page After Login
I've got a script the logs the user, then redirects them a different page. Everything works fine in Firefox and ie7. But anything ie6 or lower, after they click login, it just loads a blank page. Upon refreshing, it loads the page just like its supposed to. I read a little bit about problems with sessions and ie6, but didn't find any real solutions. I know ie is worthless, but is there any real fix for this? Code:

Blank Page Caused By Undefined Index
I upgraded my php from 4.4.7 to 5.2.4 and now the entire website doesn't work.  So I am trying to learn PHP and go through the site one error at a time.  If you have a idea why the upgrade caused the site to fail that would be great.

But in the meantime this is the problem i am stuck on.

I get this error now when transferring to a page

Notice - PHP Notice: Undefined index: REMOTE_ADDR in c:locationSession.php on line 45.

That line has the following code.

$GLOBALS["$SessionName"]=md5 (microtime() . $GLOBALS[REMOTE_ADDR"]);

Like I said this code worked before the upgrade.  Any idea what I can do to fix this problem?

PHP & Javascript New Window Forces Main Page To Load Blank Screen
I have a problem with a call a Javascript "window.open()" function which is
executed as part of a PHP file when a user clicks on an thumbnail image.
The PHP is executed which passes some variables to Javascript to execute
the new window opening. But as it does this, the main window is loaded
which is blank (the browser URL bar shows the URL of the URL passed to the
PHP / Javascript script).

I would like to keep the gallery page visible in the main page which is
where the link originally came from, so the user can see the gallery
underneath the "popup" window of the called graphic.

I don't know how much of an added problem it is, but the script that
generates the whole sites pages is in the root directory, and the gallery
HTML is in some seperate sub-directory and is "included" into the page
layout (using variables passed on a page click).

Gallery script calling the PHP file to execute on image thumbnail click:

<a href="php/pics.php?&gal=coll01&picID=01"><img
src="img/gallery1/s-dg01.jpg" ALT="Picture 1" width="30"
height="69"></A>
<a href="php/pics.php?&gal=coll01&picID=02"><img
src="img/gallery1/s-dg02.jpg" ALT="Picture 2" width="74"
height="69"></A>

This passes the variables to the other PHP script which picture to grab.

PHP file with the Javascript (pics.php):

<?PHP
// Section to generate the Javascript pop-up for correct
// dimentions of the proposed pop-up.

$URL = '..img/gallery1/dg'.$_GET['picID'].'.jpg'

print "<script type="text/javascript">
<!--

var Jurl="$URL";
";

?>

window.
open(Jurl,"Picture","width=370,height=260,toolbar=no,menubar=no,
resizeable=no");

//-->
</script>

Apache2/PHP4 Compile/startup Fine But No PHP Parsing (blank Page For Phpinfo)
I consider myself well versed with Apache 1.3 and PHP4 - I found
drupal and wanted to try it out - I had problems getting it working
with Apache2/PHP5/MySQL5 so I downgraded... Note: I did have Apache2/
PHP5 working... I confirmed this via phpinfo output... But now that I
removed my original directory containing Apache/PHP, and recompiled
from scratch, I get everything to startup and static html is displayd,
but phpinfo produces no errors, but no output (literally zero output).

Where am i going wrong?

This is my environment (forget mysql for the moment as I just want
Apache/PHP working first)
Apache 2.0.59
PHP 4.4.5

I compile the above using the following:

# cd apache
# ./configure --prefix=/opt/apache --enable-so --enable-vhost-alias
# make
# make install
# cd ../php
# ./configure --with-apxs2=/opt/apachebin/apxs --with-mysql
# make
# make install

And i have the following in my Apache httpd.conf file

LoadModule php4_module modules/libphp4.so
AddType application/x-httpd-php .php

Note - I see in the php.chm document it asks i place the following
below the ClearModuleList
AddModule mod_php4.c

I don't have a ClearModuleList and when I put AddModule in at the end
of my httpd.conf, I get the following error:

Syntax error on line 1039 of /opt/apache/conf/httpd.conf:
Invalid command 'AddModule', perhaps mis-spelled or defined by a
module not included in the server configuration

I can't recall using AddModule before though.

If i exclude the AddModule reference, Apache starts up fine... (log
reference below)
[Sun Feb 25 14:50:51 2007] [notice] Apache/2.0.59 (Unix) PHP/4.4.5
configured -- resuming normal operations

and a httpd -l output shows this;

Compiled in modules:
core.c
mod_access.c
mod_auth.c
mod_include.c
mod_log_config.c
mod_env.c
mod_setenvif.c
prefork.c
http_core.c
mod_mime.c
mod_status.c
mod_autoindex.c
mod_asis.c
mod_info.c
mod_cgi.c
mod_vhost_alias.c
mod_negotiation.c
mod_dir.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_so.c

Where Is My Php.ini Coming From?
I was having a problem with session variables, and realized that I didn't have my php.ini file set up properly. So I went to fix it and discovered that php is not getting my php.ini from the default directory because my changes weren't shown when I restarted the web server and ran phpinfo().

I'm running apache 1.3.14 and php 4.0.4 on windows 98. The php.ini file that I'm altering is in c:windows Apparantly this is the default for the windows binary build, but when I change it and restart the web server, the changes don't take place. That's the only place I have php.ini, so where is php getting this info from and how can I change it?

Where Is // In Redirect Coming From?
I'm hoping someone out there has experienced this and can tell me right off
what is going on. I'm getting a double slash in my URL when I do a redirect
if my host is a 'web' host, but when my host is localhost (on my development
machine and not on the web) I get the desired single slash.

The redirect code is as follows:

header("Location: http://".$_SERVER['HTTP_HOST'].
dirname($_SERVER['PHP_SELF']).'/index.php');
exit;

Note that I tack on '/index.php' because in testing on my localhost I found
I needed the leading slash since dirname($_SERVER['PHP_SELF']) was not
returning a string ending in a slash (ie, no slash after the folder location
for the web project). So the leading slash HAS to be there for this code to
work on my localhost development machine. However, when uploaded to the
regular site, I find that the leading slash should not be there, as I wind
up redirecting to (for example):

Now, it happens that the double slash still works (it loads the page),
although it DOES effect how some of the code executes under a refresh
(selection of random backgrounds based on cookie settings when a page is
first reloaded - truly bizaar!).

Is there an easy way I can recode the redirect so it will work correctly on
both my localhost development machine and on the web?

Windows EOL Characters Coming In
Have a form that reads a file and presents it for editing in a <TEXTAREA> window. Then saves the data using PHP fwrite. However, if somebody is using a Windows machine when using the form, the resulting file has ^M on the end of each line. Any ideas on how to solve this or get rid of these characters?

POST Variables Not Coming Through
For some reason, at random posts, the post variables don't get thru to
the server. For example, if there is are two text fields: name and
email... (I have register_globals on)... When I try to update the
database with a query and use $name, $email, the $name is missing or
the $email is missing. I am building an intranet application and all
the 20 or so clients run IE. This happens very rarely. Something like
once in 100 updates.

But I can see this in the log files as update contact set name="",
email="asda@pol.com" where contact_id=918. Notice the name field is
blank. I have JS checks in the client side which does not allow blank
name field..

Is this an IE random error? How do I get over this?

From Address Is Not Coming In The Mail.
i am sending a mail using a php mail() function. But reciept is not able to see , who sent the mail , ie the correct from address is not coming in the mail, instead some other address related to IP Address is coming.

Displaying A Pdf Coming Out Of A Mysql-db In A Frame
I have a mysql-database with some pdf in it.
I can send them to a webbrowser using this script:

<?php
//output.php4
$sql = "SELECT * FROM tbfiles WHERE tbfiles.ID={$id}";
$result = mysql_query($sql);
$dateien = mysql_fetch_object($result);
$daten = $dateien->Inhalt;
$name = $dateien->Dateiname;
$groesse = $dateien->Groesse;
$typ = $dateien->Typ;

header("Content-type: $typ");
header("Content-length: $groesse");
header("Content-Disposition: attachment; filename=$name");
echo $daten;
?>

My problem is that I get a download dialog where I want to save the pdf but
I want to open it in a fram or iframe like this:
<iframe src="./output.php4?id=129" width="100%" height="400"
name="outputbox">
where id=129 indicates my document.

I get the correct result in Internet Explorer (but not in Opera) if I change
the script like this:

header("Content-type: image/jpeg");
header("Content-Disposition: inline; filename=$name");

Does anybody know a solution for Opera? Then I could provide different
scripts depending on the browser.
Or even better a solution working in all browsers?

Verifying A Link Is Coming From The Current Site
I need to be able to compare $_SERVER["HTTP_REFERER"]; to $_SERVER["HTTP_HOST"]; and make sure they are coming from the same place.

The problem is, I don't know how to use "mid" essentially in PHP.

The returned values are:

$_SERVER["HTTP_REFERER"];
- http://www.mydomain.com/this/that

$_SERVER["HTTP_HOST"];
www.mydomain.com

How would I do that?

What About Future Of RUBY In Coming Days In It Field
future of RUBY now am working in php my sql platform but now i got a
new job in RUBY on rail platform
i am not have an idea in RUBY , so i want to know about RUBY , can i
shift into this technology. what is the future of the ruby, now am in
chennai .

Stop Access Counter - Updated - Coming From Outside
I finaly managed to write the script which logs every user access on the site but now I can not stop it!

My counter is a part of my user record in mySQL 'users' table. The idea was to log the user coming from outside world and not his/her browsing the site, which is the case now. I tried the HTTP_REFERER but it is empty. So I tried a little cheating - on the transfer from the login screen I attached to FORM's ACTION string a little cheat in the form of "?referrer=index", which nicely passes this info for me. After checking password I update the counter and put $referrer = "" - which I expected would stop the intra-site updating. To my surprice it did not. It happily updates the counter every time the user hits this page, which could be 4-10 times at one visit.

Mail Function, Will Not Work If The Email Is Coming From Nobody.
I have set up a feedback form that emails the results. my web host says
it will not work if the email is coming from nobody.

Does Yahoo, Gmail, Or Any Other Blocks Mail Coming From Feedback Form?
I've been testing my feedback form sent to my yahoo mail. It was working fine at first, but after receiving more than 10 emails then I can't seem to receive anymore. 

BTW, I tried testing two recipients separating them with comma. But when I check my email accounts, only 1 received the feedback. Is there anything wrong with the source codes?

$recipient = "dummy@yahoo.com, dummy2@yahoo.com";
$subject = "Subject here";
$mailheaders = "From: My Form <name@mail.com> ";
$mailheaders .= "Reply-To: " .$_POST["email"];

Thanks.

PHP 4 W/ IIS 6 = Blank PHP Pages
I've installed PHP4 in isapi mode on Win2k3/IIS6. When I try to access a PHP page, it comes back blank. The odd part is that if I just a test page with phpinfo() in it, I get results.

I've tried everything and spent the last 2 hours googling for a solution. Any ideas on why this would be happening?

Drawing A Blank...
I was wondering what the most efficient way to extend a session lifetime was? Do I use ini_set() to change the session lifetime or is there a specific session function that handles this... Checked PHP.net and I am drawing a blank..

Blank Pages
I have a web site that uses session variables and cookies. In-house and at
most clients the web sites functions great, exactly how it should behave.

However, at a few sites, the users will get the login page and as soon as
they submit, they get served a page with just the banner image on top and
blank underneath it. The page is two frames, top and bottom with the banner
image on the top. When viewing the source, the bottom page contains
<html></htmlonly. Looking at my PHP scripts, there are no scripts that
could generate that kind of a blank page, it would at least have a <headin
it.

So far what I've found that's different between the sites that work and the
one that doesn't is as follows.

The machine name is SQL1 with an IP address of 10.1.1.100. On this machine
is a web site set up in IIS with an IP address of 10.1.1.150. All of the
users at this site use a url of http://statuspage.cosite.com to get into the
site.

If you use a URL of http://SQL1/statuspage/userlogin.php - everything works
fine.
If you use a URL of http://10.1.1.100/statuspage/userlogin.php - everything
works fine.
If you use a URL of http://statuspage.cosite.com - They get the blank page
after the login page.

I'm thinking it has something to do with domains and cookies but I'm not
sure.

My cookies are set as:

setcookie("UserKey", $UK,$expiretime);

setcookie("PHPSESSID",$_COOKIE["PHPSESSID"],$expiretime);

$expiretime is a variable containing the expiration time of the cookie

My Website Has Gone Blank ..
I started putting some mysql refrences and then the screen went blank with no source code...

Blank Pages Must Die.......
The code below i started working on today after i finished typing it out i tested it and found that i got a blank screen after i pressed Load Alchemy..... All tables and stuff are already set up so that shouldnt be causing an error im just dumbfounded why i keep getting blank pages in everything i do.. Code:

Blank Table
I ran this code and all I get is 1 row displayed containing the text and checkbox but none of the database data. Code:

Blank Pages
I have been getting nothing but blank pages for a while now and its not showing me the errors on the page so I was wonding if the blank page its self means something or there is an error i should be looking for. I am using this to show me the errors on the php page :

<?php
ini_set('display_errors', '15');
error_reporting(E_ALL);
?>

Blank Pages
Is there any way to make the page show how far the php file got before it got a syntax error and makes a white page because I have some larger files that do this same thing and I dont know why. I have the code that shows you what is wrong with the web page but it still shows up white here is the code:

Sending People To Specific Pages That Are Coming From Specific Pages...
I want to show some specific pages to people that comes to my site from
specific urls, I know the variable $_SERVER['HTTP_REFERER'] will be
used but how?

For ex if the visitor comes from a site that is like:

I want to send this person a specific.php . I used below code but not
worked:

<?php

if($_SERVER['HTTP_REFERER'] == "www.cominghost.com" ||
$_SERVER['HTTP_REFERER'] == "cominghost.com" ||
$_SERVER['HTTP_REFERER'] == "www2.cominghost.com"){

// Specific page html goes here

}
else
{
header("Location: index.php");
}
?>

This code not worked for some cases like if the visitor comes from
http://www.cominghost.com/account/targeturl.php or
http://cominghost.com/account/targeturl.php Ok I know the if statement
not working but How?

Deny Content To A Blank UA?
I am curious if there is a way to negate sending clientside code to a request by a user with a blank or dash useragent? Also would there be a way to enact an Apache code such as 403 if the client failed this requirement?

Apache is failing to 403 except on direct requests and there has been no working example of a work around for this. Therefor it is my new goal to use all serverside methods of denying content to spammers. Clientside code is obviously useless as the content is already served.

Prevent Blank Data
How do I prevent blank data from being entered into a table?

For instance, the user fills out a form, but if a field is left blank, then
the entire entry won't be filled in. This isn't necessarily a form
validation thing, just that if all the fields are filled, then proceed to
enter data, if not then don't.

Multiple Blank Entries?
When I go to my secondary page of results after I fill info out on a form on
the first, I get 3 blank entries automatically inserted into the mysql
tables. This second form has these blank entries printing up each time even
if I go in to the second page w/o filling out any info on the first. Is
there a way I could prevent these blank entries from being automatically
entered? Like some code that says that if something is blank then not to
have it entered into the tables? or something easier?

SquirrelMail + Qmail = Blank 'From:'
Whenever anyone sends an email from squirrelmail, the 'From:' field is always blank. This just started happening when I switched from courier to qmail for the SMTP server.

I had a similar issue with a script of mine that I was using to send out an email, and I found that I was able to resolve it by removing extraneous '
' from the headers. (thanks to this forum of course)

I have scoured the squirellmail source for the possible offending '
' but have come up empty as the sendmessge function seems to be hiding from me.

Uploads, $_HTTP_POST_FILES Is Blank
I'm trying out a simple file upload at the moment, I have a couple of problems:

1.) I have PHP version 4.1.1, yet it does not seem to recognise the $_FILES, but $HTTP_POST_FILES seems to work partly. The config file is as default so $_FILES should be enabled.

2.) $_HTTP_POST_FILES ['my_input_name']['name']
works OK, I get the directory etc on the local machine OK, but
$HTTP_POST_FILES['my_input_name']['tmp_name']
doesn't work, it's blank.

3.) Can I copy uploaded files to the htdocs/pics directory on my Apache web server running on XP or can I put them anywhere on the machine?

Database Blank Rows
i made the following script and all the conditions and structure is right, i do no get errors either. but when you enter a category name andm press enter it says it added it but the database only has an extra blank row in it rather than what you entered? PHP Code:

Finding A Blank Line
I need to be able to parse through a file line by line and find a blank line. In my loop that goes through the file line by line I've tried:

if (preg_match ("", $line)){
echo "this is a blank line ";}

but it doesnt seem to work. Any ideas?


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