Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Double dot files names

Featured Replies

I have a site using a few files with the filenames in ths format "_inc.somename.php" and for some reason when i try and use them on Uniserver the just show up as blank. Is this a known issue / is there a fix or work around for this?

If your pages work on other servers and fail on Uniserver they probably use short open tags <? ?> use the long form <?php ?>

  • Author

If your pages work on other servers and fail on Uniserver they probably use short open tags <? ?> use the long form <?php ?>

 

They use the long ones

 

This is the opening part of my index page

 

<?php

session_start();

error_reporting (E_ALL ^ E_NOTICE);

 

$styleSheet = "stylee.css";

include ("include/config.php");

include ("include/function.php");

include ("include/function_homepage.php");

 

$hpInfo = "";

getHomepageInfo($hpInfo);

require_once ("_inc.header.php");

$userID = $_SESSION['userID'];

 

?>

 

if i go directly to _inc.header.php it shows blank too and that uses full <?php tags too

Stop the servers.

From the tray menu switch php.ini to development

Restart server

 

Try this code:

Save both files to folder UniServer\www

File index.php

<?php
 //Main test file index.php
 echo "<h1>Test 1</h1>";
 require_once ("_inc.header.php");
?>

 

File _inc.header.php

<?php

  //Include file _inc.header.php
 echo "<h1>Hello World!</h1>";
?>

 

Start servers

Type following into browser address bar

http://localhost/index.php

 

What errors are reported?

  • Author

Stop the servers.

From the tray menu switch php.ini to development

Restart server

 

Try this code:

Save both files to folder UniServer\www

File index.php

<?php
 //Main test file index.php
 echo "<h1>Test 1</h1>";
 require_once ("_inc.header.php");
?>

 

File _inc.header.php

<?php

  //Include file _inc.header.php
 echo "<h1>Hello World!</h1>";
?>

 

Start servers

Type following into browser address bar

http://localhost/index.php

 

What errors are reported?

 

 

That works okay, must be a problem in my files coding then, i thought since it worked on my web server and not uniserver it was something to do with that. Ill check it all over and report back if i still have problems, thanks :)

  • Author

That works okay, must be a problem in my files coding then, i thought since it worked on my web server and not uniserver it was something to do with that. Ill check it all over and report back if i still have problems, thanks :)

 

It was a <? in my _inc.header.php. Was an include at the bottom of it what i missed, thanks for your help :(

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...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.