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






SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





.PHP Code Does Not Parse Php5 Apache2 On Windows


Can anyone tell me why .php code is not parsed

#For PHP 5:
short_open_tag = Off
httpd.conf
# Add to the end of the LoadModule section
LoadModule php5_module "C:/PHP/php5apache2.dll"
AddType application/x-httpd-php .php
#Add to the end of the AddModule section
#AddModule mod_php5.c




View Complete Forum Thread with Replies
Sponsored Links:

Related Messages:
Need Help, PHP5 No Errors Show And Server Will Not Parse Php Code.
I jsut installed a new PHP 5 server as I wanted to keep the php4
version server running until I change over all the code to work with
5.

Here is the problem and for the life of me I cannot figure it out.
If I create a file and put it in the root of apache 2.2 on the php 5
server with the command php_info() it displays the php information....

View Replies !   View Related
Apache2.2 + Php5
I have Apache 2.2, PHP5. I'm trying to get MySQL up and running. Tweaking with the httpd.conf file however to get Apache to read the php.ini file where I've enabled the mysql.dll extension is proving to be frustrating.

When there isn't a PHPIniDir set in httpd.conf, PHP doesn't work. When there is a correct PHPIniDir set in httpd.conf, PHP doesn't work. But when there is an incorrect PHPIniDir path set in httpd.cond, PHP suddenly works! What?!? Any clues? Code:

View Replies !   View Related
PHP5 Apache2
I have run into a dilemma here. I have installed Apache 2.0.52. During the install process it would error telling me I needed libdb-4.2.so. I installed db4-4.2.52 to achieve this. Then I did apache again and it installed successfully. I could start it and everything was fine. Now I installed PHP 5.0.3-1 during the make portion I got an error requiring libdb-4.3.so. I downloaded db4-4.3.27 to achieve this. After than I could make and make install PHP without errors. Now that I have libdb-4.2.so apache will not start.

View Replies !   View Related
Php5.0 Beta And Apache2
Hi, I've just installed apache 2 on windows98 and works fine.
Then, I install php5.0.0 beta and works as expected, but some
restrictions apply.

Im a newbie to php, and I dont know why, when I request at
the server the test.html it dont send me the results of
the php script in that (dot) html file, but if I change the
extension to (dot) php and I request that file (test.php) the
server shows me the results of the php script.

What Im doing wrong? Its something in the httpd.conf of the
apache server?

View Replies !   View Related
Php5 On Apache2 Error
i installed apache 2.0.55 and it works fine. then i downloaded php5 and extracted it to c:php, renamed php.ini-recommended to php.ini, copied php5ts.dll to the windows folder and added the following lines to httpd.conf:

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

now when im trying to start apache i get the following error:

Syntax error on line 958 of c:/Program File/Apache Group/Apache2/conf/httpd.conf:
Cannot load c:/php/php5apache2.dll into server: One of the library files needed to run this application cannot be found.

View Replies !   View Related
Static Build Of PHP5/Apache2
A plethora of articles on building PHP & Apache1 statically exist on the
web. However I have not been able to find a similar document on a static
compilation of PHP in an Apache2 executable.

I know using a modular (DSO) approach has gained popularity and is
considered 'the way forward' according to many, yet I'd still like to
build a monolithic version for a box I am configuring.

Is it all all possible with the later versions of PHP/Apache2?
Links and pointers _very_ welcome. Of course I'd be happy to also go
into the modular vs static debate,

View Replies !   View Related
PHP5 XSL Issue WinXP/Apache2
I have installed PHP5 to run on WinXP against Apache 2.
It works! ie. I have tested a few simple scripts and a basic xml
document parse.

I now want to try the XSL extension so I can transform xml docs.

Having copied the php_xsl.dll to a directory where it can be found and
done the uncommenting in php.ini, it still will not work. The script I
use generates the following error on the php line

....
$proc = new XSLTProcessor;
....

Fatal error: Class 'XSLTProcessor' not found in >>the script file
name<<.

View Replies !   View Related
Php5 Threadsafe / Apache2 Mpm=worker
Just wondering if anyone is using the apache worker module with php?

