Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
You can download it as a CHM file or you can download all the either a single HTML file containing it all or all the HTML files packed together: http://www.php.net/download-docs.php
-
Try to apply the vertical-align to the li instead.
-
As talkz3333 said, the D is for "Dynamic". You cannot use DHTML without HTML. This page describes it pretty well: http://en.wikipedia.org/wiki/DHTML
-
Is it when you try to use the $_FILES variable the error appears? Try to see what print_r($_FILES); outputs.
-
Is this what you are trying to do? <html><head><title>Test</title></head> <body> <?php if(empty($_POST['fields']) { echo <<<EOF <form action="" method="post"> Input something: <input type="text" name="fields" size="5"> <input type="submit" value="submit"> EOF; } else { $handle = fopen("c:\\server\\htdocs\\phptesting\\iquiz\\testform.txt","a"); fwrite($handle,$_POST['fields']); fclose($handle); echo "Data written"; } ?> </body></html>
-
Well, the manual is pretty good. Else there is the tutorial at PHP Freaks: http://www.phpfreaks.com/tutorials.php You mentioned being an ASP web developer. If you don't already know MySQL, then a book/tutorial on that would probably be good as well if the things you mentioned you've just bought don't already cover that.
-
Welcome It's not spam, it is an introduction. It is in the wrong forum though...
-
<script type="text/javascript"> function hide(container_id) { document.getElementById(container_id).style.display='none'; } </script> <div id="some_text">bla bla bla</div> <button type="button" onclick="hide('some_text');">Hide the above text</button>
-
Is this what you want? <?php function prepend_zero($number, $n=2) { return (strlen($number) < $n+1) ? str_repeat('0',$n-strlen($number)).(string)$number : $number; } echo prepend_zero(1, 10); // Output: 0000000001 ?>
-
I've experienced that before. Firefox as well.
-
Echoing the $group_name variable would do just fine. Note: Java != Javascript - it is two entirely different things.
-
Something like this would do: <?php $modules = array( 'home' => 'home', 'login' => 'login', 'register' => 'login', 'lost_password' => 'login', 'member_list' => 'members', ); $module = empty($_GET['act']) ? 'home' : $_GET['act']; $module_path = "/var/www/modules/{$module}.module.php"; if(in_array($module,$modules) && @file_exists($module_path)) { require_once $module_path; } else { die("Could not load module '{$module}'."); } ?>
-
Besides OOP, there isn't much difference between 4 and 5. I don't think 4 has exception handling and there are certain functions that do not exist in 4 but do in 5 (you could always look it up in the manual if you are in doubt). I'd probably go for PHP5, though you must just be aware that the majority of the web hosts are running PHP4.
-
Guess you have to talk with your host then...
-
You could place your laptop (with Vista) on top of it and see what it says
-
Question: Are you talking about preventing a user from logging in multiple times with one user or multiple users?
-
It looks really awesome. I'd like one too, but the price is beyond what I can afford.
-
Nothing - exactly what the user deserves Once again, a design decision that ignores the reality that users do the weirdest things. You can always redirect them to a humurous site such as disney.com or something like that as "punishment" for not having javascript enabled. And how, may I ask, would you do that without Javascript?
-
How does that deal with opening multiple browsers?
-
Most of the content seems static and there is only one form - the contact form. Seems ok to me.
-
<?php $to = "[email protected]"; $message = "Name: {$_POST['name']}\nE-mail: {$_POST['email']}\nComments: {$comments}\n"; // note that $comments is not initialized if(mail($to, "Contact from Pure.Salong contact form", $message, "From: {$_POST['email']}")) { echo "Thank you,your email has been sent."; } else { echo "Sorry but ere is an error. Try again please."; } ?> Are you doing this on localhost or a remote server?
-
It's not possible. With the above example people could just open another browser. E.g. I log in using Firefox, then open Opera and login again. Two connections.
-
Letting users download w/o showing the full path to the file
Daniel0 replied to john010117's topic in Application Design
You shouldn't get the file from a GET parameter. That way people could download all sorts of files like configuration files containing passwords and such. -
AFAIK = As far as I know http://dictionary.reference.com/browse/afaik
-
AFAIK Flash runs client-side so it cannot do it alone. You'd still need PHP or another server-side scripting language. I might be wrong though.