-
Posts
783 -
Joined
-
Last visited
Everything posted by ZulfadlyAshBurn
-
i am also wondering where you get those from?
-
it is saving that the is no variable set as sr & ii. do you have those variable set?
-
Best way to prevent "view source code"
ZulfadlyAshBurn replied to condoravenue's topic in Javascript Help
usually I would convert the website into an image and send them or I would use ioncube to encrypt it on my server. -
Best way to prevent "view source code"
ZulfadlyAshBurn replied to condoravenue's topic in Javascript Help
ive tried too. but its rather hard... -
exactly !
-
sorry, but what do you need help in?
-
Hosting images on web server vs. 3rd party image host?
ZulfadlyAshBurn replied to galvin's topic in Application Design
you would need a CDN for this. it really helps. try cdninabox.com. It was created using Google Apps Engine and is used by many -
why not just use style? <style> body { background-img: url('templates/default/images/bg.png'); background-size:100%; } </style>
-
its pretty nice but what would be more nicer is that if you make it dragable and make use of more css3/webkit transitions and jquery. the idea is great edit: you should make the discuss it background as bg img
-
we need to have authorization...
-
.tlp usually means template? not viewable by subfolder because you .htaccess or server config's directory listing is disable?!
-
do you know what you are actually doing? the <iframe> tag defines an inline frame that contains another document. and what do you mean the subfolder cannot be access thru index? you mean its out of the public folder? and what is .tlp? what language is it written in?
-
if i was you, i would just use php and incude the script...
-
If you have learnt javascript you would know what it does. but still i would tell you how it works. <script> /* I created a function which would check if the frame src the same to which is your url. else it would change the frame src automatically */ function ckframe() { // define framesrc = the frame src var framesrc = document.getElementById('frame').src; // define the url var urlsrc = "http://www.mysite.com/searchEngine/"; // here is where it checks. if (framesrc != urlsrc) { framesrc = urlsrc; } } // make an interval every second to make sure that the src is correct. setInterval("ckframe()",1000); </script> <iframe id="frame" src="http://www.mysite.com/searchEngine/" width="680px" height="205px" scrolling="no" frameborder="0" style="margin-left:10px;"> <p>Your browser does not support iframes.</p> </iframe>
-
im not sure if this really works though but, hopefully it helps a little. <script> function ckframe() { var framesrc = document.getElementById('frame').src; var urlsrc = "http://www.mysite.com/searchEngine/"; if (framesrc != urlsrc) { framesrc = urlsrc; } } setInterval("ckframe()",1000); </script> <iframe id="frame" src="http://www.mysite.com/searchEngine/" width="680px" height="205px" scrolling="no" frameborder="0" style="margin-left:10px;"> <p>Your browser does not support iframes.</p> </iframe>
-
is there any error? enable error reporting. paste it at the starting of the page. <?php error_reporting(E_ALL); ini_set('display_errors', '1'); ?>
-
Logins with remember me - sessions, cookies or both
ZulfadlyAshBurn replied to MargateSteve's topic in PHP Coding Help
the risk of getting the identical key using rand() have a very low chance. nonetheless, you should be using md5() where it is impossible to be identical. -
Seeking feedback on industrial website
ZulfadlyAshBurn replied to Vince889's topic in Website Critique
IMO, if I were to be the customer, i wouldn't want to even view the page as it is not very appealing. -
you will need the echo out your variables. and there is php in both scripts thus it must used .php extensions unless you parsed it in your server config. index.php <?php $Code = $sr[$ii]['postcode']; $Company = $sr[$ii]['company_name']; ?> <script type="text/javascript" src="prototype.js"></script> <script> function sendRequest() { new Ajax.Request("test.php", { method: 'post', postBody: '<?php echo $Company;?>'+$F('<?php echo $Company;?>')+'&<?php echo $Code;?>='+$F('<?php echo $Code;?>') onComplete: showResponse }); } function showResponse(req){ $('pr_likes').innerHTML= req.responseText; } </script> <body> <div class="pr_thumb"> <form id="test" onsubmit="return false;"> <input type="hidden" name="<?php echo $Company;?>" id="<?php echo $Company;?>" > <input type="hidden" name="<?php echo $Code;?>" id="<?php echo $Code;?>" > <input type="submit" value="submit" onClick="sendRequest()"> </form> </div> </body> test.php <?php $companyName=($_REQUEST['$Company']); $postCode=($_REQUEST['$Code']); // connect to the database mysql_connect("*****", "*****") or die(mysql_error()); mysql_select_db("******") or die(mysql_error()); mysql_query("UPDATE businesses SET number_likes = number_likes+1 WHERE company_name = '$companyName' AND postcode = '$postCode'"); ?>
-
Need good ideas regarding security on single page
ZulfadlyAshBurn replied to xwishmasterx's topic in PHP Coding Help
its not that hard though. make sure that all prizes have an id. store that ID into the db. on the prize page, the script checks for which prize that is not yet claimed. then only displays the unclaimed prize. on the claim page, the user clicks claim and the db stores the user info and the prize id thus it cannot be seen again. -
read this website. it will help you
-
thanks. i used obj.top = parseInt(obj.top)+20; and it works
-
I am creating a game and i need the WASD to work with my code. I have done the keymapping and its working. but how to i actually minus one from the variable. example is the current img position top is at 100 the when i click W is will be 99. <script> shortcut.add("W",function() { var obj = document.getElementById('div1').style; obj.top -= 1; }); </script> this doesnt seem to be working. I need help...
-
Logins with remember me - sessions, cookies or both
ZulfadlyAshBurn replied to MargateSteve's topic in PHP Coding Help
yes, is true that almost all users ip are dynamic but, it doesnt change often. thus, it checks for cookies first, if there are cookies, then enter, if not check ip and browser agent with mysql, if its the same then enter. else go to login etc....