![](https://forums.phpfreaks.com/uploads/set_resources_1/84c1e40ea0e759e3f1505eb1788ddf3c_pattern.png)
paulman888888
Members-
Posts
332 -
Joined
-
Last visited
Never
Everything posted by paulman888888
-
[SOLVED] whats the best to protect a page
paulman888888 replied to paulman888888's topic in PHP Coding Help
thankyou -
Its properly your IE not the script. My advise get an update or a new pc or FIREFOX
-
[SOLVED] whats the best to protect a page
paulman888888 replied to paulman888888's topic in PHP Coding Help
I know i shouldn't ask but i will. Can you show me one please or make one please. I havent learnt sessions yet, but i do know post and get. thankyou very much. -
Need help with tracking page and redirects
paulman888888 replied to voasi's topic in PHP Coding Help
sorry misunderstood. If your useing page frames then it will work. PHPmyVisits has a built in multi-site meaning it can keep track of all pages in all sites. It also has a built in redirector so you know which buttons are being clicked. Try it. I like it. -
[SOLVED] whats the best to protect a page
paulman888888 replied to paulman888888's topic in PHP Coding Help
Could i use Something like (I don't know how to write this in php language) <?php $password = anything //i will change this later If $post[password] is = to $password { code goes here think } else { echo Wrong password} ?> -
Need help with tracking page and redirects
paulman888888 replied to voasi's topic in PHP Coding Help
sorry wrong topic -
Need help with tracking page and redirects
paulman888888 replied to voasi's topic in PHP Coding Help
Can i use post data? Something like (I don't know how to write this in php language) <?php $password = anything //i will change this later If $post[password] is = to $password ?> -
Need help with tracking page and redirects
paulman888888 replied to voasi's topic in PHP Coding Help
Use PHPmyvisits. Its very good at every thing. http://www.phpmyvisites.us/ -
[SOLVED] whats the best to protect a page
paulman888888 replied to paulman888888's topic in PHP Coding Help
am not allowed HTACCESS on the server. -
I don't know whats the best way to protect a page. I would like to set up a password at the top of my page. It's not a user sign then can view the page type of think. Just a quick enter password and then your in type of thing. It's just for me and my mate. I don't want to use Mysql.
-
is this right? <?php $filename = "games/{$_POST['name']}.php"; if (file_exists($filename)) { echo "Theres an error. That file already exists. Go back and change the name of the game."; } else { $ourFileName = "games/{$_POST['name']}.php"; $ourFileHandle = fopen($ourFileName, 'w') or die("Can't make file"); fclose($ourFileHandle); $myFile = "games/{$_POST['name']}.php"; $fh = fopen($myFile, 'w') or die("There's an error!"); $stringData = "$_POST['main'].php"; fwrite($fh, $stringData); fclose($fh); } ?> thankyou
-
whats the differnce between $_POST['name'] and $_POST[name].php? do the ' doing anything?
-
This is my code! <?php $ourFileName = "games/{$_POST['name']}.php"; // the name of the file to be made $ourFileHandle = fopen($ourFileName, 'w') or die("Can't make file"); fclose($ourFileHandle); $myFile = "games/{$_POST['name']}.php"; $fh = fopen($myFile, 'w') or die("There's an error!"); $stringData = "$_POST[main].php"; fwrite($fh, $stringData); fclose($fh); ?> I would like something to check if the file name already exists. Can someone please help. Thankyou
-
[SOLVED] How do i make this suitable for php?
paulman888888 replied to paulman888888's topic in PHP Coding Help
EDIT: Doesn't matter now. Thankyou -
Download it here http://www.scottwilburn.com/downloads/smarty_ext.zip
-
[SOLVED] How do i make this suitable for php?
paulman888888 replied to paulman888888's topic in PHP Coding Help
This is the page source from FIREFOX. <form method="post" action="addgame.php"> <p>Name: <label> <input type="text" name="Name" id="Name" /> </label> </p> <p> <!-- Include the Free Rich Text Editor Runtime --> <script src="freerte_v1/js/richtext.js" type="text/javascript" language="javascript"></script> <!-- Include the Free Rich Text Editor Variables Page --> <script src="freerte_v1/js/config.js" type="text/javascript" language="javascript"></script> <!-- Initialise the editor --> <script> initRTE('', 'freerte_v1/examples/example.css'); </script> <input type="submit"> </p> </form> Hope it helps -
[SOLVED] How do i make this suitable for php?
paulman888888 replied to paulman888888's topic in PHP Coding Help
The template still doesn't load or work but i dont want to waste anymore of your time. Don't reply if you got more important things to do. Thankyou all anyway -
[SOLVED] How do i make this suitable for php?
paulman888888 replied to paulman888888's topic in PHP Coding Help
I have used that and what you said and it comes up with this error. Parse error: parse error, unexpected ';' in /home/www/notgiveingmyproperwebsite.com/addinggame2.php on line 13 [/code] -
[SOLVED] How do i make this suitable for php?
paulman888888 replied to paulman888888's topic in PHP Coding Help
I have tryed all above. I don't know what to do or how i can help you help me. Thankyou anyway -
[SOLVED] How do i make this suitable for php?
paulman888888 replied to paulman888888's topic in PHP Coding Help
that doesn't work. The editor doesn't load or appear. this is the full code <?php function freeRTE_Preload($content) { // Strip newline characters. $content = str_replace(chr(10), " ", $content); $content = str_replace(chr(13), " ", $content); // Replace single quotes. $content = str_replace(chr(145), chr(39), $content); $content = str_replace(chr(146), chr(39), $content); // Return the result. return $content; } // Send the preloaded content to the function. $content = freeRTE_Preload("THIS IS WHERE I WANT MY HTML CODE") ?> <form method="post" action="addgame.php"> <p>Name: <label> <input type="text" name="Name" id="Name" /> </label> </p> <p> <!-- Include the Free Rich Text Editor Runtime --> <script src="freerte_v1/js/richtext.js" type="text/javascript" language="javascript"></script> <!-- Include the Free Rich Text Editor Variables Page --> <script src="freerte_v1/js/config.js" type="text/javascript" language="javascript"></script> <!-- Initialise the editor --> <script> initRTE('<?= $content ?>', 'example.css'); </script> <input type="submit"> </p> </form> I how that helps. Please help Thankyou -
[SOLVED] How do i make this suitable for php?
paulman888888 replied to paulman888888's topic in PHP Coding Help
I cant use that because my HTML page has ' in them so it makes errors. Anymore ideas? Thankyou -
[quote author=pixeltrace link=topic=86816.msg349362#msg349362 date=1140897524] guys, i need help on this. kindly check [a href=\"http://www.sinagtala.net/sinag3\" target=\"_blank\"]http://www.sinagtala.net/sinag3[/a] notice the hit counter on the upper right corner whenever i go to the other page it adds up again. what i wanted to happen is that it will just hit on the index page and not on the subpages anymore this is my script for the index page and the other subpages. [/quote] Your website does'nt exist.
-
you can save the database on your computer useing PHPmyAdmin. When you saved it go to your Mysql server (not the one on your pc). Then upload it useing PHPmyadmin giveing you PC less work to do.
-
I want to put this is my php code. <table width="100%" border="1" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC"> <tr><td width="23%" rowspan="2"><table width="66%" border="1" bordercolor="#000000"><tr><td><center><img src="http://www.civage.com/team/images/paul.gif" alt="Demo" width="175" height="170" longdesc="demo" /> </center></td></tr><tr><td><center>In Game Screenshot</center></td></tr></table></td> <td width="68%" height="38"><strong>Area T9</strong></td> <td width="9%"><img src="../Images/flag/UK.png" alt="English" width="65" height="34" longdesc="English"></td></tr><tr><td colspan="2"><p>Size: 9.4mb<br /> Version: 1<br /> Type: Beta<br /> <a href="http://civage.com/downloads/index.php?act=view&id=7" target="_self" onMouseOver="MM_swapImage('Download','','../downloads/skins/old/images/download.gif',0)" onMouseOut="MM_swapImgRestore()"><img src="../downloads/skins/old/images/download.gif" alt="Download" name="Download" width="142" height="52" border="0"></a></p></td></tr> <tr> <td colspan="3"><center> Loads of mini games! </center> </td> </tr> </table> For my preloaded content but how do i get in the code? <?php function freeRTE_Preload($content) { // Strip newline characters. $content = str_replace(chr(10), " ", $content); $content = str_replace(chr(13), " ", $content); // Replace single quotes. $content = str_replace(chr(145), chr(39), $content); $content = str_replace(chr(146), chr(39), $content); // Return the result. return $content; } // Send the preloaded content to the function. $content = freeRTE_Preload("THIS IS WHERE I WANT TO PUT THE FIRST CODE I GAVE YOU") ?> Thankyou for the help