wildteen88
Staff Alumni-
Posts
10,480 -
Joined
-
Last visited
Never
Everything posted by wildteen88
-
fwrite( $file, stripslashes($top) );
-
No floppy, no CD-rom or open sata... how do I get OS on server?
wildteen88 replied to tibberous's topic in Miscellaneous
How do you expect hard drives to be connected then, without any sata ports. no sata ports = no hard drives = no raid. -
No floppy, no CD-rom or open sata... how do I get OS on server?
wildteen88 replied to tibberous's topic in Miscellaneous
There should be some sata ports on the motherboard to connect hard drives. You'll need an external cd drive to install the OS. -
Those errors normally mean that mysql_query did not return a valid result resource due to an error in your query. use mysql_error to retrieve the error from mysql: $result = mysql_query("SELECT * FROM Users where Subchannel = '$Channel'") or die(mysql_error());
-
That error says it all, your do not have the correct permissions for the file you're tying to edit (editor.php). PHP will not parse code within a string. Also with the code you posted (in your first post) those error messages do not correlate 141 fclose($W); 142 } 143 Whats behind the **** wee need to see the file paths. EDIT: I have tested your code and it works fine for me, whether I'm editing a php script or a plain text file.
-
Margin can be applied to any side (top, right, bottom or left) of an element. It is up to you to which side you want to apply the margin.
-
Both are explain in the Apache Documentation Alias ScriptAlias
-
You have to have 10 posts or more in order to send PMs.
-
Yes that is ok, however it is still a good idea to add PHP to the PATH as I suggested earlier.
-
To catch the value returned from a function, you need to do $err = error(60);
-
PHP searches key places for the php.ini on Windows. Which are - C:\Windows - PATH Environment Variable - or the registry I recommend you keep the php.ini in the PHP Installation folder and add PHP to the PATH Environment Variable.
-
Use padding or margin instead.
-
$result3 is a result resource from the mysql query. You need to use mysqli_fetch_assoc in order to get the data retrieved from the query.
-
You're not making sense. You need to be more specific.
-
From an exploit in your PHP code. That is how sites get hacked. You should recode your site completely to prevent this. One of the main reasons why sites get hacked is due to poor data validation, also as your site uses PHP3 then another cause is register_globals. As of PHP4 it has been disabled and is soon to be remove from PHP6. register_globals can cause security exploits within your code.
-
[SOLVED] <select> form validation (PHP) - need help
wildteen88 replied to unsider's topic in PHP Coding Help
Check that $_POST['cat'] holds a number greater than 0: <?php if(isset($_POST['cat']) && $_POST['cat'] < 1) { echo "not set"; exit(); } ?> -
No, its: $tmp_ = 'box' . $temp_value;
-
It is not as simple changing the file extensions form .php3 to .php5. The majority of the code will have to be redone, there is no other simple approach. With out seeing the code I cannot give you specific instructions on what to do. If you're wanting to recode the site your self you're going to need to learn PHP, before doing anything make sure you have a good thorough understanding of the basics
-
PHP supports a whole range of databases. For MS Access you'd use ODBC I believe. You may want to have a look over at hotscripts.com and see if there is any such script that suites your needs.
-
Open Apache httpd.conf and search for the DirectoryIndex line and add index.php to the end of the line. Save the httpd.conf and restart Apache.
-
No more than 5 minutes, to install AMP go to wampserver.com, download and install. Once setup open you browser and go to http://localhost Do not expect to pick up the PHP language instantly, it takes time. Before trying to do anything make sure you have a thorough understanding of the basics, such as variables, data types etc. Then move on to using PHP with a MySQL database.
-
If you have usernames on separate lines within a text file, use file() instead: $names = array_map('trim', file('names.txt')); if(in_array($_POST['username'], $names)){ die("Name is a clan member name!"); }else{ //its all good! }
-
PHP has a built in function called strip_tags. You can pass which HTML tags you wish to except, all others will be removed.
-
You need to learn the proper syntax for arrays. I guess you mean: $content = array( "html" => "<b>$name</b><br>Solo", // Display 'Phsychology: Room 404' "style" => "background-color: $color", // use style property to change the background color "interval" => $intrv // set the interval for 2hrs ); $time = 700; $array[][$time] = $content; //or $array = array(0 => array($time => $content));