.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Programming (http://forums.bots-united.com/forumdisplay.php?f=25)
-   -   PHP not working so good for me (http://forums.bots-united.com/showthread.php?t=5050)

Ancient 21-03-2006 18:06

PHP not working so good for me
 
I am making a php website for stupid junky movies that I'm making from the Game "The Movies" and I am making it in PHP, I do everything right; in my view and knowledge of PHP.

I first made a variable.php for my pages, have about 40 variables $back = etc.....

and It doesn't show up; I put includes for the variable page to show up on the top of the page after this coding.
Code:

<?php
$main_path = "./";
include($main_path . 'extension.inc');
include($main_path . 'includes/variable.'.phpEx);

I've tried everything and still is not showing up.

AlsoThe two ad's at the bottom are seperate php Pages, for ad's etc... IF you guys help me with the variables, I'll put an ad for who ever wants at the bottom of the page.

The codings:
On second thought I might as well just hand out what I'm working on.
(Clean Executable file!). (Movies not included).\

Edit:
Url taken out.

jeefo 21-03-2006 18:27

Re: PHP not working so good for me
 
You can solve this problem in two ways. 1. Use double quotes with 'echo' function
Code:

echo "blablabla $copy blablabla";
. 2. Or if you want to use single-quotes use this one
Code:

echo 'blablabla'. $copy .'blablabla';
.

Ancient 21-03-2006 20:06

Re: PHP not working so good for me
 
I don't understand what you mean. I'm not a super expert at php, but I know enough to have variables show up in a PHP Page, but now its not doing that.

I do have other pages that use the same methods, but now its just blah.


I'll try step 1 because it looks easier.

Ancient 21-03-2006 20:12

Re: PHP not working so good for me
 
Its starting to work, thank you; by the way it makes the php page look like PHPNuke in a sort of way.

Want an ad' put on there? because this is only a beta version of the website, I will be adding the template soon ;)

Thank you.

Ancient 22-03-2006 04:47

Re: PHP not working so good for me
 
Now I need help with my Windows Media player to work on my web.

Associated files
http://server3.cfe-clan.com/sjm.zip

Please help.
I've tried 2 diff kinds, but I keep replacing the HTML with PHP codings, maybe thats messing it up.

jeefo 22-03-2006 11:08

Re: PHP not working so good for me
 
No problem with previous one :) Thanks for ad's but i have no homepage...

About new problem. I have no experience with WMP at all, but i think you create to many PHP variable to use with WMP object, such as $wmpapplication_x_mplayer2 or such, this params never changing, so you can keep it untouched, only things you need to change, is height, width and video file. (hopes it help)

(sorr for my english)

Ancient 22-03-2006 23:50

Re: PHP not working so good for me
 
Thank you for the info; yes it works the way you said.

Also your english is very good.

Anyway thank you, if you want any special things on the website let me know, I'll be glad to have it on there.


All times are GMT +2. The time now is 02:18.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.