Forum: PHP Oct 13th, 2009 |
| Replies: 1 Views: 250 Simply point yoxur browser to http://serverip/ where serverip is the current IP address of your computer that runs xampp. |
Forum: PHP Oct 3rd, 2009 |
| Replies: 3 Views: 280 Unfortunately, PHP does handle a couple of request parallel. As I don't know exactly what these data are for, I can suppose two ideas for updating the database:
1. Lock it!
Add a new field called... |
Forum: PHP Aug 16th, 2009 |
| Replies: 7 Views: 542 The difference between $_POST and $_REQUEST is simply, that $REQUEST handles POST as well as GET variables. So don't mind about this.
Now seeing if the user has selected a checkbox you can simply... |
Forum: PHP Aug 16th, 2009 |
| Replies: 7 Views: 542 You just need a single form-element, which goes around all of your checkboxes and a submit-button at the very end. Then the state of the checkboxes are represented in PHP by simply having a variable... |
Forum: PHP Aug 16th, 2009 |
| Replies: 5 Views: 399 How about trying your WHERE-Clause? My best advice is to echo your query, examine it and check Mysql_error() or just copy and paste it to PHPmyAdmin. Some sort of this question can't and won't be... |
Forum: PHP Aug 16th, 2009 |
| Replies: 3 Views: 350 Are you sure? Normally, when using session_destroy() the cookie isn't deleted - you have to do it manually. Maybe, you can post your code here, so that people get an ideo of your problem. |
Forum: PHP Aug 15th, 2009 |
| Replies: 1 Views: 181 Check if the webserver has permission to write to your tmp- and your destination-folder. This is the only thing I can think of right now. |
Forum: PHP Aug 15th, 2009 |
| Replies: 3 Views: 453 I can promise you, there's nothing easier than this:
1) rename your html-file to the extension ".php" so that your parser knows it has some code to execute.
2) Everywhere you want PHP-code you can... |
Forum: PHP May 25th, 2009 |
| Replies: 10 Views: 696 I can't add anything to the stuff that is said about the .htaccess. But I got you a bit different.
You have an index file in a folder and you now need the name of the folder. This can be done as... |
Forum: PHP May 25th, 2009 |
| Replies: 13 Views: 441 You have to make sure, that you definately don't have any html, echo or print before you set the session. Thats because session sends a cookie to the client via the HTTP-header. As soon you have any... |
Forum: PHP Mar 30th, 2009 |
| Replies: 1 Views: 275 Umm... not sure. You can try to set "cellspacing=0" and "cellpadding=0" in each <td>. And you have an "</a>" in each field without any opening tag. |
Forum: PHP Mar 30th, 2009 |
| Replies: 4 Views: 308 It seems, as if you can't unlink the file. Try to write an @ before unlink (eg @unlink()). That makes the PHP engine not to print the error occured.
I can't tell you, why you don't have the... |
Forum: PHP Dec 14th, 2008 |
| Replies: 1 Views: 408 I guess that during the encodation of the zips under PHP or whatever the engine writes a space, a carriage-return, a line-feed or any other ASCII-character that normally doesn't cause any problems.... |
Forum: PHP Dec 14th, 2008 |
| Replies: 2 Views: 420 Do you execute the scripts on a server or on your local machine. When I changed to Mac, I had sometimes a few problems with the configarion of my apache. It had some trouble where my server on the... |
Forum: PHP Dec 14th, 2008 |
| Replies: 2 Views: 1,110 The format of MP3 isn't as difficult as one might think at first time. Information like title, author, album etc are simple string stored at the end of the file. This section always starts with... |
Forum: PHP Nov 25th, 2008 |
| Replies: 1 Views: 543 1) You better don't do it this way. Write a JS-function popup with an argument. THen popup the argument (which is window.open() by the way).
2) in every link you pass the complete url from PHP to JS... |
Forum: PHP Nov 3rd, 2008 |
| Replies: 2 Views: 491 sure you can - at least with a few downsides.
Make a pop-up-window with Javascript that loads a PHP-file. In this PHP file you can programme a very basic color-picker with the main colurs (eg in... |
Forum: PHP Oct 31st, 2008 |
| Replies: 3 Views: 1,695 Guess it takes PHP so long to fetch the data from the file. Try to put the function file_get_contents() after the header-modification.
Don't know if thats the problem but tell me anyway if it worked... |
Forum: PHP Oct 31st, 2008 |
| Replies: 1 Views: 328 <input type=file> is the HTML-Tag for requesting a file. Note that you have to tag the form with enctype="multipart/form-data"> |
Forum: PHP Oct 26th, 2008 |
| Replies: 2 Views: 564 you can simply access the current day with the date-function. I think it's date("D") for the name of the day. As today is sunday you now that the 20th was monday, 27th is the next monday and so on. |
Forum: PHP Oct 26th, 2008 |
| Replies: 1 Views: 365 Two possibilities:
1. (easier) - create a site for each student each
make a list of all students and link them to a to a page where detailed information about the student are given. Now you can use... |
Forum: PHP Oct 21st, 2008 |
| Replies: 3 Views: 440 The very easiest way would be to allow only registered users to vote (as it is done at youtube, amazon, and also here).
If you don't want the visitor to sign-up you can do it with a cookie, but... |
Forum: PHP Oct 21st, 2008 |
| Replies: 4 Views: 585 exactly the way as i told you.
on the main page you link the images (headlines, etc) to the page product.php and add the ID of that product to it (eg "product.php?id=".$id).
The page product.php... |
Forum: PHP Oct 21st, 2008 |
| Replies: 1 Views: 1,205 I guess id would be easier to simply send commands to you server via HTTP. When createing XML or any other file you have to upload and decrypt it on your webserver (which is also possible though but... |
Forum: PHP Oct 21st, 2008 |
| Replies: 2 Views: 1,091 voice and video definately cannot be solved in PHP. You need at least Flash (Actionscript) and/or (not sure) JAVA.
As you mentioned correctly, PHP is a server-side programming-language. Therefore... |
Forum: PHP Oct 12th, 2008 |
| Replies: 5 Views: 753 You have to sort unread messages out with your own index. For example you save all read messages (with POP every mail as a unique ID defined by the server) in a simple text-file. When the user logges... |
Forum: PHP Oct 11th, 2008 |
| Replies: 4 Views: 585 0) Preperation:
Give all items a unique ID or name.
1) Index-Page
Ouput all items and link then to the product-page with their ID
echo "<a... |
Forum: PHP Oct 11th, 2008 |
| Replies: 2 Views: 758 Wrong forum! How naive has someone to be to ask in a serious forum how to programme malware? |
Forum: PHP Oct 10th, 2008 |
| Replies: 6 Views: 1,528 Why shouldn't you be able to use more than one query in a php-file?
When I got you problem correctyl you want to save the selected dropdown as a flag in the table
mysql_query("UPDATE... |
Forum: PHP Oct 9th, 2008 |
| Replies: 1 Views: 340 So do you have 3 buttons "A", "B" and "AB" or do you have a form with checkboxes so that the user can choose which options he(she want's to perform?
First of all I'd work with functions. Try... |
Forum: PHP Oct 9th, 2008 |
| Replies: 1 Views: 320 seems to me as if you have an empty line at the beginning of your code. Make sure that the php-tag "<?" starts directly at the beginning of your file, that all code that you include before don't echo... |
Forum: PHP Aug 23rd, 2008 |
| Replies: 1 Views: 338 I never work width EOD but a common problem is (which causes a lot of confusion) that you have to dequote you variables. Try to change your code to something like this:
var$="This is my var... |
Forum: PHP Aug 23rd, 2008 |
| Replies: 2 Views: 578 Change the method in the form-tag to "get". This adds the value and the variablename automatically to the URL you set in "action".
Example:
<form method="get" action="redirect.php">
<input... |
Forum: PHP Aug 20th, 2008 |
| Replies: 1 Views: 343 as simple as this:
<?
//Getting the current day:
$today=date("d");
//String for the dropdown...
$dropstring="<select>";
for($x=1;$x<=31;$x++){
$c=""; |
Forum: PHP Aug 20th, 2008 |
| Replies: 2 Views: 360 code 1 (The HTML-Form):
<form action="code_2.php" method=post>
<select name="phonenumber">
<option>Nb1</option>
<option>Nb2</option>
...
</select>
<input type=submit>
</form> |
Forum: PHP Aug 20th, 2008 |
| Replies: 2 Views: 711 It means that you didn't open your DB correctly. I can't tell you exactly as you haven't posted the code which calls the function db_getrows(). Have a look there and make sure that the handle you're... |
Forum: PHP Jun 28th, 2008 |
| Replies: 3 Views: 1,739 It does depend on the server you are using. I don't know if you can access gmail or hotmail but if you have a server running it should work. At least with my provider. |
Forum: PHP Jun 28th, 2008 |
| Replies: 1 Views: 660 Just put the file favicon.ico in the directory of that file. |
Forum: PHP Jun 28th, 2008 |
| Replies: 2 Views: 614 ?????
I don't get your problem. You say you get an error, when you upload more than 1MB and write in your code if ($_POST['MAX_FILE_SIZE'] >= $_FILES['file']['size']) {
By the way: hidden... |
Forum: PHP Jun 27th, 2008 |
| Replies: 4 Views: 687 Login works as follows (alread typed that stuff already but someone interrupted my - damn it).
- HTML form with name and password
- PHP:
$nick=$_REQUEST["nick"];
$pw=$_REQUEST["pw"];... |