I use a single php file for all my tag decorations and image calling so that each page is lighter and therefore isn't bogged down with the same repeated code over and over, which allows me not only to much easier change my layout and design (as I often do) but once I've finally gotten it up and working here, I realized none of the links work, I doubled, and triple checked them over and over again to make sure I wasn't making a mistake. I swore trap17 supported php, so why isn't it working? Am I missing some sorta code that i need to add, or need to take away, I'd really hate to have to switch to a much lesser host just because of this, but if the problem cannot be resolved I have no real alternative since all my pages cannot be viewed by clicking the links since all have ".php?id=" references. Any help at all would be immensely beneficial and much appreciated. If by chance somebody knows how to be able to view the same site using a php main file w/ all the tags and decorations, on them on the computer (Vista or XP if it makes a diff, i can use both) I would also be very grateful as it'd allow me an alternative to having to switch to another host and instead just looking at them on my computer, and giving it to my fiance who can look at it on hers (though her only option is XP). I know you can look at plain html files and navigate links that call to your C: locations but using the php?id= didn't work and it would show the cannot find error message in ie and firefox, and windows explorer. Anyways, again thank you very much for any help you may have to offer me, even a definitive answer would be beneficial at this point in time.
EDIT: By the way, this is the error message that shows up on the page, rather than any of the text i have for it. "Warning: include() [function.include]: Failed opening '' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/reith/public_html/reithonry.php on line 255" without the quotes. Is there perhaps something wrong with the layout of the folders, and would it at all be alleviated if I deleted all the folders in the ftp upload and just had the main site folder hold everything? The public_html and www folders somewhat confuse me as to why they're there, all hosts that i've had, had a very simplistic folder that you just deleted and made in place what you wanted, and i'm unsure of if placing my files in the public_html folder was right or wrong.
Hey there, assuming this code works on either your local server or another webhost the problem is most likely one of two things.
First off you are right in putting your files into the public_html or www folders as these links lead to the only user-viewable directory, so if you have files elsewhere try moving them to a subdirectory of this folder.
The other possibility is that your file/folder permissions are set up wrong. For testing purposes try setting permissions to all your files and folders to 777, this is especially true for the files you are using the "include" function on or with. Hopefully this will now work fine, but of curse its insecure so youll have to change the permissions to something like 557 or 556, a little research on google will help with that as i rarely use linux i dont often change file permissions.
they are my best suggestions, if the problem persists then post some of the code, especially anywhere where the INCLUDE is used and of course if you havent already then try testing it on another server, it could simply be that the T17 servers are set up differently than the one you are testing on and so a little code modification will solve the issue.
Hey there, assuming this code works on either your local server or another webhost the problem is most likely one of two things.
First off you are right in putting your files into the public_html or www folders as these links lead to the only user-viewable directory, so if you have files elsewhere try moving them to a subdirectory of this folder.
The other possibility is that your file/folder permissions are set up wrong. For testing purposes try setting permissions to all your files and folders to 777, this is especially true for the files you are using the "include" function on or with. Hopefully this will now work fine, but of curse its insecure so youll have to change the permissions to something like 557 or 556, a little research on google will help with that as i rarely use linux i dont often change file permissions.
they are my best suggestions, if the problem persists then post some of the code, especially anywhere where the INCLUDE is used and of course if you havent already then try testing it on another server, it could simply be that the T17 servers are set up differently than the one you are testing on and so a little code modification will solve the issue.
I did exactly as you said for changing the file permissions to 777, still no change at all, I applied all changes to the public_html folder (where all my files for the site are) and applied the changes to all files there within so that I would be sure no file was at the default 750 code. I'll post the code I use to make this happen, all other sites have had no problems, I'm not sure why this is being such a big hassle, but thanks for the advice, I really do appreciate any help I can get.
CODE
<td valign="top"><?php include ("$id"); ?></td>
The td is just the area I place it so that all other pages fall within that table area, the php include is where I use the tag reference so that I can just type in "reithonry.php?id=file.html" and that file can remain very small and with only the content on it, while the layout is loaded around it via the reithonry file, this has worked on all hosts that have had php enabled, so I'm confused why it's not working here, perhaps I need to use something else, if there is anything that would allow me to keep one file for layout/design and all other files for pure content that goes within a certain area I'd be more than happy to use that instead, as long as it allows pretty much the same and for my other pages to remain clean with just content on them.
The public_html Folder is the same as you would have at a 'lesser' Hosting Service as your account root folder. The www Folder is merely an alias Folder of public_html. DO NOT DELETE ANY FILES FROM WWW FOLDER, or they will be gone from the public_html Folder, too. Learned that the hard way once.
When the php script throws that error, it cannot find the file you requested for the include. There is something wrong with your paths or permissions. You seem to have handled the permissions side, so let's focus on the path.. Post up the php source for the index.php you are using and are all the files in a single folder? public_html? Do you have anything in your .htaccess file that might be affecting the includes? mod_rewrites? Where is the script from? a CMS? Also, where does the anchor tag get created here:
CODE
td valign="top"><?php include ("$id"); ?></td>
There is not an anchor tag here to cause the link to happen, unless the include does that. What does your source view tell you? are the anchor tags getting created or not?
The public_html Folder is the same as you would have at a 'lesser' Hosting Service as your account root folder. The www Folder is merely an alias Folder of public_html. DO NOT DELETE ANY FILES FROM WWW FOLDER, or they will be gone from the public_html Folder, too. Learned that the hard way once.
When the php script throws that error, it cannot find the file you requested for the include. There is something wrong with your paths or permissions. You seem to have handled the permissions side, so let's focus on the path.. Post up the php source for the index.php you are using and are all the files in a single folder? public_html? Do you have anything in your .htaccess file that might be affecting the includes? mod_rewrites? Where is the script from? a CMS?
All files are in my public_html folder, within sub folders and such related to each thing the php calls for, the main problem isn't that it's just one file or one page that's missing, anything aside from the php file that i use is not working, typing it in or otherwise trying to direct to it won't let me see anything on the page, and i'm 99.999% certain all files are in the proper folders that are needed, though I'll check a few more times just to be sure. I'm not exactly sure what more coding you want, I only have one php file and that's in the main public_html directory, many of the other files are in the same directory with a few exceptions in other folders within the public_html folder, should I put public_html or www folder as extensions in the php link, or is leaving it blank sufficient? Currently a link looks exactly ilke this below.
Should be the link, your link for some reason doesn't show the reithonry.php file which is what i use as my layout and everything, without adding the reithonry.php in there all links head to the chat, not exactly sure why, but try again with that link verbatim and it should show you exactly what I see. Thanks againf or helping jlhaslip, I really do appreciate your assistance. I rechecked the paths again and it seems everything is in order, still unsure of what's wrong, wish I knew how to fix this.
I think that registered globals are not enabled on Trap17 servers so as you are forwarding your page id as GET mathod then you should use superglobal $_GET[]. You can put the variable ($id) within the parenthesis.
Like this
<?php include($_GET['$id']); ?>
I also prefer include_once rather than include. It's just a precausionary measure. You should also use superglobals whereever you wanna refer to data from other page which are forwarded to current scripts.
That's better programming.
I also add this. You should know your server settings from a phpinfo(); file on your trap17 server and then use them to manually configure your local PHP settings so that what runs on your PC should run similarly on your Trap17 servers, and other than your fiance the rest of the world can enjoy it.
Notice from rvalkass:
Merged double posts. Remember you can use the Edit button to add to your post if no-one else has replied.
$id = $_GET['id'].".html"; if (file_exists($id)){ include $id; } else { echo "The requested file does not exist."; }
?>
That way, you don't have to type in .html at the end of the URL, and just the name of the file instead. Plus, if you use the other code, you'll get the same effect as if you were looking into a mirror that's infront of another mirror if you were to include the same page, example: http://www.eternaldiscordrpgs.trap17.com/r...d=reithonry.php (let it load for like 7-10 seconds, and you'll see why—be sure to stop the loading!).
Thanks very much for the help, it worked perfectly. If you have a spare moment, do you know exactly why my php include didn't work and the one you used did? Is it because things work better / right with these servers and they didn't on all the other ones I've been on? I'm not entirely sure why the two different codes do the same but one works while the other doesn't. However thank you very much for making it work for me, I greatly appreciate it. And I only put that much code because he said he wanted to see all of the php file >_>
I'm not really sure why your old code would work on the other server and i don't see how it could have, but mine worked because i told the PHP script to place what it gets from the GET method into a variable—the variable you declared. Without it, the script shouldn't (although more like can't) work the way you want it to.
Thanks very much for the help, it worked perfectly. If you have a spare moment, do you know exactly why my php include didn't work and the one you used did? Is it because things work better / right with these servers and they didn't on all the other ones I've been on? I'm not entirely sure why the two different codes do the same but one works while the other doesn't. However thank you very much for making it work for me, I greatly appreciate it. And I only put that much code because he said he wanted to see all of the php file >_>
Alright, the Gallery module from Fantastico always used to work for my site. Now it's suddenly
stopped functioning and I can't even access the control panel for it. My Iframe page linking to
it gives one long error message: QUOTE Error Error (ERROR_STORAGE_FAILURE) : * in
modules/core/classes/GalleryStorage.class at line 226 (GalleryCoreApi::error) * in
modules/core/classes/GalleryStorage.class at line 453 (GalleryStorage::_getConnection) * in
modules/core/classes/Gallery.class at line 202 (GalleryStorage::search) * in
modules/core/classes....
Hi, I recently switched to a new motherboard ASUS P5Q. At first I liked the motherboard because of
the features it has to offer but now its a complete turn-off First thing that I noticed was Realtek
ALC1200 (thats the sound card) on this board is not allowing Jack retasking on the back panel. I
don't have any front connections since my cabinet doesn't have these. Is this a problem or
is it normal? I had Realtek audio in my other board (XFX 650i Ultra /sad.gif"
style="vertical-align:middle" emoid=":(" border="0" alt="sad.gif" /> ) but this is the first time
i....
Do you find it annoying when you are on your invisionfree forum, and you get a new message, and it
ends up taking you 5 minutes to notice? This code makes the inbox link flash bold red saying how
many messages you have. In version 1 the word inbox stays the same, and doesnt change at all (for
Example this is flashing: Inbox (2) In version 2 (the second code) the word inbox changes to
messages (constantly, so that if you have none, it says messages (0) instead of inbox (0). It still
flashes Red Put the following In the Header and Body Section (Admin Cp>>>Skinning ....
Can anybody help me... Unfortunately I have an issue with firefox2-3 (under linux (ubuntu)
operating sistem) and flash transparacy... The site structure is: Menu (dropdown with javascript)
and under that a big flash with wmode=transparent param enabled.. On mouse-over the menu is not
appearing because the flash hides it... With all other browsers it works. I understood that this
is a flash plugin bug under linux - firefox2-3 Does anyone has a solution?....
I am not able to adjust frames length/width in a frameset using java script functions I am using
firefox 3. In below code changerows is not working for me. Where as same is working in IE6.
Please help me in resolving this issue. Note: here frameset1 is the name given to the FRAMESET.
CODE function changeRows() { parent.frameset1.rows="30%,70%" }function
restoreRows() { parent.frameset1.rows="50%,50%" } ....
This is for people using MS Office Outlook as their email client in office and home. How i wish
outlook has so many features every time i start using it... But now that new things are being
developed by third party vendors... Make things easier. One of the most important things that i
kept looking for is an efficient search that is filled with index, etc. Sometimes its not very easy
to search mails and files received via mails. Makes life a bit tough when i have to look for the
files sent by others via mail. i am still in outlook 2003 and yet to upgrade and guess wh....
I am trying to backup my files on my account(in preparation for the next server disaster), and I am
unable to download it. In my CPanel I goto the back-up screen to generate a full backup. Once
that's done and its ready to be downloaded, It only downloads to 13% or 50mb before stopping.
With and without a download manager. It doesn't help that resume is not supported in download
managers. I have too many files on my account to backup with an FTP client, that would take hours
and hours. What can I do to get a backup of my account?....
Hi, I have this Sony system with XP SP2 installed and It got infected with a virus. It came as an
attachment and I thought its a legit file since NOD32 found it clean. It was suspicious bcoz of its
size ( /biggrin.gif" style="vertical-align:middle" emoid=":D" border="0" alt="biggrin.gif" /> So
NEways, I managed to clean up the system (0% traces of any suspicious activities so far) but since
then my Auto-Update is turned off. If it were to be a pirated copy, I wouldn't have cared much
but this is LEGIT /biggrin.gif" style="vertical-align:middle" emoid=":D" border....
I just bought that disk (seagate SATA 500G) half year ago and found it stop working randomly,
resulting the whole system to be dead. BTW, I am using Win XP. I tried to use seatool, provied by
seagate, to scan and repair the error, the program stop at the half of the process. I even can't
format entirely, just do quick format. I don't know what I can do and have been pissed off for a
few days. hope some people have this kind of experience and give me any idea. I don't want to
loss my 500G data storeage. thanks in advance.....
im looking for any kind that is free really.... i use windows but if you have one for a different
platfor, go ahead and add it for reference for other users. If you have one for normal text editor
and wysiwyg, add them both. i have been using notepad as my normal html editor but im looking for
something different... at least so i can see the different colors of the codes. Right now i am
downloading moxilla's seamonkey suite but im not sure how good it is... i will post a review if
i ever use one. If you have used the html editor you suggest or you just heard abou....
Hi I need some help , Im designing this website for school studies However, I made a flash drop down
menu, works perfectly, but you know how flash has a background when you export it in to a SWF file?
For example my flash is width= 800, and height = 200 but my div box on my html page for my
navigation is only 50 px my buttons is width of 50px and the rest of the content is the drop down
animations i want to insert it into my navigation div box but i want to set the flash background to
transparent so that when the drop down menu comes down it overlaps the text or whateva....
heres the login information i use add : ftp.sub-domain.qupis.com user: my username pass: my pass
port: 21 i already opened a ticket and it seem pending at the moment but does anybody know a
solution... im already having problems with php files. im getting a password error but i can open
my account via web easily....
Have you ever used an application or played a game and thought, "If you could only..." or "If I knew
how I would add..." but didn't know where to start? I did and decided to do a lil research. I
came across a site with great tutorials. There are many ranging from beginner all the way to
advanced. After each tutorial there is a test to practice what you just learned. I dunno if I am
allowed to post the url to these sites here due to spam filters but I will say that if you search
for "c programming" in any major search engine it should be the first link (after the....
Hey, I need your help again! I need some good working tutorial how I can update my SQL through
HTML form. I did use some tutorials online found with the help of google; but they do not work
properly; I mean there are still small mistakes. I need to have a good tutorial to follow. It
should be based on security and more things. It has to be done in proper way.......
I was desperate to finish a site I was designing after I lost my hard drive and my software. I
downloaded Expression Web from the Microsoft site for a 3 month free trial, and guess what? It's
surprisingly good! Nothing like that crappy frontpage, it's standards compliant and very
good for writing CSS. Haven't heard anybody mention the program and wondering if anybody else
has tried it out. It's free to try from the MS site.....
im a noob when it comes to web html to design web sites, can some one tell me where to find a good
website that has good tutorials on how to use web html?....
Yes, yes. I have another script that I have written and I am distributing. I am not entirely sure if
this works. I have not tested it yet, but I will later and post back with a demo and fix it up.
Current script: CODE <?php //Save this as something like htmltest.php function
CheckForm() { $html_unsafe=$_POST['code']; //Gives us our user
input $html_safe=str_replace("<?php"," ",$html_unsafe);
//Starts security measures $html_safe=str_replace("?>","
",$html_sa....
i try to start this topic in webhost category but it seems like i cant. i dont have the permission
so i just post my topic here. im sorry mod.. i want to build a website which contains: - Links to
videos - Informations - photos - flash i don't know if i should use php or just HTML. guys,
what are your opinions..??....
well eversince i got interested in web desighn i've looked for tutorials but they where not that
helpfull and uderstanderble but there where two web sites that i liked 1. my favorite one was
htmldog it had tutorials on HTML, CSS, and a little bit of javascript. they where very
comprehenseve . and i read through all of them, understoode them, in about less than a week. also
has full references for HTML, and CSS tags. 2.since html dog did not provide realy good javascript
tutorial i looked to w3school for that while it wasnt very understandable too me, maybe it....
I'm trying to create a website with a form that collects some user information to store in MySQL
database. However, I've a problem when I want to dynamically add new rows and columns in the
HTML table so that the user can add more information in the dynamically added textboxes. Here's
what I have: CODE <table border="0" width="90%"
align="center" id="itemsTable"> <tr>
<td width="20%"> Quantity
<....
Can you have a HTML countdown for your wallpaper for your computer? I know you can have a animation
wallpaper for your computer. But can you have a HTML countdown as your wallpaper? I want to use a
HTML countdown for my wallpaper for my computer. So the wallpaper for my computer would be a HTML
countdown. Can you/does anyone know how to put a HTML countdown for your wallpaper for your
computer?....
Here you can find useful tips you can do to make your pc work faster in a few minutes , just follow
these tips and you will definitely have a much faster and more reliable PC! QUOTE 1.
Wallpapers: They slow your whole system down, so if you're willing to compromise, have a basic
plain one instead! 2. Minimizing: If you want to use several programs at the same time then
minimize those you are not using. This helps reduce the overload on RAM. 3. Boot Faster: The
'starting Windows 9x , xp' message on startup can delay your booting for a couple ....
Hey there everybody! I need some help. Here's the problem. I have a Linksys Wireless WRT54G
v5 router, which, I think, is acting up. First of all, I can't get port forwarding to work!
About three month ago my port forwarding was working flawlessly, I could use download clients like
DC++, or BitComet, or have an ftp server running, etc... Now, whichever ports I use, nothing seems
to work. Plus, in clients like DC++ where you're connected to several hubs, the connection to
the hubs is constantly dropped. On top of that, the joke's on me actually....
I tried to change the html for my site in file manager but it just has the default page - the one
when you activate your site. /sad.gif' border='0' style='vertical-align:middle' alt='sad.gif' />
How do i change files?....
Well I have seen it all over the web. Lots of sites have code boxes so you can promote them or they
show you a code you can use for javascript and stuff like that. I would like to know the HTML code
for those boxes. Thanks in advance for your help.....
Here they are, the best html editors. Just pick one because they are all free, or choose one of the
ones i most recommend. WebCore Designer 2005 http://www.mpsoftware.dk/webcoredesigner.php
HTMLGate Free http://www.mpsoftware.dk/htmlgate.php Ma Page Web http://www.aldweb.com
MAX's HTML Beauty++ 2004 http://www.htmlbeauty.com WebWorks http://w1.213.telia.com
PageBuilder HTML Editor http://www.tafweb.com Website Mentor http://www.dark-street.com
Cascade DTP http://www.price-media.demon.co.uk BPlainPro http://home5.swipnet.se/~w-52253/hy....
Hi there! I recently re-installed windows on my 250 gb WD SATA hard drive. I had a 50 gb
windows partition and the rest for files. First thing that happened was my system partition
wouldn't boot and eventually chkdsk said that the mbr was unrecoverable. A friend recommended
that i use a seperate parallel hard drive to load windows and then convert the disk to dynamic in
disk management. I did this, but the computer crashed and now windows won't even load with the
SATA hard drive connected. The BIOS sees the SATA hdd, but that's as far as I can get. I tri....
HI, i am intresting in knowing where you began learning html of what inspired you to start learning
html. which programs did you use or which progs dyu use?....
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE
forum, Create your own topics, Ask Questions, track topics, setup
subscriptions & notifications and Get a Free Website w/ Email and FTP.