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 Complete Forum Thread with Replies
Related Forum Messages:
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 !
Database Connection - Blank Page, No Errors.
I have set up a database connect which looks like this: PHP Code: $ControlPanel = mysql_pconnect($hostname_ControlPanel, $username_ControlPanel, $password_ControlPanel) or trigger_error(mysql_error(),E_USER_ERROR); I am using pconnect because I am accessing that database from many different locations. When I run this script I get a blank page, no errors. If I take out that script I can run other php functions without problem. Also phpinfo() works fine aswell. I will send you the link if you want to see my php.ini file.
View Replies !
Parser Errors Not Displaying - Get A Blank Page
I have PHP 5.0.3 with apache 1.3.33 installed on Windows XP. For some reason I am not getting any errors displayed if I have a syntax error in my code. eg: <?php phpinfo_xx(); ?> The above displays a blank page. In my php.ini I have error_reporting = E_ALL & E_STRICT display_errors = On I've confirmed that the correct php.ini is being used - adding an extension and checking phpinfo(). After changing my php.ini I restart apache each time to test.
View Replies !
Using Echo For A Table Produces Blank Page, Not Even Errors!!!?
I have a hyperlink which goes to the page below and passes the PK_ID from a query into 'userid'. From this we query the DB and then echo a table with a form; only the textboxes are already populated with the data from the query (in theory)! But I get a blank page! I have error reporting on php and mysql but nothing is displayed? Code:
View Replies !
Blank Row Displayed
The code for the page displayed below functions correctly, except for one thing; a blank row appears at the very top of the page, ahead of all of the rows that contain actual data that is contained in the database table that that I am trying to display. Code:
View Replies !
No Errors Displayed
I've just completed an install of PHP5 on Apache 2.2 and alls working fine (remarkably) but I'm getting no PHP errors displayed on faulty pages, i.e. on a 'proper' web server, when I screw up (frequently) I get a page describing the problem but with my local installation I just get a blank page. I'm sure this will be a setting in Apache and/or PHP but thought I'd got them right. can anyone suggest where I might be going wrong? This is PHP5, Apache 2.2 on Windows XP. PHP and Apache are the very latest versions (downloaded this morning). I've already editing the php.ini file to show 'on' for both error reporting and error display but it doesn't seem to make any difference (and rebooted). Errors *are* being logged properly to the Apache error.log.
View Replies !
The Image Cannot Be Displayed, Because It Contains Errors
On running the following code : <? /* initialize a session. */ session_start(); /*header*/ Header("Content-Type: image/png"); /*We'll set this variable later.*/ $new_string; /*register the session variable. */ session_register('new_string'); include ('mysql.php'); echo "<html> <head> <title> Forgot Username </title> <link type="text/css" rel="stylesheet" href="css.css"> </head> <body> <form name="form1" action="" method="POST"> <fieldset> <legend>Information</legend> <label class="left">E-mail Address :<br> <font size="-2"> This is the address you provided during registration </font></label> <label class="right"> <input type="text" name="email"> </label> <label class="left">Enter the code as you see in the box :<br> <font size="-2"> Case Sensitive </font></label> <label class="right"> <input type="text" name="image"> <img src="verify.png"> </label> "; /* set up image, the first number is the width and the second is the height*/ $im = ImageCreate(200, 40); /*creates two variables to store color*/ $white = ImageColorAllocate($im, 255, 255, 255); $black = ImageColorAllocate($im, 0, 0, 0); /*random string generator.*/ /*The seed for the random number*/ srand((double)microtime()*1000000); /*Runs the string through the md5 function*/ $string = md5(rand(0,9999)); /*creates the new string. */ $new_string = substr($string, 17, 5); /*fill image with black*/ ImageFill($im, 0, 0, $black); /*writes string */ ImageString($im, 4, 96, 19, $new_string, $white); /* output to browser*/ ImagePNG($im, "verify.png"); ImageDestroy($im); ?> It outputs : The image “http://vsenepal/account_settings.php” cannot be displayed, because it contains errors.
View Replies !
No Error_reporting Errors, Just Blank Screen With Apache 1.
I installed an new REDHAT 7.3 server with apache, mysql and php. After some while all worked fine. Exccept the error messages in php didn't print to the screen. After reading through this forum i overlooked the display_errors: off, so set it to on including the error level to E_ALL. no errors an the screen, so tryed to set it to the minimal error level and then in the script add error_reporting (E_ALL ^ E_NOTICE); to make the script change the level. Still no errors on screen. Do i have to make an change in the apache config to make in work or am i missing something? phpinfo() provided below. Code:
View Replies !
Supress Errors At The Page Level? Undefined Index Errors.
I'm creating a simple reply form, and if a form item isn't answered I get an error: "Notice: Undefined index: rb_amntspent in c:inetpubwwwrootmackinawsurvey.php on line 36" even if in the code I allow for an unselected item. (Code at the bottom here.) It works fine otherwise. Now in the past I've made a change to php.ini to repress errors, but for this project I don't have access to the php.ini. Is there a way to supress errors on that page for that session? Or, is there a way to just not get that error at all? Here's a sample of the code that gets the form response. If an item is selected, no error for that question, but if an item is not selected I get the error above even though I still get a successful echo for the "else" or "default" option which occurs if nothing is selected: $rb_visited = $_POST["rb_visited"]; //Have you ever visited Mackinaw City, Michigan? if ($rb_visited == "1") { $rb_visited_reply = "Yes"; } elseif ($rb_visited == "0") { $rb_visited_reply = "No"; } else { $rb_visited_reply = "You did not answer this question"; }; $rb_lastvisit = $_POST["rb_lastvisit"]; //When was your last visit to Mackinaw ity? switch ($rb_lastvisit) { case "1": $rb_lastvisit_reply = "Earlier this year (2003)"; break; case "2": $rb_lastvisit_reply = "Last year (2002)"; break; case "3": $rb_lastvisit_reply = "2 years ago (2001)"; break; case "4": $rb_lastvisit_reply = "3 years ago (2000)"; break; case "5": $rb_lastvisit_reply = "4 or more years ago (1999)"; break; default: $rb_lastvisit_reply = "You did not answer this uestion"; }
View Replies !
Page Not Displayed!
I have a site in PHP with a page 'approveMembers.php' within 'approve' directory under the site directory. This site has been hosted on net. Now the problem is when i access this page from my machine that uses a proxy server to connect to the internet, the contents get displayed properly. However, when i use a machine that connects to the internet directly (without using a proxy), the contents do not appear in the page even though the status bar read 'Done' after loading the page. Code:
View Replies !
Page Cannot Be Displayed
OS: Windows 2003 Server Program: EasyPHP1.8 Changed port to 81 in httpd.conf, rebooted and everything.... 127.0.0.1:80 still connects to the index page 127.0.0.1:81 doesnt connect (Page cannot be displayed) 192.168.1.181:80 & 192.168.1.181:81 doesnt connect either (192.168.1.181 is the computers IP) Is there any configuration I have to do with Windows Server 2003? This is all after a clean install of the OS. Firewall is off (default) or anyone have any advice what the problem could be?
View Replies !
The Page Cannot Be Displayed!
I have a problem when try to upload a quite BIG file (more than ~600K, less than 600K is OK). My browser said : "The page can not be displayed" - in IE and "The connection was reset" - in Mozilla Firefox. Have someone found the problem like this before? And how can I solve it?? My very very simple code is:
View Replies !
PhpMyAdmin - Page Cannot Be Displayed
I programmed my config.inc.php file with the codes below. But i cant go to the website.. It shows an error msg, "page cannot be displayed" What haf i done wrong.. N i m actually not sure about my local host.. Cos i m using my school wireless network.. $cfg['PmaAbsoluteUri'] = 'http://www.example.com/phpMyAdmin-2.5.7-pl1/' $i = 0; $cfg['Servers'][$i]['host'] = 'example.com' // MySQL hostname $cfg['Servers'][$i]['port'] = '' $cfg['Servers'][$i]['socket'] = '' $cfg['Servers'][$i]['connect_type'] = 'tcp' $cfg['Servers'][$i]['controluser'] = '' $cfg['Servers'][$i]['controlpass'] = '' $cfg['Servers'][$i]['auth_type'] = 'config' // Authentication method (config, http or cookie based)? $cfg['Servers'][$i]['user'] = 'username' // MySQL user $cfg['Servers'][$i]['password'] = 'my_pass' // MySQL password (only needed // with 'config' auth_type)
View Replies !
&JAVA - Page Cannot Be Displayed
I have installed j2sdk1.4.2_14 to work with my php-4.3.9-3.15. And i have follow all the step from head to tail. Now, i suppose to just create a simple php coding on java function. When i exec the page...it did not show any error but just 'The page cannot be displayed'. I hava added a line of : export LD_LIBRARY_PATH=/usr/java/j2sdk1.4.2_14/jre/lib/i386/server:/usr/java/j2sdk1.4.2_14/jre/lib/i386 to etc/init.d/httpd. Seems not working as well.
View Replies !
CHMOD 777 - Page Cannot Be Displayed. Why?
I have placed a CHMOD 777 on a folder and now all of the files inside that folder return 'page cannot be displayed' error, an internal server error (500). I have tried on individual files as well.. the same thing happens. Anyone know what is going on?
View Replies !
Hiding Hyperlinks For Page Displayed
Can anyone point me in a direction to find a tutorial on writing a script that will hide, (not show) The text link for the home page if my vistor is on the home page. i have read a book and they have on th4ere but it only deals with changing the type of image not disabling it and hiding it from veiw.
View Replies !
Pagination Displayed In One Long Page
My site is a virtual pet style site where there are user shops and at the moment all items are displayed in one long page, not so great when theres over 100 products in one store. Below is a copy of the code. If anyone could please give me some pointers, Id really appreciate it. I've gone through tutorials but they seems to be to advaced for what I need and I simply get lost. Code:
View Replies !
Flip Flop The Displayed Page
I want to test different content on a landing page to see which my visitors like the most. Version A is to be shown 50% of the time, Version B to be shown 50% of the time. So, visitor #1 gets shown Version A, visitor #2 is shown Version B, visitor #3 shown Version A and so on. My idea is that I would have some code that would say include(content-a.php) or include(content-b.php) depending on which is due to be shown next.
View Replies !
How To Limit Number Of Lines Displayed On The Page?
I just wrote this script to read information from a TXT file that contains list of JPEG files, and the list is rather huge. So I want to limit the number of displayed files to like 20 per page (with NEXT/PREVIOUS links to the next or previous 20), but I have no clue how to do it. Code:
View Replies !
Phone Number Is Not Displayed In The Paypal Page
I am using Paypal in my site. The problem is the phone number is not displayed in the paypal page, but am sending the phone number in a hidden value with the name "H_PhoneNumber". Can anyone tell what could be the problem? Why am not getting Phone number in the paypal page.
View Replies !
Linking Functions To Data Displayed On Page
I have a text input box, in which you can enter a user ID. You click 'find user' and this populates a table with this users details. So far pretty straight forward. What I want, is a set of functions relating to this user, such as a simple button: 'Delete User' (the functionality of which is self explanatory). Code:
View Replies !
Page Cannot Be Displayed While Attach Images To Posts
i am including the ability for users to attach images to their posts. Now they can attach more than one image. First time round. the image gets uploaded and everything works fine. second time round though. i get a 'page cannot be displayed' error. The address in the address bar is correct. i just cant see why its working first time and not second. Anyone experienced this before or myt know why its happening?
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 !
How To Control The Number Of Page Links Displayed With Pagination?
Does anybody know how to control the number of page links displayed with pagination? I mean like, with the tutorial on this site, if I had, say 50 pages of results, it actually creates individual links for page 1-50. How could I make it truncate say 1-5, and then an arrow to goto 6-11 and vice versa? Here is the code the tutorial uses for($i = 1; $i <= $numofpages; $i++){ if($i == $page){ echo($i." "); }else{ echo("<a href="$PHP_SELF?page=$i">$i</a> "); } }
View Replies !
Session :: Problems With This Web Page Might Prevent It From Being Displayed Properly
when i add php session <? session_start(); header("Cache-control: private"); // IE 6 Fix. ?> I just get this error "Problems with this web page might prevent it from being displayed properly bla bla". Of course am adding those lines just the first thing in each page b4 anything else. so am getting that error in pages that have template applied to it. and when i delete the session lines it just back to normal. So i dont get whats the problem with the session.. there is no other way of writing it. and the session is working already properly in another project on same computer. am using php & IIS.
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 !
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 !
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 !
|