Daniel0
Staff Alumni-
Posts
11,885 -
Joined
-
Last visited
Everything posted by Daniel0
-
I don't get what you mean... you can't use CSS alone, so you would need to use CSS [i]with[/i] HTML or HTML alone. I use CSS [i]with[/i] HTML
-
[quote author=paul2463 link=topic=106500.msg426536#msg426536 date=1157210767] <a href="http://www.winehq.com">Wine</a> the linux wondoze api emulator [/quote] According to Wine's name it's not an emulator. Wine is recursive acronym and means "[b]W[/b]ine [b]I[/b]s [b]N[/b]ot an [b]E[/b]mulator". Source: [url=http://en.wikipedia.org/wiki/Wine_%28software%29]"Wine (Software)" on Wikipedia[/url].
-
[quote author=feri_soft link=topic=106617.msg426486#msg426486 date=1157202779] REquered thing is that the script supports name[] values for form elements names to use later in php array and most important to support cyrylic charset ( windows-1251 ) because i tried one ajax example but it didnt support this charset only english... [/quote] Change the charset in your browser, or set it with a header.
-
[quote author=steelmanronald06 link=topic=106580.msg427264#msg427264 date=1157310912] Can anyone verify that they cannot send/reply to PM's? [/quote] Verified: [quote]An Error Has Occurred! You are not allowed to send personal messages.[/quote]
-
My name, but Daniel was taken so I put a number after it.
-
simple, i know but im new!! password help
Daniel0 replied to joshspringsteen's topic in PHP Coding Help
Change [code]$insert = mysql_query("insert into $table values ('NULL', '".$_POST['username']."', '".$_POST['password']."', '".$_POST['email']."', '".$_POST['realname']."', '".$_POST['location']."', '".$_POST['usertatts']."', '".$_POST['usercomments']."')")[/code] to [code]$insert = mysql_query("insert into $table values ('NULL', '".$_POST['username']."', '".sha1($_POST['password'])."', '".$_POST['email']."', '".$_POST['realname']."', '".$_POST['location']."', '".$_POST['usertatts']."', '".$_POST['usercomments']."')")[/code] If you wan't to use sha1, else just replace it with md5 or a similar function. -
You should generally always use <?php instead of <?, at least if you are going to publish it, since you can't except that all users support the latter one.
-
http://php.net/zip if you got PHP5.1 or later.
-
It's impossible to roll it back, once it's deleted it's gone if you don't have a backup.
-
Taken from the PHP manual: [code]<form action="" method="post" enctype="multipart/form-data"> <p>Pictures: <input type="file" name="pictures[]" /> <input type="file" name="pictures[]" /> <input type="file" name="pictures[]" /> <input type="submit" value="Send" /> </p> </form> <?php foreach ($_FILES["pictures"]["error"] as $key => $error) { if ($error == UPLOAD_ERR_OK) { $tmp_name = $_FILES["pictures"]["tmp_name"][$key]; $name = $_FILES["pictures"]["name"][$key]; move_uploaded_file($tmp_name, "data/$name"); } } ?> [/code] http://www.php.net/manual/da/features.file-upload.php
-
How to allow Normal Linux User to run particulare bash / shell script
Daniel0 replied to php-pandit's topic in Miscellaneous
You just need to give it executable permissions (or whatever you'd call it). [code]chmod +x your_script.sh[/code] -
Yes. Here is an example: [code]<a href='http://phpfreaks.com' style='position:absolute; left: 20; top: 77;'>PHP Freaks</a>[/code]
-
It's sent using POST or GET to the server and it can be intercepted. If you wish to prevent that you need to encrypt the connection using SSL.
-
Freelancers - Bumping threads
Daniel0 replied to SharkBait's topic in PHPFreaks.com Website Feedback
What's the benefit in editing the post? -
[quote author=ober link=topic=105014.msg420664#msg420664 date=1156342035] You cannot remove IE from the system pre-Vista. It is an integral part of the OS. As far as Vista, I haven't heard that, but I'd be surprised if it's true. [/quote] I've read that too. It's also gonna run with lower privileges than the user.
-
Help me - I need to ducument an entire web portal!!!!
Daniel0 replied to paritycheck's topic in Miscellaneous
http://www.phpdoc.org/ -
I modified your form a bit since you can't have to identical ids in a page, and since we will need them to be different: [code]<label><input type='checkbox' name='barKey[]' id='bar' value='bar' /> Bar</label> <label><input type='checkbox' name='barKey[]' id='club' value='club' /> Club</label> <label><input type='checkbox' name='barKey[]' id='food' value='food' /> Food</label>[/code] Now this will be how to set them checked based on the data in the database (we say that item 1 and 3 should be checked): [code]<?php // ... do stuff before - we have the unserialized array in $barKey $checkboxes = array( 'bar' => 'Bar', 'club' => 'Club', 'food' => 'Food', ); foreach($checkboxes as $key => $value) { $checked = in_array($key,$barKey) ? " checked='checked'" : null; echo "<label><input type='checkbox' name='barKey[]' id='{$key}' value='{$key}'{$checked} /> {$value}</label>"; } ?>[/code]
-
Schools (and other places too) could actually save a lot of money by using open-source systems, not having to buy a lot of Windows and Office licenses. Edit: I know it's not exactly related to this topic, but I was more thinking about the "using alternatives to the "defaults""-thing.
-
Yeah, I know they would probably have used a pre-built (or whatever it should be called) dictionary file, it's still quite funny though (at least I think so). The spell-checker actually kinda works like the MS Word's (and many other office systems') spell checker.
-
An error in your coding. Use this [code]<?php echo "<img src='{$target_directory}{$id}.jpeg' alt='{$comments}'/>"; ?>[/code]
-
Sounds really strange. PHP is able to have periods in strings. Could you provide us with the code where you try do deal with a string containing periods?
-
I just downloaded and untarred Firefox 2.0 Beta 1 and while using it I found something I found quite funny. For those of you who may not know it, Firefox 2.0 comes with a built-in spell checker which checks all form fields for spelling errors and underline them with red. Now while typing in a form field, I used the word Firefox, the funny thing is that Firefox don't know the word Firefox.
-
This is really odd, but it can't possibly be Firefox that caused the problem.
-
[s]Other people's scripts and tutorials. I've never read a single book on programming or PHP.[/s] Edit: I missed something: I have read other people's scripts and tutorials. I've never read a single book on programming or PHP.