231 Posted Topics

Member Avatar for solarb

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 …

Member Avatar for solarb
0
154
Member Avatar for nelliott10

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. …

Member Avatar for damnpoet
0
90
Member Avatar for operator494d

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. …

Member Avatar for NotNull
0
84
Member Avatar for bahare

look for ralf brown. The godfather of interrupts: [url]http://www.ctyme.com/rbrown.htm[/url]

Member Avatar for sDJh
0
57
Member Avatar for werm

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 …

Member Avatar for JRM
0
121
Member Avatar for darktangent

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 …

Member Avatar for sDJh
0
306
Member Avatar for felben

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.

Member Avatar for felben
0
190
Member Avatar for ryan1987

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

Member Avatar for sDJh
0
128
Member Avatar for treyk4
Member Avatar for digital-ether
0
159
Member Avatar for vista

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 …

Member Avatar for sDJh
0
6K
Member Avatar for van_smiles

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 …

Member Avatar for Arianna
0
104
Member Avatar for Boronia

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.

Member Avatar for sDJh
0
98
Member Avatar for sDJh

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

Member Avatar for sDJh
0
364
Member Avatar for davidm23

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 …

Member Avatar for davidm23
0
181
Member Avatar for jetamay

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 …

Member Avatar for Goalatio
0
167
Member Avatar for jithusdani

Simply point yoxur browser to [url]http://serverip/[/url] where serverip is the current IP address of your computer that runs xampp.

Member Avatar for sDJh
0
77
Member Avatar for ibnyadam

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.

Member Avatar for sDJh
0
136
Member Avatar for jackerman

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 …

Member Avatar for sDJh
0
129
Member Avatar for Tigran

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. …

Member Avatar for network18
-1
96
Member Avatar for tulipputih

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.

Member Avatar for tulipputih
0
97
Member Avatar for Tekkno

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.

Member Avatar for Tekkno
0
98
Member Avatar for rahul8590

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 …

Member Avatar for rahul8590
0
197
Member Avatar for mynameis

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.

Member Avatar for sDJh
0
96
Member Avatar for aran87

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 …

Member Avatar for make.rohit
0
731
Member Avatar for SKANK!!!!!

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 …

Member Avatar for SKANK!!!!!
0
203
Member Avatar for sDJh

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 …

0
99
Member Avatar for sDJh

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. …

Member Avatar for John A
0
120
Member Avatar for Pado

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 …

Member Avatar for leviathan185
0
325
Member Avatar for Erreon

I have a mini and honestly it is just amazingly... well smart. And no: There aren't any probs with it. It is very, very silent (the first time I started it I didn't even realize that it was running =)). When you cover it (which is a stupid idea by …

Member Avatar for Junyah
0
354
Member Avatar for rajeesh_rsn

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 …

Member Avatar for rajeesh_rsn
0
278
Member Avatar for Borderline

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.

Member Avatar for sDJh
0
179
Member Avatar for CasTex

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.

Member Avatar for almostbob
0
576
Member Avatar for Lilith24

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). …

Member Avatar for iyercb
0
125
Member Avatar for SinghR

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 …

Member Avatar for death_oclock
0
128
Member Avatar for xarz

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 …

Member Avatar for xarz
0
168
Member Avatar for finance-blogs

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 …

Member Avatar for sDJh
0
65
Member Avatar for daveg8

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 …

Member Avatar for sDJh
0
102
Member Avatar for sDJh

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 …

Member Avatar for firekid1239
0
113
Member Avatar for thomasEpand

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: …

Member Avatar for sDJh
0
89
Member Avatar for yasmena

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 …

Member Avatar for sDJh
0
93
Member Avatar for darjana

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.

Member Avatar for darjana
0
136
Member Avatar for urufukiba

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.

Member Avatar for NotNull
0
91
Member Avatar for kings
Re: help

[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]

Member Avatar for sDJh
0
83
Member Avatar for yusufmiko

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.

Member Avatar for yusufmiko
0
91
Member Avatar for suredurga

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 …

Member Avatar for sDJh
0
88
Member Avatar for cam875

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 …

Member Avatar for cam875
0
76
Member Avatar for MDGM

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 …

Member Avatar for MDGM
0
142
Member Avatar for brose

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 …

Member Avatar for sDJh
0
89
Member Avatar for quecoder

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.

Member Avatar for sDJh
0
139
Member Avatar for mrcniceguy

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 …

Member Avatar for mrcniceguy
0
99

The End.