231 Posted Topics
Re: well year. This is a common mistake one makes at the beginning of writing PHP code. The data recieved in PHP is masked so that possible harmful code cannot be executed. Try the following functions: [url]http://de.php.net/manual/de/function.htmlspecialchars-decode.php[/url] , [url]http://de.php.net/manual/de/function.stripslashes.php[/url] and [url]http://de.php.net/manual/de/function.addcslashes.php[/url] . If none of these functions do what you want … | |
Re: That shouldn't be hard at all. When you use one of the newest versions of phpMyAdmin this function is already available. Just go to export data and choose PDF. If you want to write an export yourself, you have to get to know how the PDF-library of PHP is working. … | |
Re: hi operator, you are right! I never noticed that before. Could simply be a trick for the CPU-manufacturer to find out, if just a byte or a whole word is to be changed. Don't take programming-life too seriously. You'll find so many just remarkably funny thinks especially when programming assembly. … | |
Re: look for ralf brown. The godfather of interrupts: [url]http://www.ctyme.com/rbrown.htm[/url] | |
Re: Try a very simple trick: Just put [CODE]<?echo "blah";[/CODE]directly at the top of the current PHP source code where you want to modify the header. Then run the code and open the HTML source code in your browser and have a look what stuff is put before "blah". Then you … | |
Re: I can't tell you exactly how it works under Windows as I haven't tried it for a long time now. With FTP or AFS you can basically access servers like the drives in your computer. Just google a bit and try to find something like "FTP Mount Windows" etc. Then … | |
Re: I once had that problem as well with my USB-Stick. I managed to get it working again under Linux. Try to format your storage there and even if it's not working you may can then format it under Mac. Did work for me that time. | |
Re: I am not really sure, but can variables declared with a space? Try to replace "Add Another Team" with "Add_Another_Team" and "Finish Adding Teams" with "Finish_Adding_Teams" and please let me know if that solves the problem. ~Simon | |
Re: Don't know what you really want, but you could have a look at phpMyAdmin. | |
Re: well that's basically quite simple though. Add an array with 26 fields to it where you store the number of occurrences of a character. eg: [CODE]countlist RESB 26 XOR EBX,EBX XOR EAX,EAX XOR EDX,EDX l1: MOV AL,[ESI+EBX] SUB EAX,65 ;so that A=0, B=1 etc MOV DL,[countlist+EAX] INC DL MOV [countlist+EAX],DL … | |
Re: Hi van_smiles, it actually doesn't matter which database you go for. MySQL is totally okay. The login-in-script has to be done in a programming-language and I guess, as you are in the PHP-forum, you want to use PHP. The login is in general nothing really special. 1) You need a … | |
Re: Well I guess, noone is interested to read your code. If you have a question, that please specify your problem and post just a few line where you think the problem occurs. | |
Hello altogether, a couple of weeks ago I updated my linux-system and copied the ISO-Image on an USB-stick so that I can boot it. It did work though, but now I don't have a clue how to format it back to a FAT32-system. Any idea? Thank you! Simon | |
Re: 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 simply include it in your HTNL: [code] HTML-style-formatting <? your PHP-code comes here ?> and … | |
Re: What OS are you using? I'm not sure if that stuff is still working under NT (Win 2000 or higher). Than you have to link it directly to an exe (with Link) and execute it. If so than have a look at the BIOS-interrupt INT 13h ([url]http://www.ctyme.com/rbrown.htm[/url] - bookmark this … | |
Re: Simply point yoxur browser to [url]http://serverip/[/url] where serverip is the current IP address of your computer that runs xampp. | |
Re: You men the voice that reads the text on the screen? I don't know which version of MacOS you have, but try "/Applications/Utilities/VoiceOver Utility.app". There you can unchek the option. Hope that helps. | |
Re: If you still can't find the folder, the last chance you have is FileSavage (about 50$ quit) or the testdisk-utility. I do prefer testdisk, because it's for free and has very good results. During the last scan it found data, I deleted about two years ago. The only drawback of … | |
Re: 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 "inuse" or "locked" that you mark with 1 before you do all the calculation. … | |
Re: 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 answered by anyone here in the forum. | |
Re: 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. | |
Re: 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 named after your checkbox set to the text you put in the "value"-element. If the … | |
Re: 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. | |
Re: Do you mean a visualization of statistics? Then you could use the GD-Lib (see on php.net) to create images with you graph. Or in a bit simpler way just use HTML-Tables. A "loading, please wait"-bar is a bit more tricky. I can't see any other solution then Flash. But you … | |
Re: 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 follows: [CODE] $uri=$REQUEST_URI; $tmp=explode("/",$uri); echo $tmp[$tmp.length()-2]; [/CODE] $REQUEST_URI … | |
Hello everybody, I use a HP Scanner with ADF and the programme "HP Scan Pro" under MacOS 10.5. The scanner saves the documents in a folder and openes my self programmed application. I can perfectly work with the files. Just HP Scan Pro reports after about 10 seconds (translated from … | |
Hello alltogether, it's a really silly question actually, but I just can't figure it out. I want to write a simple server, that serves the HTTP-protocoll (Port 80). The connection does work, when I let the programme run on port 8080, but Mac OS prohibits the connection on port 80. … | |
Re: 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 output, PHP sends the header and the stuff you want the browser to … | |
Re: 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 permission to unlink the file but at least the execution of your … | |
![]() | Re: 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. |
Re: try: [code=php]echo "document.write(\"<div class=\"txt\">Pagerank: ".$rank->pagerank." <br>\")"; echo "document.write(\"Alexa: ".$rank->alexa_rank."</div>\")";[/code] in the PHP-code. If it doesn't help then open that JS directly in your browser and tell us the error-reporting. | |
Re: Not directly. To shutdown the computer or reboot it, you can simply use direct hexcodes. Reboot for example is [code] DB 0EAh DW 0000h DW 0FFFFh [/code] When you run your programme without an OS you can put your code in the interruptvector (should be many tuts in the net). … | |
Re: the textarea is html. just the processing is done by php. Basically it looks as follows: comment.html [CODE] <form method=post action="process.php"> <textarea name=comment style="..."></textarea> <input type=submit> </form> [/CODE] sends the text in the textarea to "process.php" when user presses the submit-button. Variable is called "comment" process.php [CODE] <? $comment=$_REQUEST["comment"]; echo … | |
Re: 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 "ID3". To get the length of the song you need various information. The number of … | |
Re: 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. Now when PHP executes it, the engine thinks the HTML-code begins, sends the HTTP headers and then stucks … | |
Re: 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 old Win didn't say anything. Then you have to debug your … | |
Hello all together, my old computer with WinME got a really bad virus that I couldn't remove so I reinstalled the OS. The trouble is, that after the setup BIOS tells me that no OS is installed - which seems to me that the MBR (first sector with information about … | |
Re: 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 with simply something like this: [code]<a href="javascript:newwin('<?echo $row['url']?>');">[/code] 3) for the future: … | |
Re: 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 steps of 32). When clicking a box you can return the selected colour with … | |
Re: 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 or not. | |
Re: Of course you get. X_VALUE is printed as ASCII-Character. You have to write a procedure to convert numbers to strings. Converting them to hex is quite simple. Just have a look out in the net. | |
Re: [code]<input type=file>[/code] is the HTML-Tag for requesting a file. Note that you have to tag the form with [code]enctype="multipart/form-data">[/code] | |
Re: 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. | |
Re: 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 dropdowns for the admin to change stuff. 2. (trickier) - list all … | |
Re: yes and no. on the one hand you could actually rewrite everything from the scratch (driver for harddisks, basic graficcardoperations etc) - BIOS is also written in ASM. This is possible of course but will take you ages. So you better use the BIOS-interrupts. Linux and Win use also mainly … | |
Re: 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 you must be aware that not everybody is accepting cookies and … | |
Re: 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 [CODE]echo "<a href=\"product.php?item=".$row["ID"]."\">".$row["Title"]."</a>";[/CODE] 2) Programme the product-page: Output more detailed information about the seleted product [CODE]mysql_query("SELECT * FROM `products` WHERE `ID`=".$item);[/CODE] Have a look at other … | |
Re: 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 it's not helpful when accessing the webcam or microphone of the useres computer. | |
Re: 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 in you catch all emails from the server and compare the IDs … |
The End.