if you are good with php plz contact me through msn, or AIM:
bendurham90@hotmail.com
stuartdurham15
as i urgently need your help
if you are good with php plz contact me through msn, or AIM:
bendurham90@hotmail.com
stuartdurham15
as i urgently need your help
I m gud but not wid scripts........
---------------------------------------------------------------------
Advertising
Spectre Productionz
Symbionic
Want your site here? PM me and 5 points a week.
I'm good with php and all
PHP, AJAX, SQL, Javascript Programmer!
Need help ask me!
Ask for help you need in the forums, so you can be answered and maybe even others will learn from it.
I thought about messaging you on AIM, but, like I said, post in here first. I'm willing to help.
its complicated, my friends owns a flash site, and on the links to his flash games instead of directing to the actual game he uses some kind of php 'thing' which hides url but loads the game (see link)
hes got HISWEBSITE/game.php?type=puzzle&game=aqua&height=400&width=55 0
and not the actual url, he told me its some kind of php script, could someone help me make my site work like that? so the location of the game isnt been show but the php link instead.
...I dont got an idea but chk hotscripts.com......
---------------------------------------------------------------------
Advertising
Spectre Productionz
Symbionic
Want your site here? PM me and 5 points a week.
You could use the switch function which you can look up here
http://us3.php.net/manual/en/control...res.switch.php
PHP, AJAX, SQL, Javascript Programmer!
Need help ask me!
Ok.. So what exactly do you want to know? Where the games truly are? All that is, is a way to show any game in the one script, depending on the values of the variables in the URL.
Ahh I Know What he Means Maybe He Wana Hide Real SWF And Make The Page A Little Bit Dynamic By Passing Var From Th Query String It Would me Much Better If You Use database But Without Db here How It looks Like :
Note :PHP Code:<?php
if(empty($_GET[name]) || empty($_GET[width]) || empty($_GET[height]) || empty($_GET[quality])){
echo "Direct Access not Allowded!";
exit;
}
//here Come Some Config Stuff
//Replace With Your Site Url With Directory With trailing Flash!!!!!
$basedir = "http://yoursite.com/flashfiles/";
?>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="<?=$_GET[width]?>" height="<?=$_GET[width]?>" id="Game" align="middle">
<param name="movie" value="<?=$basedir.$_GET[name]?>.swf" /><param name="quality" value="<?=$_GET[quality]?>" /><param name="bgcolor" value="#ffffff" /><embed src="<?=$basedir.$_GET[name]?>.swf" quality="<?=$_GET[quality]?>" bgcolor="#ffffff" width="<?=$_GET[width]?>" height="<?=$_GET[width]?>" name="Games" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
The URL MUST Look Like This !:
hxxp://site.com/anypgate.php?name=main&width=800&height=400&qualit y=high
And You Must Upload All You SWF File To The Directory You Specified Above FOR Example
If The name of your swf file you upload is mafia.swf then you must pass the name in the address barlike this:
hxxp://site.com/anypgate.php?name=mafia&width=800&height=400&quali ty=high
Without The .swf!! Comments And Questions are welcomed !!
And Don't Expect So much From That Script Ive Made It Within 3 minutes ;)
Last edited by ak007; 10-08-2005 at 02:04 PM.
yes great thanx, and no i dont wanna know where the games are, i just wanted to know how he was using the code