wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
by look of it you are using the wrong type of quotes. Use apostrophes (') not ‘ or ’ that should work: [code=php:0]<?php include('./element/5'); ?>[/code]
-
I still don't get what you want to do. Sorry. Are you wanting to show the actual javascript code in the browser or in the source code?
-
How is PHP and Apache configured?
-
[SOLVED] PHPmyAdmin users
wildteen88 replied to dahwan's topic in PHP Installation and Configuration
Oh yeah fogot about that. re-open up the config.inc.php file and find the following line: [code=php:0]$cfg['blowfish_secret'] = '';[/code] add a secret passphrase between the two quotes like so: $cfg['blowfish_secret'] = 'pasePhraseHere'; Save the config.inc.php and relaunch phpMyAdmin a login box should now appear. -
Yes, but that will only work for the script those variables where set in. It will not be carried over to the next page when you go to echo $_SERVER['PHP_AUTH_USER']; The server variables are defined by the server its self when the script is being process. So any work you did on the server variables will be lost the next time you go to use them.
-
Did you delete any rows with the id of 23044 to 23046? If you did then thats why. autoindex has an internal counter and does not reuses previously used ids. This is the proper behaviour of auto_increment.
-
I am confused what are you trying to do. The browser will only ignore the whitespace when you go to view the page. However the whitespace will be present when you go to view the source (right click > view source).
-
[SOLVED] PHPmyAdmin users
wildteen88 replied to dahwan's topic in PHP Installation and Configuration
You'll want to change phpMyAdmins configuration. Go to where you installed phpMyAdmin and look for a file called config.ic.php open that up for editing in notepad or whatever and look for the following line: [code]$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?[/code] Change config to cookie instead. Save config.inc.php. Now go back to phpMyAdmin. You should be faced with a login box now. Enter the username and password credentials for the user you want to login to. If you dont clear any cookies for localhost. The login box should now appear. Also keep the root user as-is dont change anythink. Do what phpMyAdmin says and give the root user a password. -
If file above 5.5MB, redirect to not_uploaded.php - it doesnt though!
wildteen88 replied to AJ_V's topic in PHP Coding Help
Try: [code]<?php session_start(); function redirect($URL) { header ("Location: $URL"); } $target = basename($_FILES['uploaded']['name']) ; $ok = 100; $target = str_replace('php', 'phps', $target); $random_digit = rand(0000,9999); $target = $random_digit.$target; if(move_uploaded_file($_FILES['uploaded']['tmp_name'], $target)) { if ($uploaded_size > 5500000) { echo "Your file is too large.<br>"; $ok = 0; } else { $_SESSION['filename'] = 'http://vee-media.com/upload/' . $target; $ok = 100; } } else { $ok = 0; } if($ok != 100) redirect('http://www.vee-media.com/not_uploaded.php'); else redirect('http://www.vee-media.com/uploaded.php'); } ?>[/code] -
[quote]ALSO, i have ben having a ton of problems with case sensitivity in databases, is there any way to fix that, like ill request items for Pyro and it returns things for Pyro and pyro but the system i am using is like [code]if (name == $name){ }[/code] where name is from the database and $name is a session, like it will only display is the two match exactly like: Pyro = Pyro but if it is Pyro = pyro it errors.[/quote] Use the identical operator === instead. This will then make the comparison case sensitive.
-
When you changed the the DocumentRoot you also need to change the <directory "path/to/document/root"> directive too which should be located after the following: [code]# # This should be changed to whatever you set DocumentRoot to. #[/code] Which is around line 259. When you have changed that save the httpd.conf and restart Apache for the changes to be made.
-
Moderators, where are you oh Moderators!
wildteen88 replied to Alexis2891's topic in Third Party Scripts
If you want to add a user to moderate a forum then (if I remember correctly) you can do this when creating the forum. You can also do this when you edit the forum too. -
Dreamweaver 8 doesn't recognise php code.
wildteen88 replied to Canadiengland's topic in Editor Help (PhpStorm, VS Code, etc)
is it just the php tags that show up red? like so: [color=red]<?php ?>[/color] If so that doesn't mean PHP is not recognised. That is the code colouring for the PHP tags. Also when you go to create a new file make sure you select PHP Script and not HTML script. If you use HTML people wont recognise PHP. -
You need to reset your mysql password to use the old password function (OLD_PASSWORD). This [url=http://dev.mysql.com/doc/refman/5.0/en/old-client.html]page[/url[ should be able to help you.
-
No need to do that! Edit the tables in the database. I would recommend you to go to phpbb.com and get help there, they will be able to help you more.
-
I dont think SQL has an append feature. You're going to have to get the text from the field, then append what the user did and then re-insert the text back in to the database.
-
PHP won't load extensions.
wildteen88 replied to Hitman123's topic in PHP Installation and Configuration
[quote]I was wondering - I just formatted my drives and I'm reinstalling everything now. I didn't have to do ANY of this before. I just set the extension root, uncommented my extensions and it worked! Why do I have to do all of this now?[/quote] You might of installed PHP differently before or PHP was already added to the PATH. There is no set way to install PHP. PHP can be installed in many ways. I prefer to add the php folder to the path variable. That is the easiest way. Alot of people do some funky crap. Like copy the extension to the system32 and windows folder which is completely unnecessary. Now to enable the sqlite extension you need to enable the pdo extension aslwell as sqlite extension relies on this. add the following to the extension stack in the php.ini - add it in before extension=php_sqlite.dll: extension=php_pdo.dll The sqlite extension should now load. -
Re-download phpBB from phpbb.com (get the full package not the upgrade package). [url=http://sourceforge.net/project/downloading.php?groupname=phpbb&filename=phpBB-2.0.22.tar.gz&use_mirror=osdn]click here[/url] to download phpBB. When you downloaded phpbb re-extract phpBB to /opt/lampp/htdocs/ overwriting existing files/folders.
-
Your while loop is wrong. What columns hold the team name and visitor name in your teams and games table name is the team name and you. so you use $fet['name'] to get the team name. (note the t. and g. in the query are aliases - you don't reference them in your code. Just the actual column name). So what coloumn holds the visitor name?
-
If you don't want your variables to be shown then store them in a session. You then unset the session when you receive them in xyz.php. Another way is to use a cookie.
-
yeah you have to watch out for typos. When ever you are dealing with databases always add the or die caluse to the end of mysql_query so you can easily catch the errors with your queries. Otherwise you'll be sat there for a while wondering what the hells going on. After you finished developing your scripts you should take the or die clauses out. Just for security.
-
The errors are caused by the first error, which is this: Warning: include(./../extension.inc) [function.include]: failed to open stream: No such file or directory in /opt/lampp/htdocs/phpbb2/install/install.php on line 314 That error message means PHP is unable to find a file called extension.inc in the root of the phpBB folder (/opt/lampp/htdocs/phpbb2). Check that you have extracted all the contents correctly. Or just create a new file called extension.inc and add the following contents to it: [code]<?php /*************************************************************************** * extension.inc * ------------------- * begin : Saturday, Feb 13, 2001 * copyright : (C) 2001 The phpBB Group * email : [email protected] * * $Id: extension.inc,v 1.5 2002/04/04 11:52:50 psotfx Exp $ * * ***************************************************************************/ if ( !defined('IN_PHPBB') ) { die("Hacking attempt"); } // // Change this if your extension is not .php! // $phpEx = "php"; $starttime = 0; ?>[/code] All should now be well.
-
If you are getting that error then there is a problem with your query: [code]//retrieves information from database... $sql = mysql_query("SELECT * FROM tblFriends WHERE myspace_id='$refer_id'"); $data = mysql_fetch_array($sql); -->Line that is causing the problem[/code] add an or die clause after the query in order to see whats wrong with your query: [code]//retrieves information from database... $qry = "SELECT * FROM tblFriends WHERE myspace_id='$refer_id'"; $sql = mysql_query($qry) or die("An internal error has occured!<br />Unable to run the following query:<br /><pre>" . $qry. "</pre><br /><br />" . mysql_error()); $data = mysql_fetch_array($sql);[/code] Post the error you get now.