I've complied php5 with zend threadsafe support, and apache2 with the
MPM worker module on a Linux box. Everything seems sweet.
mysqli_thread_safe() reports true... anyone know if this configuration
may include modules that aren't threadsafe?

with-apxs2=/usr/local/apache2/bin/apxs with-gd enable-gd-native-ttf
with-pspell with-zlib with-freetype-dir with-curlwrappers
with-mime-magic with-curl enable-shmop with-jpeg-dir
with-mcrypt=/usr/lib with-mysqli enable-magic-quotes
with-enable-sockets enable-roxen-zts

View Replies !   View Related
Apache2/PHP5/MySQL4 Problems On Win32
I've upgraded to PHP5 from PHP4 on a Win2K3 Server and now I can't use the
MySQL databases.

I checked the documentation, to discover that MySQL libraries are no
longer bundled with PHP. So I've uncommented the 'extension=php_mysql.dll'
and copied libmySQL.dll to WindowsSystem32 (as well as Windows,
Apache2in, and anywhere else I could think of).

Now, whenever Apache starts it gives the following error:

PHP Startup: Unable to load dynamic library
'D:/Program Files/Apache Group/PHP/ext/php_mysql.dll' - The specified
procedure could not be found.

The file exists on that path, everyone has permission to read/execute it.

View Replies !   View Related
Php5 Beta2 As Module And Apache2 Problem
I'm tring to *test* php5 beta2 as module with Apache 2.0.48 and win2k (I
know, I'm nuts :o)

