-
Posts
1,842 -
Joined
-
Last visited
Posts posted by marcus
-
-
<?php include "header.php"; $act = $_GET['act']; switch($act){ case login: include "login.php"; break; case body: include "body.php"; break; default: include "no_action.php"; } include "footer.php"; ?>
-
<?php highlight_file("filename.ext"); ?>
-
What are you echo'ing?
-
It's localhost.
-
I think we get the point.
-
It should go successfully.
-
Text is basically any character of your character Unicode.
Normal text fields hold up to 65,000 bytes, if it exceeds it will truncate itself.
MEDIUMTEXT holds up to 16 million characters.
LONGTEXT holds up to 4 trillion characters.
-
Try:
foreach($temps AS $temp){ $setgames .= set_template($file,$temp); }
-
Show some code.
-
File: .htaccess
DirectoryIndex index.php ErrorDocument 404 /error404.php
File: error404.php [store in main directory {public_html}]
<?php header("Location: index.php"); ?>
Will redirect the user to the index
-
Not really a PHP related issue.
<form name="open" method="post" action="index.php" onSubmit="window.open('file.php'); return false;"> <input type="submit" name="submit" value="Open file.php"> </form>
-
$var = 123; $var .= 456; echo $var;
-
If the folder is protected you'll have no access.
-
I'll show you dirty code.
$let = "them be"; function backOff($user){ global $let; echo "Let " . $let . " " . $user; } $peer = "TheFilmGod"; backOff($peer);
Atleast they're trying to tweak it, don't tell them they're not learning. Most people started off on tutorials and got where they are now.
-
Is it readable?
-
Just interpret mine into yours.
-
$long_string = "this is a super dooper long string"; $short_string = "lolwtf"; for($i=1;$i<=strlen($long_string); $i++){ for($j=1;$j<=strlen($long_string-$short_string); $j++){ echo " "; } echo $short_string; }
give that a go
-
$x=0; foreach($items as $item) { if($x == 2){ echo "<div id='order2'>$item</div>\n"; $x=1; }else { echo "<div id='order'>$item</div>\n"; } $x++; }
Give that a try.
-
for($i=0; $i<$strlen($var); $i++){
It's basically tell you the variable is set to 0 and is less than the string length of the variable "var", and it continually added until it reaches that numeral.
-
It's certainly a sentence I never expected to say
Denied.
-
CHMOD the folder to 777
-
@function();
-
By the way, where is $op defined?
-
Try playing around with array variables.
if(!$this){ //$this is not set $err[] = "Errror One"; } if(!$that){ //$that is not set $err[] = "Error Two"; } //etc.... if(is_array($err)){ foreach($err AS $errors){ echo "<font color=\"red\">$errors</font><br />\n"; } }else { echo "OMG IT WORKED.\n"; }
simple question
in PHP Coding Help
Posted
For just alphanumeric keys use ctype_alnum()