Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

phpinfo.php loads but nothing else...help

Status
Not open for further replies.

sumodon

Technical User
Sep 6, 2006
6
JM
I'm new at this so please bare with me. After spending the whole day trying to get Apache 2.2.3 and php 5.1.6 to work together, I finallly got the phpinfo.php page to load after using the new php dll for apache 2.2. Now I'm having a problem getting the scripts on my pages to run. Everything else loads but the php sections are blank. When I upload the same files to my host the pages work fine. I'm assuming that I did something wrong when I configured apache or php, what do you think?
 
Hi

I would say there is a configuration problem. As you are beginner, a simple way would be to just copy the php.ini file from the Ok machine to the other.

If no error message appears in the browser, probably they are sent to a log file. The [tt]error_log[/tt] option in your php.ini file tells the log file name.

Feherke.
 
I meant that he files work fine on my web hosts server so I know I'll have to do some manual configuration but I'm not sure what to change because I've tried everything I've seen posted on the net.
 
Hi

sumodon said:
I know I'll have to do some manual configuration but I'm not sure what to change
To avoid manual modifications, I suggested to copy the configuration file. Of course, if is accessible for you.

If that is not written by you, maybe you got some installation instruction or configuration requirement with it. Tell us the URL from where you got it.

The most common problem is when a script need the [tt]register_globals[/tt] option to be set to On. Newer PHP install has default Off. If this is the problem in your case, drop that script and search for another.

Feherke.
 
I downloaded php 5.2 from and apache 2.2.3 from apache.org. I'd post the httpd.conf file here for u to see what I changed but it may be long, I'd really appreciate if you could take a look at it and the php.ini file and tell me what u think I did wrong.
 
Hi

Sorry, I asked for the URL from where you downloaded your script, not the PHP itself. Without knowing more about the script itself, would be hard to guess what is missing from the php.ini.

Feherke.
 
I tested it with a simple include() for a footer and desinger. This is all I added:
Code:
<?
include ("footer.html");
?>
<?
include ("designer.html")
?>
and here are included html files

Code:
<div style="MARGIN:1em auto; FONT: 11px arial,sans-serif; TEXT-ALIGN: center;"> 
Copyright&copy; 2006 ............Ltd. All rights reserved. Telephone ....................
</div>

<div style="MARGIN:1em auto; FONT: 11px arial,sans-serif; TEXT-ALIGN: center; ">
::: Site designed and maintained by SUMO :::</div>

As I said I'm new to all this so any input is welcomed.
 
If you are just setting up a development server from scratch and have not heavily invested time in your current set up, consider
It is two patches behind but it is fine for local development.

You can be up and running in 10 minutes.
 
Thanks I'll try it and tell you how it works out.
 
I got XAMPP to work fairly easily, just had to close skype as it was using the port necessary for apache to lauch. Thanks for the help, I'll keep you posted on the work I get done with this new stuff.
 
I noticed that you were using short tags in your script. Change the scrip that isn't running so the the open tag is <?php rather than just <?. If it works then edit your php.ini so the it will accept short tags.

Code:
short_open_tag = On

In most cases, it is in the 'Language Options' section of php.ini.



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top