@Angelfirebeat ok just watched the end again, you mean all that CSS? Its not hard, its a CSS Sprits, and its for making the menu load super fast with all the hover and click states. I have a video on that
@Angelfirebeat its only 8 lines of code. I think thats as easy as it gets. Unless you think this whole video is about the menu, in which case you missed the point.
define('ABSLPATH', dirname(__FILE__).'/../'); after putting that line my includes don't seem to work, maybe there was something i missed? can you help me out
the error is
Warning: include(C:\xampp\htdocs\test/../general.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\test\index.php on line 4
@optikalefxx so that line is meant only for OS X or linux environments and wont work for local hosts in a windows environment? if so, do you have any alternatives?
@fhunkydelix so when you use __FILE__ it gives you the absolute path to the current file. meaning if you on windows C:\whatever and on unix /var/whatever
the better thing to do than what i did in the video is to not define absolutely, but define relatively. like just store .././ instead of the whole thing. And the slashes don't matter when you do it that way, cuz on the web all slashes all /
@WoodyDizBankz so instead of the method in the video, you could have single page, say index.php and then take url parameters such as ?page=home or ?page=about
that way you have the header footer, and body content all on that one page, and depending on the url parameters it would show the correct page. A lot of websites do this, vbulletin, most CMS's. So either on the index.php page you say if $_GET['page'] == "home" display thisyou say if that page include this file.
Dude if I where you, go back to school and lean how to teach, because you're presentation is not like it has to be
You jump from one tree to the other with taking you're time to explain the complete page or documents and when people try to make a dynamic page the get nothing working
PS don't be short headed and remove this post like you do when people are giving you comments
I don't remove comments that have to do with the subject matter. But to address your concern; I show what I can in 10 minutes, If you watch a full length video from me, you would see me create all the code for the projects from scratch, so anyone can easily follow along from step a to step z.
Hi, I think I understand everything, but I want to know if you think this method is better than the method where, instead of including the header/ footer/ etc. on each page with php includes, you have one page where the content is switched out of a single section via php includes.
hey buddy i appreciet your effort but its not helping to target audience means new user who need to learn, ur tutorial is more complecated and u talking about all the code n all stuff wich are very confusing for new users.. plz make it easy in design mode or software u used to create it.. thanx
Good web site.
XPZION7 1 month ago
Hi, we would like to hire you for some work, please reply with your email thanks
whaus71 5 months ago
NICE JOB
infinityprodinc 1 year ago
wow this is really clever, good work
a41forsaken 1 year ago
Your website is horribly unusable. At 1440 res and 100%, the content link in your nav is cut off.
jmagAltDel 1 year ago
@jmagAltDel care to extrapolate?
optikalefxx 1 year ago
@optikalefxx Yes, your links are cut off on my computer. Care to explain why your making vids on youtube?
jmagAltDel 1 year ago
@jmagAltDel Send me a screenshot and ill make sure it works for you. :)
optikalefxx 1 year ago
wow. Your code structure is very impressive.
TooColdKris 1 year ago
@Angelfirebeat ok just watched the end again, you mean all that CSS? Its not hard, its a CSS Sprits, and its for making the menu load super fast with all the hover and click states. I have a video on that
optikalefxx 1 year ago
@Angelfirebeat its only 8 lines of code. I think thats as easy as it gets. Unless you think this whole video is about the menu, in which case you missed the point.
optikalefxx 1 year ago
Comment removed
dennis3380 1 year ago
lol @ beging html instead of beginning
haha begging it to do something useful
but sweet video, helped me tons
Tyler540 1 year ago
i have a question the part with
define('ABSLPATH', dirname(__FILE__).'/../'); after putting that line my includes don't seem to work, maybe there was something i missed? can you help me out
the error is
Warning: include(C:\xampp\htdocs\test/../general.php) [function.include]: failed to open stream: No such file or directory in C:\xampp\htdocs\test\index.php on line 4
fhunkydelix 1 year ago
@fhunkydelix Look at your slashes see how they go \\\ then they go /// . You should ditch windows and use a unix OS like mac or linux.
but if your gonna stick with windows, just change your / to \\
optikalefxx 1 year ago
@optikalefxx so that line is meant only for OS X or linux environments and wont work for local hosts in a windows environment? if so, do you have any alternatives?
fhunkydelix 1 year ago
@fhunkydelix so when you use __FILE__ it gives you the absolute path to the current file. meaning if you on windows C:\whatever and on unix /var/whatever
the better thing to do than what i did in the video is to not define absolutely, but define relatively. like just store .././ instead of the whole thing. And the slashes don't matter when you do it that way, cuz on the web all slashes all /
ill make an updated video soon.
optikalefxx 1 year ago
wow i learned alot! im gonna adopt this to my coding
fhunkydelix 1 year ago
I want to know what screamingatamall just explained :)
WoodyDizBankz 1 year ago
@WoodyDizBankz so instead of the method in the video, you could have single page, say index.php and then take url parameters such as ?page=home or ?page=about
that way you have the header footer, and body content all on that one page, and depending on the url parameters it would show the correct page. A lot of websites do this, vbulletin, most CMS's. So either on the index.php page you say if $_GET['page'] == "home" display thisyou say if that page include this file.
optikalefxx 1 year ago
Ah...
I remember the first few websites I did before exploring PHP.. What a nightmare x]
linkinpark9sc 1 year ago
Dude if I where you, go back to school and lean how to teach, because you're presentation is not like it has to be
You jump from one tree to the other with taking you're time to explain the complete page or documents and when people try to make a dynamic page the get nothing working
PS don't be short headed and remove this post like you do when people are giving you comments
ToppieT 2 years ago
I don't remove comments that have to do with the subject matter. But to address your concern; I show what I can in 10 minutes, If you watch a full length video from me, you would see me create all the code for the projects from scratch, so anyone can easily follow along from step a to step z.
optikalefxx 2 years ago
Cool and where do you find a full length video about this topic creating dynamic pages !
Add a link so that I can check it out ?
ToppieT 2 years ago
Hi, I think I understand everything, but I want to know if you think this method is better than the method where, instead of including the header/ footer/ etc. on each page with php includes, you have one page where the content is switched out of a single section via php includes.
screamingatamall 2 years ago
This method works if you then use htaccess to change the URL's, and your pages are similar enough to have a single main.php
optikalefxx 2 years ago
Comment removed
screamingatamall 2 years ago
hey buddy i appreciet your effort but its not helping to target audience means new user who need to learn, ur tutorial is more complecated and u talking about all the code n all stuff wich are very confusing for new users.. plz make it easy in design mode or software u used to create it.. thanx
ZoyzCoUk 2 years ago
Maybe I should label them beginner intermediate advanced. I never intended for my tutorials to be for beginners
optikalefxx 2 years ago