Jump to content

Recommended Posts

I am trying to set up this MySpace Train Script but i get this error:

[code]

Warning: main(pages/.php): failed to open stream: No such file or directory in /home/content/j/o/i/joinmy/html/pages.php on line 11

Warning: main(): Failed opening 'pages/.php' for inclusion (include_path='.:/usr/local/lib/php') in /home/content/j/o/i/joinmy/html/pages.php on line 11
[/code]

Here is pages.php:

[code]
<?php
Include "config.php";

mysql_connect ($strDBServer, $strDBUser, $strDBPass) or die ('Unable to connect to MySQL: ' . mysql_error());
mysql_select_db ($strDBName) or die ('Unable to select database: ' . mysql_error());

include "includes/precalls.php";

include "theme/header.php";

include "pages/" . $page . ".php";

include "theme/footer.php";


?>
[/code]
Link to comment
https://forums.phpfreaks.com/topic/5818-help-needed/
Share on other sites

[!--quoteo(post=358437:date=Mar 25 2006, 08:54 PM:name=Krypt)--][div class=\'quotetop\']QUOTE(Krypt @ Mar 25 2006, 08:54 PM) [snapback]358437[/snapback][/div][div class=\'quotemain\'][!--quotec--] I tried $page = $_REQUEST['page']; and I think that did the trick. THANK YOU SO MUCH! [img src=\"http://www.phpfreaks.com/forums/style_images/1/folder_post_icons/icon4.gif\" border=\"0\" alt=\"IPB Image\" /] [/quote]

I checked your site. Glad it's working!
Link to comment
https://forums.phpfreaks.com/topic/5818-help-needed/#findComment-20765
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.