MacFly
Members-
Content Count
37 -
Joined
-
Last visited
Everything posted by MacFly
-
Hello I have a question regarding the header(location:http:// etc) function. I have a php document that looks similar to the followiing <? include("./top.php"); //this file contains loads of html and is resident on all pages in the site IT HAS TO BE HERE //now some code specific to this page only if blah blah { do some stuff } else { header("location : URL"; } include ("./bottom.php"); //this file contains loads of html and is resident on all pages in the site IT HAS TO BE HERE ----- my question is this, how can i redirect to a new page using the header() function in the middle of a file like this ie when i have already passed a load of html and other stuff to the browser. When I run the above i get the following error Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/include/top-left.inc.php:129) in /var/www/html/comments.php on line 19 I am reasonably new to PHP and after investigation found out that to use the header() redirect there can not be any html or white space sent to the browser before the actual header() command Im sure there is a really simple solution to this but im a bit stumped and would appreciate some help.
-
I have been noticing that my results on yahoo, msn, and google were from old pages that have been updated many times over including keyword updating. I noticed that I get visited by many bots producing many hits but ZERO bandwidth. For example, msnbot regularly visits producing 300+ hits but no bandwidth. And google is starting to do this (they were producing bandwidth before). Does that mean they are checking to see if the pages are updated and think they are not so they don't crawl them?I have dynamic pages that produce dynamic content. So the code and the files don't change too often. But the content does. Do search engines determine these haven't been updated by a date/time stamp of last saved? Do I need to make physcal changes to the dynamic pages (.asp) to get them to think they are updated?The pages I have physically updated (with different keywords) are deeper in my site and I'm thinking they are noticing the landing pages not being updated physically so they do not crawl as deep. Is this a correct assumption?Is there a meta tag they follow to reindex? or to let them know they have been updated? I'm just very confused about all the SEO stuff. Thanks in advance...
-
I've been searching for tutorials on how to make a sliding menu in Flash. Here's the catch:There is this fixed nav menu and when you click a button there, the main content will slide to a target frame. Anyway, I have found a tutorial, but i dont like it:first, it asked me to copy a code into the Actions panel, which I think is not very helpful at all because wel, its a code and it didn't explain on the idea.here's the link:https://www.kirupa.com/developer/flash5/slidingmenu.htm the effect achieved was what I really want... I am wondering if somebody knows something that'll make life easier.
-
I've always used photoshop for everything. It has always seemed to me to be the best program ever But now that I have used illustrator in my animation classes, I'm starting to wonder whether or not I should start saving up some money to buy it because it's soooo good and I can edit things easily. I've never heard of that many people who use it though, is it not good or something?Does anyone here think it's worth getting? (I think I'm going to go broke after this..) Or should I just stick with photoshop?OoOOo! Is there a cheaper/free program just like it?Thanks~
-
I've got a script that generates a graph by creating it as a .png file (I can't output the image directly to the browser because of the way I need to generate the data).This all works ok however, in order to keep the data managable I've set a limit so that it only displays 12 months data at a time. The problem I have is that when I click on the next button to display the next set of data, the graph remains the same until you refresh the browser.I've tried using unlink() to delete the image file forcing the script to re-generate it when the script is reloaded but it doesn't seem to delete the file.The code is fairly lengthy so haven't displayed it here.Any suggestions?
-
I just did a meat tag analysis and it was awful!I hate to appear ignorant but I guess I don't know what I am doing! Can anyone tell me exactly how and in what order all my metatags should be and belisted...here is what the report said was missing:Found no robots meta tag.This tag is not really required but helps spiders to index the web page. Author: Found no author meta tag.This tag is not really required but helps for your (company) name recognizing. Found no description meta tag.The description meta tag is used by most of the search engines. Consider to add a description meta tag.
-
HelloI'm trying to create a shopping cart enviroment on my flash web site, the software is called flashkart, I'm not quite sure how to include the Init file into my swf file, the instructions are:THE INIT FILEThe init file, or fk_init.as, is your startup file. It not only handles all preloading duties and defines the Flash Kart environment and variables, but it's primary use is customizing the various text styles and configuration settings.But best of all, it's simple to install:(this is the bit I'm having trouble with it gave a script error **Error** Scene=Scene 1, layer=black screen, frame=1:Line 1: Malformed #include directive#include"fk_init.as"Total ActionScript Errors: 1 Reported Errors: 1)For Flash MX, simply include the file at any frame in your Flash index or movie file like so: #include "fk_init.as"Note: #include directives do not end with a semicolonFlash Kart loads independently of your main movie via its own preloading scheme, so your website will not have to wait for it to fully load. Further, Flash Kart's mini-kart can be activated even before Flash Kart is completely loaded, so customers on a dial-up modem can begin shopping almost immediately.Note: Flash Kart can record purchases the moment it begins loading.(I also tried their next recommendation by creating a new symbol, selected movie clip and called it fk_init copiied the contents of fk_init.as into the action pane and saved the fla file, but in publish previewnothing appears thats to do with flashkart)Lastly, if you're impartial to #include files, you can simply create a movie clip entitled fk_init off the root of your movie, then cut and paste the code from fk_init.as directly into the fk_init movie clip's action paneCan anyone help.
-
The whole point of syntax colouring is to be able to differenciate. Why would you want php syntax colouring with HTML. To make the site compliant for dreamweaver make all pages .php. Dreamweaver should update links accordingly but if not the use the links sitewide option later. Tag the php code with <?php ?>to seperate it from the HTML and Dreamweaver will colour both syntax correctly.Sounds like the php application is using HTML templates and should be so easy to manage in Dreamweaver. A lot of developers like to keep HTML seperate from the server side code for ease of management. Im afraid if your stuggling with editing a site set out in this way, then you took on a project that is too deep for you.