Oh, and on another minor note, if I used the path info (i.e. /var/html/www/navigation/navigation.html) it couldn't find the page. Would I need to precede that line with something to get it to start at the root level of the structure?
Just curious on that. One of the little tidbits I did...
OK, it is working, but still not as elegant as I think it can be. There must be a function in PHP that returns the url of the site you are at.
What I ended up with is this:
<?php
include ('../header.html');
include ('../navigation/navigation.html');
?>
That is in the myurl/webhosting/index.php...
And this code includes the files as it should.
<?php
$path = dirname($_SERVER['DOCUMENT_ROOT']);
include ('../header.html');
include ('../navigation/navigation.html');
?>
However there is an issue with the header.html file having the same problem with the relative path changing based on the...
I have tried your method and here are the results (assuming I understood you correctly and implemented it as you meant! (-8
Here is my code:
<?php
$path = dirname($_SERVER['DOCUMENT_ROOT']);
include ($path.'/header.html');
include ($path.'/navigation/navigation.html');
?>
That is in this file...
I don't have a problem getting the include command to work, it is when the file that it gets included in is in a different directory. Basically the way I have it now I will have to have a seperate file to include at each directory structure to replicate the ../ or ../../ for each directory level...
I am trying to create my web pages with some dynamic structure and am running into some problems.
Here is the structure I was trying to use:
root directory
files
index.php
directories
navigation
files
navigation.html
toolbtn1.swf
toolbtn2.swf...
That was it, thanks. Now hopefully I will remember that when I am working through future issues with dates and times!
Greg
Greg Hicks
VB.Net (Newbie) Programmer
http://www.ajlb2.com
I am trying to write a script that pulls information from our MySQL database on employees that are currently clocked in. I am pulling everything fine, but am trying to clean up the output by breaking up the date and time from the clock in into seperate fields.
Below is the array that I use to...
OK, I have migrated to the PHP language currently and have not been working much in my VS.Net IDE lately and I forget where I got that menu. If anyone else can shed some light here it would be appreciated. I just spent a couple minutes cruising thru the IDE and was unable to find the report menu...
From what I was told my version is closer to 8 than 9. If you look up through the messages here you should see one where it was explained to me what to look at to check which your's is closer to. There is a difference in the menu's between 8 and 9 and if you check that difference you will know...
The other book I have is a Wrox book "Professional Crystal Reports for Visual Studio .Net" and I have not fully read it yet, but the sections I do look into seemed to be fairly helpful.
I ended up rethinking the project I was on and began building it using PHP instead of VS.Net so I...
I never found a book to TEACH Crystal, but I did pick up the Dummies for version 8 and one other book that I can't remember the title of right off. It is on my bookshelf at work and I am currently at home, I will let you know the title of that one when I get to work later today.
Greg
Greg Hicks...
That did what I was looking for. Just wanted to eliminate wasted white space between items with no information stored in the field.
Greg
Greg Hicks
VB.Net (Newbie) Programmer
http://www.ajlb2.com
I am not sure we are talking the same thing here. What I am looking for is that some fields will be null on every record. Those fields I don't want to show a blank line for.
EX:
P20 Core and Cavity
H13 Slides
Other items
Between P20 Core and H13 Slides in my setup are other options that could...
I am trying to compile a listing of records from my database where it compiles a set of fields into a group together. However if some fields are empty I want it to completely skip that line (without leaving a blank line). What is the best way to do this?
Currently I am echoing the field and...
Ah, seems like almost anything can be turned into a debate these days. (-: vbkris is right in his assumption of my use of MySQL, and that most likely stems from all the hoopla surrounding the phrase "If you are using PHP you HAVE to learn MySQL, they work so well together!" While that...
I am trying to retrieve a record from my database when a webpage loads. Basically I need it to check the database, find the highest record ID, increment it by 1, and then post that number on the webpage to tell my user what record number they are about to create.
I think I have the script right...
Actually you are correct, there would never be a need to process mathematical computations on them. Would you then recommend using a different type for them? varchar(3) maybe?
Thanks for the answer, you must just troll these boards all day long! The last couple questions I have asked have been...
We had an outside source convert our MSAccess database into a MySQL database with a webbased front end powered by Java. The system is working well, but I was just doing some work in it and see that he has defined the field holding our employee numbers as an unsigned tinyint. This will limit us...
WOW! Every time I think I am starting to get my head around some of these concepts I either ask a question, or come across an article that shows me just how much I don't know! Your response is so full of information I am now debating my current structure even more.
I realized the issue you...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.