First, there is no php5apache2.dll in the beta2 package but a
php4apache2.dll (php.net doc mention php5apache2.dll at
http://www.php.net/manual/en/install.apache2.php)

I usually copy php4apache2.dll and php4ts.dll in the Apache2/modules/
dir and update httpd.conf with
LoadModule php4_module modules/php4apache2.dll
AddType application/x-httpd-php .php

but Apache2 can't find php4apache2.dll.
When I go back with php4 dll Apache2 starts and works well with php...
Any idea? (I already know that php is in beta stage and still not
recommended with apache2 but it's just to test)

View Replies !   View Related
Php5 On Apache2 Error: Cannot Load C:/php/php5apache2.dll
i reinstalled windows (98), installed apache and extracted the php5 zip file into c:php. i renamed php.ini-recommended to php.ini and added the following lines to httpd.conf:

LoadModule php5_module "c:/php/php5apache2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

now when i start apache i get an error message:

Syntax error on line 957 of C:/Program Files/Apache
Group/Apache2/conf/httpd.conf:
Cannot load C:/php/php5apache2.dll into server: One of the library files needed to run this application cannot be found.

when i delete the line
LoadModule php5_module "c:/php/php5apache2.dll"
apache works fine. i tried to copy php5ts.dll to c:windows,
c:windowssystem and c:program filesapache groupapache2in, it
still doesnt work...

View Replies !   View Related
How Should I Configure Apache2.2 With Php5 So That PHPSESSID Would Be Sent As A Cookie ?
How should I configure Apache2.2 with php5 so that PHPSESSID would be sent as a cookie ? Now I'm not getting any messages even if I set IE to ask about incoming cookies. So what is the default way of sending PHPSESSID if not as a cookie?

View Replies !   View Related
Problem Loading _gd2.dll Php5/apache2.0+
Wondering if anyone can recomend some sample code for dynamically loading the GD module.

I have tried setting the extension dir in php.ini, and loading the GD
module from there when apache is started, but it won't load.

There is also the option of dynamically loading the module at run time
of the script.

LD() i believe is the call.

Anyone able to recommend a workaround here?

Or provide a hint with a sample? Code:

View Replies !   View Related
Install PHP5 On My SuSE10 With Apache2.2 And MySQL5.
I'm trying to install PHP5 on my SuSE10 with Apache2.2 and MySQL5. when I try to make php it exits with this message: Code:

# ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql/ --with-mysql-sock=/usr/local/mysql/tmp/mysql.sock

/usr/local/php-4.4.2/ext/mysql/php_mysql.c:1163: undefined reference to `mysql_create_db'
ext/mysql/php_mysql.lo: In function `zif_mysql_drop_db':
/usr/local/php-4.4.2/ext/mysql/php_mysql.c:1205: undefined reference to `mysql_drop_db'
collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1

View Replies !   View Related
Installing Php On Apache2/windows Xp
'am trying to install php 5.0.3 on apache 2.0.52 on
windows xp sp1.

the problem i am getting is whenever i call a .php page in my web
browser e.g. http://localhost/test.php, contents on test.php file are
displayed on web browser, instead on the result. e.g. my test.php file
has:

Today's date is: <? print (date ("M d, Y")); ?>

this whole message is displayed when i call http://localhost/test.php
instead of today;s date.

View Replies !   View Related
Apache2+PHP5+mySQL Leads To Blank Screen
I'm running Apache2 together with the php and mysql modules on an opensuse 10.1 machine. Most scripts run well, I can connect and query databases without any problems.

But some well known scripts like phpMyAdmin or Nucleus fail. When accessing a database or table (I don't really know when PHP crashes) PHP just returns a blank screen (HTML source code is blank as well). Code:

View Replies !   View Related
Can Not Find Libexec/libphp5.so (install PHP5 + Apache2.0 +mysql4.2)
Thank you for your time to see my question. I am new in PHP.

I installed MySQL, SSL, and Aparche2 in my fedora 3 box. everything
working fine. now I am installing PHP5. I followed PHP installation
instruction, everything is OK before 14th step:

14. Edit your httpd.conf to load the PHP module. The path on the right hand
side of the LoadModule statement must point to the path of the PHP
module on your system. The make install from above may have already
added this for you, but be sure to check.

For PHP 4:

LoadModule php4_module libexec/libphp4.so

For PHP 5:

LoadModule php5_module libexec/libphp5.so

After I modified the file and doing the step 15 which is restart Apache
server, the error message said it can not find the file libphp5.so

I did search my entire file system, there is no such file, what's going
on? Am I did something wrong?

View Replies !   View Related
Mysql 5.0.22, Php 5.1.4, And Phpmyadmin On Apache2 On Windows XP Home
I installed Apache 2.0.58, tested it, got the "working" page. Installed
MySQL 5.0.22, and didn't really see how to test that, but there is a mysql
process running in the task manager. Ran through the PHP 5.1.4 installation
directions, and that seems to work, since I can use phpinfo() and get all
the information on a test php page.

Then I installed (really just unzipped and placed some files according to
the directions) PHPMyAdmin; did the configuration, ran through their setup
script, and that all seemed to go OK.

However, when attempting to open the index.php in the PHPMyAdmin folder, it
says it couldn't open the mysqli connection (also tried setting it to mysql
in the config, but same message).

I then searched the groups and saw the big uproar that php 5 as a windows
installer package did not include mysql support the way previous versions
did. Some posts said the only option was to compile it myself w/ mysql
support, or wait for a dll to be made. However, all these posts were from
2003 - 2005. I also searched online documentation at php.net, but could
find no successful searches for adding mysql support to php 5.

Can anyone tell me if there's a way to get phpmyadmin and mysql working on
this Windows XP Home machine running Apache2? Do I need to downgrade
versions of something, or can I somehow add some lines to my PHP files and
put a dll somewhere?

Secondary question: I notice that I have a php.ini file in the Windows
directory, and that's the one showing in the phpinfo() info as well. But
the main PHP folder is in c/PHP, and the ini_recommended and all that is in
there. Did I screw up the PHP install? Meaning, should the php.ini file be
in the php folder instead of the Windows folder?

View Replies !   View Related
Problems Getting "require" To Work In PHP5 Under Apache2
The require() I'm using in a PHP script has stopped working after I
moved from PHP4 and Apache 1.3.x to PHP5 and Apache 2.x. Now I get
messages like this:

Warning: main(/includes/ReloadScript.html) [function.main]: failed to
open stream: No such file or directory in
/usr/local/www/htdocs/main/AOLCompression.php on line 14

Fatal error: main() [function.require]: Failed opening required
'/includes/ReloadScript.html' (include_path='.:/usr/local/lib/php') in
/usr/local/www/htdocs/main/AOLCompression.php on line 14

I've seen references to the problems, but no workarounds or solutions.
What's the status? Is there a way around it?

View Replies !   View Related
Installed PHP5 On Windows XP
I have tried to install PHP 5 onto my Windows XP machine and all I get is:

Module compiled with module API=20020429, debug=0, thread-safety=0
PHP compiled with module API=20040316, debug=0, thread-safety=0

These options need to match Tried changing on of the Path variables away from PHP4 but to no avail :-((...

View Replies !   View Related
PHP5, Windows Installer And MySQL
Does the Windows Installer version of PHP5 come with MySQL support? As
well, how hard is it to add extensions to the Windows Installer version?

View Replies !   View Related
How To Configure PHP5 To Use MySQL In Windows XP
I use PHP5 in Windows XP Professional with Apache and MySQL installed. I
would like to use MySQL. Now, I cannot use mysql_* functions because mysql_connect(...) returns Fatal error: Call to undefined function mysql_connect() PHP is problably not correctly configured to use MySQL.

View Replies !   View Related
PHP5, Domxml, On Windows Cfg./Error
need the straight dope on domxml for Windows!
Is it bundled or are DLL's necessary?
Also, what changes are needed in php.ini?

My setup: WXP, PHP 5.0.2 as an Apache Module, libxml v2.6.11 or so it says.

I see there's been quite a bit of posting on mailing.www.php-dev Re:

phpinfo() mis-reporting domxml enabled.....

View Replies !   View Related
Upgrade To Php5 On Windows Xp On IIS 5.1 With MySQL
I am finally ready to upgrade to php 5 from php 4 but I am so so scared. I have not upgraded my php since i first installed back in 2003 and i really cannot remember how i did it. I am using window xp and i am currently using IIS 5.1 as my server. What has been putting me off for so long are all the variables that I'm worried that i don't remember.

I've heard of a thing called XAMP which is supposed to have everything bundled to make for a easy install, but i'm not sure if this is the right step to take. But then on the other hand I'm way to nervous to try and do the upgrade myself. I've looked through loads of tutorials but now i'm confused as i'm not sure whether they all apply to what i currently have running. If i am currently running php v4.3.7 on windows xp on IIS 5.1 with MySQL ( not too sure of the version ) what is the best and least complicated way for me to upgrade?

View Replies !   View Related
PHP5 Installation With MySQL, Windows 2000
Why I still have "undefined function error" messages?


I included path c:php to my windows env.
Edited php.ini file: include directory value. removed comment mark
from extension=php_mysql.dll
copied libmysql.dll to system32 directory
Apache2 runs fine.
I can run phpinfo.php
I can create a database into the MySQL.

View Replies !   View Related
Enable Soap, Mysql PHP5 Windows Xp
I have tried to find a good ref. on how to enable soap and mysql in
PHP5 on windows xp but without luck.

Can any one take me through the process? I need to enable both soap and
mysql I'm not running apache.

I need to know how to recomplie my PHP5 on windows xp.

View Replies !   View Related
PHP5.05, Mysql4.1, Apache On Windows XP - Cant Get Php To Talk To Mysql
I have read all (ok most) of the posts relating to "Call to undefined
function mysql_connect()", read the manual on PHP.net and done
eveything thats ive been asked to do but cant get PHP to talk to MySQL,
PHP is working fine but I dont get any mysql info when running <?
phpinfo() ?> and get the "Call to undefined function mysql_connect()"
when trying to connect to mysql through php in browser, please help.

1. I have added C:php; to the end of the environment variable path
2. I have edited my php.ini file to :
extension_dir = "c:phpext"
extension=php_mysql.dll - removed the ";"
... ive checked i only have 1 php.ini file!
3. The dll "libmysql.dll" is in the folder C:php
4. The dll "php_mysql.dll" is in the folder c:phpext

View Replies !   View Related
How Do I Parse UBB Code?
I'm looking to insert a number of images throughout my web site articles which will reside in a MySQL database.

Because I don't want to put <img src=""> code in my database I am thinking of using UBB code to reference my images. This will hopefully give me more leeway in the future if image tags change, for example like <img src=""> to <img src="" /> have done. i.e. I won't have to go through my database changing entries.

However I don't know much about ubb code and how to put it into the database and how PHP should parse it to display the html when it comes out the other side.

View Replies !   View Related
Make Php5 Code
Here is the code which is available in php5

$this->parent_supplier = new supplier($this->parent_group->get_parent_supplier()->supplier_id);

But when i try in pHP4 get

Parse error: parse error, unexpected T_OBJECT_OPERATOR.

View Replies !   View Related
Parse PHP Code In .html??
I was wondering if it's possible to parse PHP code in .html documents without requiring root access (since I'm on a virtual server). I want to make a two line call to a log program, but I don't want to have to change all of my .html files to .php.

View Replies !   View Related
Parse Error In Non- Code
I try to access it on I and Firefox.

Parse error: parse error, unexpected $ in /home/content/c/a/l/calvy/html/page/eile.php on line 728

Line 726-728 are just regular HTML, and line 728 is the last line on the page code.
</center>
</body>
</html>

I have already looked through the entire page code a few times trying to figure out the problem.  Not exactly sure if this is a bug or not, since there is no $ anywhere near line 728.

View Replies !   View Related
Installing PhP5 (Win). Browser Shows Code.
I'm installing PhP5 on WinXP, with Apache2.
In my Apache's httpd.conf file I have added
LoadModule php5_module c:/php-5/php5apache2.dll
and moved the .ini file to C:/Windows/php.ini
Apache works with the php module loaded.
When I look at this code with my IE browser:

<? phpinfo(); ?>

or

<?php
phpinfo();
?>

....all I get in the browser is the code itself.
Q: why is it not working? How can I diagnose my problem?
I've spent hours with manuals, etc.

View Replies !   View Related
Basic: Parse As Code , But Keep Linebreaks ?
hi, i want to parse stored htmlcode; except for the linebreaks that have nothing to do with the actual html data...

this is what i got so far:

lets say someone entered this in a form:

<b>title</b>
<i>subtitle</i>

I want to store this with the tags but also the linebreak between the title and the subtitle...

So here's how i thought it would work:

View Replies !   View Related
How Do I Parse PHP Code Within An HTML File?
I'm trying to figure out a way to save message bodies of the various e-mails I send from my site into HTML pages and then import them when I send the e-mails. But I've never tried anything like this before so I'd appreciate some help. Here's an example of the code I'm using: Code: $email_body = file_get_contents("emails/application_approved.htm");
I can import the HTML files without problems, but I've also got PHP variables in the HTML code and I need to know how to parse those variables. Is it even possible?

View Replies !   View Related
Parse Error Noted In PHP Code
I decided to get an example of a php code and then tweak it to benefit me at a later date. But I'm getting this error message:

Parse error: syntax error, unexpected T_STRING, expecting ',' or '' in C:xampphtdocsOrderProcessed.php on line 23

Code:

View Replies !   View Related
Checking Code For ONLY Parse Errors
I'm wanting to, from PHP 5.2.1, take a string that presumably contains a snippet of php code, and check the syntax of it, but without executing any code, including any files, or interpolating any variables or functions. So basically, I want parse errors.

I've tried a function that wraps the code in an if statement that never executes, and then evals the whole thing, but it still executes includes and requires, and errors out on undefined functions, variables, etc: Code:

View Replies !   View Related
Function To Parse Pseudo-code
On my website I want to have one array that contains all text-related stuff, like notifications, information, etc. Some of them have variables in it, like: "You have 4 new messages". I thought I mark variables with things like [new] so $new will be [new] so it will be easier to translate.

I started writing a parser to parse a specified value of the array. But the values of the variables are defined outside the function and doesn't appear to be seen within the function. This is what I have untill now:
<?php

/* this is just an example containing one var, but sometimes a string contains zero, and sometimes 10 */
$lang = array();
$lang['new'] = 'You have got [num] new messages'

$num = 4;

function parse ($var) {
......................

View Replies !   View Related
Simple Code Attached - Parse Error
What I am trying to accompish is have a textarea on a form display the word BLANK as the default when the users first gets in and IF the user changes this to a valid entry, display what the have keyed in if the form redisplays due to error trap. NOT WORKING. Code:

View Replies !   View Related
Parse Error On The Last Line Of Code </html>
/// here is the code i'm getting a parse error on the last line of the
code which
/// is </html> any help will be much appreciated.

<?php

session_start ();
require_once('connect.php');

if ($_SESSION['username']){ //test for logged-in
$query = "SELECT status FROM accounts WHERE
username='".$_SESSION['username']."'";
$result = mysql_query ($query) or die("<b>A fatal MySQL error
occured</b>.
<br>
Error: (" . mysql_errno() . ") " . mysql_error());
$row = mysql_fetch_array ($result,MYSQL_NUM);

if ($row[0] == 0){
$error_message .= "<P>Your account has been frozen. Email the <A
HREF='mailto:account_status@severedrealm.net'>webmaster</A> for more
information.</P>";}

if ($row[0] == 1){
$query2 = "SELECT name, hp, gold, exp FROM characters WHERE
username='".$_SESSION['username']."'";
$result2 = mysql_query ($query2) or die("<b>A fatal MySQL
error occured</b>.
<br>
Error: (" . mysql_errno() . ") " .
mysql_error());
$character_table .= "<TABLE CELLSPACING=&#392;' CELLPADDING=&#392;'
BORDER=&#390;'><TR><TD>Name</TD><TD>Hit
Points</TD><TD>Gold</TD><TD>Experience</TD><TD>Delete</TD></TR>";
$x=0;
while ($character = mysql_fetch_array ($result2)) {
$x=$x+1;
$character_table .=
"<TR><TD>".$character[1]."</TD><TD>".$character[2]."</TD><TD>".$character[3]."</TD><TD>".$character[4]."</TD>";
$character_table .= "<TD><form action='character.php'
method='post'><input type='hidden' name='character'
value='".$character[1]."'><INPUT TYPE='submit'
NAME='delete_character_submit'
VALUE='delete_character'></FORM></TD></TR>";}
$character_table .= "</TABLE>";
if ($x >= 1){
$error_message .= "<P>You have too many characters. You must
delete ".$x."before you can create another.</P>";
}else{
$character_creation_form .= "<FORM
ACTION='character.php?op=create_character' METHOD='post'>";
$character_creation_form .= "<table cellspacing=&#392;'
cellpadding=&#392;' border=&#390;'><tr>";
$character_creation_form .= "<td>New Character
Name:</td><td><input type='text' name='new_character_name' size=&#3930;'
maxlength=&#3930;' value=''/></td></tr>";
$character_creation_form .= "<tr><td></td><td><input
type='submit' name='New_Character_Submit' value='Create
Character'></td></tr></table></FORM>";}

if ($row[0] == 2){
$query3 = "SELECT name, hp, gold, exp FROM characters WHERE
username='".$_SESSION['username']."'";
$result3 = mysql_query ($query3) or die("<b>A fatal MySQL
error occured</b>.
<br>
Error: (" . mysql_errno() . ") " .
mysql_error());
$character_table .= "<TABLE CELLSPACING=&#392;' CELLPADDING=&#392;'
BORDER=&#390;'><TR><TD>Name</TD><TD>Hit
Points</TD><TD>Gold</TD><TD>Experience</TD><TD>Delete</TD></TR>";
$x=0;
while ($character = mysql_fetch_array ($result2)) {
$x=$x+1;
$character_table .=
"<TR><TD>".$character[1]."</TD><TD>".$character[2]."</TD><TD>".$character[3]."</TD><TD>".$character[4]."</TD>";
$character_table .= "<TD><form action='character.php'
method='post'><input type='hidden' name='character'
value='".$character[1]."'><INPUT TYPE='submit'
NAME='delete_character_submit'
VALUE='delete_character'></FORM></TD></TR>";}
$character_table .= "</TABLE>";
if ($x >= 2){
$error_message .= "<P>You have too many characters. You must
delete ".$x."before you can create another.</P>";
}else {

View Replies !   View Related
Code Error On Windows
I'm trying to remember what code I had that would work on a Linux server but not on my apache php mysql install on a Windows machine.

Does anyone know of instances of this? Someone I know doesn't believe that this is the case because they believe that php is truly cross platform. I realize that for most code it does work on Windows and Linux but I think there are exceptions that need to be noted.

View Replies !   View Related
How To Parse RSS Feeds By Php Code ? Cannot Set Header File Type (xml)
I want to generate a feed file dynamically inside a .php file, but in my browser it looks like a plain file even if the source file contains the right tags, I simplified it to this code (attached), is the header info incorrect or why does the browser read it like a plain file? Code:

View Replies !   View Related
Validation Issue: (ZIP Code) Parse Error, Unexpected '&amp;'
I have been playing with different bits of code lately and I came across this cool little validation script that is supposed to check zip codes for formatting...

View Replies !   View Related
Parse Error: Syntax Error, Unexpected $end On A Windows Server
i have a code i made to make a little test.. im on a windows server..

<?php
set_include_path('C:hshome ipa-mumu-anime.com');
include("../test2.php");
echo "World";
?>

i get this error message and can't seem to find the solution. can anyone figure this for me please?

Parse error: syntax error, unexpected $end in C:hshome ipa-mumu-anime.com estest1.php on line 5

View Replies !   View Related
Authenticating Users From Windows Active Directory From PHP Code
I want to authenticate users (defined in an Active Directory Service
running on a Windows 2000 Server machine) from PHP Code running under
Linux (Fedora Core 3 with Kerberos 5 installed). I just want to find
out whether a particular user (with a given username, password
combination) exists or not. Then I will login that user into my
intranet application (developed on PHP under Linux).

View Replies !   View Related
Apache2 + PHP + RH
Sorry if this was discussed earlier. I couldn't find any relevant
answers from the archive.

I am currently testing RH Enterprise WS with the following:

httpd-2.0.46-25.ent
httpd-devel-2.0.46-25.ent
freetds-0.61

I uninstalled the php rpm, because I couldn't get freetds(database
connection to mssql server) part working. Then, I got php-4.3.4 and
installed it from scratch with following options:

../configure --with-apxs2=/usr/sbin/apxs --enable-trans-sid
--with-sybase-ct=/usr/local/freetds --with-ldap --with-gd
--with-freetype-dir --with-zlib-dir

I think I made the necessary changes in php.ini(//usr/local/lib/php.ini)
and httpd.conf. However, apache seems to not parsing the php pages. My
test pages work fine in the command prompt, but it spits out the code
as text when I access the pages from a browser.

One other option I can look into is to remove the httpd rpms and build
apache from scratch. However, I would like to avoid that, if I can make
the above work.

View Replies !   View Related
Php-4.3.4-Win + Apache2 + XP
I am completely new to PHP and am finding installation the most
difficult part to understand and implement. Could someone please
review the rather long missive below and assist me? I have provided
it in as clear a fashion as possible. Code:

View Replies !   View Related
PHP 5.0.1 And Apache2
I followed all the steps described in the manual of PHP to install PHP 5.0.1 with Apache (even went to recompile the apache server) but when I try a PHP script, I only see the code. Checked everything in the FAQ about this, but nothing seems to work.

View Replies !   View Related
4 + Apache2.2
I am having trouble getting php4.4 to work with apache2.2 I have a php test page but the browser just hangs when loading. Code:

View Replies !   View Related
Is It Possible To Authenticate Users Running Apache On MacOS X (with PHP 4) And An Active Directory On Windows 2000 Or Windows XP?
From a PHP webpage, is it possible to authenticate users running Apache on MacOS X (with PHP 4) and an active directory on Windows 2000 or Windows XP?

View Replies !   View Related
Apache2 Seg Faults
I had to compile my own php to get ldap support since the latest php
packages for slackware don't have it. So I do the compile and then it
doesn't work. I check the apache log and it segfaults. CLI works fine
and doesn't give any errors. Here's some debug info (i know the gdb
output isn't all that helpful, I guess I can enable debugging on php if
it would help. although I assumed that was all coming from the apache
part):

Slackware Linux 10.0 kernel 2.6.9

Server version: Apache/2.0.52
Server built: Oct 1 2004 12:50:59

PHP version 4.3.10
../configure --prefix=/usr --with-config-file-path=/etc/apache2 --with-
openssl --with-bz2 --with-db3 --enable-ftp --with-mysql=/usr --with-ldap
--with-xml --enable-trans-sid --enable-sockets --with-curl --enable-
magic-quotes --with-apxs2=/usr/sbin/apxs --sysconfdir=/etc

apache's error log .....

View Replies !   View Related

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