wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
QSA stands for Query String Append. I do not recommend your solution. This is because your rewrite rule is now sending all requests to load.php?page= You need to add a condition to only apply the rule if the request is not an existing folder or file. Like so <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/\.]+)$ load.php?page=$1 [QSA,L] </IfModule>
-
To pass on the url query string (?foo=bar etc) you should use the QSA flag RewriteRule ^([^/\.]+)$ load.php?open=$1 [QSA,L]
-
All this can be grabbed from the $_SERVER superglobal variable. To create a .txt file or to add text to it you can use fopen, fwrite or file_put_contents
-
adding 24 hours to current time and saving it to mysql database
wildteen88 replied to debuitls's topic in PHP Coding Help
What is the data type set to for your tomorrowtime column? If its DATETIME then MySQL is expecting the following date format MM-DD-YY HH:MM:SS not a unix timestamp. For using dates in PHP have a read this tutorial -
Echo'ing the rename or renamefile class variable within your constructor wont display anything as these variables are set after you have created a new instance of your thumbnail class. Remember the constructor is called when you create a new instance of your class, This is how you're calling your class. $img = new thumbnail('temp','upload','upload/thumb',$_FILES['dosya']['tmp_name'],$_FILES['dosya']['name']); After that line you're then setting your class variables $img->renamefile = TRUE; $img->rename = "0xyGen.jpg";
-
You need to be escaping the double quotes (\") within this block of code. echo "<tr> <td width="279"><div align="center">$battle[username]</div></td> <td width="206"><div align="center">$battle[clan]</div></td> <td width="55"><div align="center"><a href=\"profile.php?profile=".$battle[username]."\">attack</a></div></td> <td width="68"><div align="center">$battle[wins]</div></td> <td width="68"><div align="center">$battle[lose]</div></td> </tr>"; Remember if you start your strings with a double quote. You must escape them within your string.
-
What you'll want to do is align the text to the right. Then add a bit of padding to the right side of the cell to move the text nearer to the center.
-
Well you have IIS7 installed/running. Which is why XAMPP doesn't work. You need to uninstall/disable IIS7.
-
style.css/index.php/template_index_php.html What. Where & How?
wildteen88 replied to Modernvox's topic in PHP Coding Help
How would we know? Are you using a third party script? If you tell us what you're using we may be able to help you. -
[SOLVED] .htaccess finding file
wildteen88 replied to [email protected]'s topic in Apache HTTP Server
You need to set rewriteBase to /~Admin/ RewriteEngine On allow from all RewriteBase /~Admin/ RewriteRule ^contact$ contact.php -
This echo 'Your age is: $info['age']<br /><br />'; Needs to be echo 'Your age is: ' . $info['age'] . '<br /><br />';
-
[SOLVED] Centering a Wordpress theme in IE
wildteen88 replied to lucy's topic in Third Party Scripts
No only in the header.php file before the opening <html> tag. Example: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> -
Well nothing will happen if you don't call your function first. However return does not return variables, it returns the value of a variable.
-
Where? You're setting $multiplyer with rand() $multiplier = rand(2,7); $lml_1 is not even defined in the code you posted.
-
EDIT: Umm.. me too slow Your need to use md5 for the password in your login script:
-
[SOLVED] Allowing PHP script to upload file to a folder
wildteen88 replied to jreed2132's topic in Linux
You just need to set the correct write permissions for the folder you're uploading the file to. -
In almost the same way as you explained it if($secondary == 1) $attack_points = 2; elseif($primary == 0 && $secondary == 0) $attack_points = 1;
-
PHP's include and Dreamweaver
wildteen88 replied to wendu's topic in Editor Help (PhpStorm, VS Code, etc)
Dreameweaver wont be able to to process the php code and display your layout within design view. Instead you'll have to load your page into your web browser and then refresh the page every time you make a change -
[SOLVED] Centering a Wordpress theme in IE
wildteen88 replied to lucy's topic in Third Party Scripts
The only issue I see is you you're not setting a valid DOCTYPE. You must always declare a valid doctype. -
You will be better of asking this sort of question over at the phpBB community overt at phpbb.net. However you can have a read of this KB article for integrating your sites login with phpBB's login. There are many more KB articles for phpBB here
-
Strange global variable issues
wildteen88 replied to dev_silent's topic in PHP Installation and Configuration
You should be using $_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'] -
A better way would be fix your HTML/CSS so it works with all major browsers. If its only working with Firefox then you're doing something wrong.
-
This is untrue. != is perfectly fine syntax. It means Not equal to. The same as it does in PHP. As you're now using MYSQL4.1.x, your existing passwords stored in your database will no longer work. This is because in MYSQL 4.1 the PASSWORD function now returns a 41 byte hash. Where as the PASSWORD function for MySQL4.0 returns a 16 byte hash. This is why your users can no longer login any more. To fix this you can use the OLD_PASSWORD function instead.
-
You can set your header.php file to be read only. That way they cant edit it.