FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » You will all probably laugh at this.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
You will all probably laugh at this. [message #172490] Mon, 21 February 2011 10:58 Go to previous message
Rob Bradford is currently offline  Rob Bradford
Messages: 5
Registered: February 2011
Karma:
Junior Member
I can't get a call to an external php scrip to execute, it jst lists
the code in the page rather than run it. If I place the code directly
into the page it runs fine. As the code is a db connect string I dont
want in an external php that is called as an when required.

Within the base page I have tried:

<?php
include("con.php");
other php in-line code
?>

and

<?php
require("con.php");
other php in-line code
?>

All that happens is it echo's the contents of con.php then the rest
fails as there is no db connection. I'm fairly new to this, but not
programming. To be honest the google pages I have pulled up have been
no help, has anyone any idea what I am doing wrong.

Rob.B
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: about memory usage with php application
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 29 16:14:25 GMT 2024

Total time taken to generate the page: 0.03911 seconds