&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 Complete Forum Thread with Replies
Related Forum Messages:
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 !
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 !
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 !
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 !
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 !
Include Java Page
i am using include to include a chat page which uses java, problem is when i load the page it does not load the java at all but i have found that with incldue you need to include other stuff but do i need to somehow where the include code is include the java files.
View Replies !
PHP Pages Getting 404 Error, "Page Cannot Be Displayed"...
I tried putting this into the PHP Installation forum but don't get any answers or suggestions there so I'm going to try it here and hope it doesn't get moved. I'm on a Windows 2003/PHP 5.22 setup. I'm TRYING to upgrade from PHP 5.02 which did work on my server and quite well. I followed the upgrading and installation instructions layed out on the PHP.net set -- I still can't get it to work. The install dumped all the PHP related files under "c:program filesphp". I've ensured that path is in my windows PATH statement for my env vars. I've also verified that "c:program filesphpphp-cgi.exe" is in my Web Service Extensions listing in IIS and the status is set to "Allowed". From the command-line, I can execute my "test.php" file that has the phpinfo(); info function in it and it works fine. It's only when I try to use my web browser to access the php file that I get the 404 error, "page cannot be displayed". I know that IIS in general is working ok because I can point it to the default http://servername/iisstart.htm and it resolves to that page just fine. It's only when I change it to http://servername/test.php (which has my phpinfo()) function in it when I get the 404 error. My web server just doesn't seem to be interpretting PHP files anymore and I can't figure out why.
View Replies !
No PHP Error. Just "Page Cannot Be Displayed"
I was wondering if someone could explain why I'm receiving this error. It's like a 404 error but I think it might be something else. Basically, I have a page where a user inputs his email address. The system is supposed to look up the email address and send the associated password to that email address. It worked up until a few months ago. Note that the validation works. So, if the user tries to submit a blank text box, it returns an error. If the email address is not found, it returns an error "Email not found." But if the email is valid, it just dies. This code worked a few months ago when I initially wrote it....
View Replies !
$system = New Java('java.lang.System');
I am trying to get Java to work from within PHP. I have been looking at: http://us2.php.net/java The error and line of PHP code: $system = new Java('java.lang.System'); Fatal error: Class 'Java' not found in C:Documents and SettingsEd TaylorMy DocumentsProjects Eclipseworkspacesworkspace PHPScrapboardJavaExample.php on line 3 I have looked at the 'User Contributed Notes'. It seems there is a proliferative of different way people have defined the Java configuration options. Some have links in quotes some do not. Not sure if I am suppose to use the eight byte Windows dir name? I am a Java programmer. Sun's JAVA_HOME points to the base directory name for the JDK installed. In PHP it looks like it points to the bin subdirectory. This is what is documented: java.class.path The path and name of the PHP jar file (usually called php_java.jar) as well as any other jar files or directories where PHP will search for compiled Java classes. java.home The root directory of the installed JDK java.library The location of the Java virtual machine library java.library.path The location of the PHP java library (usually in the modules/ directory) This is what I have defined in my PHP.ini: extension=php_java.dll java.class.path = "C:php5.2extphp_java.jar" java.home = "C:Program FilesJavajdk1.5.0_07" java.library = "C:Program FilesJavajdk1.5.0_07jreinserverjvm.lib" java.library.path = "C:php5.2ext" I am running: - Windoze XP SP 2 - PHP 5.2 - Java JDK and JRE 1.5.0_07 - Eclipse 3.2 - PHPEclipse 0.2.0
View Replies !
Incorrect Id Value Being Displayed
Can anyone tell me why the $list_id variable is passing the last value in the DB and not the list_id associated with that row? When $featured == 'true' the list_id displays correctly but when i try to submit it it displays the last $last_id in the DB. PHP Code:
View Replies !
Everything After ' Character Is Not Displayed
I have been getting strange behaviour when using ' in by textboxes. eg inputting the following this is some test text ' and so is this is saved to the mysql database ok as this is some test text /' and so is this (with add slashes) or this is some test text ' and so is this (without add slashes) mysql field is VARCHAR(255) but when I retreive the data and display in textboxes on my web page, text area type (below) is ok <textarea class='BodyText' style='WIDTH: 85%' name="textarea"><?php echo $opta; ?></textarea> but input type (below) cuts everything off after the ' character. However this does not happen with other characters such as " or / <input type='text' class='BodyText' style='WIDTH: 85%' name='test' value='<?php echo $opta; ?>'> can anyone explain this behaviour and have a solution so that text with any ' characters in it is fully displayed?
View Replies !
No PHP Displayed In Browser?
I am new to setting up servers and am tring to set up a server to test my websites so I do not have to rent web space anymore. I have Apache 2.0.55 running on my machine now. I used the windows install version because I do not know how to build it from the source. I have configured PHP 5.1.1 like the install files explained. the service starts without any errors that I can see. My problem is when I try to test a simple PHP script I get nothing in my browser. The browser will display regular html though. If from a command prompt window I type php -i I get the list of settings I am suppost to see in my php script with phpinfo(); . Can anyone tell me what I missed or something to try and help?
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 !
Source Displayed
I have just installed Apache 2.2 and PHP 5.1.4 on my Win XP Pro machine. If I run phpinfo(), it displays everything correctly. However, on a page where I have included a file that contains some functions, it merely shows the contents of the included file instead of running the function. For instance, I have a function called do_html_header() that does just what the name suggests, and I've used it for quite a while. The top of my page looks like this: <?php include_once("functions.php"); do_html_header("Terms"); ?> However, when I view the page source, the actual PHP code is displayed, not just the HTML that it is supposed to display. It would seem that PHP is installed correctly since phpinfo() works fine. Is there something else I'm missing?
View Replies !
Mysql_error() Not Being Displayed
I have developed an error page which I want to include a MySQL error message from another page from: I use the header function to transfer to another page if there is an error: $link = mysql_connect ('localhost',"root","wrong password") or header("Location: http://localhost/cd/complaint_management_system_error.php"); I have 'echo mysql_error();' on my error page, but nothing is displayed.
View Replies !
Decimal Spaces Displayed...
Could someone please tell me how you can limit the number of decimal spaces shown when displaying a variable... i.e. <?php $Pie = 22 / 7; echo("<p> $Pie </p>"); ?> I want to be able to print 3.14, not 3.14154534576.
View Replies !
Each Thumbnail To Be Displayed In A 3 Columns Per Row.
I am making an image administrator. I have the user submit a thumbnail and the full image. I am storing the image file names in a mysql database. When being displayed I want each thumbnail to be displayed in a column and I only want 3 columns per row. So if there is 5 images stored total I would need 2 rows. 3 columns in the first 2 in the second. How do I have PHP automatically do this?
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 !
Number Of Rows--displayed
Is there a way to call a function that would display the number of rows in a table? I'd like to have a count on the page that allows people to query the database to demonstrate that the database is growing and constantly changing.
View Replies !
Limit Results Displayed
I have tried a few different tutorials etc on this but I cant get it to work properly with my code. What i need is the page to display 10 results per page and to automatically create a "Prev | 1 | 2 | 3 ..etc | Next" navigation that runs the results of the query. PHP Code:
View Replies !
Formatting Displayed Txt CSS And Wordwrap
I am using the follwing to display the contents of try.txt. It displays fine but I cannot alter the font via CSS, any ideas? Also I need the displayed txt to wordwrap within its DIV but i cannot figure it out! <?php $lines = file("try.txt"); echo ''; foreach($lines as $line) echo str_replace("<", "<", $line).""; echo ''; ?>
View Replies !
Calling For Data To Be Displayed Using The URL
I'm having a problem getting my code to pull the appropriate information when I call for it via URL. (example: http://..../.php?id=2). For some reason I can't get it to pull the information for ID #2 (or any ID over 1) and input that information into my dynamic page. No matter what ID i type, or even if I neglect to type in an ID to begin with, it displays the same information. What am I doing wrong? The entire code for my page is pasted below. If anyone could help I would be grateful. I know there's something simple i'm over looking, but I can't figure out what. It connects and downloads the information for ID #1 if I remove $_GET and replace it w/ $row_StaffDirectory, but this is where it only pulls information for ID #1 and no other, no matter which ID I call it from in the URL. Any ideas? Code:
View Replies !
Image Cannot Be Displayed, Because It Contains Error ...
the script that show image is: <?php include('dbinfo.inc.php'); mysql_connect($localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "SELECT file,filesize,filetype FROM user WHERE id=1;"; $result=mysql_query($query); mysql_close(); $file=mysql_result($result,0,"file"); $filesize=mysql_result($result,0,"filesize"); $filetype=mysql_result($result,0,"filetype"); header('Content-Type: '.$filetype); header("Content-Disposition: attachement "); print $file; ?> it's work fine execpt it show the image as a attachement (Save as... window), so Apache, mysql, php seem to work fine. the problem is only on http header of image i think. i want the image directly so, i use this: <?php include('dbinfo.inc.php'); mysql_connect($localhost,$username,$password); @mysql_select_db($database) or die( "Unable to select database"); $query = "SELECT file,filesize,filetype FROM user WHERE id=1;"; $result=mysql_query($query); mysql_close(); $file=mysql_result($result,0,"file"); $filesize=mysql_result($result,0,"filesize"); $filetype=mysql_result($result,0,"filetype"); header('Content-Type: '.$filetype); print $file; ?> it's don't work, firefox gave me "The image http://ip:8080/viewimage.php cannot be displayed, because it contains error." IE show me nothing at all. any one have a idea ? ---------------------------------------------------- Windows NT 5.1 build 2600 (XP Professional English) Apache 2.0.54, running as a server PHP Version 5.0.4 running as module MySQL 4.1.7 (a dll from php) Firefox english 1.0.4 Internet Explorer 6
View Replies !
Random Pages Displayed Once
I was thinking this may be a good way to display a site differently each time. Let's say I have a folder full of pages to be displayed randomly At the bottom of each page is a 'continue' button This runs a script that randomly selects another page from said folder The viewer never sees the same page twice If all pages have been viewed, a header takes them to wherever Can this be done without a db and cookies? How about a little code to get me going?
View Replies !
Script Displayed On Browser
I have a php script written for an event registration and it is getting its data from Microsoft Access. Previously, the script was running fine until two days ago when the scripts itself started showing on the browser and the application refuses to run. I am running php version 4 with Window XP Pro IIS.
View Replies !
String Displayed In Captcha
I'm trying to configure a captcha verification module (originally got from phpclasses.org) for my registration page. The image is generated by a php file (example_02.php) which is placed as an src of an img tag and that php file includes a class file. The string is generated from the 47th line of the class. I'm trying to store the string in a hidden variable so that i can check the value when i press submit. I'm attaching a zip file, because i have no other way to explain my context in a broad way (sorry for the inconveniences).
View Replies !
Carriage Returns Not Displayed
I get the input from the user using a <textarea> and then save it to MySQL. When I retrieve the data and echo it I do not get any carriage returns. What am I missing? Example Input: Line #1 entered. Line #2 entered. Example Output: Line #1 entered.Line #2 entered.
View Replies !
Image Cannot Be Displayed In Firefox
I finally managed to get the gd2 libary installed on my server and started to look @ the gd tutorial on phpfreaks. I copied and pasted the code to see what would happen. <?php header ("Content-type: image/png"); $img_handle = ImageCreate (230, 20) or die ("Cannot Create image"); $back_color = ImageColorAllocate ($img_handle, 0, 10, 10); $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191); ImageString ($img_handle, 31, 5, 5, "My first Program with GD", $txt_color); ImagePng ($img_handle); ?> I get this when I try and view the image in firefox. The image path/img.php cannot be displayed, because it contains errors. And in ie it tries to load the image via quicktime?
View Replies !
Invalid Session Being Displayed
I want this code to check if the session "user" is up and running. if so set a variable to true, otherwise set it to guest. however it seems to be setting the variable to guest no matter what the session is set to. I'm staring at this bit of code and just cannot see what is wrong. public function loginCheck() { if (isset($_SESSION['user'])) { $this->loggedin = TRUE; } else { $_SESSION['id'] = "0"; $_SESSION['user'] = "Guest"; } }
View Replies !
|