Big PHP problem (SOLVED)

Hello. I have a big problem. I installed php. For an example, script <? print "hello"; ?> working good, but script like that:
<? print "labas"; ?>
<?php
session_start();
include("config.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1257" />
<title>4Friends</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="default.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
<div id="logo">
<h1><a href="#">Hello</a></h1>
<h2><a href="?">Bla bla bla </a></h2>
</div>
</div>
<div id="menu">
<ul>
<li class="first"><a href="#" title="">News</a></li>
<li><a href="#" title="">Menu</a></li>
<li><a href="#" title="">Skyrelis 1 </a></li>
<li><a href="#" title="">Skyrelis 2 </a></li>
<li><a href="#" title="">Skyrelis 3 </a></li>
</ul>
</div>
<div id="content">
<div id="sidebar">
<div id="login" class="boxed">
<h2 class="title">Wah</h2>
<div class="content">
<? include("nevermind :)"); ?>
</div>
</div>
<div id="updates" class="boxed">
<h2 class="title">Bla bla bla </h2>
<div class="content">
<ul>
<li>
<h3>Balandio 20, 2007</h3>
<p><a href="#">Pew pew</a></p>
</li>
</ul>
</div>
</div>
<div id="partners" class="boxed">
<h2 class="title">Aaa</h2>
<div class="content"></div>
</div>
</div>
<?
PHP CODE WITCH DOESNT MATTER HERE
?>
</div>
<div id="footer"><p>
<a href="http://validator-test.w3.org/check?uri=referer"><img
src="http://www.w3.org/Icons/valid-xhtml10-blue"
alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>
</p>
<p>
<a href="http://jigsaw.w3.org/css-validator/">
<img style="border:0;width:88px;height:31px"
src="http://jigsaw.w3.org/css-validator/images/vcss"
alt="Valid CSS!" />
</a>
</p>
</div>
</body>
</html>
<?
sql_disconn();
?>
Displays only white screen. short_open_tag is on in php.ini. Can anyone say what is the problem? I tryed to run this script on windows WAMP, and this goes good.
Last edited by neXTPeer (2007-07-28 08:09:09)

neXTPeer wrote:
ralvez wrote:
It's got to be some misconfiguration on  your end. I just put the file in my server and works fine.
R
Am. I still don't get it what is the problem.
The whole extent of your code is 5 php statements and the rest is HTML but you get a blank page ... take the php code out and see if the HTML shows. Make sure you set the permissions of that file to 744, and test. You should be able to see the html document. If you do not see anything then type on a console (as root) "tail -f /var/log/httpd/error_log" so  you can see the errors that the server returns.
If HTML works, then begin to add the php code one block at a time  (you only have 5 so that should not be too hard) until it fails and then analyze the logs to see what upsets your server.
Hope this helps.
R

Similar Messages

  • Mediawiki, mysql, php? problems [SOLVED]

    On Sunday my Arch install that is hosted by Slicehost became unresponsive to them so they had to do an emergency reboot. After it came back up my install of mediawiki was (and still is) only returning a blank page (at least in Firefox). After some digging I found out that part of the problem was that mysqld wasn't starting so I managed to get that fixed by commenting out the lines relating to innodb and putting in skip-innodb into my.cnf. But I'm still getting a blank page.
    According to Mediawiki's manual, "A blank white page indicates a PHP error which isn't being printed to the screen." They give two lines to put into LocalSettings.php to force error messages but after doing that I'm still getting a blank page. Changing display_errors in php.ini to ON didn't have any effect.  When I load the wiki in Safari I get the following error: "Got java.io.EOFException (Server closed connection while sending the HTTP header.): http://some_url.com/mediawiki/index.php/Main_Page". I have no idea what this error means and googling java.io.EOFException doesn't bring up anything very helpful. My PHP Test Page indicates that PHP is up and running.
    Any ideas on fixes or where I can find more clues?
    [EDIT]
    Mysql was definitely the root of the problems with Mediawiki. I tried nearly every suggestion listed in the forums for fixing a mysql install that wouldn't start but nothing worked. I even completely uninstalled mysql and reinstalled it but it still refused to start. I switched over to postgresql and switched mediawiki to run with that. Problem solved.
    Last edited by k_odoma (2009-05-23 01:48:35)

    There are some other things that must be done to connect to
    the database
    (such as passing the usernamee, password, and host info to
    mysql_connect()
    and storing the connection resource), and those might be in
    the include
    files. I generally place all of the connection parameters in
    a separate file
    that is located in a folder that can't be accessed by a
    browser, for
    security purposes.
    Paul Swanson
    Portland, Oregon, USA
    "Amy Blankenship *AdobeCommunityExpert*"
    <[email protected]>
    wrote in message news:edk6ui$69c$[email protected]..
    > What's in the include(s)?
    >
    > "83Dons" <[email protected]> wrote in
    message
    > news:edk5s5$4uk$[email protected]..
    > > Here is the php code for the 'read' and 'write'
    parts:
    > >
    > >
    > >
    > > <?php
    > > include '......';
    > > mysql_select_db('clinskills') or die("UNABLE TO
    CONNECT TO
    DATABASE");
    > > $sql = "select A1Answer from authorware where id =
    '13'";
    > > $result = mysql_query($sql);
    > > $answer1 = mysql_result($result,0,"A1Answer");
    > > print $answer1;
    > > ?>
    > >
    > > <?php
    > > include '............';
    > > mysql_select_db('clinskills') or die("UNABLE TO
    CONNECT TO
    DATABASE");
    > > $newdata = $_GET['data'];
    > > mysql_query("insert into authorware (A1Answer)
    values('$newdata')")
    or
    > > die(mysql_error());
    > > mysql_close(); ?>
    > >
    >
    >

  • Big Eudora problem, small Finder issue-- related?

    I use Eudora for my email, and unfortunately my big Eudora problem is not getting solved in the Eudora message board; after half a day of Eudora quitting unexpectedly and then working fine but just for a few minutes if I restarted my computer, now when I launch Eudora, my Finder crashes-- everything disappears but the background image, and the computer is frozen.
    The reason I'm posting here is that before it reached this stage, there were other weird things that didn't relate to Eudora: I would try to launch Flash, and Flash couldn't open a new blank file. I would try to launch something else, and an error message would say that some component in a Library wasn't found. All of these things are not happening anymore; as far as I know, only Eudora is misbehaving, but one odd feature remains: every finder window is showing, next to the search field in the upper right, a large question mark, and next to that there is a folder icon. If I click on the folder icon, I'm taken to one particular folder in my HD that has no significance to anything that I can tell. If I click on the question mark, I get "the item can not be found." (Hence the question mark, I guess). But what are those doing there in every finder window? Is there supposed to be a folder icon at the middle-top-right of every finder window? I don't remember one there.
    I have done an archive-and-install of OS 10.4.6, but the finder window business is still the same.
    The hardware test CD that came with my PowerBook says all hardware is okay. Disk Warrior finds no problems. Disk Permissions are okay in Disk Utility. I ran Clam Xav, and it found four copies of viruses: three (called Email.Ecard-6) in my In box and in two mailboxes with older In messages, and one (called Email.Phishing.Pay-8) in my Out box. I put all of these files in the trash and restarted my laptop, launched Eudora and the finder crashed. I reinstalled Eudora and the same thing happened, although I had put the infected boxes back in place before reinstalling Eudora.
    I don't know where the problem is.
    Any advice, please?
    Paul

    Ciao Von Stripes,
    I've just found the solution:
    Open - System Preferences, then open - Spotlight
    There is a list of categories.
    Find - Files on the list, then click, drag and drop to the position number 1 and "voilá"
    I hope it works for you too... 

  • BB10 Calendar problem SOLVED!!!

    BB10 Calendar problem SOLVED!!!
    Step 1: DO NOT do a device switch using BB Link!
    Step 2: On your old device, do a device switch using an "SD Card' - this helped me big time since it copied everything!
    Step 3: On your BB10 device, insert the old SD card, and complete the device switch using the "SD Card" option.
    Step 4: Voila! All your calendar, phone book and personal data is all transferred on to your new BB10.
    All the best!

    I had a blackberry 9780 (now a Z10)  When I go to setup on the old BB the "device switch" icon is not there.
    Is there anyway I can get that as an option on the phone so I can try what you suggest

  • EMAIL Problem Solved!! Sending works on Roadrunner

    I'm on a Roadrunner account. It has been impossible to send email when I switch to the Edge network.
    Problem solved!
    Go to www.fastmail.fm and sign up for the "Member" level of service. It's a ONE TIME charge of $14.95. Not a big deal and you never have to pay it again. Now you enter in their smtp server address and authenticate with your new name and password. When the iPhone switches networks, it no longer matters!
    I know this involves paying a fee to get it to work. But it's the only way I have found to be able to use your own address to send and receive on Roadrunner. The gMail work around is fine but it's not the same as sending from your address that everyone knows.

    roadrunner is a problem depending on where you are
    connecting from. sometimes they may pick it up s
    spam and reject sending email.
    the easiest fix, and by far the cheapest (because it
    is free) is to simmply put in at&t's wireless smtp
    server info. under smtp server put in wcmx.com and
    leave username and password blank. that's all you
    have to do, and you odn't have to worry about being
    in an area where roadrunner rejects email.
    This works if you are on the Edge network outside a RR wifi connection. Once back to your home or office, you will not be able to send mail.
    The only options are:
    Create two accounts for each mail account--one with the RR info and one with the edge info. When you want to send a message, you send via the one that is currently connected.
    or
    Use an smtp server from fastmail.fm (or other) that will let you authenticate to send mail. Use that server as your outgoing mail server for POP accounts. It works, I'm using it now.

  • Creative MuVo and Nforce2 USB Problem solved??

    http://www.nforcershq.com/forum/viewtopic.php?t=12499
    Posted: Mon Apr 07, 2003 12:43 pm    Post subject: Creative MuVo and Nforce2 USB Problem solved??  
    Creative released a official firmware for MuVo, and according to them
    Fixes
    Improved USB file transfers for computers with NVIDIA® nForceTM1 or 2 motherboards.
    Better playback performance when more than 128 music tracks are in the player.
    Uninterrupted playback for high bitrate (192 Kbps) WMA files.
    Smooth playback for WMA files even at low battery levels.
    Improved Previous/Next Track function.
    Player may be turned on even when its memory is full
    http://www.nomadworld.com/downloads/drivers/welcome.asp?region=2&LangID=1033&OS=10&prod=437&Select=Get+Files&x=47&y=11

    Quote
    Originally posted by axeluktoo
    Hi,
    Good explanation of FSB Spread Spectrum here:
    http://www.pimprig.com/forums/archive/topic/7581.html
    From what I can make out, it\'s basic function is to help prevent your machine from interfering with other electronic devices (such as TVs, Radios etc.)
    Hope this helps!
    Axel  :D
    Thanks for the link.
    It does say in there that it does tend to mess up the clock. Also why doesn't the VIA boards have this option?
    BioHaz

  • Email and big wifi problems.

    Email and big wifi problems.
    Why does it take 6 minutes to send a photo attachment when my iphone 4 will do it in 30 to 40 seconds ?
    Why will my email account be recognised and log on only half the time?
    Why does the wifi keep dropping out?
    Why does the speed and signal vary when I'm sitting two feet away from by wifi router?
    All settings in my phone have been reset twice as per advice from vodapone

    Thanks very much, jjgraphics. I will grit my teeth and try India once more, as you suggest, and then get in touch with the moderators.
    Karen.

  • Have Operating System 10.6.8, Mail Program 4.6.  How can I prevent the next email in the que from automatically opening after I act on the previous email ? It creates big organizational problems for me. My computer changes this mode from self opening to m

    Have Operating System 10.6.8, Mail Program 4.6.
    How can I prevent the next email in the que from automatically opening after I act on the previous email ? It creates big organizational problems for me. My computer changes this mode from self opening to manually opening every few month with no ? action from me.
    Help

    Have Operating System 10.6.8, Mail Program 4.6.
    How can I prevent the next email in the que from automatically opening after I act on the previous email ? It creates big organizational problems for me. My computer changes this mode from self opening to manually opening every few month with no ? action from me.
    Help

  • I can not write in Hebrew And create effects It shows all distorted  When This problem solved?

    I can not write in Hebrew
    And create effects
    It shows all distorted
    When This problem solved?

    roeisarusi wrote:
    When This problem solved?
    Nobody knows.  iWorks apps have always had bugs that make them unsuitable for Hebrew/Arabic for most people.  Tell Apple here:
    http://www.apple.com/feedback/keynote.html

  • How to problem solve adf issue in the mx340 model

    how to problem solve adf issue in the mx340 model

    Alex,
    the missing thing in your example is the fact, that if only one value is selected, the parameter has exact this value like BOSTON. If you choose more than one value, the parameter includes the *'*, so that it looks like *'BOSTON','NEW YORK'*. So you need to check in the package, if there's a *,* in the parameter or not. If yes there's more than one value, if not it's only one value or it's null.
    So change your package to (you need to expand your variables)
    create or replace package bip_departments_2_parameters
    as
    p_dep_2_param varchar2(1000);
    p_loc_1_param varchar2(1000);
    p_where_clause varchar2(1000);
    function beforereporttrigger
    return boolean;
    end bip_departments_2_parameters;
    create or replace package body bip_departments_2_parameters
    as
    function beforereporttrigger
    return boolean
    is
    l_return boolean := true;
    begin
    p_where_clause := ' ';
    if p_dep_2_param is not null then
    if instr(p_dep_2_param,',')>0 then
    p_where_clause := 'WHERE DNAME in ('||p_dep_2_param||')';
    else
    p_where_clause := 'WHERE DNAME = '''||p_dep_2_param||'''';
    end if;
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || ' AND LOC IN ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || ' AND LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    else
    if p_loc_1_param is not null then
    if instr(p_loc_1_param,',')>0 then
    p_where_clause := p_where_clause || 'WHERE LOC in ('||p_loc_1_param||')';
    else
    p_where_clause := p_where_clause || 'WHERE LOC = '''||p_loc_1_param||'''';
    end if;
    end if;
    end if;
    return (l_return);
    end beforereporttrigger;
    end bip_departments_2_parameters;
    I've written a similar example at http://www.oracle.com/global/de/community/bip/tipps/Dynamische_Queries/index.html ... but it's in german.
    Regards
    Rainer

  • WiFi connection problem solved

    My intel iMac and MBA had no problem but iPods 3g and 5g did.  I had an old Netgear router connected and sitting next to my Airport Express.  On a hunch I diconnected the Netgear and created a guest network to replace the one on the Netgear.  PROBLEM SOLVED! 
    Evidently our iPods and boarder's iPhone had problems sorting out the signals and finding the right addresses.  Moving the AE to a higher and slightly more central position also helped.
    Jim

    Same here on a Vodafone PocketWiFi 2.
    Tried NetworkManager, wicd, wifi-menu but all have the same issue.
    I recently installed Aptosid on another machine and it has the same problem... It also has kernel version 3.9.
    All the live CDs I've tried work, even an Arch CD from May works, though a current install does not.
    I have no problems connecting to another (wpa2 enterprise) network yet can't on this 3G modem.
    I'm hoping this isn't a permanent issue and perhaps an update very soon will fix this.
    It seems the only way to fix this for now is to use an old version of Linux. I'm currently running a virtual machine only for the purpose of Internet sharing, very annoying.

  • Bug fix for Mac book wireless - problem solved!

    Aparantly there is a rather large number of folks out there who've discovered this dillema with wireless not working very well at this point on the Macbook.
    Well, I can attest there is one very good solution out there for this issue. This application called Sonar Theater from www.sunray.tv includes a bug fix for the wireless connection issues with Macbook in their latest 1.5 release of Sonar Theater.
    I downloaded it, put it into my start up folder and waalaa! problem solved. I've haven't any more issues with dropped wireless since - it's been running constantly for over 2 weeks now.
    I haven't even attempted to touch my router configuration - don't need to.

    Welcome to the better life of Macs. I am using Sonar Theater too and it's been working very well for me. In fact, I'm getting hooked on just texting a message to my Mac book to fire up user sessions now. I think if you give the Mac Book some time however, you'll find that there really is no comparison to PC's. Your life overall is going to just keep getting better as you dig in to the resources available to new Mac users.
    I'm sure it seems confusing to PC users at first, but here's how to set up any application as part of your startup sequence. It really is extremely easy and simple compared to the PC world. Oh and by the way, in reality, Mac users refer to this as your login sequence. So, at login time, you can do a multitude of different things for each user account you might want to set up. Naturally, you can choose to share or not share applications and data between these user accounts on your Mac too....
    Mac OS X 10.3 or later
    1. Log in as the user who wishes to have a login item or as an admin user.
    2. Choose System Preferences from the Apple menu.
    3. Choose Accounts from the View menu.
    4. Click the name of the user.
    5. Click the Startup Items button
    6. Click the "Add {+}" button.
    The item you selected will automatically open the next time you log in.
    there are several ways to get good info from the apple community on tips and tricks as well. you should just try the apple os x web site...here,
    http://www.apple.com/macosx/resources/
    happy mac-ing!

  • Acrobat printing problems (solved)

    Hi Folk
    I'm getting on well with Arch apart from one problem, I can not print from Acrobat reader, it accepts the command and does precisely nothing, the jobs are appearing in cups but not being printed, I can print from Open Office and test print from cups but no cooperation with acrobat,  anyone have any ideas? thanks
    Pete
    Last edited by pete051 (2009-09-29 19:14:12)

    I don't know what DE are you using. In my case, I use xfce and when acroread starts with his stupidity I just change the print command to 'xfprint'. That forces acroread to redirect the print job to xfce's printing frontend, and problem solved.
    Now, if you're using kde, I guess there is something named 'kdeprint', 'kprint' or similar. For gnome, I've no idea.
    I hope this helps.
    p.s. Sometimes, cups takes his time to print. When its taking too long I purge cups' temp files and restart the daemon.
    Last edited by kjon (2009-09-25 00:32:23)

  • Stuck with grub problem (SOLVED)

    Today i tried to upgrade my Arch Linux, it downloaded everything that should be downloaded, it was installing upgrades but at the installing grub it stucks as like this
    "Copying /boot/grub/grub.cfg.pacsave to /boot/grub/grub.cfg"
    I've waited it for about 15 minutes, it didn't move on. So i did ctrl+z to break. Then i tried to update again. But it gives an error which is:
    error: failed to commit transaction (conflicting files)
    python: /usr/bin/2to3 exists in filesystem
    Error occured, no packages were upgraded.
    Please help me guys!
    Last edited by bilgee0629 (2011-03-21 10:36:28)

    Problem solved by moving 2to3 to other directory.

  • Dr.Watson problems solved.

    DR.WATSON PROBLEMS SOLVED:
    System:
    WLS 5.1 with SP11 running on NT4 Using OCI817_8.
    Oracle 7.3.4 running on NT4.
    Problems:
    Dr.Watson exceptions in native code...
    # An EXCEPTION_ACCESS_VIOLATION exception has been detected in native code outside
    the VM.
    # Program counter=0x60239689
    When asking BEA and Oracle:
    "Use the latest OCI available. It is backward compatible !"
    What have been done to solve the problem:
    Going through all SQL code (and doing some rewriting), configuring connection
    pools (TestOnReserve / TestOnRelease, refresh, etc) and several other configurations...
    At last, we tried to change to the OCI version matching the Oracla versions we
    were connecting to (from OCI817_8 to OCI734_7).
    Voila ! NO MORE DR.WATSON EXCEPTIONS !
    Our conclusion:
    If possible, use the OCI version that matches the Oracle version you are running
    on.

    Hi Abhijit
    Couple of pointers which could resolve the issue:
    1. Since you are using the JDBC-ODBC bridge what occurs internally is that your JDBC API through the Virtual Machine make calls into the ODBC API on your Windows system. So the Watson error that you are getting is probably an illegal access by one of the methods in the ODBC API - this is for the Diagnosis part.
    2. The Solution part -
    a. Should I change my JDBC-ODBC driver? Not necessarily because the problems could be with the ODBC interface implementation and changing the driver might not help.
    b. Should I change my programming style? This is one thing which could really help. The problem with creating connections each time is that it takes a lot of resources to do it, So there is a performance degradation. What you could do inyour code is use a Java Bean to create the required Connection. You can also think of using a prepared statement appropriately encapsulate it since you are invoking a particular query repeatedly. In your JSP page you can retrive(create) this bean through the jsp:useBean tag with the session as the scope attribute. The <jsp:setProperty methods could also be used to set the DSN name and the driver.
    Once this bean is successfully created you have an open connection.
    Now for the part you have pasted - replace the create connections with getting a new Statement object which would hold your Query. At the end of the JSP just close the Statement object.
    Once you are done updating the page you may transfer the control to a different JSP - Let that transfer trigger the connection close in the Java bean.
    This should solve the Dr.Watson problem.
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc
    http://www.sun.com/developers/support

Maybe you are looking for

  • How to trigger a process chain using external scheduler ?

    Hi all,          we have a requirement wherein we need to trigger the process chains from an external scheduler used by client rather than directly scheduling it through BW scheduler.So any pointers on this will be heplful.

  • Why can't I hear any soundtrack?

    Hallo, I am using now PrE 7. I have imported music from itunes (mp4). Everything seems to be perfect, but after reopening the project I can't hear anymore the soundtrack. What can I do? Please answer very simple, because I am really a beginner. Thank

  • Using RoboHelp 7 CHM Output on a Server

    CHM output from RoboHelp 7 (6, . . .), as well as any application that produced CHM, will not load on a network device. This is a known issue confirmed by Adobe. When Microsoft Security Update 896358 was installed to address remote code execution, ch

  • Converting Nikon raw file

    Hi Folk, Having converting Nikon raw files (NEF) I found that MB25 in NEF became MB 51 in DNG. Is it normal? Can I have more data than in the original? Thanks Shaul

  • Can I retrieve photo after deleting in photos?

    Accidentally deleted video from photos in iPad 2. Is there a way to retrieve or restore video? I did not sync video.