231 Posted Topics
Re: Hi, you simply check the data from your SQL-result and place it in the HTML-Form. Eg: [CODE]<input type="text" value="<?echo $row[0]?>">[/CODE] as row is the fetched row of the query. When using fetch-array it's kind of [CODE]<input type="text" value="<?echo $arr['email']?>">[/CODE] or whatever, but I'm not really used to that (I'm very … | |
Re: Yes, they can. You can actually do all stuff Google has done in their products apart from dynamically changing the content of your webpage without reload. You then need to work with JavaScript. | |
Re: 1) zip 2) use mail-function and manipulate header [URL="http://www.php.net/manual/en/function.mail.php"]http://www.php.net/manual/en/function.mail.php[/URL] [URL="http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php"]http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php[/URL] | |
Re: Hello altogether, basically, modern filesystems like HFS+ don't need to be defracmented. And nevertheless, that shouldn't be the bottleneck of you problem as far as I can see. Why do you want to use Norton? It's well known that it's slow and very much out of date. When you have … | |
Re: Hi, this should easily work with SWF-Tools ([URL="http://www.swftools.org/"]http://www.swftools.org/[/URL]). It's a community open-source project with very good reputition already. It's really worth a try! Greetings Simon | |
Re: Hi, as much as I know, you can use the function [CODE]loadVariables(url, "_root.response", "GET");[/CODE] in your flash file. In PHP you simply embed your flash-file with arguments like [code]"file.swf?arg1=..."[/code]. Try that out. If it's not working then feel free to ask again. Hope that helps, Simon | |
Re: is your subdomain pointing to a sub-folder of your server? I bet so? So why not simply putting that htaccess-file there? | |
Re: how about having a look at the generated HTML-Output? That helps you to understand the problem. | |
Re: Have a look at the funktion "[B]mktime[/B]()" on php.net. It is a very poweful yet simple function for date and time calculations. ![]() | |
Re: hi i you're using the xml-version of an excel file it should be at least reasonably simple. If not, I actually think that you're getting into deep trouble. There are basically three ways. 1) Take some money and buy a professional solution. 2) Google very long in the net and … | |
| |
Re: Why don't you simply fetch the errpor-output of mysql [URL="http://php.net/manual/en/function.mysql-error.php"]http://php.net/manual/en/function.mysql-error.php[/URL]? So in case something goes wrong you can still undo the paying. | |
Re: Well have a look in you other post. Sorry to say that, but grab yourself a book and learn assembly if you really want to. There's no help for anyone asking the most simpliest questions. Learing assembly is pure pain and on have to be very serious when doing so. | |
Re: You have to write that yourself. If you don't want to, than stick to a higher language. Write a procedure that compares two strings. You need a loop that compares each byte in the strings. If all values are identical, then you can set the equal-flag, if not not you … | |
Re: I dunno what the code above actually does. My first idea for an approach would be to loop through a string until I get a "0" (like line 9) and increment a counter everytime a get a space. That's all. Start debugging your code. Set breakpoints and some short outputs … | |
Re: have a look at scanimage: [URL="http://www.sane-project.org/man/scanimage.1.html"]http://www.sane-project.org/man/scanimage.1.html[/URL]. You could probably access via PHP as well, but I'm not sure. I imagine the scanner be connected directly to the host (also via LAN to access a device on the local machine => see manpage) and with a web interface you could view … | |
Re: [CODE]a[index_1][index_2]=newvalue;[/CODE] or you look here: [URL="http://de3.php.net/manual/en/language.operators.array.php"]http://de3.php.net/manual/en/language.operators.array.php[/URL] | |
Re: 1) 0x80 + 0x40 = 0xC0 0xC0 > 0x80 => setting the signed flag 2) 0x80 + 0x80 = 0x(1)00 Cannot represent numbers greater than 0xFF => setting Carry MSB cleared, so Overflow set 0x00 => Setting the Zero 3) 0xC0 + 0xC0 = 0x(1)80 Cannot represent numbers greater than … | |
Re: ASM is the purest developing language available. It just translates Mnorics to hex code. The good thing is you can control up to 100 percent what your CPU is supposed to do. CPUs dont distinguish between signed or unsigned variables. They don't even know the difference between datatypes. CPUs do … | |
Re: Hi kroche! As simple as that: [CODE]<? $f=file("http://localhost/test/test.php"); for($x=0;$x<count($f);$x++){ echo $f[$x]; } ?>[/CODE] Whereas "test.php" is your PHP file that you want to save. And instead of doing an echo, you simply open a file for writing and put all that content in it. Voilà . | |
Re: @jordan: That should definately work, but you have to prepare your mac to boot linux ([URL="http://refit.sourceforge.net/"]http://refit.sourceforge.net/[/URL]). @urmyt0y: What filesystem have you used under windows? NTFS should work actually (read-only). But with a 3rd-party plugin you can fully access NTFS. Why don't you just ask a friend to copy the stuff … | |
Re: What you could do, but really bad style, is making the document refresh automatically with [CODE]<META http-equiv="refresh" content="...">[/CODE] or JS [CODE]document.location.href="..."[/CODE] If you just want to split up your code, than you can access the output of a php-file with [CODE]fopen("http://yourserver/yourfixle.php");[/CODE] but this may make the whole stuff slow down. … | |
Re: when using imagecopy, you have to allocate the image before copying. In your case you copy it somewhere (hopefully PHP catches that bug!). [CODE]else { //create your empty image here. $image = @$imagecreate($phpbb_root_path.$sprites_path.'/'.$HTTP_POST_VARS[$Lrow['name']]); @imagecopy ($sprite_1, $image, 0, 0, 0, 0, $tot_width, $tot_height); @ImageDestroy($image); }[/CODE] this is all I can think … | |
Re: ??? 1) PHP is universal for all major OSs 2) Using PHP as a server language CANNOT process dynamic data! And if you don't want to use it as a server language, go for C++, Fortran or any BASIC-dialect. 3) if you really intend to do in in a browser, … | |
Re: ??? 1) outsource the creation of the image. Make a image.php where you put your code into. 2) make a new file, write a html-hyperlink, and then use <img src="image.php"> should work. You cannot output an image after having used html-syntax. So image-creation has always to be outsourced. | |
Re: I totally agree with jkon. Five minutes of research in the net would be enough to find answers to most of your questions. > do i need to learn another lamguage or php is okay. No, PHP can't do that. > will i need flash?? If you like. > how … | |
Re: You always have to use "header()" before you generate any output. With the first output, PHP sends automatically the standard-header which cannot be manipulated afterwords. And why do you output the generated text in an image? Remember, that the output of the php-script will be treated as an image! If … | |
Re: Guess you can do it in java or flash. Or you write you own lib and access it via exec. Could be worth trying it. | |
Re: You can use AJAX. Have a look for some tutorials. Also you can get some more information in the AJAX-Forum on Daniweb. Regards ![]() | |
Re: Erm, just put more than one file-elements in your HTML-script. the very simplest way of doing so is to make the name of the fields an array: [CODE] <form action="add_file.php" method="post" enctype="multipart/form-data"> <input type="file" name="uploaded_file[0]"><br> <input type="file" name="uploaded_file[1]"><br> <input type="submit" value="Upload file"> </form>[/CODE] In your PHP-file you just have to … | |
Re: you need the MBR signature. Make your fill-up 2 Bytes shorter and put an 0xAA55 at the end of the file. Have a look here: [url]http://en.wikipedia.org/wiki/Master_boot_record[/url] | |
Re: some people use images as a table background ("background-image") and then put a transparent gif over it. So when the user wants to save the image he/she just saves the gif. Might work with a few but people who want to have you image just copy it from their browsers … | |
Re: what do you wanna hear? you can have general purpose registers like EAX, EBX etc, segment registers like CS, DS, SS and so on, memory data like [storage], immediately data like $FF or a vector to a label (eg JMP somewhere). If I haven't forgotten anything, than that's all you … | |
Re: how about writing all that stuff directly to a file? [CODE]echo '<span class="pink">' . $row['q_quote'] . "</span>"; fwrite($file,$row['q_quote']);[/CODE] Now you just have to provide a link to your output-file so that the user can download the stuff. | |
Re: Basically it just makes sure that the assembled byte-code starts at "ORG". If you want to have a running COM-file under MS-DOS for instance you need exactly 100h of free mem for stuff like stack, commandline-arguments etc provided by DOS. And as this command just makes sure that IP points … | |
Re: I think we actually need more information about this. The problem itself is quite simple, though: the condition "if (in_array($fileType, $image_array))" is not met. Start debugging you code: make an output of $fileType and $image_array right before the condition and let the code run under FF and IE. I guess … | |
Re: Hi Swiftle, I am not sure if I got you right. And I haven't tried out what I am telling you. So please verify the stuff I'm just writing down. When you call a procedure, CALL simply pushes the address of the very next instruction onto the stack. Now the … | |
Re: Don't you think that are bit few information? What do you actually want to hear? You could have a problem with your harddrive. Or a virus running. maybe even your firewall makes trouble. Or windows. I guess you do have a problem with your upload. Maybe you're accessing the picture … | |
Re: I guess it's one of these "standart-cookie-problems" with IE. I just can give you some advice how to break down the pain: 1) find the code where a cookie is set or a session is started 2) isolate that stuff in a new file and get it working under FF … | |
Re: Hello Parva, first of all: I can't imagine that the problem is caused by the game. Very strange problem you have there. Personally I would try to replace the computer completely. What you can try is: 1) Check if your harddisk is full. This may cause the OS to slow … | |
![]() | Re: I guess that getlinks() returns an array with all links in a page. So if you go through that array with a for-loop you can simply save them in a database with a regular SQL-expression. ![]() |
Re: ??? I think you're totally off the track. Whatever you want to do: HTML can never ever output anything as well as PHP can't display anything. If you want to so an output of data submitted by a user you have to do it exactly the other way round: Create … | |
Re: a) I don't know. And for me it would take too much time to find out. Just write a code like that: [code] $a=mysql_fetch_row($result); $sum=array_sum($a);//http://de3.php.net/manual/en/function.array-sum.php arsort($a);//http://de3.php.net/manual/en/function.arsort.php $max=$a[0]; [/code] b) why not? Save a unique ID for each user in your `player_stats` and `player_pics` and select the image from `player_pics | |
Re: Well then, why do you use PageSpeed? I actually never heard about that before and having had one minute a look at it, it doesn't really make sense to me. For the most simple way to find out how fast you code really is, use the function microtime() ([url]http://de3.php.net/manual/en/function.microtime.php[/url]) after … | |
Re: What kind of ideas are you looking for? I can't really see a problem. Just create a file, with all options given by the author and save an array after a specific symbol (I always use a pipe "|") with all users that have already voted. To know how many … | |
Re: It's not so easy to explain in words , I think, but don't worry it's quite easy to solve in PHP. You have to decide wether you want to use a database like MySQL or not. It's not really necessary, but can make changes to the code easier in the … | |
Re: You should probably ask in the Javascript forums as this can't be done in PHP. And honestly, if you really want the arguments passed to PHP to be shown in the webbrowser's addressbar than you're better of not using iframes. [EDIT] The only thing that I can think of to … | |
Re: Did you already write your bootloader? If yes, than most work is already done. You just place all the following stuff at the end of the loader, load that stuff into mem and execute it by setting CS to that point. Displaying a string is the same as displaying a … | |
Re: 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 takes you maybe 30% more effort). I'd start off with these ideas: … | |
Hello folks, I just updated my homeserver to PHP 5.3.1 and I get now the following error when executing my scripts: [CODE]Cannot use string offset as an array[/CODE] The variable looks like: $bes[$a[3]][$a[4]][$a[6]], where $bes is a three-dimensional array that holds all information I need during runtime. The $a's can … |
The End.